Mechanical clean-up: semicolons, default access
[netvirt.git] / vpnservice / bgpmanager / bgpmanager-impl / src / main / java / org / opendaylight / netvirt / bgpmanager / thrift / gen / BgpConfigurator.java
1 /**
2  * Autogenerated by Thrift Compiler (0.9.1)
3  *
4  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5  *  @generated
6  */
7
8 package org.opendaylight.netvirt.bgpmanager.thrift.gen;
9
10 import org.apache.thrift.scheme.IScheme;
11 import org.apache.thrift.scheme.SchemeFactory;
12 import org.apache.thrift.scheme.StandardScheme;
13
14 import org.apache.thrift.scheme.TupleScheme;
15 import org.apache.thrift.protocol.TTupleProtocol;
16 import org.apache.thrift.EncodingUtils;
17 import org.apache.thrift.TException;
18 import org.apache.thrift.async.AsyncMethodCallback;
19 import org.apache.thrift.server.AbstractNonblockingServer.*;
20 import java.util.List;
21 import java.util.ArrayList;
22 import java.util.Map;
23 import java.util.HashMap;
24 import java.util.EnumMap;
25 import java.util.EnumSet;
26 import java.util.Collections;
27 import java.util.BitSet;
28 import org.slf4j.Logger;
29 import org.slf4j.LoggerFactory;
30
31 public class BgpConfigurator {
32
33   public interface Iface {
34
35     int startBgp(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime,
36                  boolean announceFbit) throws org.apache.thrift.TException;
37
38     int stopBgp(int asNumber) throws org.apache.thrift.TException;
39
40     int createPeer(String ipAddress, int asNumber) throws org.apache.thrift.TException;
41
42     int deletePeer(String ipAddress) throws org.apache.thrift.TException;
43
44     int addVrf(String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException;
45
46     int delVrf(String rd) throws org.apache.thrift.TException;
47
48     int pushRoute(String prefix, String nexthop, String rd, int label) throws org.apache.thrift.TException;
49
50     int withdrawRoute(String prefix, String rd) throws org.apache.thrift.TException;
51
52     int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException;
53
54     int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException;
55
56     int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException;
57
58     int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException;
59
60     int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
61
62     int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
63
64     int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException;
65
66     int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException;
67
68     int disableGracefulRestart() throws org.apache.thrift.TException;
69
70     Routes getRoutes(int optype, int winSize) throws org.apache.thrift.TException;
71
72   }
73
74   public interface AsyncIface {
75
76     void startBgp(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime,
77                   boolean announceFbit, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
78
79     void stopBgp(int asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
80
81     void createPeer(String ipAddress, int asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
82
83     void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
84
85     void addVrf(String rd, List<String> irts, List<String> erts,
86                 org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
87
88     void delVrf(String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
89
90     void pushRoute(String prefix, String nexthop, String rd, int label,
91                    org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
92
93     void withdrawRoute(String prefix, String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
94
95     void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
96
97     void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
98
99     void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
100
101     void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
102
103     void enableAddressFamily(String peerIp, af_afi afi, af_safi safi,
104                              org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
105
106     void disableAddressFamily(String peerIp, af_afi afi, af_safi safi,
107                               org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
108
109     void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
110
111     void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
112
113     void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
114
115     void getRoutes(int optype, int winSize, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
116
117   }
118
119   public static class Client extends org.apache.thrift.TServiceClient implements Iface {
120     public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
121       public Factory() {}
122       public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
123         return new Client(prot);
124       }
125       public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
126         return new Client(iprot, oprot);
127       }
128     }
129
130     public Client(org.apache.thrift.protocol.TProtocol prot)
131     {
132       super(prot, prot);
133     }
134
135     public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
136       super(iprot, oprot);
137     }
138
139     public int startBgp(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFbit) throws org.apache.thrift.TException
140     {
141       send_startBgp(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFbit);
142       return recv_startBgp();
143     }
144
145     public void send_startBgp(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFbit) throws org.apache.thrift.TException
146     {
147       startBgp_args args = new startBgp_args();
148       args.setAsNumber(asNumber);
149       args.setRouterId(routerId);
150       args.setPort(port);
151       args.setHoldTime(holdTime);
152       args.setKeepAliveTime(keepAliveTime);
153       args.setStalepathTime(stalepathTime);
154       args.setAnnounceFbit(announceFbit);
155       sendBase("startBgp", args);
156     }
157
158     public int recv_startBgp() throws org.apache.thrift.TException
159     {
160       startBgp_result result = new startBgp_result();
161       receiveBase(result, "startBgp");
162       if (result.isSetSuccess()) {
163         return result.success;
164       }
165       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startBgp failed: unknown result");
166     }
167
168     public int stopBgp(int asNumber) throws org.apache.thrift.TException
169     {
170       send_stopBgp(asNumber);
171       return recv_stopBgp();
172     }
173
174     public void send_stopBgp(int asNumber) throws org.apache.thrift.TException
175     {
176       stopBgp_args args = new stopBgp_args();
177       args.setAsNumber(asNumber);
178       sendBase("stopBgp", args);
179     }
180
181     public int recv_stopBgp() throws org.apache.thrift.TException
182     {
183       stopBgp_result result = new stopBgp_result();
184       receiveBase(result, "stopBgp");
185       if (result.isSetSuccess()) {
186         return result.success;
187       }
188       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "stopBgp failed: unknown result");
189     }
190
191     public int createPeer(String ipAddress, int asNumber) throws org.apache.thrift.TException
192     {
193       send_createPeer(ipAddress, asNumber);
194       return recv_createPeer();
195     }
196
197     public void send_createPeer(String ipAddress, int asNumber) throws org.apache.thrift.TException
198     {
199       createPeer_args args = new createPeer_args();
200       args.setIpAddress(ipAddress);
201       args.setAsNumber(asNumber);
202       sendBase("createPeer", args);
203     }
204
205     public int recv_createPeer() throws org.apache.thrift.TException
206     {
207       createPeer_result result = new createPeer_result();
208       receiveBase(result, "createPeer");
209       if (result.isSetSuccess()) {
210         return result.success;
211       }
212       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPeer failed: unknown result");
213     }
214
215     public int deletePeer(String ipAddress) throws org.apache.thrift.TException
216     {
217       send_deletePeer(ipAddress);
218       return recv_deletePeer();
219     }
220
221     public void send_deletePeer(String ipAddress) throws org.apache.thrift.TException
222     {
223       deletePeer_args args = new deletePeer_args();
224       args.setIpAddress(ipAddress);
225       sendBase("deletePeer", args);
226     }
227
228     public int recv_deletePeer() throws org.apache.thrift.TException
229     {
230       deletePeer_result result = new deletePeer_result();
231       receiveBase(result, "deletePeer");
232       if (result.isSetSuccess()) {
233         return result.success;
234       }
235       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deletePeer failed: unknown result");
236     }
237
238     public int addVrf(String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException
239     {
240       send_addVrf(rd, irts, erts);
241       return recv_addVrf();
242     }
243
244     public void send_addVrf(String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException
245     {
246       addVrf_args args = new addVrf_args();
247       args.setRd(rd);
248       args.setIrts(irts);
249       args.setErts(erts);
250       sendBase("addVrf", args);
251     }
252
253     public int recv_addVrf() throws org.apache.thrift.TException
254     {
255       addVrf_result result = new addVrf_result();
256       receiveBase(result, "addVrf");
257       if (result.isSetSuccess()) {
258         return result.success;
259       }
260       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVrf failed: unknown result");
261     }
262
263     public int delVrf(String rd) throws org.apache.thrift.TException
264     {
265       send_delVrf(rd);
266       return recv_delVrf();
267     }
268
269     public void send_delVrf(String rd) throws org.apache.thrift.TException
270     {
271       delVrf_args args = new delVrf_args();
272       args.setRd(rd);
273       sendBase("delVrf", args);
274     }
275
276     public int recv_delVrf() throws org.apache.thrift.TException
277     {
278       delVrf_result result = new delVrf_result();
279       receiveBase(result, "delVrf");
280       if (result.isSetSuccess()) {
281         return result.success;
282       }
283       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "delVrf failed: unknown result");
284     }
285
286     public int pushRoute(String prefix, String nexthop, String rd, int label) throws org.apache.thrift.TException
287     {
288       send_pushRoute(prefix, nexthop, rd, label);
289       return recv_pushRoute();
290     }
291
292     public void send_pushRoute(String prefix, String nexthop, String rd, int label) throws org.apache.thrift.TException
293     {
294       pushRoute_args args = new pushRoute_args();
295       args.setPrefix(prefix);
296       args.setNexthop(nexthop);
297       args.setRd(rd);
298       args.setLabel(label);
299       sendBase("pushRoute", args);
300     }
301
302     public int recv_pushRoute() throws org.apache.thrift.TException
303     {
304       pushRoute_result result = new pushRoute_result();
305       receiveBase(result, "pushRoute");
306       if (result.isSetSuccess()) {
307         return result.success;
308       }
309       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "pushRoute failed: unknown result");
310     }
311
312     public int withdrawRoute(String prefix, String rd) throws org.apache.thrift.TException
313     {
314       send_withdrawRoute(prefix, rd);
315       return recv_withdrawRoute();
316     }
317
318     public void send_withdrawRoute(String prefix, String rd) throws org.apache.thrift.TException
319     {
320       withdrawRoute_args args = new withdrawRoute_args();
321       args.setPrefix(prefix);
322       args.setRd(rd);
323       sendBase("withdrawRoute", args);
324     }
325
326     public int recv_withdrawRoute() throws org.apache.thrift.TException
327     {
328       withdrawRoute_result result = new withdrawRoute_result();
329       receiveBase(result, "withdrawRoute");
330       if (result.isSetSuccess()) {
331         return result.success;
332       }
333       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "withdrawRoute failed: unknown result");
334     }
335
336     public int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
337     {
338       send_setEbgpMultihop(peerIp, nHops);
339       return recv_setEbgpMultihop();
340     }
341
342     public void send_setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
343     {
344       setEbgpMultihop_args args = new setEbgpMultihop_args();
345       args.setPeerIp(peerIp);
346       args.setNHops(nHops);
347       sendBase("setEbgpMultihop", args);
348     }
349
350     public int recv_setEbgpMultihop() throws org.apache.thrift.TException
351     {
352       setEbgpMultihop_result result = new setEbgpMultihop_result();
353       receiveBase(result, "setEbgpMultihop");
354       if (result.isSetSuccess()) {
355         return result.success;
356       }
357       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setEbgpMultihop failed: unknown result");
358     }
359
360     public int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
361     {
362       send_unsetEbgpMultihop(peerIp);
363       return recv_unsetEbgpMultihop();
364     }
365
366     public void send_unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
367     {
368       unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
369       args.setPeerIp(peerIp);
370       sendBase("unsetEbgpMultihop", args);
371     }
372
373     public int recv_unsetEbgpMultihop() throws org.apache.thrift.TException
374     {
375       unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
376       receiveBase(result, "unsetEbgpMultihop");
377       if (result.isSetSuccess()) {
378         return result.success;
379       }
380       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetEbgpMultihop failed: unknown result");
381     }
382
383     public int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
384     {
385       send_setUpdateSource(peerIp, srcIp);
386       return recv_setUpdateSource();
387     }
388
389     public void send_setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
390     {
391       setUpdateSource_args args = new setUpdateSource_args();
392       args.setPeerIp(peerIp);
393       args.setSrcIp(srcIp);
394       sendBase("setUpdateSource", args);
395     }
396
397     public int recv_setUpdateSource() throws org.apache.thrift.TException
398     {
399       setUpdateSource_result result = new setUpdateSource_result();
400       receiveBase(result, "setUpdateSource");
401       if (result.isSetSuccess()) {
402         return result.success;
403       }
404       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setUpdateSource failed: unknown result");
405     }
406
407     public int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
408     {
409       send_unsetUpdateSource(peerIp);
410       return recv_unsetUpdateSource();
411     }
412
413     public void send_unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
414     {
415       unsetUpdateSource_args args = new unsetUpdateSource_args();
416       args.setPeerIp(peerIp);
417       sendBase("unsetUpdateSource", args);
418     }
419
420     public int recv_unsetUpdateSource() throws org.apache.thrift.TException
421     {
422       unsetUpdateSource_result result = new unsetUpdateSource_result();
423       receiveBase(result, "unsetUpdateSource");
424       if (result.isSetSuccess()) {
425         return result.success;
426       }
427       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetUpdateSource failed: unknown result");
428     }
429
430     public int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
431     {
432       send_enableAddressFamily(peerIp, afi, safi);
433       return recv_enableAddressFamily();
434     }
435
436     public void send_enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
437     {
438       enableAddressFamily_args args = new enableAddressFamily_args();
439       args.setPeerIp(peerIp);
440       args.setAfi(afi);
441       args.setSafi(safi);
442       sendBase("enableAddressFamily", args);
443     }
444
445     public int recv_enableAddressFamily() throws org.apache.thrift.TException
446     {
447       enableAddressFamily_result result = new enableAddressFamily_result();
448       receiveBase(result, "enableAddressFamily");
449       if (result.isSetSuccess()) {
450         return result.success;
451       }
452       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableAddressFamily failed: unknown result");
453     }
454
455     public int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
456     {
457       send_disableAddressFamily(peerIp, afi, safi);
458       return recv_disableAddressFamily();
459     }
460
461     public void send_disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
462     {
463       disableAddressFamily_args args = new disableAddressFamily_args();
464       args.setPeerIp(peerIp);
465       args.setAfi(afi);
466       args.setSafi(safi);
467       sendBase("disableAddressFamily", args);
468     }
469
470     public int recv_disableAddressFamily() throws org.apache.thrift.TException
471     {
472       disableAddressFamily_result result = new disableAddressFamily_result();
473       receiveBase(result, "disableAddressFamily");
474       if (result.isSetSuccess()) {
475         return result.success;
476       }
477       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableAddressFamily failed: unknown result");
478     }
479
480     public int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
481     {
482       send_setLogConfig(logFileName, logLevel);
483       return recv_setLogConfig();
484     }
485
486     public void send_setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
487     {
488       setLogConfig_args args = new setLogConfig_args();
489       args.setLogFileName(logFileName);
490       args.setLogLevel(logLevel);
491       sendBase("setLogConfig", args);
492     }
493
494     public int recv_setLogConfig() throws org.apache.thrift.TException
495     {
496       setLogConfig_result result = new setLogConfig_result();
497       receiveBase(result, "setLogConfig");
498       if (result.isSetSuccess()) {
499         return result.success;
500       }
501       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setLogConfig failed: unknown result");
502     }
503
504     public int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
505     {
506       send_enableGracefulRestart(stalepathTime);
507       return recv_enableGracefulRestart();
508     }
509
510     public void send_enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
511     {
512       enableGracefulRestart_args args = new enableGracefulRestart_args();
513       args.setStalepathTime(stalepathTime);
514       sendBase("enableGracefulRestart", args);
515     }
516
517     public int recv_enableGracefulRestart() throws org.apache.thrift.TException
518     {
519       enableGracefulRestart_result result = new enableGracefulRestart_result();
520       receiveBase(result, "enableGracefulRestart");
521       if (result.isSetSuccess()) {
522         return result.success;
523       }
524       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableGracefulRestart failed: unknown result");
525     }
526
527     public int disableGracefulRestart() throws org.apache.thrift.TException
528     {
529       send_disableGracefulRestart();
530       return recv_disableGracefulRestart();
531     }
532
533     public void send_disableGracefulRestart() throws org.apache.thrift.TException
534     {
535       disableGracefulRestart_args args = new disableGracefulRestart_args();
536       sendBase("disableGracefulRestart", args);
537     }
538
539     public int recv_disableGracefulRestart() throws org.apache.thrift.TException
540     {
541       disableGracefulRestart_result result = new disableGracefulRestart_result();
542       receiveBase(result, "disableGracefulRestart");
543       if (result.isSetSuccess()) {
544         return result.success;
545       }
546       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableGracefulRestart failed: unknown result");
547     }
548
549     public Routes getRoutes(int optype, int winSize) throws org.apache.thrift.TException
550     {
551       send_getRoutes(optype, winSize);
552       return recv_getRoutes();
553     }
554
555     public void send_getRoutes(int optype, int winSize) throws org.apache.thrift.TException
556     {
557       getRoutes_args args = new getRoutes_args();
558       args.setOptype(optype);
559       args.setWinSize(winSize);
560       sendBase("getRoutes", args);
561     }
562
563     public Routes recv_getRoutes() throws org.apache.thrift.TException
564     {
565       getRoutes_result result = new getRoutes_result();
566       receiveBase(result, "getRoutes");
567       if (result.isSetSuccess()) {
568         return result.success;
569       }
570       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoutes failed: unknown result");
571     }
572
573   }
574   public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
575     public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
576       private org.apache.thrift.async.TAsyncClientManager clientManager;
577       private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
578       public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
579         this.clientManager = clientManager;
580         this.protocolFactory = protocolFactory;
581       }
582       public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
583         return new AsyncClient(protocolFactory, clientManager, transport);
584       }
585     }
586
587     public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
588       super(protocolFactory, clientManager, transport);
589     }
590
591     public void startBgp(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFbit, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
592       checkReady();
593       startBgp_call method_call = new startBgp_call(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFbit, resultHandler, this, ___protocolFactory, ___transport);
594       this.___currentMethod = method_call;
595       ___manager.call(method_call);
596     }
597
598     public static class startBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
599       private int asNumber;
600       private String routerId;
601       private int port;
602       private int holdTime;
603       private int keepAliveTime;
604       private int stalepathTime;
605       private boolean announceFbit;
606       public startBgp_call(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFbit, 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 {
607         super(client, protocolFactory, transport, resultHandler, false);
608         this.asNumber = asNumber;
609         this.routerId = routerId;
610         this.port = port;
611         this.holdTime = holdTime;
612         this.keepAliveTime = keepAliveTime;
613         this.stalepathTime = stalepathTime;
614         this.announceFbit = announceFbit;
615       }
616
617       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
618         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
619         startBgp_args args = new startBgp_args();
620         args.setAsNumber(asNumber);
621         args.setRouterId(routerId);
622         args.setPort(port);
623         args.setHoldTime(holdTime);
624         args.setKeepAliveTime(keepAliveTime);
625         args.setStalepathTime(stalepathTime);
626         args.setAnnounceFbit(announceFbit);
627         args.write(prot);
628         prot.writeMessageEnd();
629       }
630
631       public int getResult() throws org.apache.thrift.TException {
632         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
633           throw new IllegalStateException("Method call not finished!");
634         }
635         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
636         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
637         return (new Client(prot)).recv_startBgp();
638       }
639     }
640
641     public void stopBgp(int asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
642       checkReady();
643       stopBgp_call method_call = new stopBgp_call(asNumber, resultHandler, this, ___protocolFactory, ___transport);
644       this.___currentMethod = method_call;
645       ___manager.call(method_call);
646     }
647
648     public static class stopBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
649       private int asNumber;
650       public stopBgp_call(int asNumber, 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 {
651         super(client, protocolFactory, transport, resultHandler, false);
652         this.asNumber = asNumber;
653       }
654
655       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
656         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("stopBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
657         stopBgp_args args = new stopBgp_args();
658         args.setAsNumber(asNumber);
659         args.write(prot);
660         prot.writeMessageEnd();
661       }
662
663       public int getResult() throws org.apache.thrift.TException {
664         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
665           throw new IllegalStateException("Method call not finished!");
666         }
667         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
668         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
669         return (new Client(prot)).recv_stopBgp();
670       }
671     }
672
673     public void createPeer(String ipAddress, int asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
674       checkReady();
675       createPeer_call method_call = new createPeer_call(ipAddress, asNumber, resultHandler, this, ___protocolFactory, ___transport);
676       this.___currentMethod = method_call;
677       ___manager.call(method_call);
678     }
679
680     public static class createPeer_call extends org.apache.thrift.async.TAsyncMethodCall {
681       private String ipAddress;
682       private int asNumber;
683       public createPeer_call(String ipAddress, int asNumber, 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 {
684         super(client, protocolFactory, transport, resultHandler, false);
685         this.ipAddress = ipAddress;
686         this.asNumber = asNumber;
687       }
688
689       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
690         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
691         createPeer_args args = new createPeer_args();
692         args.setIpAddress(ipAddress);
693         args.setAsNumber(asNumber);
694         args.write(prot);
695         prot.writeMessageEnd();
696       }
697
698       public int getResult() throws org.apache.thrift.TException {
699         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
700           throw new IllegalStateException("Method call not finished!");
701         }
702         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
703         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
704         return (new Client(prot)).recv_createPeer();
705       }
706     }
707
708     public void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
709       checkReady();
710       deletePeer_call method_call = new deletePeer_call(ipAddress, resultHandler, this, ___protocolFactory, ___transport);
711       this.___currentMethod = method_call;
712       ___manager.call(method_call);
713     }
714
715     public static class deletePeer_call extends org.apache.thrift.async.TAsyncMethodCall {
716       private String ipAddress;
717       public deletePeer_call(String ipAddress, 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 {
718         super(client, protocolFactory, transport, resultHandler, false);
719         this.ipAddress = ipAddress;
720       }
721
722       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
723         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deletePeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
724         deletePeer_args args = new deletePeer_args();
725         args.setIpAddress(ipAddress);
726         args.write(prot);
727         prot.writeMessageEnd();
728       }
729
730       public int getResult() throws org.apache.thrift.TException {
731         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
732           throw new IllegalStateException("Method call not finished!");
733         }
734         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
735         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
736         return (new Client(prot)).recv_deletePeer();
737       }
738     }
739
740     public void addVrf(String rd, List<String> irts, List<String> erts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
741       checkReady();
742       addVrf_call method_call = new addVrf_call(rd, irts, erts, resultHandler, this, ___protocolFactory, ___transport);
743       this.___currentMethod = method_call;
744       ___manager.call(method_call);
745     }
746
747     public static class addVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
748       private String rd;
749       private List<String> irts;
750       private List<String> erts;
751       public addVrf_call(String rd, List<String> irts, List<String> erts, 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 {
752         super(client, protocolFactory, transport, resultHandler, false);
753         this.rd = rd;
754         this.irts = irts;
755         this.erts = erts;
756       }
757
758       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
759         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
760         addVrf_args args = new addVrf_args();
761         args.setRd(rd);
762         args.setIrts(irts);
763         args.setErts(erts);
764         args.write(prot);
765         prot.writeMessageEnd();
766       }
767
768       public int getResult() throws org.apache.thrift.TException {
769         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
770           throw new IllegalStateException("Method call not finished!");
771         }
772         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
773         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
774         return (new Client(prot)).recv_addVrf();
775       }
776     }
777
778     public void delVrf(String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
779       checkReady();
780       delVrf_call method_call = new delVrf_call(rd, resultHandler, this, ___protocolFactory, ___transport);
781       this.___currentMethod = method_call;
782       ___manager.call(method_call);
783     }
784
785     public static class delVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
786       private String rd;
787       public delVrf_call(String rd, 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 {
788         super(client, protocolFactory, transport, resultHandler, false);
789         this.rd = rd;
790       }
791
792       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
793         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("delVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
794         delVrf_args args = new delVrf_args();
795         args.setRd(rd);
796         args.write(prot);
797         prot.writeMessageEnd();
798       }
799
800       public int getResult() throws org.apache.thrift.TException {
801         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
802           throw new IllegalStateException("Method call not finished!");
803         }
804         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
805         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
806         return (new Client(prot)).recv_delVrf();
807       }
808     }
809
810     public void pushRoute(String prefix, String nexthop, String rd, int label, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
811       checkReady();
812       pushRoute_call method_call = new pushRoute_call(prefix, nexthop, rd, label, resultHandler, this, ___protocolFactory, ___transport);
813       this.___currentMethod = method_call;
814       ___manager.call(method_call);
815     }
816
817     public static class pushRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
818       private String prefix;
819       private String nexthop;
820       private String rd;
821       private int label;
822       public pushRoute_call(String prefix, String nexthop, String rd, int label, 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 {
823         super(client, protocolFactory, transport, resultHandler, false);
824         this.prefix = prefix;
825         this.nexthop = nexthop;
826         this.rd = rd;
827         this.label = label;
828       }
829
830       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
831         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("pushRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
832         pushRoute_args args = new pushRoute_args();
833         args.setPrefix(prefix);
834         args.setNexthop(nexthop);
835         args.setRd(rd);
836         args.setLabel(label);
837         args.write(prot);
838         prot.writeMessageEnd();
839       }
840
841       public int getResult() throws org.apache.thrift.TException {
842         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
843           throw new IllegalStateException("Method call not finished!");
844         }
845         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
846         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
847         return (new Client(prot)).recv_pushRoute();
848       }
849     }
850
851     public void withdrawRoute(String prefix, String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
852       checkReady();
853       withdrawRoute_call method_call = new withdrawRoute_call(prefix, rd, resultHandler, this, ___protocolFactory, ___transport);
854       this.___currentMethod = method_call;
855       ___manager.call(method_call);
856     }
857
858     public static class withdrawRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
859       private String prefix;
860       private String rd;
861       public withdrawRoute_call(String prefix, String rd, 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 {
862         super(client, protocolFactory, transport, resultHandler, false);
863         this.prefix = prefix;
864         this.rd = rd;
865       }
866
867       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
868         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("withdrawRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
869         withdrawRoute_args args = new withdrawRoute_args();
870         args.setPrefix(prefix);
871         args.setRd(rd);
872         args.write(prot);
873         prot.writeMessageEnd();
874       }
875
876       public int getResult() throws org.apache.thrift.TException {
877         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
878           throw new IllegalStateException("Method call not finished!");
879         }
880         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
881         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
882         return (new Client(prot)).recv_withdrawRoute();
883       }
884     }
885
886     public void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
887       checkReady();
888       setEbgpMultihop_call method_call = new setEbgpMultihop_call(peerIp, nHops, resultHandler, this, ___protocolFactory, ___transport);
889       this.___currentMethod = method_call;
890       ___manager.call(method_call);
891     }
892
893     public static class setEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
894       private String peerIp;
895       private int nHops;
896       public setEbgpMultihop_call(String peerIp, int nHops, 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 {
897         super(client, protocolFactory, transport, resultHandler, false);
898         this.peerIp = peerIp;
899         this.nHops = nHops;
900       }
901
902       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
903         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
904         setEbgpMultihop_args args = new setEbgpMultihop_args();
905         args.setPeerIp(peerIp);
906         args.setNHops(nHops);
907         args.write(prot);
908         prot.writeMessageEnd();
909       }
910
911       public int getResult() throws org.apache.thrift.TException {
912         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
913           throw new IllegalStateException("Method call not finished!");
914         }
915         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
916         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
917         return (new Client(prot)).recv_setEbgpMultihop();
918       }
919     }
920
921     public void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
922       checkReady();
923       unsetEbgpMultihop_call method_call = new unsetEbgpMultihop_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
924       this.___currentMethod = method_call;
925       ___manager.call(method_call);
926     }
927
928     public static class unsetEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
929       private String peerIp;
930       public unsetEbgpMultihop_call(String peerIp, 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 {
931         super(client, protocolFactory, transport, resultHandler, false);
932         this.peerIp = peerIp;
933       }
934
935       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
936         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
937         unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
938         args.setPeerIp(peerIp);
939         args.write(prot);
940         prot.writeMessageEnd();
941       }
942
943       public int getResult() throws org.apache.thrift.TException {
944         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
945           throw new IllegalStateException("Method call not finished!");
946         }
947         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
948         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
949         return (new Client(prot)).recv_unsetEbgpMultihop();
950       }
951     }
952
953     public void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
954       checkReady();
955       setUpdateSource_call method_call = new setUpdateSource_call(peerIp, srcIp, resultHandler, this, ___protocolFactory, ___transport);
956       this.___currentMethod = method_call;
957       ___manager.call(method_call);
958     }
959
960     public static class setUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
961       private String peerIp;
962       private String srcIp;
963       public setUpdateSource_call(String peerIp, String srcIp, 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 {
964         super(client, protocolFactory, transport, resultHandler, false);
965         this.peerIp = peerIp;
966         this.srcIp = srcIp;
967       }
968
969       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
970         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
971         setUpdateSource_args args = new setUpdateSource_args();
972         args.setPeerIp(peerIp);
973         args.setSrcIp(srcIp);
974         args.write(prot);
975         prot.writeMessageEnd();
976       }
977
978       public int getResult() throws org.apache.thrift.TException {
979         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
980           throw new IllegalStateException("Method call not finished!");
981         }
982         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
983         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
984         return (new Client(prot)).recv_setUpdateSource();
985       }
986     }
987
988     public void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
989       checkReady();
990       unsetUpdateSource_call method_call = new unsetUpdateSource_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
991       this.___currentMethod = method_call;
992       ___manager.call(method_call);
993     }
994
995     public static class unsetUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
996       private String peerIp;
997       public unsetUpdateSource_call(String peerIp, 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 {
998         super(client, protocolFactory, transport, resultHandler, false);
999         this.peerIp = peerIp;
1000       }
1001
1002       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1003         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
1004         unsetUpdateSource_args args = new unsetUpdateSource_args();
1005         args.setPeerIp(peerIp);
1006         args.write(prot);
1007         prot.writeMessageEnd();
1008       }
1009
1010       public int getResult() throws org.apache.thrift.TException {
1011         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1012           throw new IllegalStateException("Method call not finished!");
1013         }
1014         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1015         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1016         return (new Client(prot)).recv_unsetUpdateSource();
1017       }
1018     }
1019
1020     public void enableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1021       checkReady();
1022       enableAddressFamily_call method_call = new enableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1023       this.___currentMethod = method_call;
1024       ___manager.call(method_call);
1025     }
1026
1027     public static class enableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1028       private String peerIp;
1029       private af_afi afi;
1030       private af_safi safi;
1031       public enableAddressFamily_call(String peerIp, af_afi afi, af_safi safi, 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 {
1032         super(client, protocolFactory, transport, resultHandler, false);
1033         this.peerIp = peerIp;
1034         this.afi = afi;
1035         this.safi = safi;
1036       }
1037
1038       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1039         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1040         enableAddressFamily_args args = new enableAddressFamily_args();
1041         args.setPeerIp(peerIp);
1042         args.setAfi(afi);
1043         args.setSafi(safi);
1044         args.write(prot);
1045         prot.writeMessageEnd();
1046       }
1047
1048       public int getResult() throws org.apache.thrift.TException {
1049         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1050           throw new IllegalStateException("Method call not finished!");
1051         }
1052         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1053         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1054         return (new Client(prot)).recv_enableAddressFamily();
1055       }
1056     }
1057
1058     public void disableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1059       checkReady();
1060       disableAddressFamily_call method_call = new disableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1061       this.___currentMethod = method_call;
1062       ___manager.call(method_call);
1063     }
1064
1065     public static class disableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1066       private String peerIp;
1067       private af_afi afi;
1068       private af_safi safi;
1069       public disableAddressFamily_call(String peerIp, af_afi afi, af_safi safi, 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 {
1070         super(client, protocolFactory, transport, resultHandler, false);
1071         this.peerIp = peerIp;
1072         this.afi = afi;
1073         this.safi = safi;
1074       }
1075
1076       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1077         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1078         disableAddressFamily_args args = new disableAddressFamily_args();
1079         args.setPeerIp(peerIp);
1080         args.setAfi(afi);
1081         args.setSafi(safi);
1082         args.write(prot);
1083         prot.writeMessageEnd();
1084       }
1085
1086       public int getResult() throws org.apache.thrift.TException {
1087         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1088           throw new IllegalStateException("Method call not finished!");
1089         }
1090         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1091         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1092         return (new Client(prot)).recv_disableAddressFamily();
1093       }
1094     }
1095
1096     public void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1097       checkReady();
1098       setLogConfig_call method_call = new setLogConfig_call(logFileName, logLevel, resultHandler, this, ___protocolFactory, ___transport);
1099       this.___currentMethod = method_call;
1100       ___manager.call(method_call);
1101     }
1102
1103     public static class setLogConfig_call extends org.apache.thrift.async.TAsyncMethodCall {
1104       private String logFileName;
1105       private String logLevel;
1106       public setLogConfig_call(String logFileName, String logLevel, 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 {
1107         super(client, protocolFactory, transport, resultHandler, false);
1108         this.logFileName = logFileName;
1109         this.logLevel = logLevel;
1110       }
1111
1112       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1113         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setLogConfig", org.apache.thrift.protocol.TMessageType.CALL, 0));
1114         setLogConfig_args args = new setLogConfig_args();
1115         args.setLogFileName(logFileName);
1116         args.setLogLevel(logLevel);
1117         args.write(prot);
1118         prot.writeMessageEnd();
1119       }
1120
1121       public int getResult() throws org.apache.thrift.TException {
1122         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1123           throw new IllegalStateException("Method call not finished!");
1124         }
1125         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1126         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1127         return (new Client(prot)).recv_setLogConfig();
1128       }
1129     }
1130
1131     public void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1132       checkReady();
1133       enableGracefulRestart_call method_call = new enableGracefulRestart_call(stalepathTime, resultHandler, this, ___protocolFactory, ___transport);
1134       this.___currentMethod = method_call;
1135       ___manager.call(method_call);
1136     }
1137
1138     public static class enableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1139       private int stalepathTime;
1140       public enableGracefulRestart_call(int stalepathTime, 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 {
1141         super(client, protocolFactory, transport, resultHandler, false);
1142         this.stalepathTime = stalepathTime;
1143       }
1144
1145       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1146         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1147         enableGracefulRestart_args args = new enableGracefulRestart_args();
1148         args.setStalepathTime(stalepathTime);
1149         args.write(prot);
1150         prot.writeMessageEnd();
1151       }
1152
1153       public int getResult() throws org.apache.thrift.TException {
1154         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1155           throw new IllegalStateException("Method call not finished!");
1156         }
1157         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1158         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1159         return (new Client(prot)).recv_enableGracefulRestart();
1160       }
1161     }
1162
1163     public void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1164       checkReady();
1165       disableGracefulRestart_call method_call = new disableGracefulRestart_call(resultHandler, this, ___protocolFactory, ___transport);
1166       this.___currentMethod = method_call;
1167       ___manager.call(method_call);
1168     }
1169
1170     public static class disableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1171       public disableGracefulRestart_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 {
1172         super(client, protocolFactory, transport, resultHandler, false);
1173       }
1174
1175       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1176         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1177         disableGracefulRestart_args args = new disableGracefulRestart_args();
1178         args.write(prot);
1179         prot.writeMessageEnd();
1180       }
1181
1182       public int getResult() throws org.apache.thrift.TException {
1183         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1184           throw new IllegalStateException("Method call not finished!");
1185         }
1186         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1187         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1188         return (new Client(prot)).recv_disableGracefulRestart();
1189       }
1190     }
1191
1192     public void getRoutes(int optype, int winSize, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1193       checkReady();
1194       getRoutes_call method_call = new getRoutes_call(optype, winSize, resultHandler, this, ___protocolFactory, ___transport);
1195       this.___currentMethod = method_call;
1196       ___manager.call(method_call);
1197     }
1198
1199     public static class getRoutes_call extends org.apache.thrift.async.TAsyncMethodCall {
1200       private int optype;
1201       private int winSize;
1202       public getRoutes_call(int optype, int winSize, 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 {
1203         super(client, protocolFactory, transport, resultHandler, false);
1204         this.optype = optype;
1205         this.winSize = winSize;
1206       }
1207
1208       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1209         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoutes", org.apache.thrift.protocol.TMessageType.CALL, 0));
1210         getRoutes_args args = new getRoutes_args();
1211         args.setOptype(optype);
1212         args.setWinSize(winSize);
1213         args.write(prot);
1214         prot.writeMessageEnd();
1215       }
1216
1217       public Routes getResult() throws org.apache.thrift.TException {
1218         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1219           throw new IllegalStateException("Method call not finished!");
1220         }
1221         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1222         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1223         return (new Client(prot)).recv_getRoutes();
1224       }
1225     }
1226
1227   }
1228
1229   public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
1230     private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1231     public Processor(I iface) {
1232       super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1233     }
1234
1235     protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1236       super(iface, getProcessMap(processMap));
1237     }
1238
1239     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) {
1240       processMap.put("startBgp", new startBgp());
1241       processMap.put("stopBgp", new stopBgp());
1242       processMap.put("createPeer", new createPeer());
1243       processMap.put("deletePeer", new deletePeer());
1244       processMap.put("addVrf", new addVrf());
1245       processMap.put("delVrf", new delVrf());
1246       processMap.put("pushRoute", new pushRoute());
1247       processMap.put("withdrawRoute", new withdrawRoute());
1248       processMap.put("setEbgpMultihop", new setEbgpMultihop());
1249       processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
1250       processMap.put("setUpdateSource", new setUpdateSource());
1251       processMap.put("unsetUpdateSource", new unsetUpdateSource());
1252       processMap.put("enableAddressFamily", new enableAddressFamily());
1253       processMap.put("disableAddressFamily", new disableAddressFamily());
1254       processMap.put("setLogConfig", new setLogConfig());
1255       processMap.put("enableGracefulRestart", new enableGracefulRestart());
1256       processMap.put("disableGracefulRestart", new disableGracefulRestart());
1257       processMap.put("getRoutes", new getRoutes());
1258       return processMap;
1259     }
1260
1261     public static class startBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, startBgp_args> {
1262       public startBgp() {
1263         super("startBgp");
1264       }
1265
1266       public startBgp_args getEmptyArgsInstance() {
1267         return new startBgp_args();
1268       }
1269
1270       protected boolean isOneway() {
1271         return false;
1272       }
1273
1274       public startBgp_result getResult(I iface, startBgp_args args) throws org.apache.thrift.TException {
1275         startBgp_result result = new startBgp_result();
1276         result.success = iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFbit);
1277         result.setSuccessIsSet(true);
1278         return result;
1279       }
1280     }
1281
1282     public static class stopBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, stopBgp_args> {
1283       public stopBgp() {
1284         super("stopBgp");
1285       }
1286
1287       public stopBgp_args getEmptyArgsInstance() {
1288         return new stopBgp_args();
1289       }
1290
1291       protected boolean isOneway() {
1292         return false;
1293       }
1294
1295       public stopBgp_result getResult(I iface, stopBgp_args args) throws org.apache.thrift.TException {
1296         stopBgp_result result = new stopBgp_result();
1297         result.success = iface.stopBgp(args.asNumber);
1298         result.setSuccessIsSet(true);
1299         return result;
1300       }
1301     }
1302
1303     public static class createPeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPeer_args> {
1304       public createPeer() {
1305         super("createPeer");
1306       }
1307
1308       public createPeer_args getEmptyArgsInstance() {
1309         return new createPeer_args();
1310       }
1311
1312       protected boolean isOneway() {
1313         return false;
1314       }
1315
1316       public createPeer_result getResult(I iface, createPeer_args args) throws org.apache.thrift.TException {
1317         createPeer_result result = new createPeer_result();
1318         result.success = iface.createPeer(args.ipAddress, args.asNumber);
1319         result.setSuccessIsSet(true);
1320         return result;
1321       }
1322     }
1323
1324     public static class deletePeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deletePeer_args> {
1325       public deletePeer() {
1326         super("deletePeer");
1327       }
1328
1329       public deletePeer_args getEmptyArgsInstance() {
1330         return new deletePeer_args();
1331       }
1332
1333       protected boolean isOneway() {
1334         return false;
1335       }
1336
1337       public deletePeer_result getResult(I iface, deletePeer_args args) throws org.apache.thrift.TException {
1338         deletePeer_result result = new deletePeer_result();
1339         result.success = iface.deletePeer(args.ipAddress);
1340         result.setSuccessIsSet(true);
1341         return result;
1342       }
1343     }
1344
1345     public static class addVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVrf_args> {
1346       public addVrf() {
1347         super("addVrf");
1348       }
1349
1350       public addVrf_args getEmptyArgsInstance() {
1351         return new addVrf_args();
1352       }
1353
1354       protected boolean isOneway() {
1355         return false;
1356       }
1357
1358       public addVrf_result getResult(I iface, addVrf_args args) throws org.apache.thrift.TException {
1359         addVrf_result result = new addVrf_result();
1360         result.success = iface.addVrf(args.rd, args.irts, args.erts);
1361         result.setSuccessIsSet(true);
1362         return result;
1363       }
1364     }
1365
1366     public static class delVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, delVrf_args> {
1367       public delVrf() {
1368         super("delVrf");
1369       }
1370
1371       public delVrf_args getEmptyArgsInstance() {
1372         return new delVrf_args();
1373       }
1374
1375       protected boolean isOneway() {
1376         return false;
1377       }
1378
1379       public delVrf_result getResult(I iface, delVrf_args args) throws org.apache.thrift.TException {
1380         delVrf_result result = new delVrf_result();
1381         result.success = iface.delVrf(args.rd);
1382         result.setSuccessIsSet(true);
1383         return result;
1384       }
1385     }
1386
1387     public static class pushRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, pushRoute_args> {
1388       public pushRoute() {
1389         super("pushRoute");
1390       }
1391
1392       public pushRoute_args getEmptyArgsInstance() {
1393         return new pushRoute_args();
1394       }
1395
1396       protected boolean isOneway() {
1397         return false;
1398       }
1399
1400       public pushRoute_result getResult(I iface, pushRoute_args args) throws org.apache.thrift.TException {
1401         pushRoute_result result = new pushRoute_result();
1402         result.success = iface.pushRoute(args.prefix, args.nexthop, args.rd, args.label);
1403         result.setSuccessIsSet(true);
1404         return result;
1405       }
1406     }
1407
1408     public static class withdrawRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, withdrawRoute_args> {
1409       public withdrawRoute() {
1410         super("withdrawRoute");
1411       }
1412
1413       public withdrawRoute_args getEmptyArgsInstance() {
1414         return new withdrawRoute_args();
1415       }
1416
1417       protected boolean isOneway() {
1418         return false;
1419       }
1420
1421       public withdrawRoute_result getResult(I iface, withdrawRoute_args args) throws org.apache.thrift.TException {
1422         withdrawRoute_result result = new withdrawRoute_result();
1423         result.success = iface.withdrawRoute(args.prefix, args.rd);
1424         result.setSuccessIsSet(true);
1425         return result;
1426       }
1427     }
1428
1429     public static class setEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setEbgpMultihop_args> {
1430       public setEbgpMultihop() {
1431         super("setEbgpMultihop");
1432       }
1433
1434       public setEbgpMultihop_args getEmptyArgsInstance() {
1435         return new setEbgpMultihop_args();
1436       }
1437
1438       protected boolean isOneway() {
1439         return false;
1440       }
1441
1442       public setEbgpMultihop_result getResult(I iface, setEbgpMultihop_args args) throws org.apache.thrift.TException {
1443         setEbgpMultihop_result result = new setEbgpMultihop_result();
1444         result.success = iface.setEbgpMultihop(args.peerIp, args.nHops);
1445         result.setSuccessIsSet(true);
1446         return result;
1447       }
1448     }
1449
1450     public static class unsetEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetEbgpMultihop_args> {
1451       public unsetEbgpMultihop() {
1452         super("unsetEbgpMultihop");
1453       }
1454
1455       public unsetEbgpMultihop_args getEmptyArgsInstance() {
1456         return new unsetEbgpMultihop_args();
1457       }
1458
1459       protected boolean isOneway() {
1460         return false;
1461       }
1462
1463       public unsetEbgpMultihop_result getResult(I iface, unsetEbgpMultihop_args args) throws org.apache.thrift.TException {
1464         unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
1465         result.success = iface.unsetEbgpMultihop(args.peerIp);
1466         result.setSuccessIsSet(true);
1467         return result;
1468       }
1469     }
1470
1471     public static class setUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setUpdateSource_args> {
1472       public setUpdateSource() {
1473         super("setUpdateSource");
1474       }
1475
1476       public setUpdateSource_args getEmptyArgsInstance() {
1477         return new setUpdateSource_args();
1478       }
1479
1480       protected boolean isOneway() {
1481         return false;
1482       }
1483
1484       public setUpdateSource_result getResult(I iface, setUpdateSource_args args) throws org.apache.thrift.TException {
1485         setUpdateSource_result result = new setUpdateSource_result();
1486         result.success = iface.setUpdateSource(args.peerIp, args.srcIp);
1487         result.setSuccessIsSet(true);
1488         return result;
1489       }
1490     }
1491
1492     public static class unsetUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetUpdateSource_args> {
1493       public unsetUpdateSource() {
1494         super("unsetUpdateSource");
1495       }
1496
1497       public unsetUpdateSource_args getEmptyArgsInstance() {
1498         return new unsetUpdateSource_args();
1499       }
1500
1501       protected boolean isOneway() {
1502         return false;
1503       }
1504
1505       public unsetUpdateSource_result getResult(I iface, unsetUpdateSource_args args) throws org.apache.thrift.TException {
1506         unsetUpdateSource_result result = new unsetUpdateSource_result();
1507         result.success = iface.unsetUpdateSource(args.peerIp);
1508         result.setSuccessIsSet(true);
1509         return result;
1510       }
1511     }
1512
1513     public static class enableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableAddressFamily_args> {
1514       public enableAddressFamily() {
1515         super("enableAddressFamily");
1516       }
1517
1518       public enableAddressFamily_args getEmptyArgsInstance() {
1519         return new enableAddressFamily_args();
1520       }
1521
1522       protected boolean isOneway() {
1523         return false;
1524       }
1525
1526       public enableAddressFamily_result getResult(I iface, enableAddressFamily_args args) throws org.apache.thrift.TException {
1527         enableAddressFamily_result result = new enableAddressFamily_result();
1528         result.success = iface.enableAddressFamily(args.peerIp, args.afi, args.safi);
1529         result.setSuccessIsSet(true);
1530         return result;
1531       }
1532     }
1533
1534     public static class disableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableAddressFamily_args> {
1535       public disableAddressFamily() {
1536         super("disableAddressFamily");
1537       }
1538
1539       public disableAddressFamily_args getEmptyArgsInstance() {
1540         return new disableAddressFamily_args();
1541       }
1542
1543       protected boolean isOneway() {
1544         return false;
1545       }
1546
1547       public disableAddressFamily_result getResult(I iface, disableAddressFamily_args args) throws org.apache.thrift.TException {
1548         disableAddressFamily_result result = new disableAddressFamily_result();
1549         result.success = iface.disableAddressFamily(args.peerIp, args.afi, args.safi);
1550         result.setSuccessIsSet(true);
1551         return result;
1552       }
1553     }
1554
1555     public static class setLogConfig<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setLogConfig_args> {
1556       public setLogConfig() {
1557         super("setLogConfig");
1558       }
1559
1560       public setLogConfig_args getEmptyArgsInstance() {
1561         return new setLogConfig_args();
1562       }
1563
1564       protected boolean isOneway() {
1565         return false;
1566       }
1567
1568       public setLogConfig_result getResult(I iface, setLogConfig_args args) throws org.apache.thrift.TException {
1569         setLogConfig_result result = new setLogConfig_result();
1570         result.success = iface.setLogConfig(args.logFileName, args.logLevel);
1571         result.setSuccessIsSet(true);
1572         return result;
1573       }
1574     }
1575
1576     public static class enableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableGracefulRestart_args> {
1577       public enableGracefulRestart() {
1578         super("enableGracefulRestart");
1579       }
1580
1581       public enableGracefulRestart_args getEmptyArgsInstance() {
1582         return new enableGracefulRestart_args();
1583       }
1584
1585       protected boolean isOneway() {
1586         return false;
1587       }
1588
1589       public enableGracefulRestart_result getResult(I iface, enableGracefulRestart_args args) throws org.apache.thrift.TException {
1590         enableGracefulRestart_result result = new enableGracefulRestart_result();
1591         result.success = iface.enableGracefulRestart(args.stalepathTime);
1592         result.setSuccessIsSet(true);
1593         return result;
1594       }
1595     }
1596
1597     public static class disableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableGracefulRestart_args> {
1598       public disableGracefulRestart() {
1599         super("disableGracefulRestart");
1600       }
1601
1602       public disableGracefulRestart_args getEmptyArgsInstance() {
1603         return new disableGracefulRestart_args();
1604       }
1605
1606       protected boolean isOneway() {
1607         return false;
1608       }
1609
1610       public disableGracefulRestart_result getResult(I iface, disableGracefulRestart_args args) throws org.apache.thrift.TException {
1611         disableGracefulRestart_result result = new disableGracefulRestart_result();
1612         result.success = iface.disableGracefulRestart();
1613         result.setSuccessIsSet(true);
1614         return result;
1615       }
1616     }
1617
1618     public static class getRoutes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoutes_args> {
1619       public getRoutes() {
1620         super("getRoutes");
1621       }
1622
1623       public getRoutes_args getEmptyArgsInstance() {
1624         return new getRoutes_args();
1625       }
1626
1627       protected boolean isOneway() {
1628         return false;
1629       }
1630
1631       public getRoutes_result getResult(I iface, getRoutes_args args) throws org.apache.thrift.TException {
1632         getRoutes_result result = new getRoutes_result();
1633         result.success = iface.getRoutes(args.optype, args.winSize);
1634         return result;
1635       }
1636     }
1637
1638   }
1639
1640   public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
1641     private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
1642     public AsyncProcessor(I iface) {
1643       super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
1644     }
1645
1646     protected AsyncProcessor(I iface, Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
1647       super(iface, getProcessMap(processMap));
1648     }
1649
1650     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) {
1651       processMap.put("startBgp", new startBgp());
1652       processMap.put("stopBgp", new stopBgp());
1653       processMap.put("createPeer", new createPeer());
1654       processMap.put("deletePeer", new deletePeer());
1655       processMap.put("addVrf", new addVrf());
1656       processMap.put("delVrf", new delVrf());
1657       processMap.put("pushRoute", new pushRoute());
1658       processMap.put("withdrawRoute", new withdrawRoute());
1659       processMap.put("setEbgpMultihop", new setEbgpMultihop());
1660       processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
1661       processMap.put("setUpdateSource", new setUpdateSource());
1662       processMap.put("unsetUpdateSource", new unsetUpdateSource());
1663       processMap.put("enableAddressFamily", new enableAddressFamily());
1664       processMap.put("disableAddressFamily", new disableAddressFamily());
1665       processMap.put("setLogConfig", new setLogConfig());
1666       processMap.put("enableGracefulRestart", new enableGracefulRestart());
1667       processMap.put("disableGracefulRestart", new disableGracefulRestart());
1668       processMap.put("getRoutes", new getRoutes());
1669       return processMap;
1670     }
1671
1672     public static class startBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, startBgp_args, Integer> {
1673       public startBgp() {
1674         super("startBgp");
1675       }
1676
1677       public startBgp_args getEmptyArgsInstance() {
1678         return new startBgp_args();
1679       }
1680
1681       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1682         final org.apache.thrift.AsyncProcessFunction fcall = this;
1683         return new AsyncMethodCallback<Integer>() { 
1684           public void onComplete(Integer o) {
1685             startBgp_result result = new startBgp_result();
1686             result.success = o;
1687             result.setSuccessIsSet(true);
1688             try {
1689               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1690               return;
1691             } catch (Exception e) {
1692               LOGGER.error("Exception writing to internal frame buffer", e);
1693             }
1694             fb.close();
1695           }
1696           public void onError(Exception e) {
1697             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1698             org.apache.thrift.TBase msg;
1699             startBgp_result result = new startBgp_result();
1700             {
1701               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1702               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1703             }
1704             try {
1705               fcall.sendResponse(fb,msg,msgType,seqid);
1706               return;
1707             } catch (Exception ex) {
1708               LOGGER.error("Exception writing to internal frame buffer", ex);
1709             }
1710             fb.close();
1711           }
1712         };
1713       }
1714
1715       protected boolean isOneway() {
1716         return false;
1717       }
1718
1719       public void start(I iface, startBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1720         iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFbit,resultHandler);
1721       }
1722     }
1723
1724     public static class stopBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, stopBgp_args, Integer> {
1725       public stopBgp() {
1726         super("stopBgp");
1727       }
1728
1729       public stopBgp_args getEmptyArgsInstance() {
1730         return new stopBgp_args();
1731       }
1732
1733       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1734         final org.apache.thrift.AsyncProcessFunction fcall = this;
1735         return new AsyncMethodCallback<Integer>() { 
1736           public void onComplete(Integer o) {
1737             stopBgp_result result = new stopBgp_result();
1738             result.success = o;
1739             result.setSuccessIsSet(true);
1740             try {
1741               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1742               return;
1743             } catch (Exception e) {
1744               LOGGER.error("Exception writing to internal frame buffer", e);
1745             }
1746             fb.close();
1747           }
1748           public void onError(Exception e) {
1749             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1750             org.apache.thrift.TBase msg;
1751             stopBgp_result result = new stopBgp_result();
1752             {
1753               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1754               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1755             }
1756             try {
1757               fcall.sendResponse(fb,msg,msgType,seqid);
1758               return;
1759             } catch (Exception ex) {
1760               LOGGER.error("Exception writing to internal frame buffer", ex);
1761             }
1762             fb.close();
1763           }
1764         };
1765       }
1766
1767       protected boolean isOneway() {
1768         return false;
1769       }
1770
1771       public void start(I iface, stopBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1772         iface.stopBgp(args.asNumber,resultHandler);
1773       }
1774     }
1775
1776     public static class createPeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createPeer_args, Integer> {
1777       public createPeer() {
1778         super("createPeer");
1779       }
1780
1781       public createPeer_args getEmptyArgsInstance() {
1782         return new createPeer_args();
1783       }
1784
1785       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1786         final org.apache.thrift.AsyncProcessFunction fcall = this;
1787         return new AsyncMethodCallback<Integer>() { 
1788           public void onComplete(Integer o) {
1789             createPeer_result result = new createPeer_result();
1790             result.success = o;
1791             result.setSuccessIsSet(true);
1792             try {
1793               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1794               return;
1795             } catch (Exception e) {
1796               LOGGER.error("Exception writing to internal frame buffer", e);
1797             }
1798             fb.close();
1799           }
1800           public void onError(Exception e) {
1801             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1802             org.apache.thrift.TBase msg;
1803             createPeer_result result = new createPeer_result();
1804             {
1805               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1806               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1807             }
1808             try {
1809               fcall.sendResponse(fb,msg,msgType,seqid);
1810               return;
1811             } catch (Exception ex) {
1812               LOGGER.error("Exception writing to internal frame buffer", ex);
1813             }
1814             fb.close();
1815           }
1816         };
1817       }
1818
1819       protected boolean isOneway() {
1820         return false;
1821       }
1822
1823       public void start(I iface, createPeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1824         iface.createPeer(args.ipAddress, args.asNumber,resultHandler);
1825       }
1826     }
1827
1828     public static class deletePeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, deletePeer_args, Integer> {
1829       public deletePeer() {
1830         super("deletePeer");
1831       }
1832
1833       public deletePeer_args getEmptyArgsInstance() {
1834         return new deletePeer_args();
1835       }
1836
1837       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1838         final org.apache.thrift.AsyncProcessFunction fcall = this;
1839         return new AsyncMethodCallback<Integer>() { 
1840           public void onComplete(Integer o) {
1841             deletePeer_result result = new deletePeer_result();
1842             result.success = o;
1843             result.setSuccessIsSet(true);
1844             try {
1845               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1846               return;
1847             } catch (Exception e) {
1848               LOGGER.error("Exception writing to internal frame buffer", e);
1849             }
1850             fb.close();
1851           }
1852           public void onError(Exception e) {
1853             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1854             org.apache.thrift.TBase msg;
1855             deletePeer_result result = new deletePeer_result();
1856             {
1857               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1858               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1859             }
1860             try {
1861               fcall.sendResponse(fb,msg,msgType,seqid);
1862               return;
1863             } catch (Exception ex) {
1864               LOGGER.error("Exception writing to internal frame buffer", ex);
1865             }
1866             fb.close();
1867           }
1868         };
1869       }
1870
1871       protected boolean isOneway() {
1872         return false;
1873       }
1874
1875       public void start(I iface, deletePeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1876         iface.deletePeer(args.ipAddress,resultHandler);
1877       }
1878     }
1879
1880     public static class addVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, addVrf_args, Integer> {
1881       public addVrf() {
1882         super("addVrf");
1883       }
1884
1885       public addVrf_args getEmptyArgsInstance() {
1886         return new addVrf_args();
1887       }
1888
1889       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1890         final org.apache.thrift.AsyncProcessFunction fcall = this;
1891         return new AsyncMethodCallback<Integer>() { 
1892           public void onComplete(Integer o) {
1893             addVrf_result result = new addVrf_result();
1894             result.success = o;
1895             result.setSuccessIsSet(true);
1896             try {
1897               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1898               return;
1899             } catch (Exception e) {
1900               LOGGER.error("Exception writing to internal frame buffer", e);
1901             }
1902             fb.close();
1903           }
1904           public void onError(Exception e) {
1905             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1906             org.apache.thrift.TBase msg;
1907             addVrf_result result = new addVrf_result();
1908             {
1909               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1910               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1911             }
1912             try {
1913               fcall.sendResponse(fb,msg,msgType,seqid);
1914               return;
1915             } catch (Exception ex) {
1916               LOGGER.error("Exception writing to internal frame buffer", ex);
1917             }
1918             fb.close();
1919           }
1920         };
1921       }
1922
1923       protected boolean isOneway() {
1924         return false;
1925       }
1926
1927       public void start(I iface, addVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1928         iface.addVrf(args.rd, args.irts, args.erts,resultHandler);
1929       }
1930     }
1931
1932     public static class delVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, delVrf_args, Integer> {
1933       public delVrf() {
1934         super("delVrf");
1935       }
1936
1937       public delVrf_args getEmptyArgsInstance() {
1938         return new delVrf_args();
1939       }
1940
1941       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1942         final org.apache.thrift.AsyncProcessFunction fcall = this;
1943         return new AsyncMethodCallback<Integer>() { 
1944           public void onComplete(Integer o) {
1945             delVrf_result result = new delVrf_result();
1946             result.success = o;
1947             result.setSuccessIsSet(true);
1948             try {
1949               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1950               return;
1951             } catch (Exception e) {
1952               LOGGER.error("Exception writing to internal frame buffer", e);
1953             }
1954             fb.close();
1955           }
1956           public void onError(Exception e) {
1957             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1958             org.apache.thrift.TBase msg;
1959             delVrf_result result = new delVrf_result();
1960             {
1961               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1962               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1963             }
1964             try {
1965               fcall.sendResponse(fb,msg,msgType,seqid);
1966               return;
1967             } catch (Exception ex) {
1968               LOGGER.error("Exception writing to internal frame buffer", ex);
1969             }
1970             fb.close();
1971           }
1972         };
1973       }
1974
1975       protected boolean isOneway() {
1976         return false;
1977       }
1978
1979       public void start(I iface, delVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1980         iface.delVrf(args.rd,resultHandler);
1981       }
1982     }
1983
1984     public static class pushRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, pushRoute_args, Integer> {
1985       public pushRoute() {
1986         super("pushRoute");
1987       }
1988
1989       public pushRoute_args getEmptyArgsInstance() {
1990         return new pushRoute_args();
1991       }
1992
1993       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1994         final org.apache.thrift.AsyncProcessFunction fcall = this;
1995         return new AsyncMethodCallback<Integer>() { 
1996           public void onComplete(Integer o) {
1997             pushRoute_result result = new pushRoute_result();
1998             result.success = o;
1999             result.setSuccessIsSet(true);
2000             try {
2001               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2002               return;
2003             } catch (Exception e) {
2004               LOGGER.error("Exception writing to internal frame buffer", e);
2005             }
2006             fb.close();
2007           }
2008           public void onError(Exception e) {
2009             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2010             org.apache.thrift.TBase msg;
2011             pushRoute_result result = new pushRoute_result();
2012             {
2013               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2014               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2015             }
2016             try {
2017               fcall.sendResponse(fb,msg,msgType,seqid);
2018               return;
2019             } catch (Exception ex) {
2020               LOGGER.error("Exception writing to internal frame buffer", ex);
2021             }
2022             fb.close();
2023           }
2024         };
2025       }
2026
2027       protected boolean isOneway() {
2028         return false;
2029       }
2030
2031       public void start(I iface, pushRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2032         iface.pushRoute(args.prefix, args.nexthop, args.rd, args.label,resultHandler);
2033       }
2034     }
2035
2036     public static class withdrawRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, withdrawRoute_args, Integer> {
2037       public withdrawRoute() {
2038         super("withdrawRoute");
2039       }
2040
2041       public withdrawRoute_args getEmptyArgsInstance() {
2042         return new withdrawRoute_args();
2043       }
2044
2045       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2046         final org.apache.thrift.AsyncProcessFunction fcall = this;
2047         return new AsyncMethodCallback<Integer>() { 
2048           public void onComplete(Integer o) {
2049             withdrawRoute_result result = new withdrawRoute_result();
2050             result.success = o;
2051             result.setSuccessIsSet(true);
2052             try {
2053               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2054               return;
2055             } catch (Exception e) {
2056               LOGGER.error("Exception writing to internal frame buffer", e);
2057             }
2058             fb.close();
2059           }
2060           public void onError(Exception e) {
2061             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2062             org.apache.thrift.TBase msg;
2063             withdrawRoute_result result = new withdrawRoute_result();
2064             {
2065               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2066               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2067             }
2068             try {
2069               fcall.sendResponse(fb,msg,msgType,seqid);
2070               return;
2071             } catch (Exception ex) {
2072               LOGGER.error("Exception writing to internal frame buffer", ex);
2073             }
2074             fb.close();
2075           }
2076         };
2077       }
2078
2079       protected boolean isOneway() {
2080         return false;
2081       }
2082
2083       public void start(I iface, withdrawRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2084         iface.withdrawRoute(args.prefix, args.rd,resultHandler);
2085       }
2086     }
2087
2088     public static class setEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setEbgpMultihop_args, Integer> {
2089       public setEbgpMultihop() {
2090         super("setEbgpMultihop");
2091       }
2092
2093       public setEbgpMultihop_args getEmptyArgsInstance() {
2094         return new setEbgpMultihop_args();
2095       }
2096
2097       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2098         final org.apache.thrift.AsyncProcessFunction fcall = this;
2099         return new AsyncMethodCallback<Integer>() { 
2100           public void onComplete(Integer o) {
2101             setEbgpMultihop_result result = new setEbgpMultihop_result();
2102             result.success = o;
2103             result.setSuccessIsSet(true);
2104             try {
2105               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2106               return;
2107             } catch (Exception e) {
2108               LOGGER.error("Exception writing to internal frame buffer", e);
2109             }
2110             fb.close();
2111           }
2112           public void onError(Exception e) {
2113             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2114             org.apache.thrift.TBase msg;
2115             setEbgpMultihop_result result = new setEbgpMultihop_result();
2116             {
2117               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2118               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2119             }
2120             try {
2121               fcall.sendResponse(fb,msg,msgType,seqid);
2122               return;
2123             } catch (Exception ex) {
2124               LOGGER.error("Exception writing to internal frame buffer", ex);
2125             }
2126             fb.close();
2127           }
2128         };
2129       }
2130
2131       protected boolean isOneway() {
2132         return false;
2133       }
2134
2135       public void start(I iface, setEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2136         iface.setEbgpMultihop(args.peerIp, args.nHops,resultHandler);
2137       }
2138     }
2139
2140     public static class unsetEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetEbgpMultihop_args, Integer> {
2141       public unsetEbgpMultihop() {
2142         super("unsetEbgpMultihop");
2143       }
2144
2145       public unsetEbgpMultihop_args getEmptyArgsInstance() {
2146         return new unsetEbgpMultihop_args();
2147       }
2148
2149       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2150         final org.apache.thrift.AsyncProcessFunction fcall = this;
2151         return new AsyncMethodCallback<Integer>() { 
2152           public void onComplete(Integer o) {
2153             unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2154             result.success = o;
2155             result.setSuccessIsSet(true);
2156             try {
2157               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2158               return;
2159             } catch (Exception e) {
2160               LOGGER.error("Exception writing to internal frame buffer", e);
2161             }
2162             fb.close();
2163           }
2164           public void onError(Exception e) {
2165             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2166             org.apache.thrift.TBase msg;
2167             unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2168             {
2169               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2170               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2171             }
2172             try {
2173               fcall.sendResponse(fb,msg,msgType,seqid);
2174               return;
2175             } catch (Exception ex) {
2176               LOGGER.error("Exception writing to internal frame buffer", ex);
2177             }
2178             fb.close();
2179           }
2180         };
2181       }
2182
2183       protected boolean isOneway() {
2184         return false;
2185       }
2186
2187       public void start(I iface, unsetEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2188         iface.unsetEbgpMultihop(args.peerIp,resultHandler);
2189       }
2190     }
2191
2192     public static class setUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setUpdateSource_args, Integer> {
2193       public setUpdateSource() {
2194         super("setUpdateSource");
2195       }
2196
2197       public setUpdateSource_args getEmptyArgsInstance() {
2198         return new setUpdateSource_args();
2199       }
2200
2201       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2202         final org.apache.thrift.AsyncProcessFunction fcall = this;
2203         return new AsyncMethodCallback<Integer>() { 
2204           public void onComplete(Integer o) {
2205             setUpdateSource_result result = new setUpdateSource_result();
2206             result.success = o;
2207             result.setSuccessIsSet(true);
2208             try {
2209               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2210               return;
2211             } catch (Exception e) {
2212               LOGGER.error("Exception writing to internal frame buffer", e);
2213             }
2214             fb.close();
2215           }
2216           public void onError(Exception e) {
2217             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2218             org.apache.thrift.TBase msg;
2219             setUpdateSource_result result = new setUpdateSource_result();
2220             {
2221               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2222               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2223             }
2224             try {
2225               fcall.sendResponse(fb,msg,msgType,seqid);
2226               return;
2227             } catch (Exception ex) {
2228               LOGGER.error("Exception writing to internal frame buffer", ex);
2229             }
2230             fb.close();
2231           }
2232         };
2233       }
2234
2235       protected boolean isOneway() {
2236         return false;
2237       }
2238
2239       public void start(I iface, setUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2240         iface.setUpdateSource(args.peerIp, args.srcIp,resultHandler);
2241       }
2242     }
2243
2244     public static class unsetUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetUpdateSource_args, Integer> {
2245       public unsetUpdateSource() {
2246         super("unsetUpdateSource");
2247       }
2248
2249       public unsetUpdateSource_args getEmptyArgsInstance() {
2250         return new unsetUpdateSource_args();
2251       }
2252
2253       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2254         final org.apache.thrift.AsyncProcessFunction fcall = this;
2255         return new AsyncMethodCallback<Integer>() { 
2256           public void onComplete(Integer o) {
2257             unsetUpdateSource_result result = new unsetUpdateSource_result();
2258             result.success = o;
2259             result.setSuccessIsSet(true);
2260             try {
2261               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2262               return;
2263             } catch (Exception e) {
2264               LOGGER.error("Exception writing to internal frame buffer", e);
2265             }
2266             fb.close();
2267           }
2268           public void onError(Exception e) {
2269             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2270             org.apache.thrift.TBase msg;
2271             unsetUpdateSource_result result = new unsetUpdateSource_result();
2272             {
2273               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2274               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2275             }
2276             try {
2277               fcall.sendResponse(fb,msg,msgType,seqid);
2278               return;
2279             } catch (Exception ex) {
2280               LOGGER.error("Exception writing to internal frame buffer", ex);
2281             }
2282             fb.close();
2283           }
2284         };
2285       }
2286
2287       protected boolean isOneway() {
2288         return false;
2289       }
2290
2291       public void start(I iface, unsetUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2292         iface.unsetUpdateSource(args.peerIp,resultHandler);
2293       }
2294     }
2295
2296     public static class enableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableAddressFamily_args, Integer> {
2297       public enableAddressFamily() {
2298         super("enableAddressFamily");
2299       }
2300
2301       public enableAddressFamily_args getEmptyArgsInstance() {
2302         return new enableAddressFamily_args();
2303       }
2304
2305       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2306         final org.apache.thrift.AsyncProcessFunction fcall = this;
2307         return new AsyncMethodCallback<Integer>() { 
2308           public void onComplete(Integer o) {
2309             enableAddressFamily_result result = new enableAddressFamily_result();
2310             result.success = o;
2311             result.setSuccessIsSet(true);
2312             try {
2313               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2314               return;
2315             } catch (Exception e) {
2316               LOGGER.error("Exception writing to internal frame buffer", e);
2317             }
2318             fb.close();
2319           }
2320           public void onError(Exception e) {
2321             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2322             org.apache.thrift.TBase msg;
2323             enableAddressFamily_result result = new enableAddressFamily_result();
2324             {
2325               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2326               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2327             }
2328             try {
2329               fcall.sendResponse(fb,msg,msgType,seqid);
2330               return;
2331             } catch (Exception ex) {
2332               LOGGER.error("Exception writing to internal frame buffer", ex);
2333             }
2334             fb.close();
2335           }
2336         };
2337       }
2338
2339       protected boolean isOneway() {
2340         return false;
2341       }
2342
2343       public void start(I iface, enableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2344         iface.enableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
2345       }
2346     }
2347
2348     public static class disableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableAddressFamily_args, Integer> {
2349       public disableAddressFamily() {
2350         super("disableAddressFamily");
2351       }
2352
2353       public disableAddressFamily_args getEmptyArgsInstance() {
2354         return new disableAddressFamily_args();
2355       }
2356
2357       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2358         final org.apache.thrift.AsyncProcessFunction fcall = this;
2359         return new AsyncMethodCallback<Integer>() { 
2360           public void onComplete(Integer o) {
2361             disableAddressFamily_result result = new disableAddressFamily_result();
2362             result.success = o;
2363             result.setSuccessIsSet(true);
2364             try {
2365               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2366               return;
2367             } catch (Exception e) {
2368               LOGGER.error("Exception writing to internal frame buffer", e);
2369             }
2370             fb.close();
2371           }
2372           public void onError(Exception e) {
2373             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2374             org.apache.thrift.TBase msg;
2375             disableAddressFamily_result result = new disableAddressFamily_result();
2376             {
2377               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2378               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2379             }
2380             try {
2381               fcall.sendResponse(fb,msg,msgType,seqid);
2382               return;
2383             } catch (Exception ex) {
2384               LOGGER.error("Exception writing to internal frame buffer", ex);
2385             }
2386             fb.close();
2387           }
2388         };
2389       }
2390
2391       protected boolean isOneway() {
2392         return false;
2393       }
2394
2395       public void start(I iface, disableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2396         iface.disableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
2397       }
2398     }
2399
2400     public static class setLogConfig<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setLogConfig_args, Integer> {
2401       public setLogConfig() {
2402         super("setLogConfig");
2403       }
2404
2405       public setLogConfig_args getEmptyArgsInstance() {
2406         return new setLogConfig_args();
2407       }
2408
2409       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2410         final org.apache.thrift.AsyncProcessFunction fcall = this;
2411         return new AsyncMethodCallback<Integer>() { 
2412           public void onComplete(Integer o) {
2413             setLogConfig_result result = new setLogConfig_result();
2414             result.success = o;
2415             result.setSuccessIsSet(true);
2416             try {
2417               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2418               return;
2419             } catch (Exception e) {
2420               LOGGER.error("Exception writing to internal frame buffer", e);
2421             }
2422             fb.close();
2423           }
2424           public void onError(Exception e) {
2425             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2426             org.apache.thrift.TBase msg;
2427             setLogConfig_result result = new setLogConfig_result();
2428             {
2429               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2430               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2431             }
2432             try {
2433               fcall.sendResponse(fb,msg,msgType,seqid);
2434               return;
2435             } catch (Exception ex) {
2436               LOGGER.error("Exception writing to internal frame buffer", ex);
2437             }
2438             fb.close();
2439           }
2440         };
2441       }
2442
2443       protected boolean isOneway() {
2444         return false;
2445       }
2446
2447       public void start(I iface, setLogConfig_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2448         iface.setLogConfig(args.logFileName, args.logLevel,resultHandler);
2449       }
2450     }
2451
2452     public static class enableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableGracefulRestart_args, Integer> {
2453       public enableGracefulRestart() {
2454         super("enableGracefulRestart");
2455       }
2456
2457       public enableGracefulRestart_args getEmptyArgsInstance() {
2458         return new enableGracefulRestart_args();
2459       }
2460
2461       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2462         final org.apache.thrift.AsyncProcessFunction fcall = this;
2463         return new AsyncMethodCallback<Integer>() { 
2464           public void onComplete(Integer o) {
2465             enableGracefulRestart_result result = new enableGracefulRestart_result();
2466             result.success = o;
2467             result.setSuccessIsSet(true);
2468             try {
2469               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2470               return;
2471             } catch (Exception e) {
2472               LOGGER.error("Exception writing to internal frame buffer", e);
2473             }
2474             fb.close();
2475           }
2476           public void onError(Exception e) {
2477             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2478             org.apache.thrift.TBase msg;
2479             enableGracefulRestart_result result = new enableGracefulRestart_result();
2480             {
2481               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2482               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2483             }
2484             try {
2485               fcall.sendResponse(fb,msg,msgType,seqid);
2486               return;
2487             } catch (Exception ex) {
2488               LOGGER.error("Exception writing to internal frame buffer", ex);
2489             }
2490             fb.close();
2491           }
2492         };
2493       }
2494
2495       protected boolean isOneway() {
2496         return false;
2497       }
2498
2499       public void start(I iface, enableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2500         iface.enableGracefulRestart(args.stalepathTime,resultHandler);
2501       }
2502     }
2503
2504     public static class disableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableGracefulRestart_args, Integer> {
2505       public disableGracefulRestart() {
2506         super("disableGracefulRestart");
2507       }
2508
2509       public disableGracefulRestart_args getEmptyArgsInstance() {
2510         return new disableGracefulRestart_args();
2511       }
2512
2513       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2514         final org.apache.thrift.AsyncProcessFunction fcall = this;
2515         return new AsyncMethodCallback<Integer>() { 
2516           public void onComplete(Integer o) {
2517             disableGracefulRestart_result result = new disableGracefulRestart_result();
2518             result.success = o;
2519             result.setSuccessIsSet(true);
2520             try {
2521               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2522               return;
2523             } catch (Exception e) {
2524               LOGGER.error("Exception writing to internal frame buffer", e);
2525             }
2526             fb.close();
2527           }
2528           public void onError(Exception e) {
2529             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2530             org.apache.thrift.TBase msg;
2531             disableGracefulRestart_result result = new disableGracefulRestart_result();
2532             {
2533               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2534               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2535             }
2536             try {
2537               fcall.sendResponse(fb,msg,msgType,seqid);
2538               return;
2539             } catch (Exception ex) {
2540               LOGGER.error("Exception writing to internal frame buffer", ex);
2541             }
2542             fb.close();
2543           }
2544         };
2545       }
2546
2547       protected boolean isOneway() {
2548         return false;
2549       }
2550
2551       public void start(I iface, disableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2552         iface.disableGracefulRestart(resultHandler);
2553       }
2554     }
2555
2556     public static class getRoutes<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getRoutes_args, Routes> {
2557       public getRoutes() {
2558         super("getRoutes");
2559       }
2560
2561       public getRoutes_args getEmptyArgsInstance() {
2562         return new getRoutes_args();
2563       }
2564
2565       public AsyncMethodCallback<Routes> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2566         final org.apache.thrift.AsyncProcessFunction fcall = this;
2567         return new AsyncMethodCallback<Routes>() { 
2568           public void onComplete(Routes o) {
2569             getRoutes_result result = new getRoutes_result();
2570             result.success = o;
2571             try {
2572               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2573               return;
2574             } catch (Exception e) {
2575               LOGGER.error("Exception writing to internal frame buffer", e);
2576             }
2577             fb.close();
2578           }
2579           public void onError(Exception e) {
2580             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2581             org.apache.thrift.TBase msg;
2582             getRoutes_result result = new getRoutes_result();
2583             {
2584               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2585               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2586             }
2587             try {
2588               fcall.sendResponse(fb,msg,msgType,seqid);
2589               return;
2590             } catch (Exception ex) {
2591               LOGGER.error("Exception writing to internal frame buffer", ex);
2592             }
2593             fb.close();
2594           }
2595         };
2596       }
2597
2598       protected boolean isOneway() {
2599         return false;
2600       }
2601
2602       public void start(I iface, getRoutes_args args, org.apache.thrift.async.AsyncMethodCallback<Routes> resultHandler) throws TException {
2603         iface.getRoutes(args.optype, args.winSize,resultHandler);
2604       }
2605     }
2606
2607   }
2608
2609   public static class startBgp_args implements org.apache.thrift.TBase<startBgp_args, startBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_args>   {
2610     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_args");
2611
2612     private static final org.apache.thrift.protocol.TField AS_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("asNumber", org.apache.thrift.protocol.TType.I32, (short)1);
2613     private static final org.apache.thrift.protocol.TField ROUTER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("routerId", org.apache.thrift.protocol.TType.STRING, (short)2);
2614     private static final org.apache.thrift.protocol.TField PORT_FIELD_DESC = new org.apache.thrift.protocol.TField("port", org.apache.thrift.protocol.TType.I32, (short)3);
2615     private static final org.apache.thrift.protocol.TField HOLD_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("holdTime", org.apache.thrift.protocol.TType.I32, (short)4);
2616     private static final org.apache.thrift.protocol.TField KEEP_ALIVE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("keepAliveTime", org.apache.thrift.protocol.TType.I32, (short)5);
2617     private static final org.apache.thrift.protocol.TField STALEPATH_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("stalepathTime", org.apache.thrift.protocol.TType.I32, (short)6);
2618     private static final org.apache.thrift.protocol.TField ANNOUNCE_FBIT_FIELD_DESC = new org.apache.thrift.protocol.TField("announceFbit", org.apache.thrift.protocol.TType.BOOL, (short)7);
2619
2620     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
2621     static {
2622       schemes.put(StandardScheme.class, new startBgp_argsStandardSchemeFactory());
2623       schemes.put(TupleScheme.class, new startBgp_argsTupleSchemeFactory());
2624     }
2625
2626     public int asNumber; // required
2627     public String routerId; // required
2628     public int port; // required
2629     public int holdTime; // required
2630     public int keepAliveTime; // required
2631     public int stalepathTime; // required
2632     public boolean announceFbit; // required
2633
2634     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2635     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2636       AS_NUMBER((short)1, "asNumber"),
2637       ROUTER_ID((short)2, "routerId"),
2638       PORT((short)3, "port"),
2639       HOLD_TIME((short)4, "holdTime"),
2640       KEEP_ALIVE_TIME((short)5, "keepAliveTime"),
2641       STALEPATH_TIME((short)6, "stalepathTime"),
2642       ANNOUNCE_FBIT((short)7, "announceFbit");
2643
2644       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2645
2646       static {
2647         for (_Fields field : EnumSet.allOf(_Fields.class)) {
2648           byName.put(field.getFieldName(), field);
2649         }
2650       }
2651
2652       /**
2653        * Find the _Fields constant that matches fieldId, or null if its not found.
2654        */
2655       public static _Fields findByThriftId(int fieldId) {
2656         switch(fieldId) {
2657           case 1: // AS_NUMBER
2658             return AS_NUMBER;
2659           case 2: // ROUTER_ID
2660             return ROUTER_ID;
2661           case 3: // PORT
2662             return PORT;
2663           case 4: // HOLD_TIME
2664             return HOLD_TIME;
2665           case 5: // KEEP_ALIVE_TIME
2666             return KEEP_ALIVE_TIME;
2667           case 6: // STALEPATH_TIME
2668             return STALEPATH_TIME;
2669           case 7: // ANNOUNCE_FBIT
2670             return ANNOUNCE_FBIT;
2671           default:
2672             return null;
2673         }
2674       }
2675
2676       /**
2677        * Find the _Fields constant that matches fieldId, throwing an exception
2678        * if it is not found.
2679        */
2680       public static _Fields findByThriftIdOrThrow(int fieldId) {
2681         _Fields fields = findByThriftId(fieldId);
2682         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2683         return fields;
2684       }
2685
2686       /**
2687        * Find the _Fields constant that matches name, or null if its not found.
2688        */
2689       public static _Fields findByName(String name) {
2690         return byName.get(name);
2691       }
2692
2693       private final short _thriftId;
2694       private final String _fieldName;
2695
2696       _Fields(short thriftId, String fieldName) {
2697         _thriftId = thriftId;
2698         _fieldName = fieldName;
2699       }
2700
2701       public short getThriftFieldId() {
2702         return _thriftId;
2703       }
2704
2705       public String getFieldName() {
2706         return _fieldName;
2707       }
2708     }
2709
2710     // isset id assignments
2711     private static final int __ASNUMBER_ISSET_ID = 0;
2712     private static final int __PORT_ISSET_ID = 1;
2713     private static final int __HOLDTIME_ISSET_ID = 2;
2714     private static final int __KEEPALIVETIME_ISSET_ID = 3;
2715     private static final int __STALEPATHTIME_ISSET_ID = 4;
2716     private static final int __ANNOUNCEFBIT_ISSET_ID = 5;
2717     private byte __isset_bitfield = 0;
2718     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2719     static {
2720       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2721       tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2722           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2723       tmpMap.put(_Fields.ROUTER_ID, new org.apache.thrift.meta_data.FieldMetaData("routerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2724           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2725       tmpMap.put(_Fields.PORT, new org.apache.thrift.meta_data.FieldMetaData("port", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2726           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2727       tmpMap.put(_Fields.HOLD_TIME, new org.apache.thrift.meta_data.FieldMetaData("holdTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2728           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2729       tmpMap.put(_Fields.KEEP_ALIVE_TIME, new org.apache.thrift.meta_data.FieldMetaData("keepAliveTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2730           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2731       tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2732           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2733       tmpMap.put(_Fields.ANNOUNCE_FBIT, new org.apache.thrift.meta_data.FieldMetaData("announceFbit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2734           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
2735       metaDataMap = Collections.unmodifiableMap(tmpMap);
2736       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_args.class, metaDataMap);
2737     }
2738
2739     public startBgp_args() {
2740     }
2741
2742     public startBgp_args(
2743       int asNumber,
2744       String routerId,
2745       int port,
2746       int holdTime,
2747       int keepAliveTime,
2748       int stalepathTime,
2749       boolean announceFbit)
2750     {
2751       this();
2752       this.asNumber = asNumber;
2753       setAsNumberIsSet(true);
2754       this.routerId = routerId;
2755       this.port = port;
2756       setPortIsSet(true);
2757       this.holdTime = holdTime;
2758       setHoldTimeIsSet(true);
2759       this.keepAliveTime = keepAliveTime;
2760       setKeepAliveTimeIsSet(true);
2761       this.stalepathTime = stalepathTime;
2762       setStalepathTimeIsSet(true);
2763       this.announceFbit = announceFbit;
2764       setAnnounceFbitIsSet(true);
2765     }
2766
2767     /**
2768      * Performs a deep copy on <i>other</i>.
2769      */
2770     public startBgp_args(startBgp_args other) {
2771       __isset_bitfield = other.__isset_bitfield;
2772       this.asNumber = other.asNumber;
2773       if (other.isSetRouterId()) {
2774         this.routerId = other.routerId;
2775       }
2776       this.port = other.port;
2777       this.holdTime = other.holdTime;
2778       this.keepAliveTime = other.keepAliveTime;
2779       this.stalepathTime = other.stalepathTime;
2780       this.announceFbit = other.announceFbit;
2781     }
2782
2783     public startBgp_args deepCopy() {
2784       return new startBgp_args(this);
2785     }
2786
2787     @Override
2788     public void clear() {
2789       setAsNumberIsSet(false);
2790       this.asNumber = 0;
2791       this.routerId = null;
2792       setPortIsSet(false);
2793       this.port = 0;
2794       setHoldTimeIsSet(false);
2795       this.holdTime = 0;
2796       setKeepAliveTimeIsSet(false);
2797       this.keepAliveTime = 0;
2798       setStalepathTimeIsSet(false);
2799       this.stalepathTime = 0;
2800       setAnnounceFbitIsSet(false);
2801       this.announceFbit = false;
2802     }
2803
2804     public int getAsNumber() {
2805       return this.asNumber;
2806     }
2807
2808     public startBgp_args setAsNumber(int asNumber) {
2809       this.asNumber = asNumber;
2810       setAsNumberIsSet(true);
2811       return this;
2812     }
2813
2814     public void unsetAsNumber() {
2815       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
2816     }
2817
2818     /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
2819     public boolean isSetAsNumber() {
2820       return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
2821     }
2822
2823     public void setAsNumberIsSet(boolean value) {
2824       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
2825     }
2826
2827     public String getRouterId() {
2828       return this.routerId;
2829     }
2830
2831     public startBgp_args setRouterId(String routerId) {
2832       this.routerId = routerId;
2833       return this;
2834     }
2835
2836     public void unsetRouterId() {
2837       this.routerId = null;
2838     }
2839
2840     /** Returns true if field routerId is set (has been assigned a value) and false otherwise */
2841     public boolean isSetRouterId() {
2842       return this.routerId != null;
2843     }
2844
2845     public void setRouterIdIsSet(boolean value) {
2846       if (!value) {
2847         this.routerId = null;
2848       }
2849     }
2850
2851     public int getPort() {
2852       return this.port;
2853     }
2854
2855     public startBgp_args setPort(int port) {
2856       this.port = port;
2857       setPortIsSet(true);
2858       return this;
2859     }
2860
2861     public void unsetPort() {
2862       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PORT_ISSET_ID);
2863     }
2864
2865     /** Returns true if field port is set (has been assigned a value) and false otherwise */
2866     public boolean isSetPort() {
2867       return EncodingUtils.testBit(__isset_bitfield, __PORT_ISSET_ID);
2868     }
2869
2870     public void setPortIsSet(boolean value) {
2871       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PORT_ISSET_ID, value);
2872     }
2873
2874     public int getHoldTime() {
2875       return this.holdTime;
2876     }
2877
2878     public startBgp_args setHoldTime(int holdTime) {
2879       this.holdTime = holdTime;
2880       setHoldTimeIsSet(true);
2881       return this;
2882     }
2883
2884     public void unsetHoldTime() {
2885       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
2886     }
2887
2888     /** Returns true if field holdTime is set (has been assigned a value) and false otherwise */
2889     public boolean isSetHoldTime() {
2890       return EncodingUtils.testBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
2891     }
2892
2893     public void setHoldTimeIsSet(boolean value) {
2894       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HOLDTIME_ISSET_ID, value);
2895     }
2896
2897     public int getKeepAliveTime() {
2898       return this.keepAliveTime;
2899     }
2900
2901     public startBgp_args setKeepAliveTime(int keepAliveTime) {
2902       this.keepAliveTime = keepAliveTime;
2903       setKeepAliveTimeIsSet(true);
2904       return this;
2905     }
2906
2907     public void unsetKeepAliveTime() {
2908       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
2909     }
2910
2911     /** Returns true if field keepAliveTime is set (has been assigned a value) and false otherwise */
2912     public boolean isSetKeepAliveTime() {
2913       return EncodingUtils.testBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
2914     }
2915
2916     public void setKeepAliveTimeIsSet(boolean value) {
2917       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID, value);
2918     }
2919
2920     public int getStalepathTime() {
2921       return this.stalepathTime;
2922     }
2923
2924     public startBgp_args setStalepathTime(int stalepathTime) {
2925       this.stalepathTime = stalepathTime;
2926       setStalepathTimeIsSet(true);
2927       return this;
2928     }
2929
2930     public void unsetStalepathTime() {
2931       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
2932     }
2933
2934     /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
2935     public boolean isSetStalepathTime() {
2936       return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
2937     }
2938
2939     public void setStalepathTimeIsSet(boolean value) {
2940       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
2941     }
2942
2943     public boolean isAnnounceFbit() {
2944       return this.announceFbit;
2945     }
2946
2947     public startBgp_args setAnnounceFbit(boolean announceFbit) {
2948       this.announceFbit = announceFbit;
2949       setAnnounceFbitIsSet(true);
2950       return this;
2951     }
2952
2953     public void unsetAnnounceFbit() {
2954       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ANNOUNCEFBIT_ISSET_ID);
2955     }
2956
2957     /** Returns true if field announceFbit is set (has been assigned a value) and false otherwise */
2958     public boolean isSetAnnounceFbit() {
2959       return EncodingUtils.testBit(__isset_bitfield, __ANNOUNCEFBIT_ISSET_ID);
2960     }
2961
2962     public void setAnnounceFbitIsSet(boolean value) {
2963       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ANNOUNCEFBIT_ISSET_ID, value);
2964     }
2965
2966     public void setFieldValue(_Fields field, Object value) {
2967       switch (field) {
2968       case AS_NUMBER:
2969         if (value == null) {
2970           unsetAsNumber();
2971         } else {
2972           setAsNumber((Integer)value);
2973         }
2974         break;
2975
2976       case ROUTER_ID:
2977         if (value == null) {
2978           unsetRouterId();
2979         } else {
2980           setRouterId((String)value);
2981         }
2982         break;
2983
2984       case PORT:
2985         if (value == null) {
2986           unsetPort();
2987         } else {
2988           setPort((Integer)value);
2989         }
2990         break;
2991
2992       case HOLD_TIME:
2993         if (value == null) {
2994           unsetHoldTime();
2995         } else {
2996           setHoldTime((Integer)value);
2997         }
2998         break;
2999
3000       case KEEP_ALIVE_TIME:
3001         if (value == null) {
3002           unsetKeepAliveTime();
3003         } else {
3004           setKeepAliveTime((Integer)value);
3005         }
3006         break;
3007
3008       case STALEPATH_TIME:
3009         if (value == null) {
3010           unsetStalepathTime();
3011         } else {
3012           setStalepathTime((Integer)value);
3013         }
3014         break;
3015
3016       case ANNOUNCE_FBIT:
3017         if (value == null) {
3018           unsetAnnounceFbit();
3019         } else {
3020           setAnnounceFbit((Boolean)value);
3021         }
3022         break;
3023
3024       }
3025     }
3026
3027     public Object getFieldValue(_Fields field) {
3028       switch (field) {
3029       case AS_NUMBER:
3030         return Integer.valueOf(getAsNumber());
3031
3032       case ROUTER_ID:
3033         return getRouterId();
3034
3035       case PORT:
3036         return Integer.valueOf(getPort());
3037
3038       case HOLD_TIME:
3039         return Integer.valueOf(getHoldTime());
3040
3041       case KEEP_ALIVE_TIME:
3042         return Integer.valueOf(getKeepAliveTime());
3043
3044       case STALEPATH_TIME:
3045         return Integer.valueOf(getStalepathTime());
3046
3047       case ANNOUNCE_FBIT:
3048         return Boolean.valueOf(isAnnounceFbit());
3049
3050       }
3051       throw new IllegalStateException();
3052     }
3053
3054     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3055     public boolean isSet(_Fields field) {
3056       if (field == null) {
3057         throw new IllegalArgumentException();
3058       }
3059
3060       switch (field) {
3061       case AS_NUMBER:
3062         return isSetAsNumber();
3063       case ROUTER_ID:
3064         return isSetRouterId();
3065       case PORT:
3066         return isSetPort();
3067       case HOLD_TIME:
3068         return isSetHoldTime();
3069       case KEEP_ALIVE_TIME:
3070         return isSetKeepAliveTime();
3071       case STALEPATH_TIME:
3072         return isSetStalepathTime();
3073       case ANNOUNCE_FBIT:
3074         return isSetAnnounceFbit();
3075       }
3076       throw new IllegalStateException();
3077     }
3078
3079     @Override
3080     public boolean equals(Object that) {
3081       if (that == null)
3082         return false;
3083       if (that instanceof startBgp_args)
3084         return this.equals((startBgp_args)that);
3085       return false;
3086     }
3087
3088     public boolean equals(startBgp_args that) {
3089       if (that == null)
3090         return false;
3091
3092       boolean this_present_asNumber = true;
3093       boolean that_present_asNumber = true;
3094       if (this_present_asNumber || that_present_asNumber) {
3095         if (!(this_present_asNumber && that_present_asNumber))
3096           return false;
3097         if (this.asNumber != that.asNumber)
3098           return false;
3099       }
3100
3101       boolean this_present_routerId = true && this.isSetRouterId();
3102       boolean that_present_routerId = true && that.isSetRouterId();
3103       if (this_present_routerId || that_present_routerId) {
3104         if (!(this_present_routerId && that_present_routerId))
3105           return false;
3106         if (!this.routerId.equals(that.routerId))
3107           return false;
3108       }
3109
3110       boolean this_present_port = true;
3111       boolean that_present_port = true;
3112       if (this_present_port || that_present_port) {
3113         if (!(this_present_port && that_present_port))
3114           return false;
3115         if (this.port != that.port)
3116           return false;
3117       }
3118
3119       boolean this_present_holdTime = true;
3120       boolean that_present_holdTime = true;
3121       if (this_present_holdTime || that_present_holdTime) {
3122         if (!(this_present_holdTime && that_present_holdTime))
3123           return false;
3124         if (this.holdTime != that.holdTime)
3125           return false;
3126       }
3127
3128       boolean this_present_keepAliveTime = true;
3129       boolean that_present_keepAliveTime = true;
3130       if (this_present_keepAliveTime || that_present_keepAliveTime) {
3131         if (!(this_present_keepAliveTime && that_present_keepAliveTime))
3132           return false;
3133         if (this.keepAliveTime != that.keepAliveTime)
3134           return false;
3135       }
3136
3137       boolean this_present_stalepathTime = true;
3138       boolean that_present_stalepathTime = true;
3139       if (this_present_stalepathTime || that_present_stalepathTime) {
3140         if (!(this_present_stalepathTime && that_present_stalepathTime))
3141           return false;
3142         if (this.stalepathTime != that.stalepathTime)
3143           return false;
3144       }
3145
3146       boolean this_present_announceFbit = true;
3147       boolean that_present_announceFbit = true;
3148       if (this_present_announceFbit || that_present_announceFbit) {
3149         if (!(this_present_announceFbit && that_present_announceFbit))
3150           return false;
3151         if (this.announceFbit != that.announceFbit)
3152           return false;
3153       }
3154
3155       return true;
3156     }
3157
3158     @Override
3159     public int hashCode() {
3160       return 0;
3161     }
3162
3163     @Override
3164     public int compareTo(startBgp_args other) {
3165       if (!getClass().equals(other.getClass())) {
3166         return getClass().getName().compareTo(other.getClass().getName());
3167       }
3168
3169       int lastComparison = 0;
3170
3171       lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
3172       if (lastComparison != 0) {
3173         return lastComparison;
3174       }
3175       if (isSetAsNumber()) {
3176         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
3177         if (lastComparison != 0) {
3178           return lastComparison;
3179         }
3180       }
3181       lastComparison = Boolean.valueOf(isSetRouterId()).compareTo(other.isSetRouterId());
3182       if (lastComparison != 0) {
3183         return lastComparison;
3184       }
3185       if (isSetRouterId()) {
3186         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routerId, other.routerId);
3187         if (lastComparison != 0) {
3188           return lastComparison;
3189         }
3190       }
3191       lastComparison = Boolean.valueOf(isSetPort()).compareTo(other.isSetPort());
3192       if (lastComparison != 0) {
3193         return lastComparison;
3194       }
3195       if (isSetPort()) {
3196         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, other.port);
3197         if (lastComparison != 0) {
3198           return lastComparison;
3199         }
3200       }
3201       lastComparison = Boolean.valueOf(isSetHoldTime()).compareTo(other.isSetHoldTime());
3202       if (lastComparison != 0) {
3203         return lastComparison;
3204       }
3205       if (isSetHoldTime()) {
3206         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdTime, other.holdTime);
3207         if (lastComparison != 0) {
3208           return lastComparison;
3209         }
3210       }
3211       lastComparison = Boolean.valueOf(isSetKeepAliveTime()).compareTo(other.isSetKeepAliveTime());
3212       if (lastComparison != 0) {
3213         return lastComparison;
3214       }
3215       if (isSetKeepAliveTime()) {
3216         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keepAliveTime, other.keepAliveTime);
3217         if (lastComparison != 0) {
3218           return lastComparison;
3219         }
3220       }
3221       lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
3222       if (lastComparison != 0) {
3223         return lastComparison;
3224       }
3225       if (isSetStalepathTime()) {
3226         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
3227         if (lastComparison != 0) {
3228           return lastComparison;
3229         }
3230       }
3231       lastComparison = Boolean.valueOf(isSetAnnounceFbit()).compareTo(other.isSetAnnounceFbit());
3232       if (lastComparison != 0) {
3233         return lastComparison;
3234       }
3235       if (isSetAnnounceFbit()) {
3236         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.announceFbit, other.announceFbit);
3237         if (lastComparison != 0) {
3238           return lastComparison;
3239         }
3240       }
3241       return 0;
3242     }
3243
3244     public _Fields fieldForId(int fieldId) {
3245       return _Fields.findByThriftId(fieldId);
3246     }
3247
3248     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3249       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3250     }
3251
3252     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3253       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3254     }
3255
3256     @Override
3257     public String toString() {
3258       StringBuilder sb = new StringBuilder("startBgp_args(");
3259       boolean first = true;
3260
3261       sb.append("asNumber:");
3262       sb.append(this.asNumber);
3263       first = false;
3264       if (!first) sb.append(", ");
3265       sb.append("routerId:");
3266       if (this.routerId == null) {
3267         sb.append("null");
3268       } else {
3269         sb.append(this.routerId);
3270       }
3271       first = false;
3272       if (!first) sb.append(", ");
3273       sb.append("port:");
3274       sb.append(this.port);
3275       first = false;
3276       if (!first) sb.append(", ");
3277       sb.append("holdTime:");
3278       sb.append(this.holdTime);
3279       first = false;
3280       if (!first) sb.append(", ");
3281       sb.append("keepAliveTime:");
3282       sb.append(this.keepAliveTime);
3283       first = false;
3284       if (!first) sb.append(", ");
3285       sb.append("stalepathTime:");
3286       sb.append(this.stalepathTime);
3287       first = false;
3288       if (!first) sb.append(", ");
3289       sb.append("announceFbit:");
3290       sb.append(this.announceFbit);
3291       first = false;
3292       sb.append(")");
3293       return sb.toString();
3294     }
3295
3296     public void validate() throws org.apache.thrift.TException {
3297       // check for required fields
3298       // check for sub-struct validity
3299     }
3300
3301     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3302       try {
3303         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3304       } catch (org.apache.thrift.TException te) {
3305         throw new java.io.IOException(te);
3306       }
3307     }
3308
3309     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3310       try {
3311         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3312         __isset_bitfield = 0;
3313         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3314       } catch (org.apache.thrift.TException te) {
3315         throw new java.io.IOException(te);
3316       }
3317     }
3318
3319     private static class startBgp_argsStandardSchemeFactory implements SchemeFactory {
3320       public startBgp_argsStandardScheme getScheme() {
3321         return new startBgp_argsStandardScheme();
3322       }
3323     }
3324
3325     private static class startBgp_argsStandardScheme extends StandardScheme<startBgp_args> {
3326
3327       public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_args struct) throws org.apache.thrift.TException {
3328         org.apache.thrift.protocol.TField schemeField;
3329         iprot.readStructBegin();
3330         while (true)
3331         {
3332           schemeField = iprot.readFieldBegin();
3333           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
3334             break;
3335           }
3336           switch (schemeField.id) {
3337             case 1: // AS_NUMBER
3338               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3339                 struct.asNumber = iprot.readI32();
3340                 struct.setAsNumberIsSet(true);
3341               } else { 
3342                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3343               }
3344               break;
3345             case 2: // ROUTER_ID
3346               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
3347                 struct.routerId = iprot.readString();
3348                 struct.setRouterIdIsSet(true);
3349               } else { 
3350                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3351               }
3352               break;
3353             case 3: // PORT
3354               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3355                 struct.port = iprot.readI32();
3356                 struct.setPortIsSet(true);
3357               } else { 
3358                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3359               }
3360               break;
3361             case 4: // HOLD_TIME
3362               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3363                 struct.holdTime = iprot.readI32();
3364                 struct.setHoldTimeIsSet(true);
3365               } else { 
3366                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3367               }
3368               break;
3369             case 5: // KEEP_ALIVE_TIME
3370               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3371                 struct.keepAliveTime = iprot.readI32();
3372                 struct.setKeepAliveTimeIsSet(true);
3373               } else { 
3374                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3375               }
3376               break;
3377             case 6: // STALEPATH_TIME
3378               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3379                 struct.stalepathTime = iprot.readI32();
3380                 struct.setStalepathTimeIsSet(true);
3381               } else { 
3382                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3383               }
3384               break;
3385             case 7: // ANNOUNCE_FBIT
3386               if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
3387                 struct.announceFbit = iprot.readBool();
3388                 struct.setAnnounceFbitIsSet(true);
3389               } else { 
3390                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3391               }
3392               break;
3393             default:
3394               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3395           }
3396           iprot.readFieldEnd();
3397         }
3398         iprot.readStructEnd();
3399
3400         // check for required fields of primitive type, which can't be checked in the validate method
3401         struct.validate();
3402       }
3403
3404       public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_args struct) throws org.apache.thrift.TException {
3405         struct.validate();
3406
3407         oprot.writeStructBegin(STRUCT_DESC);
3408         oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
3409         oprot.writeI32(struct.asNumber);
3410         oprot.writeFieldEnd();
3411         if (struct.routerId != null) {
3412           oprot.writeFieldBegin(ROUTER_ID_FIELD_DESC);
3413           oprot.writeString(struct.routerId);
3414           oprot.writeFieldEnd();
3415         }
3416         oprot.writeFieldBegin(PORT_FIELD_DESC);
3417         oprot.writeI32(struct.port);
3418         oprot.writeFieldEnd();
3419         oprot.writeFieldBegin(HOLD_TIME_FIELD_DESC);
3420         oprot.writeI32(struct.holdTime);
3421         oprot.writeFieldEnd();
3422         oprot.writeFieldBegin(KEEP_ALIVE_TIME_FIELD_DESC);
3423         oprot.writeI32(struct.keepAliveTime);
3424         oprot.writeFieldEnd();
3425         oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
3426         oprot.writeI32(struct.stalepathTime);
3427         oprot.writeFieldEnd();
3428         oprot.writeFieldBegin(ANNOUNCE_FBIT_FIELD_DESC);
3429         oprot.writeBool(struct.announceFbit);
3430         oprot.writeFieldEnd();
3431         oprot.writeFieldStop();
3432         oprot.writeStructEnd();
3433       }
3434
3435     }
3436
3437     private static class startBgp_argsTupleSchemeFactory implements SchemeFactory {
3438       public startBgp_argsTupleScheme getScheme() {
3439         return new startBgp_argsTupleScheme();
3440       }
3441     }
3442
3443     private static class startBgp_argsTupleScheme extends TupleScheme<startBgp_args> {
3444
3445       @Override
3446       public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
3447         TTupleProtocol oprot = (TTupleProtocol) prot;
3448         BitSet optionals = new BitSet();
3449         if (struct.isSetAsNumber()) {
3450           optionals.set(0);
3451         }
3452         if (struct.isSetRouterId()) {
3453           optionals.set(1);
3454         }
3455         if (struct.isSetPort()) {
3456           optionals.set(2);
3457         }
3458         if (struct.isSetHoldTime()) {
3459           optionals.set(3);
3460         }
3461         if (struct.isSetKeepAliveTime()) {
3462           optionals.set(4);
3463         }
3464         if (struct.isSetStalepathTime()) {
3465           optionals.set(5);
3466         }
3467         if (struct.isSetAnnounceFbit()) {
3468           optionals.set(6);
3469         }
3470         oprot.writeBitSet(optionals, 7);
3471         if (struct.isSetAsNumber()) {
3472           oprot.writeI32(struct.asNumber);
3473         }
3474         if (struct.isSetRouterId()) {
3475           oprot.writeString(struct.routerId);
3476         }
3477         if (struct.isSetPort()) {
3478           oprot.writeI32(struct.port);
3479         }
3480         if (struct.isSetHoldTime()) {
3481           oprot.writeI32(struct.holdTime);
3482         }
3483         if (struct.isSetKeepAliveTime()) {
3484           oprot.writeI32(struct.keepAliveTime);
3485         }
3486         if (struct.isSetStalepathTime()) {
3487           oprot.writeI32(struct.stalepathTime);
3488         }
3489         if (struct.isSetAnnounceFbit()) {
3490           oprot.writeBool(struct.announceFbit);
3491         }
3492       }
3493
3494       @Override
3495       public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
3496         TTupleProtocol iprot = (TTupleProtocol) prot;
3497         BitSet incoming = iprot.readBitSet(7);
3498         if (incoming.get(0)) {
3499           struct.asNumber = iprot.readI32();
3500           struct.setAsNumberIsSet(true);
3501         }
3502         if (incoming.get(1)) {
3503           struct.routerId = iprot.readString();
3504           struct.setRouterIdIsSet(true);
3505         }
3506         if (incoming.get(2)) {
3507           struct.port = iprot.readI32();
3508           struct.setPortIsSet(true);
3509         }
3510         if (incoming.get(3)) {
3511           struct.holdTime = iprot.readI32();
3512           struct.setHoldTimeIsSet(true);
3513         }
3514         if (incoming.get(4)) {
3515           struct.keepAliveTime = iprot.readI32();
3516           struct.setKeepAliveTimeIsSet(true);
3517         }
3518         if (incoming.get(5)) {
3519           struct.stalepathTime = iprot.readI32();
3520           struct.setStalepathTimeIsSet(true);
3521         }
3522         if (incoming.get(6)) {
3523           struct.announceFbit = iprot.readBool();
3524           struct.setAnnounceFbitIsSet(true);
3525         }
3526       }
3527     }
3528
3529   }
3530
3531   public static class startBgp_result implements org.apache.thrift.TBase<startBgp_result, startBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_result>   {
3532     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_result");
3533
3534     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
3535
3536     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3537     static {
3538       schemes.put(StandardScheme.class, new startBgp_resultStandardSchemeFactory());
3539       schemes.put(TupleScheme.class, new startBgp_resultTupleSchemeFactory());
3540     }
3541
3542     public int success; // required
3543
3544     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3545     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3546       SUCCESS((short)0, "success");
3547
3548       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3549
3550       static {
3551         for (_Fields field : EnumSet.allOf(_Fields.class)) {
3552           byName.put(field.getFieldName(), field);
3553         }
3554       }
3555
3556       /**
3557        * Find the _Fields constant that matches fieldId, or null if its not found.
3558        */
3559       public static _Fields findByThriftId(int fieldId) {
3560         switch(fieldId) {
3561           case 0: // SUCCESS
3562             return SUCCESS;
3563           default:
3564             return null;
3565         }
3566       }
3567
3568       /**
3569        * Find the _Fields constant that matches fieldId, throwing an exception
3570        * if it is not found.
3571        */
3572       public static _Fields findByThriftIdOrThrow(int fieldId) {
3573         _Fields fields = findByThriftId(fieldId);
3574         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3575         return fields;
3576       }
3577
3578       /**
3579        * Find the _Fields constant that matches name, or null if its not found.
3580        */
3581       public static _Fields findByName(String name) {
3582         return byName.get(name);
3583       }
3584
3585       private final short _thriftId;
3586       private final String _fieldName;
3587
3588       _Fields(short thriftId, String fieldName) {
3589         _thriftId = thriftId;
3590         _fieldName = fieldName;
3591       }
3592
3593       public short getThriftFieldId() {
3594         return _thriftId;
3595       }
3596
3597       public String getFieldName() {
3598         return _fieldName;
3599       }
3600     }
3601
3602     // isset id assignments
3603     private static final int __SUCCESS_ISSET_ID = 0;
3604     private byte __isset_bitfield = 0;
3605     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3606     static {
3607       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3608       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3609           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3610       metaDataMap = Collections.unmodifiableMap(tmpMap);
3611       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_result.class, metaDataMap);
3612     }
3613
3614     public startBgp_result() {
3615     }
3616
3617     public startBgp_result(
3618       int success)
3619     {
3620       this();
3621       this.success = success;
3622       setSuccessIsSet(true);
3623     }
3624
3625     /**
3626      * Performs a deep copy on <i>other</i>.
3627      */
3628     public startBgp_result(startBgp_result other) {
3629       __isset_bitfield = other.__isset_bitfield;
3630       this.success = other.success;
3631     }
3632
3633     public startBgp_result deepCopy() {
3634       return new startBgp_result(this);
3635     }
3636
3637     @Override
3638     public void clear() {
3639       setSuccessIsSet(false);
3640       this.success = 0;
3641     }
3642
3643     public int getSuccess() {
3644       return this.success;
3645     }
3646
3647     public startBgp_result setSuccess(int success) {
3648       this.success = success;
3649       setSuccessIsSet(true);
3650       return this;
3651     }
3652
3653     public void unsetSuccess() {
3654       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
3655     }
3656
3657     /** Returns true if field success is set (has been assigned a value) and false otherwise */
3658     public boolean isSetSuccess() {
3659       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
3660     }
3661
3662     public void setSuccessIsSet(boolean value) {
3663       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
3664     }
3665
3666     public void setFieldValue(_Fields field, Object value) {
3667       switch (field) {
3668       case SUCCESS:
3669         if (value == null) {
3670           unsetSuccess();
3671         } else {
3672           setSuccess((Integer)value);
3673         }
3674         break;
3675
3676       }
3677     }
3678
3679     public Object getFieldValue(_Fields field) {
3680       switch (field) {
3681       case SUCCESS:
3682         return Integer.valueOf(getSuccess());
3683
3684       }
3685       throw new IllegalStateException();
3686     }
3687
3688     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3689     public boolean isSet(_Fields field) {
3690       if (field == null) {
3691         throw new IllegalArgumentException();
3692       }
3693
3694       switch (field) {
3695       case SUCCESS:
3696         return isSetSuccess();
3697       }
3698       throw new IllegalStateException();
3699     }
3700
3701     @Override
3702     public boolean equals(Object that) {
3703       if (that == null)
3704         return false;
3705       if (that instanceof startBgp_result)
3706         return this.equals((startBgp_result)that);
3707       return false;
3708     }
3709
3710     public boolean equals(startBgp_result that) {
3711       if (that == null)
3712         return false;
3713
3714       boolean this_present_success = true;
3715       boolean that_present_success = true;
3716       if (this_present_success || that_present_success) {
3717         if (!(this_present_success && that_present_success))
3718           return false;
3719         if (this.success != that.success)
3720           return false;
3721       }
3722
3723       return true;
3724     }
3725
3726     @Override
3727     public int hashCode() {
3728       return 0;
3729     }
3730
3731     @Override
3732     public int compareTo(startBgp_result other) {
3733       if (!getClass().equals(other.getClass())) {
3734         return getClass().getName().compareTo(other.getClass().getName());
3735       }
3736
3737       int lastComparison = 0;
3738
3739       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
3740       if (lastComparison != 0) {
3741         return lastComparison;
3742       }
3743       if (isSetSuccess()) {
3744         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
3745         if (lastComparison != 0) {
3746           return lastComparison;
3747         }
3748       }
3749       return 0;
3750     }
3751
3752     public _Fields fieldForId(int fieldId) {
3753       return _Fields.findByThriftId(fieldId);
3754     }
3755
3756     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3757       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3758     }
3759
3760     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3761       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3762       }
3763
3764     @Override
3765     public String toString() {
3766       StringBuilder sb = new StringBuilder("startBgp_result(");
3767       boolean first = true;
3768
3769       sb.append("success:");
3770       sb.append(this.success);
3771       first = false;
3772       sb.append(")");
3773       return sb.toString();
3774     }
3775
3776     public void validate() throws org.apache.thrift.TException {
3777       // check for required fields
3778       // check for sub-struct validity
3779     }
3780
3781     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3782       try {
3783         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3784       } catch (org.apache.thrift.TException te) {
3785         throw new java.io.IOException(te);
3786       }
3787     }
3788
3789     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3790       try {
3791         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3792         __isset_bitfield = 0;
3793         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3794       } catch (org.apache.thrift.TException te) {
3795         throw new java.io.IOException(te);
3796       }
3797     }
3798
3799     private static class startBgp_resultStandardSchemeFactory implements SchemeFactory {
3800       public startBgp_resultStandardScheme getScheme() {
3801         return new startBgp_resultStandardScheme();
3802       }
3803     }
3804
3805     private static class startBgp_resultStandardScheme extends StandardScheme<startBgp_result> {
3806
3807       public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_result struct) throws org.apache.thrift.TException {
3808         org.apache.thrift.protocol.TField schemeField;
3809         iprot.readStructBegin();
3810         while (true)
3811         {
3812           schemeField = iprot.readFieldBegin();
3813           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
3814             break;
3815           }
3816           switch (schemeField.id) {
3817             case 0: // SUCCESS
3818               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3819                 struct.success = iprot.readI32();
3820                 struct.setSuccessIsSet(true);
3821               } else { 
3822                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3823               }
3824               break;
3825             default:
3826               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3827           }
3828           iprot.readFieldEnd();
3829         }
3830         iprot.readStructEnd();
3831
3832         // check for required fields of primitive type, which can't be checked in the validate method
3833         struct.validate();
3834       }
3835
3836       public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_result struct) throws org.apache.thrift.TException {
3837         struct.validate();
3838
3839         oprot.writeStructBegin(STRUCT_DESC);
3840         if (struct.isSetSuccess()) {
3841           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3842           oprot.writeI32(struct.success);
3843           oprot.writeFieldEnd();
3844         }
3845         oprot.writeFieldStop();
3846         oprot.writeStructEnd();
3847       }
3848
3849     }
3850
3851     private static class startBgp_resultTupleSchemeFactory implements SchemeFactory {
3852       public startBgp_resultTupleScheme getScheme() {
3853         return new startBgp_resultTupleScheme();
3854       }
3855     }
3856
3857     private static class startBgp_resultTupleScheme extends TupleScheme<startBgp_result> {
3858
3859       @Override
3860       public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
3861         TTupleProtocol oprot = (TTupleProtocol) prot;
3862         BitSet optionals = new BitSet();
3863         if (struct.isSetSuccess()) {
3864           optionals.set(0);
3865         }
3866         oprot.writeBitSet(optionals, 1);
3867         if (struct.isSetSuccess()) {
3868           oprot.writeI32(struct.success);
3869         }
3870       }
3871
3872       @Override
3873       public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
3874         TTupleProtocol iprot = (TTupleProtocol) prot;
3875         BitSet incoming = iprot.readBitSet(1);
3876         if (incoming.get(0)) {
3877           struct.success = iprot.readI32();
3878           struct.setSuccessIsSet(true);
3879         }
3880       }
3881     }
3882
3883   }
3884
3885   public static class stopBgp_args implements org.apache.thrift.TBase<stopBgp_args, stopBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_args>   {
3886     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_args");
3887
3888     private static final org.apache.thrift.protocol.TField AS_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("asNumber", org.apache.thrift.protocol.TType.I32, (short)1);
3889
3890     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3891     static {
3892       schemes.put(StandardScheme.class, new stopBgp_argsStandardSchemeFactory());
3893       schemes.put(TupleScheme.class, new stopBgp_argsTupleSchemeFactory());
3894     }
3895
3896     public int asNumber; // required
3897
3898     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3899     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3900       AS_NUMBER((short)1, "asNumber");
3901
3902       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3903
3904       static {
3905         for (_Fields field : EnumSet.allOf(_Fields.class)) {
3906           byName.put(field.getFieldName(), field);
3907         }
3908       }
3909
3910       /**
3911        * Find the _Fields constant that matches fieldId, or null if its not found.
3912        */
3913       public static _Fields findByThriftId(int fieldId) {
3914         switch(fieldId) {
3915           case 1: // AS_NUMBER
3916             return AS_NUMBER;
3917           default:
3918             return null;
3919         }
3920       }
3921
3922       /**
3923        * Find the _Fields constant that matches fieldId, throwing an exception
3924        * if it is not found.
3925        */
3926       public static _Fields findByThriftIdOrThrow(int fieldId) {
3927         _Fields fields = findByThriftId(fieldId);
3928         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3929         return fields;
3930       }
3931
3932       /**
3933        * Find the _Fields constant that matches name, or null if its not found.
3934        */
3935       public static _Fields findByName(String name) {
3936         return byName.get(name);
3937       }
3938
3939       private final short _thriftId;
3940       private final String _fieldName;
3941
3942       _Fields(short thriftId, String fieldName) {
3943         _thriftId = thriftId;
3944         _fieldName = fieldName;
3945       }
3946
3947       public short getThriftFieldId() {
3948         return _thriftId;
3949       }
3950
3951       public String getFieldName() {
3952         return _fieldName;
3953       }
3954     }
3955
3956     // isset id assignments
3957     private static final int __ASNUMBER_ISSET_ID = 0;
3958     private byte __isset_bitfield = 0;
3959     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3960     static {
3961       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3962       tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3963           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3964       metaDataMap = Collections.unmodifiableMap(tmpMap);
3965       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_args.class, metaDataMap);
3966     }
3967
3968     public stopBgp_args() {
3969     }
3970
3971     public stopBgp_args(
3972       int asNumber)
3973     {
3974       this();
3975       this.asNumber = asNumber;
3976       setAsNumberIsSet(true);
3977     }
3978
3979     /**
3980      * Performs a deep copy on <i>other</i>.
3981      */
3982     public stopBgp_args(stopBgp_args other) {
3983       __isset_bitfield = other.__isset_bitfield;
3984       this.asNumber = other.asNumber;
3985     }
3986
3987     public stopBgp_args deepCopy() {
3988       return new stopBgp_args(this);
3989     }
3990
3991     @Override
3992     public void clear() {
3993       setAsNumberIsSet(false);
3994       this.asNumber = 0;
3995     }
3996
3997     public int getAsNumber() {
3998       return this.asNumber;
3999     }
4000
4001     public stopBgp_args setAsNumber(int asNumber) {
4002       this.asNumber = asNumber;
4003       setAsNumberIsSet(true);
4004       return this;
4005     }
4006
4007     public void unsetAsNumber() {
4008       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4009     }
4010
4011     /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
4012     public boolean isSetAsNumber() {
4013       return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4014     }
4015
4016     public void setAsNumberIsSet(boolean value) {
4017       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
4018     }
4019
4020     public void setFieldValue(_Fields field, Object value) {
4021       switch (field) {
4022       case AS_NUMBER:
4023         if (value == null) {
4024           unsetAsNumber();
4025         } else {
4026           setAsNumber((Integer)value);
4027         }
4028         break;
4029
4030       }
4031     }
4032
4033     public Object getFieldValue(_Fields field) {
4034       switch (field) {
4035       case AS_NUMBER:
4036         return Integer.valueOf(getAsNumber());
4037
4038       }
4039       throw new IllegalStateException();
4040     }
4041
4042     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4043     public boolean isSet(_Fields field) {
4044       if (field == null) {
4045         throw new IllegalArgumentException();
4046       }
4047
4048       switch (field) {
4049       case AS_NUMBER:
4050         return isSetAsNumber();
4051       }
4052       throw new IllegalStateException();
4053     }
4054
4055     @Override
4056     public boolean equals(Object that) {
4057       if (that == null)
4058         return false;
4059       if (that instanceof stopBgp_args)
4060         return this.equals((stopBgp_args)that);
4061       return false;
4062     }
4063
4064     public boolean equals(stopBgp_args that) {
4065       if (that == null)
4066         return false;
4067
4068       boolean this_present_asNumber = true;
4069       boolean that_present_asNumber = true;
4070       if (this_present_asNumber || that_present_asNumber) {
4071         if (!(this_present_asNumber && that_present_asNumber))
4072           return false;
4073         if (this.asNumber != that.asNumber)
4074           return false;
4075       }
4076
4077       return true;
4078     }
4079
4080     @Override
4081     public int hashCode() {
4082       return 0;
4083     }
4084
4085     @Override
4086     public int compareTo(stopBgp_args other) {
4087       if (!getClass().equals(other.getClass())) {
4088         return getClass().getName().compareTo(other.getClass().getName());
4089       }
4090
4091       int lastComparison = 0;
4092
4093       lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
4094       if (lastComparison != 0) {
4095         return lastComparison;
4096       }
4097       if (isSetAsNumber()) {
4098         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
4099         if (lastComparison != 0) {
4100           return lastComparison;
4101         }
4102       }
4103       return 0;
4104     }
4105
4106     public _Fields fieldForId(int fieldId) {
4107       return _Fields.findByThriftId(fieldId);
4108     }
4109
4110     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4111       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4112     }
4113
4114     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4115       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4116     }
4117
4118     @Override
4119     public String toString() {
4120       StringBuilder sb = new StringBuilder("stopBgp_args(");
4121       boolean first = true;
4122
4123       sb.append("asNumber:");
4124       sb.append(this.asNumber);
4125       first = false;
4126       sb.append(")");
4127       return sb.toString();
4128     }
4129
4130     public void validate() throws org.apache.thrift.TException {
4131       // check for required fields
4132       // check for sub-struct validity
4133     }
4134
4135     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4136       try {
4137         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4138       } catch (org.apache.thrift.TException te) {
4139         throw new java.io.IOException(te);
4140       }
4141     }
4142
4143     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4144       try {
4145         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4146         __isset_bitfield = 0;
4147         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4148       } catch (org.apache.thrift.TException te) {
4149         throw new java.io.IOException(te);
4150       }
4151     }
4152
4153     private static class stopBgp_argsStandardSchemeFactory implements SchemeFactory {
4154       public stopBgp_argsStandardScheme getScheme() {
4155         return new stopBgp_argsStandardScheme();
4156       }
4157     }
4158
4159     private static class stopBgp_argsStandardScheme extends StandardScheme<stopBgp_args> {
4160
4161       public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_args struct) throws org.apache.thrift.TException {
4162         org.apache.thrift.protocol.TField schemeField;
4163         iprot.readStructBegin();
4164         while (true)
4165         {
4166           schemeField = iprot.readFieldBegin();
4167           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
4168             break;
4169           }
4170           switch (schemeField.id) {
4171             case 1: // AS_NUMBER
4172               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4173                 struct.asNumber = iprot.readI32();
4174                 struct.setAsNumberIsSet(true);
4175               } else { 
4176                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4177               }
4178               break;
4179             default:
4180               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4181           }
4182           iprot.readFieldEnd();
4183         }
4184         iprot.readStructEnd();
4185
4186         // check for required fields of primitive type, which can't be checked in the validate method
4187         struct.validate();
4188       }
4189
4190       public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_args struct) throws org.apache.thrift.TException {
4191         struct.validate();
4192
4193         oprot.writeStructBegin(STRUCT_DESC);
4194         oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
4195         oprot.writeI32(struct.asNumber);
4196         oprot.writeFieldEnd();
4197         oprot.writeFieldStop();
4198         oprot.writeStructEnd();
4199       }
4200
4201     }
4202
4203     private static class stopBgp_argsTupleSchemeFactory implements SchemeFactory {
4204       public stopBgp_argsTupleScheme getScheme() {
4205         return new stopBgp_argsTupleScheme();
4206       }
4207     }
4208
4209     private static class stopBgp_argsTupleScheme extends TupleScheme<stopBgp_args> {
4210
4211       @Override
4212       public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
4213         TTupleProtocol oprot = (TTupleProtocol) prot;
4214         BitSet optionals = new BitSet();
4215         if (struct.isSetAsNumber()) {
4216           optionals.set(0);
4217         }
4218         oprot.writeBitSet(optionals, 1);
4219         if (struct.isSetAsNumber()) {
4220           oprot.writeI32(struct.asNumber);
4221         }
4222       }
4223
4224       @Override
4225       public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
4226         TTupleProtocol iprot = (TTupleProtocol) prot;
4227         BitSet incoming = iprot.readBitSet(1);
4228         if (incoming.get(0)) {
4229           struct.asNumber = iprot.readI32();
4230           struct.setAsNumberIsSet(true);
4231         }
4232       }
4233     }
4234
4235   }
4236
4237   public static class stopBgp_result implements org.apache.thrift.TBase<stopBgp_result, stopBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_result>   {
4238     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_result");
4239
4240     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
4241
4242     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4243     static {
4244       schemes.put(StandardScheme.class, new stopBgp_resultStandardSchemeFactory());
4245       schemes.put(TupleScheme.class, new stopBgp_resultTupleSchemeFactory());
4246     }
4247
4248     public int success; // required
4249
4250     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4251     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4252       SUCCESS((short)0, "success");
4253
4254       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4255
4256       static {
4257         for (_Fields field : EnumSet.allOf(_Fields.class)) {
4258           byName.put(field.getFieldName(), field);
4259         }
4260       }
4261
4262       /**
4263        * Find the _Fields constant that matches fieldId, or null if its not found.
4264        */
4265       public static _Fields findByThriftId(int fieldId) {
4266         switch(fieldId) {
4267           case 0: // SUCCESS
4268             return SUCCESS;
4269           default:
4270             return null;
4271         }
4272       }
4273
4274       /**
4275        * Find the _Fields constant that matches fieldId, throwing an exception
4276        * if it is not found.
4277        */
4278       public static _Fields findByThriftIdOrThrow(int fieldId) {
4279         _Fields fields = findByThriftId(fieldId);
4280         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4281         return fields;
4282       }
4283
4284       /**
4285        * Find the _Fields constant that matches name, or null if its not found.
4286        */
4287       public static _Fields findByName(String name) {
4288         return byName.get(name);
4289       }
4290
4291       private final short _thriftId;
4292       private final String _fieldName;
4293
4294       _Fields(short thriftId, String fieldName) {
4295         _thriftId = thriftId;
4296         _fieldName = fieldName;
4297       }
4298
4299       public short getThriftFieldId() {
4300         return _thriftId;
4301       }
4302
4303       public String getFieldName() {
4304         return _fieldName;
4305       }
4306     }
4307
4308     // isset id assignments
4309     private static final int __SUCCESS_ISSET_ID = 0;
4310     private byte __isset_bitfield = 0;
4311     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4312     static {
4313       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4314       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4315           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4316       metaDataMap = Collections.unmodifiableMap(tmpMap);
4317       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_result.class, metaDataMap);
4318     }
4319
4320     public stopBgp_result() {
4321     }
4322
4323     public stopBgp_result(
4324       int success)
4325     {
4326       this();
4327       this.success = success;
4328       setSuccessIsSet(true);
4329     }
4330
4331     /**
4332      * Performs a deep copy on <i>other</i>.
4333      */
4334     public stopBgp_result(stopBgp_result other) {
4335       __isset_bitfield = other.__isset_bitfield;
4336       this.success = other.success;
4337     }
4338
4339     public stopBgp_result deepCopy() {
4340       return new stopBgp_result(this);
4341     }
4342
4343     @Override
4344     public void clear() {
4345       setSuccessIsSet(false);
4346       this.success = 0;
4347     }
4348
4349     public int getSuccess() {
4350       return this.success;
4351     }
4352
4353     public stopBgp_result setSuccess(int success) {
4354       this.success = success;
4355       setSuccessIsSet(true);
4356       return this;
4357     }
4358
4359     public void unsetSuccess() {
4360       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4361     }
4362
4363     /** Returns true if field success is set (has been assigned a value) and false otherwise */
4364     public boolean isSetSuccess() {
4365       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4366     }
4367
4368     public void setSuccessIsSet(boolean value) {
4369       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
4370     }
4371
4372     public void setFieldValue(_Fields field, Object value) {
4373       switch (field) {
4374       case SUCCESS:
4375         if (value == null) {
4376           unsetSuccess();
4377         } else {
4378           setSuccess((Integer)value);
4379         }
4380         break;
4381
4382       }
4383     }
4384
4385     public Object getFieldValue(_Fields field) {
4386       switch (field) {
4387       case SUCCESS:
4388         return Integer.valueOf(getSuccess());
4389
4390       }
4391       throw new IllegalStateException();
4392     }
4393
4394     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4395     public boolean isSet(_Fields field) {
4396       if (field == null) {
4397         throw new IllegalArgumentException();
4398       }
4399
4400       switch (field) {
4401       case SUCCESS:
4402         return isSetSuccess();
4403       }
4404       throw new IllegalStateException();
4405     }
4406
4407     @Override
4408     public boolean equals(Object that) {
4409       if (that == null)
4410         return false;
4411       if (that instanceof stopBgp_result)
4412         return this.equals((stopBgp_result)that);
4413       return false;
4414     }
4415
4416     public boolean equals(stopBgp_result that) {
4417       if (that == null)
4418         return false;
4419
4420       boolean this_present_success = true;
4421       boolean that_present_success = true;
4422       if (this_present_success || that_present_success) {
4423         if (!(this_present_success && that_present_success))
4424           return false;
4425         if (this.success != that.success)
4426           return false;
4427       }
4428
4429       return true;
4430     }
4431
4432     @Override
4433     public int hashCode() {
4434       return 0;
4435     }
4436
4437     @Override
4438     public int compareTo(stopBgp_result other) {
4439       if (!getClass().equals(other.getClass())) {
4440         return getClass().getName().compareTo(other.getClass().getName());
4441       }
4442
4443       int lastComparison = 0;
4444
4445       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
4446       if (lastComparison != 0) {
4447         return lastComparison;
4448       }
4449       if (isSetSuccess()) {
4450         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
4451         if (lastComparison != 0) {
4452           return lastComparison;
4453         }
4454       }
4455       return 0;
4456     }
4457
4458     public _Fields fieldForId(int fieldId) {
4459       return _Fields.findByThriftId(fieldId);
4460     }
4461
4462     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4463       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4464     }
4465
4466     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4467       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4468       }
4469
4470     @Override
4471     public String toString() {
4472       StringBuilder sb = new StringBuilder("stopBgp_result(");
4473       boolean first = true;
4474
4475       sb.append("success:");
4476       sb.append(this.success);
4477       first = false;
4478       sb.append(")");
4479       return sb.toString();
4480     }
4481
4482     public void validate() throws org.apache.thrift.TException {
4483       // check for required fields
4484       // check for sub-struct validity
4485     }
4486
4487     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4488       try {
4489         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4490       } catch (org.apache.thrift.TException te) {
4491         throw new java.io.IOException(te);
4492       }
4493     }
4494
4495     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4496       try {
4497         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4498         __isset_bitfield = 0;
4499         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4500       } catch (org.apache.thrift.TException te) {
4501         throw new java.io.IOException(te);
4502       }
4503     }
4504
4505     private static class stopBgp_resultStandardSchemeFactory implements SchemeFactory {
4506       public stopBgp_resultStandardScheme getScheme() {
4507         return new stopBgp_resultStandardScheme();
4508       }
4509     }
4510
4511     private static class stopBgp_resultStandardScheme extends StandardScheme<stopBgp_result> {
4512
4513       public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_result struct) throws org.apache.thrift.TException {
4514         org.apache.thrift.protocol.TField schemeField;
4515         iprot.readStructBegin();
4516         while (true)
4517         {
4518           schemeField = iprot.readFieldBegin();
4519           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
4520             break;
4521           }
4522           switch (schemeField.id) {
4523             case 0: // SUCCESS
4524               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4525                 struct.success = iprot.readI32();
4526                 struct.setSuccessIsSet(true);
4527               } else { 
4528                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4529               }
4530               break;
4531             default:
4532               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4533           }
4534           iprot.readFieldEnd();
4535         }
4536         iprot.readStructEnd();
4537
4538         // check for required fields of primitive type, which can't be checked in the validate method
4539         struct.validate();
4540       }
4541
4542       public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_result struct) throws org.apache.thrift.TException {
4543         struct.validate();
4544
4545         oprot.writeStructBegin(STRUCT_DESC);
4546         if (struct.isSetSuccess()) {
4547           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4548           oprot.writeI32(struct.success);
4549           oprot.writeFieldEnd();
4550         }
4551         oprot.writeFieldStop();
4552         oprot.writeStructEnd();
4553       }
4554
4555     }
4556
4557     private static class stopBgp_resultTupleSchemeFactory implements SchemeFactory {
4558       public stopBgp_resultTupleScheme getScheme() {
4559         return new stopBgp_resultTupleScheme();
4560       }
4561     }
4562
4563     private static class stopBgp_resultTupleScheme extends TupleScheme<stopBgp_result> {
4564
4565       @Override
4566       public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
4567         TTupleProtocol oprot = (TTupleProtocol) prot;
4568         BitSet optionals = new BitSet();
4569         if (struct.isSetSuccess()) {
4570           optionals.set(0);
4571         }
4572         oprot.writeBitSet(optionals, 1);
4573         if (struct.isSetSuccess()) {
4574           oprot.writeI32(struct.success);
4575         }
4576       }
4577
4578       @Override
4579       public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
4580         TTupleProtocol iprot = (TTupleProtocol) prot;
4581         BitSet incoming = iprot.readBitSet(1);
4582         if (incoming.get(0)) {
4583           struct.success = iprot.readI32();
4584           struct.setSuccessIsSet(true);
4585         }
4586       }
4587     }
4588
4589   }
4590
4591   public static class createPeer_args implements org.apache.thrift.TBase<createPeer_args, createPeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_args>   {
4592     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_args");
4593
4594     private static final org.apache.thrift.protocol.TField IP_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("ipAddress", org.apache.thrift.protocol.TType.STRING, (short)1);
4595     private static final org.apache.thrift.protocol.TField AS_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("asNumber", org.apache.thrift.protocol.TType.I32, (short)2);
4596
4597     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4598     static {
4599       schemes.put(StandardScheme.class, new createPeer_argsStandardSchemeFactory());
4600       schemes.put(TupleScheme.class, new createPeer_argsTupleSchemeFactory());
4601     }
4602
4603     public String ipAddress; // required
4604     public int asNumber; // required
4605
4606     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4607     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4608       IP_ADDRESS((short)1, "ipAddress"),
4609       AS_NUMBER((short)2, "asNumber");
4610
4611       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4612
4613       static {
4614         for (_Fields field : EnumSet.allOf(_Fields.class)) {
4615           byName.put(field.getFieldName(), field);
4616         }
4617       }
4618
4619       /**
4620        * Find the _Fields constant that matches fieldId, or null if its not found.
4621        */
4622       public static _Fields findByThriftId(int fieldId) {
4623         switch(fieldId) {
4624           case 1: // IP_ADDRESS
4625             return IP_ADDRESS;
4626           case 2: // AS_NUMBER
4627             return AS_NUMBER;
4628           default:
4629             return null;
4630         }
4631       }
4632
4633       /**
4634        * Find the _Fields constant that matches fieldId, throwing an exception
4635        * if it is not found.
4636        */
4637       public static _Fields findByThriftIdOrThrow(int fieldId) {
4638         _Fields fields = findByThriftId(fieldId);
4639         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4640         return fields;
4641       }
4642
4643       /**
4644        * Find the _Fields constant that matches name, or null if its not found.
4645        */
4646       public static _Fields findByName(String name) {
4647         return byName.get(name);
4648       }
4649
4650       private final short _thriftId;
4651       private final String _fieldName;
4652
4653       _Fields(short thriftId, String fieldName) {
4654         _thriftId = thriftId;
4655         _fieldName = fieldName;
4656       }
4657
4658       public short getThriftFieldId() {
4659         return _thriftId;
4660       }
4661
4662       public String getFieldName() {
4663         return _fieldName;
4664       }
4665     }
4666
4667     // isset id assignments
4668     private static final int __ASNUMBER_ISSET_ID = 0;
4669     private byte __isset_bitfield = 0;
4670     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4671     static {
4672       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4673       tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4674           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4675       tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4676           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4677       metaDataMap = Collections.unmodifiableMap(tmpMap);
4678       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_args.class, metaDataMap);
4679     }
4680
4681     public createPeer_args() {
4682     }
4683
4684     public createPeer_args(
4685       String ipAddress,
4686       int asNumber)
4687     {
4688       this();
4689       this.ipAddress = ipAddress;
4690       this.asNumber = asNumber;
4691       setAsNumberIsSet(true);
4692     }
4693
4694     /**
4695      * Performs a deep copy on <i>other</i>.
4696      */
4697     public createPeer_args(createPeer_args other) {
4698       __isset_bitfield = other.__isset_bitfield;
4699       if (other.isSetIpAddress()) {
4700         this.ipAddress = other.ipAddress;
4701       }
4702       this.asNumber = other.asNumber;
4703     }
4704
4705     public createPeer_args deepCopy() {
4706       return new createPeer_args(this);
4707     }
4708
4709     @Override
4710     public void clear() {
4711       this.ipAddress = null;
4712       setAsNumberIsSet(false);
4713       this.asNumber = 0;
4714     }
4715
4716     public String getIpAddress() {
4717       return this.ipAddress;
4718     }
4719
4720     public createPeer_args setIpAddress(String ipAddress) {
4721       this.ipAddress = ipAddress;
4722       return this;
4723     }
4724
4725     public void unsetIpAddress() {
4726       this.ipAddress = null;
4727     }
4728
4729     /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
4730     public boolean isSetIpAddress() {
4731       return this.ipAddress != null;
4732     }
4733
4734     public void setIpAddressIsSet(boolean value) {
4735       if (!value) {
4736         this.ipAddress = null;
4737       }
4738     }
4739
4740     public int getAsNumber() {
4741       return this.asNumber;
4742     }
4743
4744     public createPeer_args setAsNumber(int asNumber) {
4745       this.asNumber = asNumber;
4746       setAsNumberIsSet(true);
4747       return this;
4748     }
4749
4750     public void unsetAsNumber() {
4751       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4752     }
4753
4754     /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
4755     public boolean isSetAsNumber() {
4756       return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4757     }
4758
4759     public void setAsNumberIsSet(boolean value) {
4760       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
4761     }
4762
4763     public void setFieldValue(_Fields field, Object value) {
4764       switch (field) {
4765       case IP_ADDRESS:
4766         if (value == null) {
4767           unsetIpAddress();
4768         } else {
4769           setIpAddress((String)value);
4770         }
4771         break;
4772
4773       case AS_NUMBER:
4774         if (value == null) {
4775           unsetAsNumber();
4776         } else {
4777           setAsNumber((Integer)value);
4778         }
4779         break;
4780
4781       }
4782     }
4783
4784     public Object getFieldValue(_Fields field) {
4785       switch (field) {
4786       case IP_ADDRESS:
4787         return getIpAddress();
4788
4789       case AS_NUMBER:
4790         return Integer.valueOf(getAsNumber());
4791
4792       }
4793       throw new IllegalStateException();
4794     }
4795
4796     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4797     public boolean isSet(_Fields field) {
4798       if (field == null) {
4799         throw new IllegalArgumentException();
4800       }
4801
4802       switch (field) {
4803       case IP_ADDRESS:
4804         return isSetIpAddress();
4805       case AS_NUMBER:
4806         return isSetAsNumber();
4807       }
4808       throw new IllegalStateException();
4809     }
4810
4811     @Override
4812     public boolean equals(Object that) {
4813       if (that == null)
4814         return false;
4815       if (that instanceof createPeer_args)
4816         return this.equals((createPeer_args)that);
4817       return false;
4818     }
4819
4820     public boolean equals(createPeer_args that) {
4821       if (that == null)
4822         return false;
4823
4824       boolean this_present_ipAddress = true && this.isSetIpAddress();
4825       boolean that_present_ipAddress = true && that.isSetIpAddress();
4826       if (this_present_ipAddress || that_present_ipAddress) {
4827         if (!(this_present_ipAddress && that_present_ipAddress))
4828           return false;
4829         if (!this.ipAddress.equals(that.ipAddress))
4830           return false;
4831       }
4832
4833       boolean this_present_asNumber = true;
4834       boolean that_present_asNumber = true;
4835       if (this_present_asNumber || that_present_asNumber) {
4836         if (!(this_present_asNumber && that_present_asNumber))
4837           return false;
4838         if (this.asNumber != that.asNumber)
4839           return false;
4840       }
4841
4842       return true;
4843     }
4844
4845     @Override
4846     public int hashCode() {
4847       return 0;
4848     }
4849
4850     @Override
4851     public int compareTo(createPeer_args other) {
4852       if (!getClass().equals(other.getClass())) {
4853         return getClass().getName().compareTo(other.getClass().getName());
4854       }
4855
4856       int lastComparison = 0;
4857
4858       lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
4859       if (lastComparison != 0) {
4860         return lastComparison;
4861       }
4862       if (isSetIpAddress()) {
4863         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
4864         if (lastComparison != 0) {
4865           return lastComparison;
4866         }
4867       }
4868       lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
4869       if (lastComparison != 0) {
4870         return lastComparison;
4871       }
4872       if (isSetAsNumber()) {
4873         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
4874         if (lastComparison != 0) {
4875           return lastComparison;
4876         }
4877       }
4878       return 0;
4879     }
4880
4881     public _Fields fieldForId(int fieldId) {
4882       return _Fields.findByThriftId(fieldId);
4883     }
4884
4885     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4886       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4887     }
4888
4889     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4890       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4891     }
4892
4893     @Override
4894     public String toString() {
4895       StringBuilder sb = new StringBuilder("createPeer_args(");
4896       boolean first = true;
4897
4898       sb.append("ipAddress:");
4899       if (this.ipAddress == null) {
4900         sb.append("null");
4901       } else {
4902         sb.append(this.ipAddress);
4903       }
4904       first = false;
4905       if (!first) sb.append(", ");
4906       sb.append("asNumber:");
4907       sb.append(this.asNumber);
4908       first = false;
4909       sb.append(")");
4910       return sb.toString();
4911     }
4912
4913     public void validate() throws org.apache.thrift.TException {
4914       // check for required fields
4915       // check for sub-struct validity
4916     }
4917
4918     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4919       try {
4920         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4921       } catch (org.apache.thrift.TException te) {
4922         throw new java.io.IOException(te);
4923       }
4924     }
4925
4926     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4927       try {
4928         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4929         __isset_bitfield = 0;
4930         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4931       } catch (org.apache.thrift.TException te) {
4932         throw new java.io.IOException(te);
4933       }
4934     }
4935
4936     private static class createPeer_argsStandardSchemeFactory implements SchemeFactory {
4937       public createPeer_argsStandardScheme getScheme() {
4938         return new createPeer_argsStandardScheme();
4939       }
4940     }
4941
4942     private static class createPeer_argsStandardScheme extends StandardScheme<createPeer_args> {
4943
4944       public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_args struct) throws org.apache.thrift.TException {
4945         org.apache.thrift.protocol.TField schemeField;
4946         iprot.readStructBegin();
4947         while (true)
4948         {
4949           schemeField = iprot.readFieldBegin();
4950           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
4951             break;
4952           }
4953           switch (schemeField.id) {
4954             case 1: // IP_ADDRESS
4955               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
4956                 struct.ipAddress = iprot.readString();
4957                 struct.setIpAddressIsSet(true);
4958               } else { 
4959                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4960               }
4961               break;
4962             case 2: // AS_NUMBER
4963               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4964                 struct.asNumber = iprot.readI32();
4965                 struct.setAsNumberIsSet(true);
4966               } else { 
4967                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4968               }
4969               break;
4970             default:
4971               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4972           }
4973           iprot.readFieldEnd();
4974         }
4975         iprot.readStructEnd();
4976
4977         // check for required fields of primitive type, which can't be checked in the validate method
4978         struct.validate();
4979       }
4980
4981       public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_args struct) throws org.apache.thrift.TException {
4982         struct.validate();
4983
4984         oprot.writeStructBegin(STRUCT_DESC);
4985         if (struct.ipAddress != null) {
4986           oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
4987           oprot.writeString(struct.ipAddress);
4988           oprot.writeFieldEnd();
4989         }
4990         oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
4991         oprot.writeI32(struct.asNumber);
4992         oprot.writeFieldEnd();
4993         oprot.writeFieldStop();
4994         oprot.writeStructEnd();
4995       }
4996
4997     }
4998
4999     private static class createPeer_argsTupleSchemeFactory implements SchemeFactory {
5000       public createPeer_argsTupleScheme getScheme() {
5001         return new createPeer_argsTupleScheme();
5002       }
5003     }
5004
5005     private static class createPeer_argsTupleScheme extends TupleScheme<createPeer_args> {
5006
5007       @Override
5008       public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
5009         TTupleProtocol oprot = (TTupleProtocol) prot;
5010         BitSet optionals = new BitSet();
5011         if (struct.isSetIpAddress()) {
5012           optionals.set(0);
5013         }
5014         if (struct.isSetAsNumber()) {
5015           optionals.set(1);
5016         }
5017         oprot.writeBitSet(optionals, 2);
5018         if (struct.isSetIpAddress()) {
5019           oprot.writeString(struct.ipAddress);
5020         }
5021         if (struct.isSetAsNumber()) {
5022           oprot.writeI32(struct.asNumber);
5023         }
5024       }
5025
5026       @Override
5027       public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
5028         TTupleProtocol iprot = (TTupleProtocol) prot;
5029         BitSet incoming = iprot.readBitSet(2);
5030         if (incoming.get(0)) {
5031           struct.ipAddress = iprot.readString();
5032           struct.setIpAddressIsSet(true);
5033         }
5034         if (incoming.get(1)) {
5035           struct.asNumber = iprot.readI32();
5036           struct.setAsNumberIsSet(true);
5037         }
5038       }
5039     }
5040
5041   }
5042
5043   public static class createPeer_result implements org.apache.thrift.TBase<createPeer_result, createPeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_result>   {
5044     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_result");
5045
5046     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
5047
5048     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5049     static {
5050       schemes.put(StandardScheme.class, new createPeer_resultStandardSchemeFactory());
5051       schemes.put(TupleScheme.class, new createPeer_resultTupleSchemeFactory());
5052     }
5053
5054     public int success; // required
5055
5056     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5057     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5058       SUCCESS((short)0, "success");
5059
5060       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5061
5062       static {
5063         for (_Fields field : EnumSet.allOf(_Fields.class)) {
5064           byName.put(field.getFieldName(), field);
5065         }
5066       }
5067
5068       /**
5069        * Find the _Fields constant that matches fieldId, or null if its not found.
5070        */
5071       public static _Fields findByThriftId(int fieldId) {
5072         switch(fieldId) {
5073           case 0: // SUCCESS
5074             return SUCCESS;
5075           default:
5076             return null;
5077         }
5078       }
5079
5080       /**
5081        * Find the _Fields constant that matches fieldId, throwing an exception
5082        * if it is not found.
5083        */
5084       public static _Fields findByThriftIdOrThrow(int fieldId) {
5085         _Fields fields = findByThriftId(fieldId);
5086         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5087         return fields;
5088       }
5089
5090       /**
5091        * Find the _Fields constant that matches name, or null if its not found.
5092        */
5093       public static _Fields findByName(String name) {
5094         return byName.get(name);
5095       }
5096
5097       private final short _thriftId;
5098       private final String _fieldName;
5099
5100       _Fields(short thriftId, String fieldName) {
5101         _thriftId = thriftId;
5102         _fieldName = fieldName;
5103       }
5104
5105       public short getThriftFieldId() {
5106         return _thriftId;
5107       }
5108
5109       public String getFieldName() {
5110         return _fieldName;
5111       }
5112     }
5113
5114     // isset id assignments
5115     private static final int __SUCCESS_ISSET_ID = 0;
5116     private byte __isset_bitfield = 0;
5117     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5118     static {
5119       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5120       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5121           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
5122       metaDataMap = Collections.unmodifiableMap(tmpMap);
5123       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_result.class, metaDataMap);
5124     }
5125
5126     public createPeer_result() {
5127     }
5128
5129     public createPeer_result(
5130       int success)
5131     {
5132       this();
5133       this.success = success;
5134       setSuccessIsSet(true);
5135     }
5136
5137     /**
5138      * Performs a deep copy on <i>other</i>.
5139      */
5140     public createPeer_result(createPeer_result other) {
5141       __isset_bitfield = other.__isset_bitfield;
5142       this.success = other.success;
5143     }
5144
5145     public createPeer_result deepCopy() {
5146       return new createPeer_result(this);
5147     }
5148
5149     @Override
5150     public void clear() {
5151       setSuccessIsSet(false);
5152       this.success = 0;
5153     }
5154
5155     public int getSuccess() {
5156       return this.success;
5157     }
5158
5159     public createPeer_result setSuccess(int success) {
5160       this.success = success;
5161       setSuccessIsSet(true);
5162       return this;
5163     }
5164
5165     public void unsetSuccess() {
5166       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5167     }
5168
5169     /** Returns true if field success is set (has been assigned a value) and false otherwise */
5170     public boolean isSetSuccess() {
5171       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5172     }
5173
5174     public void setSuccessIsSet(boolean value) {
5175       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
5176     }
5177
5178     public void setFieldValue(_Fields field, Object value) {
5179       switch (field) {
5180       case SUCCESS:
5181         if (value == null) {
5182           unsetSuccess();
5183         } else {
5184           setSuccess((Integer)value);
5185         }
5186         break;
5187
5188       }
5189     }
5190
5191     public Object getFieldValue(_Fields field) {
5192       switch (field) {
5193       case SUCCESS:
5194         return Integer.valueOf(getSuccess());
5195
5196       }
5197       throw new IllegalStateException();
5198     }
5199
5200     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5201     public boolean isSet(_Fields field) {
5202       if (field == null) {
5203         throw new IllegalArgumentException();
5204       }
5205
5206       switch (field) {
5207       case SUCCESS:
5208         return isSetSuccess();
5209       }
5210       throw new IllegalStateException();
5211     }
5212
5213     @Override
5214     public boolean equals(Object that) {
5215       if (that == null)
5216         return false;
5217       if (that instanceof createPeer_result)
5218         return this.equals((createPeer_result)that);
5219       return false;
5220     }
5221
5222     public boolean equals(createPeer_result that) {
5223       if (that == null)
5224         return false;
5225
5226       boolean this_present_success = true;
5227       boolean that_present_success = true;
5228       if (this_present_success || that_present_success) {
5229         if (!(this_present_success && that_present_success))
5230           return false;
5231         if (this.success != that.success)
5232           return false;
5233       }
5234
5235       return true;
5236     }
5237
5238     @Override
5239     public int hashCode() {
5240       return 0;
5241     }
5242
5243     @Override
5244     public int compareTo(createPeer_result other) {
5245       if (!getClass().equals(other.getClass())) {
5246         return getClass().getName().compareTo(other.getClass().getName());
5247       }
5248
5249       int lastComparison = 0;
5250
5251       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5252       if (lastComparison != 0) {
5253         return lastComparison;
5254       }
5255       if (isSetSuccess()) {
5256         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5257         if (lastComparison != 0) {
5258           return lastComparison;
5259         }
5260       }
5261       return 0;
5262     }
5263
5264     public _Fields fieldForId(int fieldId) {
5265       return _Fields.findByThriftId(fieldId);
5266     }
5267
5268     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5269       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5270     }
5271
5272     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5273       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5274       }
5275
5276     @Override
5277     public String toString() {
5278       StringBuilder sb = new StringBuilder("createPeer_result(");
5279       boolean first = true;
5280
5281       sb.append("success:");
5282       sb.append(this.success);
5283       first = false;
5284       sb.append(")");
5285       return sb.toString();
5286     }
5287
5288     public void validate() throws org.apache.thrift.TException {
5289       // check for required fields
5290       // check for sub-struct validity
5291     }
5292
5293     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5294       try {
5295         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5296       } catch (org.apache.thrift.TException te) {
5297         throw new java.io.IOException(te);
5298       }
5299     }
5300
5301     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5302       try {
5303         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5304         __isset_bitfield = 0;
5305         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5306       } catch (org.apache.thrift.TException te) {
5307         throw new java.io.IOException(te);
5308       }
5309     }
5310
5311     private static class createPeer_resultStandardSchemeFactory implements SchemeFactory {
5312       public createPeer_resultStandardScheme getScheme() {
5313         return new createPeer_resultStandardScheme();
5314       }
5315     }
5316
5317     private static class createPeer_resultStandardScheme extends StandardScheme<createPeer_result> {
5318
5319       public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_result struct) throws org.apache.thrift.TException {
5320         org.apache.thrift.protocol.TField schemeField;
5321         iprot.readStructBegin();
5322         while (true)
5323         {
5324           schemeField = iprot.readFieldBegin();
5325           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
5326             break;
5327           }
5328           switch (schemeField.id) {
5329             case 0: // SUCCESS
5330               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
5331                 struct.success = iprot.readI32();
5332                 struct.setSuccessIsSet(true);
5333               } else { 
5334                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5335               }
5336               break;
5337             default:
5338               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5339           }
5340           iprot.readFieldEnd();
5341         }
5342         iprot.readStructEnd();
5343
5344         // check for required fields of primitive type, which can't be checked in the validate method
5345         struct.validate();
5346       }
5347
5348       public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_result struct) throws org.apache.thrift.TException {
5349         struct.validate();
5350
5351         oprot.writeStructBegin(STRUCT_DESC);
5352         if (struct.isSetSuccess()) {
5353           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5354           oprot.writeI32(struct.success);
5355           oprot.writeFieldEnd();
5356         }
5357         oprot.writeFieldStop();
5358         oprot.writeStructEnd();
5359       }
5360
5361     }
5362
5363     private static class createPeer_resultTupleSchemeFactory implements SchemeFactory {
5364       public createPeer_resultTupleScheme getScheme() {
5365         return new createPeer_resultTupleScheme();
5366       }
5367     }
5368
5369     private static class createPeer_resultTupleScheme extends TupleScheme<createPeer_result> {
5370
5371       @Override
5372       public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
5373         TTupleProtocol oprot = (TTupleProtocol) prot;
5374         BitSet optionals = new BitSet();
5375         if (struct.isSetSuccess()) {
5376           optionals.set(0);
5377         }
5378         oprot.writeBitSet(optionals, 1);
5379         if (struct.isSetSuccess()) {
5380           oprot.writeI32(struct.success);
5381         }
5382       }
5383
5384       @Override
5385       public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
5386         TTupleProtocol iprot = (TTupleProtocol) prot;
5387         BitSet incoming = iprot.readBitSet(1);
5388         if (incoming.get(0)) {
5389           struct.success = iprot.readI32();
5390           struct.setSuccessIsSet(true);
5391         }
5392       }
5393     }
5394
5395   }
5396
5397   public static class deletePeer_args implements org.apache.thrift.TBase<deletePeer_args, deletePeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_args>   {
5398     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_args");
5399
5400     private static final org.apache.thrift.protocol.TField IP_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("ipAddress", org.apache.thrift.protocol.TType.STRING, (short)1);
5401
5402     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5403     static {
5404       schemes.put(StandardScheme.class, new deletePeer_argsStandardSchemeFactory());
5405       schemes.put(TupleScheme.class, new deletePeer_argsTupleSchemeFactory());
5406     }
5407
5408     public String ipAddress; // required
5409
5410     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5411     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5412       IP_ADDRESS((short)1, "ipAddress");
5413
5414       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5415
5416       static {
5417         for (_Fields field : EnumSet.allOf(_Fields.class)) {
5418           byName.put(field.getFieldName(), field);
5419         }
5420       }
5421
5422       /**
5423        * Find the _Fields constant that matches fieldId, or null if its not found.
5424        */
5425       public static _Fields findByThriftId(int fieldId) {
5426         switch(fieldId) {
5427           case 1: // IP_ADDRESS
5428             return IP_ADDRESS;
5429           default:
5430             return null;
5431         }
5432       }
5433
5434       /**
5435        * Find the _Fields constant that matches fieldId, throwing an exception
5436        * if it is not found.
5437        */
5438       public static _Fields findByThriftIdOrThrow(int fieldId) {
5439         _Fields fields = findByThriftId(fieldId);
5440         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5441         return fields;
5442       }
5443
5444       /**
5445        * Find the _Fields constant that matches name, or null if its not found.
5446        */
5447       public static _Fields findByName(String name) {
5448         return byName.get(name);
5449       }
5450
5451       private final short _thriftId;
5452       private final String _fieldName;
5453
5454       _Fields(short thriftId, String fieldName) {
5455         _thriftId = thriftId;
5456         _fieldName = fieldName;
5457       }
5458
5459       public short getThriftFieldId() {
5460         return _thriftId;
5461       }
5462
5463       public String getFieldName() {
5464         return _fieldName;
5465       }
5466     }
5467
5468     // isset id assignments
5469     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5470     static {
5471       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5472       tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5473           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5474       metaDataMap = Collections.unmodifiableMap(tmpMap);
5475       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_args.class, metaDataMap);
5476     }
5477
5478     public deletePeer_args() {
5479     }
5480
5481     public deletePeer_args(
5482       String ipAddress)
5483     {
5484       this();
5485       this.ipAddress = ipAddress;
5486     }
5487
5488     /**
5489      * Performs a deep copy on <i>other</i>.
5490      */
5491     public deletePeer_args(deletePeer_args other) {
5492       if (other.isSetIpAddress()) {
5493         this.ipAddress = other.ipAddress;
5494       }
5495     }
5496
5497     public deletePeer_args deepCopy() {
5498       return new deletePeer_args(this);
5499     }
5500
5501     @Override
5502     public void clear() {
5503       this.ipAddress = null;
5504     }
5505
5506     public String getIpAddress() {
5507       return this.ipAddress;
5508     }
5509
5510     public deletePeer_args setIpAddress(String ipAddress) {
5511       this.ipAddress = ipAddress;
5512       return this;
5513     }
5514
5515     public void unsetIpAddress() {
5516       this.ipAddress = null;
5517     }
5518
5519     /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
5520     public boolean isSetIpAddress() {
5521       return this.ipAddress != null;
5522     }
5523
5524     public void setIpAddressIsSet(boolean value) {
5525       if (!value) {
5526         this.ipAddress = null;
5527       }
5528     }
5529
5530     public void setFieldValue(_Fields field, Object value) {
5531       switch (field) {
5532       case IP_ADDRESS:
5533         if (value == null) {
5534           unsetIpAddress();
5535         } else {
5536           setIpAddress((String)value);
5537         }
5538         break;
5539
5540       }
5541     }
5542
5543     public Object getFieldValue(_Fields field) {
5544       switch (field) {
5545       case IP_ADDRESS:
5546         return getIpAddress();
5547
5548       }
5549       throw new IllegalStateException();
5550     }
5551
5552     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5553     public boolean isSet(_Fields field) {
5554       if (field == null) {
5555         throw new IllegalArgumentException();
5556       }
5557
5558       switch (field) {
5559       case IP_ADDRESS:
5560         return isSetIpAddress();
5561       }
5562       throw new IllegalStateException();
5563     }
5564
5565     @Override
5566     public boolean equals(Object that) {
5567       if (that == null)
5568         return false;
5569       if (that instanceof deletePeer_args)
5570         return this.equals((deletePeer_args)that);
5571       return false;
5572     }
5573
5574     public boolean equals(deletePeer_args that) {
5575       if (that == null)
5576         return false;
5577
5578       boolean this_present_ipAddress = true && this.isSetIpAddress();
5579       boolean that_present_ipAddress = true && that.isSetIpAddress();
5580       if (this_present_ipAddress || that_present_ipAddress) {
5581         if (!(this_present_ipAddress && that_present_ipAddress))
5582           return false;
5583         if (!this.ipAddress.equals(that.ipAddress))
5584           return false;
5585       }
5586
5587       return true;
5588     }
5589
5590     @Override
5591     public int hashCode() {
5592       return 0;
5593     }
5594
5595     @Override
5596     public int compareTo(deletePeer_args other) {
5597       if (!getClass().equals(other.getClass())) {
5598         return getClass().getName().compareTo(other.getClass().getName());
5599       }
5600
5601       int lastComparison = 0;
5602
5603       lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
5604       if (lastComparison != 0) {
5605         return lastComparison;
5606       }
5607       if (isSetIpAddress()) {
5608         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
5609         if (lastComparison != 0) {
5610           return lastComparison;
5611         }
5612       }
5613       return 0;
5614     }
5615
5616     public _Fields fieldForId(int fieldId) {
5617       return _Fields.findByThriftId(fieldId);
5618     }
5619
5620     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5621       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5622     }
5623
5624     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5625       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5626     }
5627
5628     @Override
5629     public String toString() {
5630       StringBuilder sb = new StringBuilder("deletePeer_args(");
5631       boolean first = true;
5632
5633       sb.append("ipAddress:");
5634       if (this.ipAddress == null) {
5635         sb.append("null");
5636       } else {
5637         sb.append(this.ipAddress);
5638       }
5639       first = false;
5640       sb.append(")");
5641       return sb.toString();
5642     }
5643
5644     public void validate() throws org.apache.thrift.TException {
5645       // check for required fields
5646       // check for sub-struct validity
5647     }
5648
5649     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5650       try {
5651         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5652       } catch (org.apache.thrift.TException te) {
5653         throw new java.io.IOException(te);
5654       }
5655     }
5656
5657     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5658       try {
5659         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5660       } catch (org.apache.thrift.TException te) {
5661         throw new java.io.IOException(te);
5662       }
5663     }
5664
5665     private static class deletePeer_argsStandardSchemeFactory implements SchemeFactory {
5666       public deletePeer_argsStandardScheme getScheme() {
5667         return new deletePeer_argsStandardScheme();
5668       }
5669     }
5670
5671     private static class deletePeer_argsStandardScheme extends StandardScheme<deletePeer_args> {
5672
5673       public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_args struct) throws org.apache.thrift.TException {
5674         org.apache.thrift.protocol.TField schemeField;
5675         iprot.readStructBegin();
5676         while (true)
5677         {
5678           schemeField = iprot.readFieldBegin();
5679           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
5680             break;
5681           }
5682           switch (schemeField.id) {
5683             case 1: // IP_ADDRESS
5684               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
5685                 struct.ipAddress = iprot.readString();
5686                 struct.setIpAddressIsSet(true);
5687               } else { 
5688                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5689               }
5690               break;
5691             default:
5692               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5693           }
5694           iprot.readFieldEnd();
5695         }
5696         iprot.readStructEnd();
5697
5698         // check for required fields of primitive type, which can't be checked in the validate method
5699         struct.validate();
5700       }
5701
5702       public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_args struct) throws org.apache.thrift.TException {
5703         struct.validate();
5704
5705         oprot.writeStructBegin(STRUCT_DESC);
5706         if (struct.ipAddress != null) {
5707           oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
5708           oprot.writeString(struct.ipAddress);
5709           oprot.writeFieldEnd();
5710         }
5711         oprot.writeFieldStop();
5712         oprot.writeStructEnd();
5713       }
5714
5715     }
5716
5717     private static class deletePeer_argsTupleSchemeFactory implements SchemeFactory {
5718       public deletePeer_argsTupleScheme getScheme() {
5719         return new deletePeer_argsTupleScheme();
5720       }
5721     }
5722
5723     private static class deletePeer_argsTupleScheme extends TupleScheme<deletePeer_args> {
5724
5725       @Override
5726       public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
5727         TTupleProtocol oprot = (TTupleProtocol) prot;
5728         BitSet optionals = new BitSet();
5729         if (struct.isSetIpAddress()) {
5730           optionals.set(0);
5731         }
5732         oprot.writeBitSet(optionals, 1);
5733         if (struct.isSetIpAddress()) {
5734           oprot.writeString(struct.ipAddress);
5735         }
5736       }
5737
5738       @Override
5739       public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
5740         TTupleProtocol iprot = (TTupleProtocol) prot;
5741         BitSet incoming = iprot.readBitSet(1);
5742         if (incoming.get(0)) {
5743           struct.ipAddress = iprot.readString();
5744           struct.setIpAddressIsSet(true);
5745         }
5746       }
5747     }
5748
5749   }
5750
5751   public static class deletePeer_result implements org.apache.thrift.TBase<deletePeer_result, deletePeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_result>   {
5752     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_result");
5753
5754     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
5755
5756     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5757     static {
5758       schemes.put(StandardScheme.class, new deletePeer_resultStandardSchemeFactory());
5759       schemes.put(TupleScheme.class, new deletePeer_resultTupleSchemeFactory());
5760     }
5761
5762     public int success; // required
5763
5764     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5765     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5766       SUCCESS((short)0, "success");
5767
5768       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5769
5770       static {
5771         for (_Fields field : EnumSet.allOf(_Fields.class)) {
5772           byName.put(field.getFieldName(), field);
5773         }
5774       }
5775
5776       /**
5777        * Find the _Fields constant that matches fieldId, or null if its not found.
5778        */
5779       public static _Fields findByThriftId(int fieldId) {
5780         switch(fieldId) {
5781           case 0: // SUCCESS
5782             return SUCCESS;
5783           default:
5784             return null;
5785         }
5786       }
5787
5788       /**
5789        * Find the _Fields constant that matches fieldId, throwing an exception
5790        * if it is not found.
5791        */
5792       public static _Fields findByThriftIdOrThrow(int fieldId) {
5793         _Fields fields = findByThriftId(fieldId);
5794         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5795         return fields;
5796       }
5797
5798       /**
5799        * Find the _Fields constant that matches name, or null if its not found.
5800        */
5801       public static _Fields findByName(String name) {
5802         return byName.get(name);
5803       }
5804
5805       private final short _thriftId;
5806       private final String _fieldName;
5807
5808       _Fields(short thriftId, String fieldName) {
5809         _thriftId = thriftId;
5810         _fieldName = fieldName;
5811       }
5812
5813       public short getThriftFieldId() {
5814         return _thriftId;
5815       }
5816
5817       public String getFieldName() {
5818         return _fieldName;
5819       }
5820     }
5821
5822     // isset id assignments
5823     private static final int __SUCCESS_ISSET_ID = 0;
5824     private byte __isset_bitfield = 0;
5825     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5826     static {
5827       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5828       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5829           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
5830       metaDataMap = Collections.unmodifiableMap(tmpMap);
5831       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_result.class, metaDataMap);
5832     }
5833
5834     public deletePeer_result() {
5835     }
5836
5837     public deletePeer_result(
5838       int success)
5839     {
5840       this();
5841       this.success = success;
5842       setSuccessIsSet(true);
5843     }
5844
5845     /**
5846      * Performs a deep copy on <i>other</i>.
5847      */
5848     public deletePeer_result(deletePeer_result other) {
5849       __isset_bitfield = other.__isset_bitfield;
5850       this.success = other.success;
5851     }
5852
5853     public deletePeer_result deepCopy() {
5854       return new deletePeer_result(this);
5855     }
5856
5857     @Override
5858     public void clear() {
5859       setSuccessIsSet(false);
5860       this.success = 0;
5861     }
5862
5863     public int getSuccess() {
5864       return this.success;
5865     }
5866
5867     public deletePeer_result setSuccess(int success) {
5868       this.success = success;
5869       setSuccessIsSet(true);
5870       return this;
5871     }
5872
5873     public void unsetSuccess() {
5874       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5875     }
5876
5877     /** Returns true if field success is set (has been assigned a value) and false otherwise */
5878     public boolean isSetSuccess() {
5879       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5880     }
5881
5882     public void setSuccessIsSet(boolean value) {
5883       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
5884     }
5885
5886     public void setFieldValue(_Fields field, Object value) {
5887       switch (field) {
5888       case SUCCESS:
5889         if (value == null) {
5890           unsetSuccess();
5891         } else {
5892           setSuccess((Integer)value);
5893         }
5894         break;
5895
5896       }
5897     }
5898
5899     public Object getFieldValue(_Fields field) {
5900       switch (field) {
5901       case SUCCESS:
5902         return Integer.valueOf(getSuccess());
5903
5904       }
5905       throw new IllegalStateException();
5906     }
5907
5908     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5909     public boolean isSet(_Fields field) {
5910       if (field == null) {
5911         throw new IllegalArgumentException();
5912       }
5913
5914       switch (field) {
5915       case SUCCESS:
5916         return isSetSuccess();
5917       }
5918       throw new IllegalStateException();
5919     }
5920
5921     @Override
5922     public boolean equals(Object that) {
5923       if (that == null)
5924         return false;
5925       if (that instanceof deletePeer_result)
5926         return this.equals((deletePeer_result)that);
5927       return false;
5928     }
5929
5930     public boolean equals(deletePeer_result that) {
5931       if (that == null)
5932         return false;
5933
5934       boolean this_present_success = true;
5935       boolean that_present_success = true;
5936       if (this_present_success || that_present_success) {
5937         if (!(this_present_success && that_present_success))
5938           return false;
5939         if (this.success != that.success)
5940           return false;
5941       }
5942
5943       return true;
5944     }
5945
5946     @Override
5947     public int hashCode() {
5948       return 0;
5949     }
5950
5951     @Override
5952     public int compareTo(deletePeer_result other) {
5953       if (!getClass().equals(other.getClass())) {
5954         return getClass().getName().compareTo(other.getClass().getName());
5955       }
5956
5957       int lastComparison = 0;
5958
5959       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5960       if (lastComparison != 0) {
5961         return lastComparison;
5962       }
5963       if (isSetSuccess()) {
5964         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5965         if (lastComparison != 0) {
5966           return lastComparison;
5967         }
5968       }
5969       return 0;
5970     }
5971
5972     public _Fields fieldForId(int fieldId) {
5973       return _Fields.findByThriftId(fieldId);
5974     }
5975
5976     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5977       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5978     }
5979
5980     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5981       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5982       }
5983
5984     @Override
5985     public String toString() {
5986       StringBuilder sb = new StringBuilder("deletePeer_result(");
5987       boolean first = true;
5988
5989       sb.append("success:");
5990       sb.append(this.success);
5991       first = false;
5992       sb.append(")");
5993       return sb.toString();
5994     }
5995
5996     public void validate() throws org.apache.thrift.TException {
5997       // check for required fields
5998       // check for sub-struct validity
5999     }
6000
6001     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6002       try {
6003         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6004       } catch (org.apache.thrift.TException te) {
6005         throw new java.io.IOException(te);
6006       }
6007     }
6008
6009     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6010       try {
6011         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6012         __isset_bitfield = 0;
6013         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6014       } catch (org.apache.thrift.TException te) {
6015         throw new java.io.IOException(te);
6016       }
6017     }
6018
6019     private static class deletePeer_resultStandardSchemeFactory implements SchemeFactory {
6020       public deletePeer_resultStandardScheme getScheme() {
6021         return new deletePeer_resultStandardScheme();
6022       }
6023     }
6024
6025     private static class deletePeer_resultStandardScheme extends StandardScheme<deletePeer_result> {
6026
6027       public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_result struct) throws org.apache.thrift.TException {
6028         org.apache.thrift.protocol.TField schemeField;
6029         iprot.readStructBegin();
6030         while (true)
6031         {
6032           schemeField = iprot.readFieldBegin();
6033           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
6034             break;
6035           }
6036           switch (schemeField.id) {
6037             case 0: // SUCCESS
6038               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
6039                 struct.success = iprot.readI32();
6040                 struct.setSuccessIsSet(true);
6041               } else { 
6042                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6043               }
6044               break;
6045             default:
6046               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6047           }
6048           iprot.readFieldEnd();
6049         }
6050         iprot.readStructEnd();
6051
6052         // check for required fields of primitive type, which can't be checked in the validate method
6053         struct.validate();
6054       }
6055
6056       public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_result struct) throws org.apache.thrift.TException {
6057         struct.validate();
6058
6059         oprot.writeStructBegin(STRUCT_DESC);
6060         if (struct.isSetSuccess()) {
6061           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6062           oprot.writeI32(struct.success);
6063           oprot.writeFieldEnd();
6064         }
6065         oprot.writeFieldStop();
6066         oprot.writeStructEnd();
6067       }
6068
6069     }
6070
6071     private static class deletePeer_resultTupleSchemeFactory implements SchemeFactory {
6072       public deletePeer_resultTupleScheme getScheme() {
6073         return new deletePeer_resultTupleScheme();
6074       }
6075     }
6076
6077     private static class deletePeer_resultTupleScheme extends TupleScheme<deletePeer_result> {
6078
6079       @Override
6080       public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
6081         TTupleProtocol oprot = (TTupleProtocol) prot;
6082         BitSet optionals = new BitSet();
6083         if (struct.isSetSuccess()) {
6084           optionals.set(0);
6085         }
6086         oprot.writeBitSet(optionals, 1);
6087         if (struct.isSetSuccess()) {
6088           oprot.writeI32(struct.success);
6089         }
6090       }
6091
6092       @Override
6093       public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
6094         TTupleProtocol iprot = (TTupleProtocol) prot;
6095         BitSet incoming = iprot.readBitSet(1);
6096         if (incoming.get(0)) {
6097           struct.success = iprot.readI32();
6098           struct.setSuccessIsSet(true);
6099         }
6100       }
6101     }
6102
6103   }
6104
6105   public static class addVrf_args implements org.apache.thrift.TBase<addVrf_args, addVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_args>   {
6106     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_args");
6107
6108     private static final org.apache.thrift.protocol.TField RD_FIELD_DESC = new org.apache.thrift.protocol.TField("rd", org.apache.thrift.protocol.TType.STRING, (short)1);
6109     private static final org.apache.thrift.protocol.TField IRTS_FIELD_DESC = new org.apache.thrift.protocol.TField("irts", org.apache.thrift.protocol.TType.LIST, (short)2);
6110     private static final org.apache.thrift.protocol.TField ERTS_FIELD_DESC = new org.apache.thrift.protocol.TField("erts", org.apache.thrift.protocol.TType.LIST, (short)3);
6111
6112     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6113     static {
6114       schemes.put(StandardScheme.class, new addVrf_argsStandardSchemeFactory());
6115       schemes.put(TupleScheme.class, new addVrf_argsTupleSchemeFactory());
6116     }
6117
6118     public String rd; // required
6119     public List<String> irts; // required
6120     public List<String> erts; // required
6121
6122     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6123     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6124       RD((short)1, "rd"),
6125       IRTS((short)2, "irts"),
6126       ERTS((short)3, "erts");
6127
6128       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6129
6130       static {
6131         for (_Fields field : EnumSet.allOf(_Fields.class)) {
6132           byName.put(field.getFieldName(), field);
6133         }
6134       }
6135
6136       /**
6137        * Find the _Fields constant that matches fieldId, or null if its not found.
6138        */
6139       public static _Fields findByThriftId(int fieldId) {
6140         switch(fieldId) {
6141           case 1: // RD
6142             return RD;
6143           case 2: // IRTS
6144             return IRTS;
6145           case 3: // ERTS
6146             return ERTS;
6147           default:
6148             return null;
6149         }
6150       }
6151
6152       /**
6153        * Find the _Fields constant that matches fieldId, throwing an exception
6154        * if it is not found.
6155        */
6156       public static _Fields findByThriftIdOrThrow(int fieldId) {
6157         _Fields fields = findByThriftId(fieldId);
6158         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6159         return fields;
6160       }
6161
6162       /**
6163        * Find the _Fields constant that matches name, or null if its not found.
6164        */
6165       public static _Fields findByName(String name) {
6166         return byName.get(name);
6167       }
6168
6169       private final short _thriftId;
6170       private final String _fieldName;
6171
6172       _Fields(short thriftId, String fieldName) {
6173         _thriftId = thriftId;
6174         _fieldName = fieldName;
6175       }
6176
6177       public short getThriftFieldId() {
6178         return _thriftId;
6179       }
6180
6181       public String getFieldName() {
6182         return _fieldName;
6183       }
6184     }
6185
6186     // isset id assignments
6187     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6188     static {
6189       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6190       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6191           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6192       tmpMap.put(_Fields.IRTS, new org.apache.thrift.meta_data.FieldMetaData("irts", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6193           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6194               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
6195       tmpMap.put(_Fields.ERTS, new org.apache.thrift.meta_data.FieldMetaData("erts", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6196           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6197               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
6198       metaDataMap = Collections.unmodifiableMap(tmpMap);
6199       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_args.class, metaDataMap);
6200     }
6201
6202     public addVrf_args() {
6203     }
6204
6205     public addVrf_args(
6206       String rd,
6207       List<String> irts,
6208       List<String> erts)
6209     {
6210       this();
6211       this.rd = rd;
6212       this.irts = irts;
6213       this.erts = erts;
6214     }
6215
6216     /**
6217      * Performs a deep copy on <i>other</i>.
6218      */
6219     public addVrf_args(addVrf_args other) {
6220       if (other.isSetRd()) {
6221         this.rd = other.rd;
6222       }
6223       if (other.isSetIrts()) {
6224         List<String> __this__irts = new ArrayList<String>(other.irts);
6225         this.irts = __this__irts;
6226       }
6227       if (other.isSetErts()) {
6228         List<String> __this__erts = new ArrayList<String>(other.erts);
6229         this.erts = __this__erts;
6230       }
6231     }
6232
6233     public addVrf_args deepCopy() {
6234       return new addVrf_args(this);
6235     }
6236
6237     @Override
6238     public void clear() {
6239       this.rd = null;
6240       this.irts = null;
6241       this.erts = null;
6242     }
6243
6244     public String getRd() {
6245       return this.rd;
6246     }
6247
6248     public addVrf_args setRd(String rd) {
6249       this.rd = rd;
6250       return this;
6251     }
6252
6253     public void unsetRd() {
6254       this.rd = null;
6255     }
6256
6257     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
6258     public boolean isSetRd() {
6259       return this.rd != null;
6260     }
6261
6262     public void setRdIsSet(boolean value) {
6263       if (!value) {
6264         this.rd = null;
6265       }
6266     }
6267
6268     public int getIrtsSize() {
6269       return (this.irts == null) ? 0 : this.irts.size();
6270     }
6271
6272     public java.util.Iterator<String> getIrtsIterator() {
6273       return (this.irts == null) ? null : this.irts.iterator();
6274     }
6275
6276     public void addToIrts(String elem) {
6277       if (this.irts == null) {
6278         this.irts = new ArrayList<String>();
6279       }
6280       this.irts.add(elem);
6281     }
6282
6283     public List<String> getIrts() {
6284       return this.irts;
6285     }
6286
6287     public addVrf_args setIrts(List<String> irts) {
6288       this.irts = irts;
6289       return this;
6290     }
6291
6292     public void unsetIrts() {
6293       this.irts = null;
6294     }
6295
6296     /** Returns true if field irts is set (has been assigned a value) and false otherwise */
6297     public boolean isSetIrts() {
6298       return this.irts != null;
6299     }
6300
6301     public void setIrtsIsSet(boolean value) {
6302       if (!value) {
6303         this.irts = null;
6304       }
6305     }
6306
6307     public int getErtsSize() {
6308       return (this.erts == null) ? 0 : this.erts.size();
6309     }
6310
6311     public java.util.Iterator<String> getErtsIterator() {
6312       return (this.erts == null) ? null : this.erts.iterator();
6313     }
6314
6315     public void addToErts(String elem) {
6316       if (this.erts == null) {
6317         this.erts = new ArrayList<String>();
6318       }
6319       this.erts.add(elem);
6320     }
6321
6322     public List<String> getErts() {
6323       return this.erts;
6324     }
6325
6326     public addVrf_args setErts(List<String> erts) {
6327       this.erts = erts;
6328       return this;
6329     }
6330
6331     public void unsetErts() {
6332       this.erts = null;
6333     }
6334
6335     /** Returns true if field erts is set (has been assigned a value) and false otherwise */
6336     public boolean isSetErts() {
6337       return this.erts != null;
6338     }
6339
6340     public void setErtsIsSet(boolean value) {
6341       if (!value) {
6342         this.erts = null;
6343       }
6344     }
6345
6346     public void setFieldValue(_Fields field, Object value) {
6347       switch (field) {
6348       case RD:
6349         if (value == null) {
6350           unsetRd();
6351         } else {
6352           setRd((String)value);
6353         }
6354         break;
6355
6356       case IRTS:
6357         if (value == null) {
6358           unsetIrts();
6359         } else {
6360           setIrts((List<String>)value);
6361         }
6362         break;
6363
6364       case ERTS:
6365         if (value == null) {
6366           unsetErts();
6367         } else {
6368           setErts((List<String>)value);
6369         }
6370         break;
6371
6372       }
6373     }
6374
6375     public Object getFieldValue(_Fields field) {
6376       switch (field) {
6377       case RD:
6378         return getRd();
6379
6380       case IRTS:
6381         return getIrts();
6382
6383       case ERTS:
6384         return getErts();
6385
6386       }
6387       throw new IllegalStateException();
6388     }
6389
6390     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6391     public boolean isSet(_Fields field) {
6392       if (field == null) {
6393         throw new IllegalArgumentException();
6394       }
6395
6396       switch (field) {
6397       case RD:
6398         return isSetRd();
6399       case IRTS:
6400         return isSetIrts();
6401       case ERTS:
6402         return isSetErts();
6403       }
6404       throw new IllegalStateException();
6405     }
6406
6407     @Override
6408     public boolean equals(Object that) {
6409       if (that == null)
6410         return false;
6411       if (that instanceof addVrf_args)
6412         return this.equals((addVrf_args)that);
6413       return false;
6414     }
6415
6416     public boolean equals(addVrf_args that) {
6417       if (that == null)
6418         return false;
6419
6420       boolean this_present_rd = true && this.isSetRd();
6421       boolean that_present_rd = true && that.isSetRd();
6422       if (this_present_rd || that_present_rd) {
6423         if (!(this_present_rd && that_present_rd))
6424           return false;
6425         if (!this.rd.equals(that.rd))
6426           return false;
6427       }
6428
6429       boolean this_present_irts = true && this.isSetIrts();
6430       boolean that_present_irts = true && that.isSetIrts();
6431       if (this_present_irts || that_present_irts) {
6432         if (!(this_present_irts && that_present_irts))
6433           return false;
6434         if (!this.irts.equals(that.irts))
6435           return false;
6436       }
6437
6438       boolean this_present_erts = true && this.isSetErts();
6439       boolean that_present_erts = true && that.isSetErts();
6440       if (this_present_erts || that_present_erts) {
6441         if (!(this_present_erts && that_present_erts))
6442           return false;
6443         if (!this.erts.equals(that.erts))
6444           return false;
6445       }
6446
6447       return true;
6448     }
6449
6450     @Override
6451     public int hashCode() {
6452       return 0;
6453     }
6454
6455     @Override
6456     public int compareTo(addVrf_args other) {
6457       if (!getClass().equals(other.getClass())) {
6458         return getClass().getName().compareTo(other.getClass().getName());
6459       }
6460
6461       int lastComparison = 0;
6462
6463       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
6464       if (lastComparison != 0) {
6465         return lastComparison;
6466       }
6467       if (isSetRd()) {
6468         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
6469         if (lastComparison != 0) {
6470           return lastComparison;
6471         }
6472       }
6473       lastComparison = Boolean.valueOf(isSetIrts()).compareTo(other.isSetIrts());
6474       if (lastComparison != 0) {
6475         return lastComparison;
6476       }
6477       if (isSetIrts()) {
6478         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.irts, other.irts);
6479         if (lastComparison != 0) {
6480           return lastComparison;
6481         }
6482       }
6483       lastComparison = Boolean.valueOf(isSetErts()).compareTo(other.isSetErts());
6484       if (lastComparison != 0) {
6485         return lastComparison;
6486       }
6487       if (isSetErts()) {
6488         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.erts, other.erts);
6489         if (lastComparison != 0) {
6490           return lastComparison;
6491         }
6492       }
6493       return 0;
6494     }
6495
6496     public _Fields fieldForId(int fieldId) {
6497       return _Fields.findByThriftId(fieldId);
6498     }
6499
6500     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6501       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6502     }
6503
6504     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6505       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6506     }
6507
6508     @Override
6509     public String toString() {
6510       StringBuilder sb = new StringBuilder("addVrf_args(");
6511       boolean first = true;
6512
6513       sb.append("rd:");
6514       if (this.rd == null) {
6515         sb.append("null");
6516       } else {
6517         sb.append(this.rd);
6518       }
6519       first = false;
6520       if (!first) sb.append(", ");
6521       sb.append("irts:");
6522       if (this.irts == null) {
6523         sb.append("null");
6524       } else {
6525         sb.append(this.irts);
6526       }
6527       first = false;
6528       if (!first) sb.append(", ");
6529       sb.append("erts:");
6530       if (this.erts == null) {
6531         sb.append("null");
6532       } else {
6533         sb.append(this.erts);
6534       }
6535       first = false;
6536       sb.append(")");
6537       return sb.toString();
6538     }
6539
6540     public void validate() throws org.apache.thrift.TException {
6541       // check for required fields
6542       // check for sub-struct validity
6543     }
6544
6545     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6546       try {
6547         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6548       } catch (org.apache.thrift.TException te) {
6549         throw new java.io.IOException(te);
6550       }
6551     }
6552
6553     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6554       try {
6555         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6556       } catch (org.apache.thrift.TException te) {
6557         throw new java.io.IOException(te);
6558       }
6559     }
6560
6561     private static class addVrf_argsStandardSchemeFactory implements SchemeFactory {
6562       public addVrf_argsStandardScheme getScheme() {
6563         return new addVrf_argsStandardScheme();
6564       }
6565     }
6566
6567     private static class addVrf_argsStandardScheme extends StandardScheme<addVrf_args> {
6568
6569       public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_args struct) throws org.apache.thrift.TException {
6570         org.apache.thrift.protocol.TField schemeField;
6571         iprot.readStructBegin();
6572         while (true)
6573         {
6574           schemeField = iprot.readFieldBegin();
6575           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
6576             break;
6577           }
6578           switch (schemeField.id) {
6579             case 1: // RD
6580               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
6581                 struct.rd = iprot.readString();
6582                 struct.setRdIsSet(true);
6583               } else { 
6584                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6585               }
6586               break;
6587             case 2: // IRTS
6588               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
6589                 {
6590                   org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
6591                   struct.irts = new ArrayList<String>(_list8.size);
6592                   for (int _i9 = 0; _i9 < _list8.size; ++_i9)
6593                   {
6594                     String _elem10;
6595                     _elem10 = iprot.readString();
6596                     struct.irts.add(_elem10);
6597                   }
6598                   iprot.readListEnd();
6599                 }
6600                 struct.setIrtsIsSet(true);
6601               } else { 
6602                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6603               }
6604               break;
6605             case 3: // ERTS
6606               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
6607                 {
6608                   org.apache.thrift.protocol.TList _list11 = iprot.readListBegin();
6609                   struct.erts = new ArrayList<String>(_list11.size);
6610                   for (int _i12 = 0; _i12 < _list11.size; ++_i12)
6611                   {
6612                     String _elem13;
6613                     _elem13 = iprot.readString();
6614                     struct.erts.add(_elem13);
6615                   }
6616                   iprot.readListEnd();
6617                 }
6618                 struct.setErtsIsSet(true);
6619               } else { 
6620                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6621               }
6622               break;
6623             default:
6624               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6625           }
6626           iprot.readFieldEnd();
6627         }
6628         iprot.readStructEnd();
6629
6630         // check for required fields of primitive type, which can't be checked in the validate method
6631         struct.validate();
6632       }
6633
6634       public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_args struct) throws org.apache.thrift.TException {
6635         struct.validate();
6636
6637         oprot.writeStructBegin(STRUCT_DESC);
6638         if (struct.rd != null) {
6639           oprot.writeFieldBegin(RD_FIELD_DESC);
6640           oprot.writeString(struct.rd);
6641           oprot.writeFieldEnd();
6642         }
6643         if (struct.irts != null) {
6644           oprot.writeFieldBegin(IRTS_FIELD_DESC);
6645           {
6646             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.irts.size()));
6647             for (String _iter14 : struct.irts)
6648             {
6649               oprot.writeString(_iter14);
6650             }
6651             oprot.writeListEnd();
6652           }
6653           oprot.writeFieldEnd();
6654         }
6655         if (struct.erts != null) {
6656           oprot.writeFieldBegin(ERTS_FIELD_DESC);
6657           {
6658             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.erts.size()));
6659             for (String _iter15 : struct.erts)
6660             {
6661               oprot.writeString(_iter15);
6662             }
6663             oprot.writeListEnd();
6664           }
6665           oprot.writeFieldEnd();
6666         }
6667         oprot.writeFieldStop();
6668         oprot.writeStructEnd();
6669       }
6670
6671     }
6672
6673     private static class addVrf_argsTupleSchemeFactory implements SchemeFactory {
6674       public addVrf_argsTupleScheme getScheme() {
6675         return new addVrf_argsTupleScheme();
6676       }
6677     }
6678
6679     private static class addVrf_argsTupleScheme extends TupleScheme<addVrf_args> {
6680
6681       @Override
6682       public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
6683         TTupleProtocol oprot = (TTupleProtocol) prot;
6684         BitSet optionals = new BitSet();
6685         if (struct.isSetRd()) {
6686           optionals.set(0);
6687         }
6688         if (struct.isSetIrts()) {
6689           optionals.set(1);
6690         }
6691         if (struct.isSetErts()) {
6692           optionals.set(2);
6693         }
6694         oprot.writeBitSet(optionals, 3);
6695         if (struct.isSetRd()) {
6696           oprot.writeString(struct.rd);
6697         }
6698         if (struct.isSetIrts()) {
6699           {
6700             oprot.writeI32(struct.irts.size());
6701             for (String _iter16 : struct.irts)
6702             {
6703               oprot.writeString(_iter16);
6704             }
6705           }
6706         }
6707         if (struct.isSetErts()) {
6708           {
6709             oprot.writeI32(struct.erts.size());
6710             for (String _iter17 : struct.erts)
6711             {
6712               oprot.writeString(_iter17);
6713             }
6714           }
6715         }
6716       }
6717
6718       @Override
6719       public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
6720         TTupleProtocol iprot = (TTupleProtocol) prot;
6721         BitSet incoming = iprot.readBitSet(3);
6722         if (incoming.get(0)) {
6723           struct.rd = iprot.readString();
6724           struct.setRdIsSet(true);
6725         }
6726         if (incoming.get(1)) {
6727           {
6728             org.apache.thrift.protocol.TList _list18 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
6729             struct.irts = new ArrayList<String>(_list18.size);
6730             for (int _i19 = 0; _i19 < _list18.size; ++_i19)
6731             {
6732               String _elem20;
6733               _elem20 = iprot.readString();
6734               struct.irts.add(_elem20);
6735             }
6736           }
6737           struct.setIrtsIsSet(true);
6738         }
6739         if (incoming.get(2)) {
6740           {
6741             org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
6742             struct.erts = new ArrayList<String>(_list21.size);
6743             for (int _i22 = 0; _i22 < _list21.size; ++_i22)
6744             {
6745               String _elem23;
6746               _elem23 = iprot.readString();
6747               struct.erts.add(_elem23);
6748             }
6749           }
6750           struct.setErtsIsSet(true);
6751         }
6752       }
6753     }
6754
6755   }
6756
6757   public static class addVrf_result implements org.apache.thrift.TBase<addVrf_result, addVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_result>   {
6758     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_result");
6759
6760     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
6761
6762     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6763     static {
6764       schemes.put(StandardScheme.class, new addVrf_resultStandardSchemeFactory());
6765       schemes.put(TupleScheme.class, new addVrf_resultTupleSchemeFactory());
6766     }
6767
6768     public int success; // required
6769
6770     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6771     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6772       SUCCESS((short)0, "success");
6773
6774       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6775
6776       static {
6777         for (_Fields field : EnumSet.allOf(_Fields.class)) {
6778           byName.put(field.getFieldName(), field);
6779         }
6780       }
6781
6782       /**
6783        * Find the _Fields constant that matches fieldId, or null if its not found.
6784        */
6785       public static _Fields findByThriftId(int fieldId) {
6786         switch(fieldId) {
6787           case 0: // SUCCESS
6788             return SUCCESS;
6789           default:
6790             return null;
6791         }
6792       }
6793
6794       /**
6795        * Find the _Fields constant that matches fieldId, throwing an exception
6796        * if it is not found.
6797        */
6798       public static _Fields findByThriftIdOrThrow(int fieldId) {
6799         _Fields fields = findByThriftId(fieldId);
6800         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6801         return fields;
6802       }
6803
6804       /**
6805        * Find the _Fields constant that matches name, or null if its not found.
6806        */
6807       public static _Fields findByName(String name) {
6808         return byName.get(name);
6809       }
6810
6811       private final short _thriftId;
6812       private final String _fieldName;
6813
6814       _Fields(short thriftId, String fieldName) {
6815         _thriftId = thriftId;
6816         _fieldName = fieldName;
6817       }
6818
6819       public short getThriftFieldId() {
6820         return _thriftId;
6821       }
6822
6823       public String getFieldName() {
6824         return _fieldName;
6825       }
6826     }
6827
6828     // isset id assignments
6829     private static final int __SUCCESS_ISSET_ID = 0;
6830     private byte __isset_bitfield = 0;
6831     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6832     static {
6833       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6834       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6835           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6836       metaDataMap = Collections.unmodifiableMap(tmpMap);
6837       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_result.class, metaDataMap);
6838     }
6839
6840     public addVrf_result() {
6841     }
6842
6843     public addVrf_result(
6844       int success)
6845     {
6846       this();
6847       this.success = success;
6848       setSuccessIsSet(true);
6849     }
6850
6851     /**
6852      * Performs a deep copy on <i>other</i>.
6853      */
6854     public addVrf_result(addVrf_result other) {
6855       __isset_bitfield = other.__isset_bitfield;
6856       this.success = other.success;
6857     }
6858
6859     public addVrf_result deepCopy() {
6860       return new addVrf_result(this);
6861     }
6862
6863     @Override
6864     public void clear() {
6865       setSuccessIsSet(false);
6866       this.success = 0;
6867     }
6868
6869     public int getSuccess() {
6870       return this.success;
6871     }
6872
6873     public addVrf_result setSuccess(int success) {
6874       this.success = success;
6875       setSuccessIsSet(true);
6876       return this;
6877     }
6878
6879     public void unsetSuccess() {
6880       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6881     }
6882
6883     /** Returns true if field success is set (has been assigned a value) and false otherwise */
6884     public boolean isSetSuccess() {
6885       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6886     }
6887
6888     public void setSuccessIsSet(boolean value) {
6889       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
6890     }
6891
6892     public void setFieldValue(_Fields field, Object value) {
6893       switch (field) {
6894       case SUCCESS:
6895         if (value == null) {
6896           unsetSuccess();
6897         } else {
6898           setSuccess((Integer)value);
6899         }
6900         break;
6901
6902       }
6903     }
6904
6905     public Object getFieldValue(_Fields field) {
6906       switch (field) {
6907       case SUCCESS:
6908         return Integer.valueOf(getSuccess());
6909
6910       }
6911       throw new IllegalStateException();
6912     }
6913
6914     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6915     public boolean isSet(_Fields field) {
6916       if (field == null) {
6917         throw new IllegalArgumentException();
6918       }
6919
6920       switch (field) {
6921       case SUCCESS:
6922         return isSetSuccess();
6923       }
6924       throw new IllegalStateException();
6925     }
6926
6927     @Override
6928     public boolean equals(Object that) {
6929       if (that == null)
6930         return false;
6931       if (that instanceof addVrf_result)
6932         return this.equals((addVrf_result)that);
6933       return false;
6934     }
6935
6936     public boolean equals(addVrf_result that) {
6937       if (that == null)
6938         return false;
6939
6940       boolean this_present_success = true;
6941       boolean that_present_success = true;
6942       if (this_present_success || that_present_success) {
6943         if (!(this_present_success && that_present_success))
6944           return false;
6945         if (this.success != that.success)
6946           return false;
6947       }
6948
6949       return true;
6950     }
6951
6952     @Override
6953     public int hashCode() {
6954       return 0;
6955     }
6956
6957     @Override
6958     public int compareTo(addVrf_result other) {
6959       if (!getClass().equals(other.getClass())) {
6960         return getClass().getName().compareTo(other.getClass().getName());
6961       }
6962
6963       int lastComparison = 0;
6964
6965       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
6966       if (lastComparison != 0) {
6967         return lastComparison;
6968       }
6969       if (isSetSuccess()) {
6970         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
6971         if (lastComparison != 0) {
6972           return lastComparison;
6973         }
6974       }
6975       return 0;
6976     }
6977
6978     public _Fields fieldForId(int fieldId) {
6979       return _Fields.findByThriftId(fieldId);
6980     }
6981
6982     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6983       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6984     }
6985
6986     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6987       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6988       }
6989
6990     @Override
6991     public String toString() {
6992       StringBuilder sb = new StringBuilder("addVrf_result(");
6993       boolean first = true;
6994
6995       sb.append("success:");
6996       sb.append(this.success);
6997       first = false;
6998       sb.append(")");
6999       return sb.toString();
7000     }
7001
7002     public void validate() throws org.apache.thrift.TException {
7003       // check for required fields
7004       // check for sub-struct validity
7005     }
7006
7007     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7008       try {
7009         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7010       } catch (org.apache.thrift.TException te) {
7011         throw new java.io.IOException(te);
7012       }
7013     }
7014
7015     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7016       try {
7017         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7018         __isset_bitfield = 0;
7019         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7020       } catch (org.apache.thrift.TException te) {
7021         throw new java.io.IOException(te);
7022       }
7023     }
7024
7025     private static class addVrf_resultStandardSchemeFactory implements SchemeFactory {
7026       public addVrf_resultStandardScheme getScheme() {
7027         return new addVrf_resultStandardScheme();
7028       }
7029     }
7030
7031     private static class addVrf_resultStandardScheme extends StandardScheme<addVrf_result> {
7032
7033       public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_result struct) throws org.apache.thrift.TException {
7034         org.apache.thrift.protocol.TField schemeField;
7035         iprot.readStructBegin();
7036         while (true)
7037         {
7038           schemeField = iprot.readFieldBegin();
7039           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
7040             break;
7041           }
7042           switch (schemeField.id) {
7043             case 0: // SUCCESS
7044               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
7045                 struct.success = iprot.readI32();
7046                 struct.setSuccessIsSet(true);
7047               } else { 
7048                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7049               }
7050               break;
7051             default:
7052               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7053           }
7054           iprot.readFieldEnd();
7055         }
7056         iprot.readStructEnd();
7057
7058         // check for required fields of primitive type, which can't be checked in the validate method
7059         struct.validate();
7060       }
7061
7062       public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_result struct) throws org.apache.thrift.TException {
7063         struct.validate();
7064
7065         oprot.writeStructBegin(STRUCT_DESC);
7066         if (struct.isSetSuccess()) {
7067           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7068           oprot.writeI32(struct.success);
7069           oprot.writeFieldEnd();
7070         }
7071         oprot.writeFieldStop();
7072         oprot.writeStructEnd();
7073       }
7074
7075     }
7076
7077     private static class addVrf_resultTupleSchemeFactory implements SchemeFactory {
7078       public addVrf_resultTupleScheme getScheme() {
7079         return new addVrf_resultTupleScheme();
7080       }
7081     }
7082
7083     private static class addVrf_resultTupleScheme extends TupleScheme<addVrf_result> {
7084
7085       @Override
7086       public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
7087         TTupleProtocol oprot = (TTupleProtocol) prot;
7088         BitSet optionals = new BitSet();
7089         if (struct.isSetSuccess()) {
7090           optionals.set(0);
7091         }
7092         oprot.writeBitSet(optionals, 1);
7093         if (struct.isSetSuccess()) {
7094           oprot.writeI32(struct.success);
7095         }
7096       }
7097
7098       @Override
7099       public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
7100         TTupleProtocol iprot = (TTupleProtocol) prot;
7101         BitSet incoming = iprot.readBitSet(1);
7102         if (incoming.get(0)) {
7103           struct.success = iprot.readI32();
7104           struct.setSuccessIsSet(true);
7105         }
7106       }
7107     }
7108
7109   }
7110
7111   public static class delVrf_args implements org.apache.thrift.TBase<delVrf_args, delVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_args>   {
7112     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_args");
7113
7114     private static final org.apache.thrift.protocol.TField RD_FIELD_DESC = new org.apache.thrift.protocol.TField("rd", org.apache.thrift.protocol.TType.STRING, (short)1);
7115
7116     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7117     static {
7118       schemes.put(StandardScheme.class, new delVrf_argsStandardSchemeFactory());
7119       schemes.put(TupleScheme.class, new delVrf_argsTupleSchemeFactory());
7120     }
7121
7122     public String rd; // required
7123
7124     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7125     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7126       RD((short)1, "rd");
7127
7128       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7129
7130       static {
7131         for (_Fields field : EnumSet.allOf(_Fields.class)) {
7132           byName.put(field.getFieldName(), field);
7133         }
7134       }
7135
7136       /**
7137        * Find the _Fields constant that matches fieldId, or null if its not found.
7138        */
7139       public static _Fields findByThriftId(int fieldId) {
7140         switch(fieldId) {
7141           case 1: // RD
7142             return RD;
7143           default:
7144             return null;
7145         }
7146       }
7147
7148       /**
7149        * Find the _Fields constant that matches fieldId, throwing an exception
7150        * if it is not found.
7151        */
7152       public static _Fields findByThriftIdOrThrow(int fieldId) {
7153         _Fields fields = findByThriftId(fieldId);
7154         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7155         return fields;
7156       }
7157
7158       /**
7159        * Find the _Fields constant that matches name, or null if its not found.
7160        */
7161       public static _Fields findByName(String name) {
7162         return byName.get(name);
7163       }
7164
7165       private final short _thriftId;
7166       private final String _fieldName;
7167
7168       _Fields(short thriftId, String fieldName) {
7169         _thriftId = thriftId;
7170         _fieldName = fieldName;
7171       }
7172
7173       public short getThriftFieldId() {
7174         return _thriftId;
7175       }
7176
7177       public String getFieldName() {
7178         return _fieldName;
7179       }
7180     }
7181
7182     // isset id assignments
7183     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7184     static {
7185       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7186       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7187           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7188       metaDataMap = Collections.unmodifiableMap(tmpMap);
7189       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_args.class, metaDataMap);
7190     }
7191
7192     public delVrf_args() {
7193     }
7194
7195     public delVrf_args(
7196       String rd)
7197     {
7198       this();
7199       this.rd = rd;
7200     }
7201
7202     /**
7203      * Performs a deep copy on <i>other</i>.
7204      */
7205     public delVrf_args(delVrf_args other) {
7206       if (other.isSetRd()) {
7207         this.rd = other.rd;
7208       }
7209     }
7210
7211     public delVrf_args deepCopy() {
7212       return new delVrf_args(this);
7213     }
7214
7215     @Override
7216     public void clear() {
7217       this.rd = null;
7218     }
7219
7220     public String getRd() {
7221       return this.rd;
7222     }
7223
7224     public delVrf_args setRd(String rd) {
7225       this.rd = rd;
7226       return this;
7227     }
7228
7229     public void unsetRd() {
7230       this.rd = null;
7231     }
7232
7233     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
7234     public boolean isSetRd() {
7235       return this.rd != null;
7236     }
7237
7238     public void setRdIsSet(boolean value) {
7239       if (!value) {
7240         this.rd = null;
7241       }
7242     }
7243
7244     public void setFieldValue(_Fields field, Object value) {
7245       switch (field) {
7246       case RD:
7247         if (value == null) {
7248           unsetRd();
7249         } else {
7250           setRd((String)value);
7251         }
7252         break;
7253
7254       }
7255     }
7256
7257     public Object getFieldValue(_Fields field) {
7258       switch (field) {
7259       case RD:
7260         return getRd();
7261
7262       }
7263       throw new IllegalStateException();
7264     }
7265
7266     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7267     public boolean isSet(_Fields field) {
7268       if (field == null) {
7269         throw new IllegalArgumentException();
7270       }
7271
7272       switch (field) {
7273       case RD:
7274         return isSetRd();
7275       }
7276       throw new IllegalStateException();
7277     }
7278
7279     @Override
7280     public boolean equals(Object that) {
7281       if (that == null)
7282         return false;
7283       if (that instanceof delVrf_args)
7284         return this.equals((delVrf_args)that);
7285       return false;
7286     }
7287
7288     public boolean equals(delVrf_args that) {
7289       if (that == null)
7290         return false;
7291
7292       boolean this_present_rd = true && this.isSetRd();
7293       boolean that_present_rd = true && that.isSetRd();
7294       if (this_present_rd || that_present_rd) {
7295         if (!(this_present_rd && that_present_rd))
7296           return false;
7297         if (!this.rd.equals(that.rd))
7298           return false;
7299       }
7300
7301       return true;
7302     }
7303
7304     @Override
7305     public int hashCode() {
7306       return 0;
7307     }
7308
7309     @Override
7310     public int compareTo(delVrf_args other) {
7311       if (!getClass().equals(other.getClass())) {
7312         return getClass().getName().compareTo(other.getClass().getName());
7313       }
7314
7315       int lastComparison = 0;
7316
7317       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
7318       if (lastComparison != 0) {
7319         return lastComparison;
7320       }
7321       if (isSetRd()) {
7322         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
7323         if (lastComparison != 0) {
7324           return lastComparison;
7325         }
7326       }
7327       return 0;
7328     }
7329
7330     public _Fields fieldForId(int fieldId) {
7331       return _Fields.findByThriftId(fieldId);
7332     }
7333
7334     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7335       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7336     }
7337
7338     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7339       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7340     }
7341
7342     @Override
7343     public String toString() {
7344       StringBuilder sb = new StringBuilder("delVrf_args(");
7345       boolean first = true;
7346
7347       sb.append("rd:");
7348       if (this.rd == null) {
7349         sb.append("null");
7350       } else {
7351         sb.append(this.rd);
7352       }
7353       first = false;
7354       sb.append(")");
7355       return sb.toString();
7356     }
7357
7358     public void validate() throws org.apache.thrift.TException {
7359       // check for required fields
7360       // check for sub-struct validity
7361     }
7362
7363     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7364       try {
7365         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7366       } catch (org.apache.thrift.TException te) {
7367         throw new java.io.IOException(te);
7368       }
7369     }
7370
7371     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7372       try {
7373         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7374       } catch (org.apache.thrift.TException te) {
7375         throw new java.io.IOException(te);
7376       }
7377     }
7378
7379     private static class delVrf_argsStandardSchemeFactory implements SchemeFactory {
7380       public delVrf_argsStandardScheme getScheme() {
7381         return new delVrf_argsStandardScheme();
7382       }
7383     }
7384
7385     private static class delVrf_argsStandardScheme extends StandardScheme<delVrf_args> {
7386
7387       public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_args struct) throws org.apache.thrift.TException {
7388         org.apache.thrift.protocol.TField schemeField;
7389         iprot.readStructBegin();
7390         while (true)
7391         {
7392           schemeField = iprot.readFieldBegin();
7393           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
7394             break;
7395           }
7396           switch (schemeField.id) {
7397             case 1: // RD
7398               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7399                 struct.rd = iprot.readString();
7400                 struct.setRdIsSet(true);
7401               } else { 
7402                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7403               }
7404               break;
7405             default:
7406               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7407           }
7408           iprot.readFieldEnd();
7409         }
7410         iprot.readStructEnd();
7411
7412         // check for required fields of primitive type, which can't be checked in the validate method
7413         struct.validate();
7414       }
7415
7416       public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_args struct) throws org.apache.thrift.TException {
7417         struct.validate();
7418
7419         oprot.writeStructBegin(STRUCT_DESC);
7420         if (struct.rd != null) {
7421           oprot.writeFieldBegin(RD_FIELD_DESC);
7422           oprot.writeString(struct.rd);
7423           oprot.writeFieldEnd();
7424         }
7425         oprot.writeFieldStop();
7426         oprot.writeStructEnd();
7427       }
7428
7429     }
7430
7431     private static class delVrf_argsTupleSchemeFactory implements SchemeFactory {
7432       public delVrf_argsTupleScheme getScheme() {
7433         return new delVrf_argsTupleScheme();
7434       }
7435     }
7436
7437     private static class delVrf_argsTupleScheme extends TupleScheme<delVrf_args> {
7438
7439       @Override
7440       public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
7441         TTupleProtocol oprot = (TTupleProtocol) prot;
7442         BitSet optionals = new BitSet();
7443         if (struct.isSetRd()) {
7444           optionals.set(0);
7445         }
7446         oprot.writeBitSet(optionals, 1);
7447         if (struct.isSetRd()) {
7448           oprot.writeString(struct.rd);
7449         }
7450       }
7451
7452       @Override
7453       public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
7454         TTupleProtocol iprot = (TTupleProtocol) prot;
7455         BitSet incoming = iprot.readBitSet(1);
7456         if (incoming.get(0)) {
7457           struct.rd = iprot.readString();
7458           struct.setRdIsSet(true);
7459         }
7460       }
7461     }
7462
7463   }
7464
7465   public static class delVrf_result implements org.apache.thrift.TBase<delVrf_result, delVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_result>   {
7466     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_result");
7467
7468     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
7469
7470     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7471     static {
7472       schemes.put(StandardScheme.class, new delVrf_resultStandardSchemeFactory());
7473       schemes.put(TupleScheme.class, new delVrf_resultTupleSchemeFactory());
7474     }
7475
7476     public int success; // required
7477
7478     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7479     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7480       SUCCESS((short)0, "success");
7481
7482       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7483
7484       static {
7485         for (_Fields field : EnumSet.allOf(_Fields.class)) {
7486           byName.put(field.getFieldName(), field);
7487         }
7488       }
7489
7490       /**
7491        * Find the _Fields constant that matches fieldId, or null if its not found.
7492        */
7493       public static _Fields findByThriftId(int fieldId) {
7494         switch(fieldId) {
7495           case 0: // SUCCESS
7496             return SUCCESS;
7497           default:
7498             return null;
7499         }
7500       }
7501
7502       /**
7503        * Find the _Fields constant that matches fieldId, throwing an exception
7504        * if it is not found.
7505        */
7506       public static _Fields findByThriftIdOrThrow(int fieldId) {
7507         _Fields fields = findByThriftId(fieldId);
7508         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7509         return fields;
7510       }
7511
7512       /**
7513        * Find the _Fields constant that matches name, or null if its not found.
7514        */
7515       public static _Fields findByName(String name) {
7516         return byName.get(name);
7517       }
7518
7519       private final short _thriftId;
7520       private final String _fieldName;
7521
7522       _Fields(short thriftId, String fieldName) {
7523         _thriftId = thriftId;
7524         _fieldName = fieldName;
7525       }
7526
7527       public short getThriftFieldId() {
7528         return _thriftId;
7529       }
7530
7531       public String getFieldName() {
7532         return _fieldName;
7533       }
7534     }
7535
7536     // isset id assignments
7537     private static final int __SUCCESS_ISSET_ID = 0;
7538     private byte __isset_bitfield = 0;
7539     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7540     static {
7541       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7542       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7543           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
7544       metaDataMap = Collections.unmodifiableMap(tmpMap);
7545       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_result.class, metaDataMap);
7546     }
7547
7548     public delVrf_result() {
7549     }
7550
7551     public delVrf_result(
7552       int success)
7553     {
7554       this();
7555       this.success = success;
7556       setSuccessIsSet(true);
7557     }
7558
7559     /**
7560      * Performs a deep copy on <i>other</i>.
7561      */
7562     public delVrf_result(delVrf_result other) {
7563       __isset_bitfield = other.__isset_bitfield;
7564       this.success = other.success;
7565     }
7566
7567     public delVrf_result deepCopy() {
7568       return new delVrf_result(this);
7569     }
7570
7571     @Override
7572     public void clear() {
7573       setSuccessIsSet(false);
7574       this.success = 0;
7575     }
7576
7577     public int getSuccess() {
7578       return this.success;
7579     }
7580
7581     public delVrf_result setSuccess(int success) {
7582       this.success = success;
7583       setSuccessIsSet(true);
7584       return this;
7585     }
7586
7587     public void unsetSuccess() {
7588       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7589     }
7590
7591     /** Returns true if field success is set (has been assigned a value) and false otherwise */
7592     public boolean isSetSuccess() {
7593       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7594     }
7595
7596     public void setSuccessIsSet(boolean value) {
7597       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
7598     }
7599
7600     public void setFieldValue(_Fields field, Object value) {
7601       switch (field) {
7602       case SUCCESS:
7603         if (value == null) {
7604           unsetSuccess();
7605         } else {
7606           setSuccess((Integer)value);
7607         }
7608         break;
7609
7610       }
7611     }
7612
7613     public Object getFieldValue(_Fields field) {
7614       switch (field) {
7615       case SUCCESS:
7616         return Integer.valueOf(getSuccess());
7617
7618       }
7619       throw new IllegalStateException();
7620     }
7621
7622     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7623     public boolean isSet(_Fields field) {
7624       if (field == null) {
7625         throw new IllegalArgumentException();
7626       }
7627
7628       switch (field) {
7629       case SUCCESS:
7630         return isSetSuccess();
7631       }
7632       throw new IllegalStateException();
7633     }
7634
7635     @Override
7636     public boolean equals(Object that) {
7637       if (that == null)
7638         return false;
7639       if (that instanceof delVrf_result)
7640         return this.equals((delVrf_result)that);
7641       return false;
7642     }
7643
7644     public boolean equals(delVrf_result that) {
7645       if (that == null)
7646         return false;
7647
7648       boolean this_present_success = true;
7649       boolean that_present_success = true;
7650       if (this_present_success || that_present_success) {
7651         if (!(this_present_success && that_present_success))
7652           return false;
7653         if (this.success != that.success)
7654           return false;
7655       }
7656
7657       return true;
7658     }
7659
7660     @Override
7661     public int hashCode() {
7662       return 0;
7663     }
7664
7665     @Override
7666     public int compareTo(delVrf_result other) {
7667       if (!getClass().equals(other.getClass())) {
7668         return getClass().getName().compareTo(other.getClass().getName());
7669       }
7670
7671       int lastComparison = 0;
7672
7673       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
7674       if (lastComparison != 0) {
7675         return lastComparison;
7676       }
7677       if (isSetSuccess()) {
7678         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
7679         if (lastComparison != 0) {
7680           return lastComparison;
7681         }
7682       }
7683       return 0;
7684     }
7685
7686     public _Fields fieldForId(int fieldId) {
7687       return _Fields.findByThriftId(fieldId);
7688     }
7689
7690     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7691       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7692     }
7693
7694     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7695       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7696       }
7697
7698     @Override
7699     public String toString() {
7700       StringBuilder sb = new StringBuilder("delVrf_result(");
7701       boolean first = true;
7702
7703       sb.append("success:");
7704       sb.append(this.success);
7705       first = false;
7706       sb.append(")");
7707       return sb.toString();
7708     }
7709
7710     public void validate() throws org.apache.thrift.TException {
7711       // check for required fields
7712       // check for sub-struct validity
7713     }
7714
7715     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7716       try {
7717         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7718       } catch (org.apache.thrift.TException te) {
7719         throw new java.io.IOException(te);
7720       }
7721     }
7722
7723     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7724       try {
7725         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7726         __isset_bitfield = 0;
7727         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7728       } catch (org.apache.thrift.TException te) {
7729         throw new java.io.IOException(te);
7730       }
7731     }
7732
7733     private static class delVrf_resultStandardSchemeFactory implements SchemeFactory {
7734       public delVrf_resultStandardScheme getScheme() {
7735         return new delVrf_resultStandardScheme();
7736       }
7737     }
7738
7739     private static class delVrf_resultStandardScheme extends StandardScheme<delVrf_result> {
7740
7741       public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_result struct) throws org.apache.thrift.TException {
7742         org.apache.thrift.protocol.TField schemeField;
7743         iprot.readStructBegin();
7744         while (true)
7745         {
7746           schemeField = iprot.readFieldBegin();
7747           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
7748             break;
7749           }
7750           switch (schemeField.id) {
7751             case 0: // SUCCESS
7752               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
7753                 struct.success = iprot.readI32();
7754                 struct.setSuccessIsSet(true);
7755               } else { 
7756                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7757               }
7758               break;
7759             default:
7760               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7761           }
7762           iprot.readFieldEnd();
7763         }
7764         iprot.readStructEnd();
7765
7766         // check for required fields of primitive type, which can't be checked in the validate method
7767         struct.validate();
7768       }
7769
7770       public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_result struct) throws org.apache.thrift.TException {
7771         struct.validate();
7772
7773         oprot.writeStructBegin(STRUCT_DESC);
7774         if (struct.isSetSuccess()) {
7775           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7776           oprot.writeI32(struct.success);
7777           oprot.writeFieldEnd();
7778         }
7779         oprot.writeFieldStop();
7780         oprot.writeStructEnd();
7781       }
7782
7783     }
7784
7785     private static class delVrf_resultTupleSchemeFactory implements SchemeFactory {
7786       public delVrf_resultTupleScheme getScheme() {
7787         return new delVrf_resultTupleScheme();
7788       }
7789     }
7790
7791     private static class delVrf_resultTupleScheme extends TupleScheme<delVrf_result> {
7792
7793       @Override
7794       public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
7795         TTupleProtocol oprot = (TTupleProtocol) prot;
7796         BitSet optionals = new BitSet();
7797         if (struct.isSetSuccess()) {
7798           optionals.set(0);
7799         }
7800         oprot.writeBitSet(optionals, 1);
7801         if (struct.isSetSuccess()) {
7802           oprot.writeI32(struct.success);
7803         }
7804       }
7805
7806       @Override
7807       public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
7808         TTupleProtocol iprot = (TTupleProtocol) prot;
7809         BitSet incoming = iprot.readBitSet(1);
7810         if (incoming.get(0)) {
7811           struct.success = iprot.readI32();
7812           struct.setSuccessIsSet(true);
7813         }
7814       }
7815     }
7816
7817   }
7818
7819   public static class pushRoute_args implements org.apache.thrift.TBase<pushRoute_args, pushRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_args>   {
7820     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_args");
7821
7822     private static final org.apache.thrift.protocol.TField PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("prefix", org.apache.thrift.protocol.TType.STRING, (short)1);
7823     private static final org.apache.thrift.protocol.TField NEXTHOP_FIELD_DESC = new org.apache.thrift.protocol.TField("nexthop", org.apache.thrift.protocol.TType.STRING, (short)2);
7824     private static final org.apache.thrift.protocol.TField RD_FIELD_DESC = new org.apache.thrift.protocol.TField("rd", org.apache.thrift.protocol.TType.STRING, (short)3);
7825     private static final org.apache.thrift.protocol.TField LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("label", org.apache.thrift.protocol.TType.I32, (short)4);
7826
7827     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7828     static {
7829       schemes.put(StandardScheme.class, new pushRoute_argsStandardSchemeFactory());
7830       schemes.put(TupleScheme.class, new pushRoute_argsTupleSchemeFactory());
7831     }
7832
7833     public String prefix; // required
7834     public String nexthop; // required
7835     public String rd; // required
7836     public int label; // required
7837
7838     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7839     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7840       PREFIX((short)1, "prefix"),
7841       NEXTHOP((short)2, "nexthop"),
7842       RD((short)3, "rd"),
7843       LABEL((short)4, "label");
7844
7845       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7846
7847       static {
7848         for (_Fields field : EnumSet.allOf(_Fields.class)) {
7849           byName.put(field.getFieldName(), field);
7850         }
7851       }
7852
7853       /**
7854        * Find the _Fields constant that matches fieldId, or null if its not found.
7855        */
7856       public static _Fields findByThriftId(int fieldId) {
7857         switch(fieldId) {
7858           case 1: // PREFIX
7859             return PREFIX;
7860           case 2: // NEXTHOP
7861             return NEXTHOP;
7862           case 3: // RD
7863             return RD;
7864           case 4: // LABEL
7865             return LABEL;
7866           default:
7867             return null;
7868         }
7869       }
7870
7871       /**
7872        * Find the _Fields constant that matches fieldId, throwing an exception
7873        * if it is not found.
7874        */
7875       public static _Fields findByThriftIdOrThrow(int fieldId) {
7876         _Fields fields = findByThriftId(fieldId);
7877         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7878         return fields;
7879       }
7880
7881       /**
7882        * Find the _Fields constant that matches name, or null if its not found.
7883        */
7884       public static _Fields findByName(String name) {
7885         return byName.get(name);
7886       }
7887
7888       private final short _thriftId;
7889       private final String _fieldName;
7890
7891       _Fields(short thriftId, String fieldName) {
7892         _thriftId = thriftId;
7893         _fieldName = fieldName;
7894       }
7895
7896       public short getThriftFieldId() {
7897         return _thriftId;
7898       }
7899
7900       public String getFieldName() {
7901         return _fieldName;
7902       }
7903     }
7904
7905     // isset id assignments
7906     private static final int __LABEL_ISSET_ID = 0;
7907     private byte __isset_bitfield = 0;
7908     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7909     static {
7910       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7911       tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7912           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7913       tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7914           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7915       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7916           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7917       tmpMap.put(_Fields.LABEL, new org.apache.thrift.meta_data.FieldMetaData("label", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7918           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
7919       metaDataMap = Collections.unmodifiableMap(tmpMap);
7920       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_args.class, metaDataMap);
7921     }
7922
7923     public pushRoute_args() {
7924     }
7925
7926     public pushRoute_args(
7927       String prefix,
7928       String nexthop,
7929       String rd,
7930       int label)
7931     {
7932       this();
7933       this.prefix = prefix;
7934       this.nexthop = nexthop;
7935       this.rd = rd;
7936       this.label = label;
7937       setLabelIsSet(true);
7938     }
7939
7940     /**
7941      * Performs a deep copy on <i>other</i>.
7942      */
7943     public pushRoute_args(pushRoute_args other) {
7944       __isset_bitfield = other.__isset_bitfield;
7945       if (other.isSetPrefix()) {
7946         this.prefix = other.prefix;
7947       }
7948       if (other.isSetNexthop()) {
7949         this.nexthop = other.nexthop;
7950       }
7951       if (other.isSetRd()) {
7952         this.rd = other.rd;
7953       }
7954       this.label = other.label;
7955     }
7956
7957     public pushRoute_args deepCopy() {
7958       return new pushRoute_args(this);
7959     }
7960
7961     @Override
7962     public void clear() {
7963       this.prefix = null;
7964       this.nexthop = null;
7965       this.rd = null;
7966       setLabelIsSet(false);
7967       this.label = 0;
7968     }
7969
7970     public String getPrefix() {
7971       return this.prefix;
7972     }
7973
7974     public pushRoute_args setPrefix(String prefix) {
7975       this.prefix = prefix;
7976       return this;
7977     }
7978
7979     public void unsetPrefix() {
7980       this.prefix = null;
7981     }
7982
7983     /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
7984     public boolean isSetPrefix() {
7985       return this.prefix != null;
7986     }
7987
7988     public void setPrefixIsSet(boolean value) {
7989       if (!value) {
7990         this.prefix = null;
7991       }
7992     }
7993
7994     public String getNexthop() {
7995       return this.nexthop;
7996     }
7997
7998     public pushRoute_args setNexthop(String nexthop) {
7999       this.nexthop = nexthop;
8000       return this;
8001     }
8002
8003     public void unsetNexthop() {
8004       this.nexthop = null;
8005     }
8006
8007     /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
8008     public boolean isSetNexthop() {
8009       return this.nexthop != null;
8010     }
8011
8012     public void setNexthopIsSet(boolean value) {
8013       if (!value) {
8014         this.nexthop = null;
8015       }
8016     }
8017
8018     public String getRd() {
8019       return this.rd;
8020     }
8021
8022     public pushRoute_args setRd(String rd) {
8023       this.rd = rd;
8024       return this;
8025     }
8026
8027     public void unsetRd() {
8028       this.rd = null;
8029     }
8030
8031     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
8032     public boolean isSetRd() {
8033       return this.rd != null;
8034     }
8035
8036     public void setRdIsSet(boolean value) {
8037       if (!value) {
8038         this.rd = null;
8039       }
8040     }
8041
8042     public int getLabel() {
8043       return this.label;
8044     }
8045
8046     public pushRoute_args setLabel(int label) {
8047       this.label = label;
8048       setLabelIsSet(true);
8049       return this;
8050     }
8051
8052     public void unsetLabel() {
8053       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LABEL_ISSET_ID);
8054     }
8055
8056     /** Returns true if field label is set (has been assigned a value) and false otherwise */
8057     public boolean isSetLabel() {
8058       return EncodingUtils.testBit(__isset_bitfield, __LABEL_ISSET_ID);
8059     }
8060
8061     public void setLabelIsSet(boolean value) {
8062       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LABEL_ISSET_ID, value);
8063     }
8064
8065     public void setFieldValue(_Fields field, Object value) {
8066       switch (field) {
8067       case PREFIX:
8068         if (value == null) {
8069           unsetPrefix();
8070         } else {
8071           setPrefix((String)value);
8072         }
8073         break;
8074
8075       case NEXTHOP:
8076         if (value == null) {
8077           unsetNexthop();
8078         } else {
8079           setNexthop((String)value);
8080         }
8081         break;
8082
8083       case RD:
8084         if (value == null) {
8085           unsetRd();
8086         } else {
8087           setRd((String)value);
8088         }
8089         break;
8090
8091       case LABEL:
8092         if (value == null) {
8093           unsetLabel();
8094         } else {
8095           setLabel((Integer)value);
8096         }
8097         break;
8098
8099       }
8100     }
8101
8102     public Object getFieldValue(_Fields field) {
8103       switch (field) {
8104       case PREFIX:
8105         return getPrefix();
8106
8107       case NEXTHOP:
8108         return getNexthop();
8109
8110       case RD:
8111         return getRd();
8112
8113       case LABEL:
8114         return Integer.valueOf(getLabel());
8115
8116       }
8117       throw new IllegalStateException();
8118     }
8119
8120     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8121     public boolean isSet(_Fields field) {
8122       if (field == null) {
8123         throw new IllegalArgumentException();
8124       }
8125
8126       switch (field) {
8127       case PREFIX:
8128         return isSetPrefix();
8129       case NEXTHOP:
8130         return isSetNexthop();
8131       case RD:
8132         return isSetRd();
8133       case LABEL:
8134         return isSetLabel();
8135       }
8136       throw new IllegalStateException();
8137     }
8138
8139     @Override
8140     public boolean equals(Object that) {
8141       if (that == null)
8142         return false;
8143       if (that instanceof pushRoute_args)
8144         return this.equals((pushRoute_args)that);
8145       return false;
8146     }
8147
8148     public boolean equals(pushRoute_args that) {
8149       if (that == null)
8150         return false;
8151
8152       boolean this_present_prefix = true && this.isSetPrefix();
8153       boolean that_present_prefix = true && that.isSetPrefix();
8154       if (this_present_prefix || that_present_prefix) {
8155         if (!(this_present_prefix && that_present_prefix))
8156           return false;
8157         if (!this.prefix.equals(that.prefix))
8158           return false;
8159       }
8160
8161       boolean this_present_nexthop = true && this.isSetNexthop();
8162       boolean that_present_nexthop = true && that.isSetNexthop();
8163       if (this_present_nexthop || that_present_nexthop) {
8164         if (!(this_present_nexthop && that_present_nexthop))
8165           return false;
8166         if (!this.nexthop.equals(that.nexthop))
8167           return false;
8168       }
8169
8170       boolean this_present_rd = true && this.isSetRd();
8171       boolean that_present_rd = true && that.isSetRd();
8172       if (this_present_rd || that_present_rd) {
8173         if (!(this_present_rd && that_present_rd))
8174           return false;
8175         if (!this.rd.equals(that.rd))
8176           return false;
8177       }
8178
8179       boolean this_present_label = true;
8180       boolean that_present_label = true;
8181       if (this_present_label || that_present_label) {
8182         if (!(this_present_label && that_present_label))
8183           return false;
8184         if (this.label != that.label)
8185           return false;
8186       }
8187
8188       return true;
8189     }
8190
8191     @Override
8192     public int hashCode() {
8193       return 0;
8194     }
8195
8196     @Override
8197     public int compareTo(pushRoute_args other) {
8198       if (!getClass().equals(other.getClass())) {
8199         return getClass().getName().compareTo(other.getClass().getName());
8200       }
8201
8202       int lastComparison = 0;
8203
8204       lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
8205       if (lastComparison != 0) {
8206         return lastComparison;
8207       }
8208       if (isSetPrefix()) {
8209         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
8210         if (lastComparison != 0) {
8211           return lastComparison;
8212         }
8213       }
8214       lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
8215       if (lastComparison != 0) {
8216         return lastComparison;
8217       }
8218       if (isSetNexthop()) {
8219         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
8220         if (lastComparison != 0) {
8221           return lastComparison;
8222         }
8223       }
8224       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
8225       if (lastComparison != 0) {
8226         return lastComparison;
8227       }
8228       if (isSetRd()) {
8229         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
8230         if (lastComparison != 0) {
8231           return lastComparison;
8232         }
8233       }
8234       lastComparison = Boolean.valueOf(isSetLabel()).compareTo(other.isSetLabel());
8235       if (lastComparison != 0) {
8236         return lastComparison;
8237       }
8238       if (isSetLabel()) {
8239         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.label, other.label);
8240         if (lastComparison != 0) {
8241           return lastComparison;
8242         }
8243       }
8244       return 0;
8245     }
8246
8247     public _Fields fieldForId(int fieldId) {
8248       return _Fields.findByThriftId(fieldId);
8249     }
8250
8251     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8252       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8253     }
8254
8255     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8256       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8257     }
8258
8259     @Override
8260     public String toString() {
8261       StringBuilder sb = new StringBuilder("pushRoute_args(");
8262       boolean first = true;
8263
8264       sb.append("prefix:");
8265       if (this.prefix == null) {
8266         sb.append("null");
8267       } else {
8268         sb.append(this.prefix);
8269       }
8270       first = false;
8271       if (!first) sb.append(", ");
8272       sb.append("nexthop:");
8273       if (this.nexthop == null) {
8274         sb.append("null");
8275       } else {
8276         sb.append(this.nexthop);
8277       }
8278       first = false;
8279       if (!first) sb.append(", ");
8280       sb.append("rd:");
8281       if (this.rd == null) {
8282         sb.append("null");
8283       } else {
8284         sb.append(this.rd);
8285       }
8286       first = false;
8287       if (!first) sb.append(", ");
8288       sb.append("label:");
8289       sb.append(this.label);
8290       first = false;
8291       sb.append(")");
8292       return sb.toString();
8293     }
8294
8295     public void validate() throws org.apache.thrift.TException {
8296       // check for required fields
8297       // check for sub-struct validity
8298     }
8299
8300     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8301       try {
8302         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8303       } catch (org.apache.thrift.TException te) {
8304         throw new java.io.IOException(te);
8305       }
8306     }
8307
8308     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8309       try {
8310         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8311         __isset_bitfield = 0;
8312         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8313       } catch (org.apache.thrift.TException te) {
8314         throw new java.io.IOException(te);
8315       }
8316     }
8317
8318     private static class pushRoute_argsStandardSchemeFactory implements SchemeFactory {
8319       public pushRoute_argsStandardScheme getScheme() {
8320         return new pushRoute_argsStandardScheme();
8321       }
8322     }
8323
8324     private static class pushRoute_argsStandardScheme extends StandardScheme<pushRoute_args> {
8325
8326       public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_args struct) throws org.apache.thrift.TException {
8327         org.apache.thrift.protocol.TField schemeField;
8328         iprot.readStructBegin();
8329         while (true)
8330         {
8331           schemeField = iprot.readFieldBegin();
8332           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
8333             break;
8334           }
8335           switch (schemeField.id) {
8336             case 1: // PREFIX
8337               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8338                 struct.prefix = iprot.readString();
8339                 struct.setPrefixIsSet(true);
8340               } else { 
8341                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8342               }
8343               break;
8344             case 2: // NEXTHOP
8345               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8346                 struct.nexthop = iprot.readString();
8347                 struct.setNexthopIsSet(true);
8348               } else { 
8349                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8350               }
8351               break;
8352             case 3: // RD
8353               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8354                 struct.rd = iprot.readString();
8355                 struct.setRdIsSet(true);
8356               } else { 
8357                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8358               }
8359               break;
8360             case 4: // LABEL
8361               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
8362                 struct.label = iprot.readI32();
8363                 struct.setLabelIsSet(true);
8364               } else { 
8365                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8366               }
8367               break;
8368             default:
8369               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8370           }
8371           iprot.readFieldEnd();
8372         }
8373         iprot.readStructEnd();
8374
8375         // check for required fields of primitive type, which can't be checked in the validate method
8376         struct.validate();
8377       }
8378
8379       public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_args struct) throws org.apache.thrift.TException {
8380         struct.validate();
8381
8382         oprot.writeStructBegin(STRUCT_DESC);
8383         if (struct.prefix != null) {
8384           oprot.writeFieldBegin(PREFIX_FIELD_DESC);
8385           oprot.writeString(struct.prefix);
8386           oprot.writeFieldEnd();
8387         }
8388         if (struct.nexthop != null) {
8389           oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
8390           oprot.writeString(struct.nexthop);
8391           oprot.writeFieldEnd();
8392         }
8393         if (struct.rd != null) {
8394           oprot.writeFieldBegin(RD_FIELD_DESC);
8395           oprot.writeString(struct.rd);
8396           oprot.writeFieldEnd();
8397         }
8398         oprot.writeFieldBegin(LABEL_FIELD_DESC);
8399         oprot.writeI32(struct.label);
8400         oprot.writeFieldEnd();
8401         oprot.writeFieldStop();
8402         oprot.writeStructEnd();
8403       }
8404
8405     }
8406
8407     private static class pushRoute_argsTupleSchemeFactory implements SchemeFactory {
8408       public pushRoute_argsTupleScheme getScheme() {
8409         return new pushRoute_argsTupleScheme();
8410       }
8411     }
8412
8413     private static class pushRoute_argsTupleScheme extends TupleScheme<pushRoute_args> {
8414
8415       @Override
8416       public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
8417         TTupleProtocol oprot = (TTupleProtocol) prot;
8418         BitSet optionals = new BitSet();
8419         if (struct.isSetPrefix()) {
8420           optionals.set(0);
8421         }
8422         if (struct.isSetNexthop()) {
8423           optionals.set(1);
8424         }
8425         if (struct.isSetRd()) {
8426           optionals.set(2);
8427         }
8428         if (struct.isSetLabel()) {
8429           optionals.set(3);
8430         }
8431         oprot.writeBitSet(optionals, 4);
8432         if (struct.isSetPrefix()) {
8433           oprot.writeString(struct.prefix);
8434         }
8435         if (struct.isSetNexthop()) {
8436           oprot.writeString(struct.nexthop);
8437         }
8438         if (struct.isSetRd()) {
8439           oprot.writeString(struct.rd);
8440         }
8441         if (struct.isSetLabel()) {
8442           oprot.writeI32(struct.label);
8443         }
8444       }
8445
8446       @Override
8447       public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
8448         TTupleProtocol iprot = (TTupleProtocol) prot;
8449         BitSet incoming = iprot.readBitSet(4);
8450         if (incoming.get(0)) {
8451           struct.prefix = iprot.readString();
8452           struct.setPrefixIsSet(true);
8453         }
8454         if (incoming.get(1)) {
8455           struct.nexthop = iprot.readString();
8456           struct.setNexthopIsSet(true);
8457         }
8458         if (incoming.get(2)) {
8459           struct.rd = iprot.readString();
8460           struct.setRdIsSet(true);
8461         }
8462         if (incoming.get(3)) {
8463           struct.label = iprot.readI32();
8464           struct.setLabelIsSet(true);
8465         }
8466       }
8467     }
8468
8469   }
8470
8471   public static class pushRoute_result implements org.apache.thrift.TBase<pushRoute_result, pushRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_result>   {
8472     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_result");
8473
8474     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
8475
8476     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8477     static {
8478       schemes.put(StandardScheme.class, new pushRoute_resultStandardSchemeFactory());
8479       schemes.put(TupleScheme.class, new pushRoute_resultTupleSchemeFactory());
8480     }
8481
8482     public int success; // required
8483
8484     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8485     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8486       SUCCESS((short)0, "success");
8487
8488       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8489
8490       static {
8491         for (_Fields field : EnumSet.allOf(_Fields.class)) {
8492           byName.put(field.getFieldName(), field);
8493         }
8494       }
8495
8496       /**
8497        * Find the _Fields constant that matches fieldId, or null if its not found.
8498        */
8499       public static _Fields findByThriftId(int fieldId) {
8500         switch(fieldId) {
8501           case 0: // SUCCESS
8502             return SUCCESS;
8503           default:
8504             return null;
8505         }
8506       }
8507
8508       /**
8509        * Find the _Fields constant that matches fieldId, throwing an exception
8510        * if it is not found.
8511        */
8512       public static _Fields findByThriftIdOrThrow(int fieldId) {
8513         _Fields fields = findByThriftId(fieldId);
8514         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8515         return fields;
8516       }
8517
8518       /**
8519        * Find the _Fields constant that matches name, or null if its not found.
8520        */
8521       public static _Fields findByName(String name) {
8522         return byName.get(name);
8523       }
8524
8525       private final short _thriftId;
8526       private final String _fieldName;
8527
8528       _Fields(short thriftId, String fieldName) {
8529         _thriftId = thriftId;
8530         _fieldName = fieldName;
8531       }
8532
8533       public short getThriftFieldId() {
8534         return _thriftId;
8535       }
8536
8537       public String getFieldName() {
8538         return _fieldName;
8539       }
8540     }
8541
8542     // isset id assignments
8543     private static final int __SUCCESS_ISSET_ID = 0;
8544     private byte __isset_bitfield = 0;
8545     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8546     static {
8547       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8548       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8549           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
8550       metaDataMap = Collections.unmodifiableMap(tmpMap);
8551       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_result.class, metaDataMap);
8552     }
8553
8554     public pushRoute_result() {
8555     }
8556
8557     public pushRoute_result(
8558       int success)
8559     {
8560       this();
8561       this.success = success;
8562       setSuccessIsSet(true);
8563     }
8564
8565     /**
8566      * Performs a deep copy on <i>other</i>.
8567      */
8568     public pushRoute_result(pushRoute_result other) {
8569       __isset_bitfield = other.__isset_bitfield;
8570       this.success = other.success;
8571     }
8572
8573     public pushRoute_result deepCopy() {
8574       return new pushRoute_result(this);
8575     }
8576
8577     @Override
8578     public void clear() {
8579       setSuccessIsSet(false);
8580       this.success = 0;
8581     }
8582
8583     public int getSuccess() {
8584       return this.success;
8585     }
8586
8587     public pushRoute_result setSuccess(int success) {
8588       this.success = success;
8589       setSuccessIsSet(true);
8590       return this;
8591     }
8592
8593     public void unsetSuccess() {
8594       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8595     }
8596
8597     /** Returns true if field success is set (has been assigned a value) and false otherwise */
8598     public boolean isSetSuccess() {
8599       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8600     }
8601
8602     public void setSuccessIsSet(boolean value) {
8603       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
8604     }
8605
8606     public void setFieldValue(_Fields field, Object value) {
8607       switch (field) {
8608       case SUCCESS:
8609         if (value == null) {
8610           unsetSuccess();
8611         } else {
8612           setSuccess((Integer)value);
8613         }
8614         break;
8615
8616       }
8617     }
8618
8619     public Object getFieldValue(_Fields field) {
8620       switch (field) {
8621       case SUCCESS:
8622         return Integer.valueOf(getSuccess());
8623
8624       }
8625       throw new IllegalStateException();
8626     }
8627
8628     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8629     public boolean isSet(_Fields field) {
8630       if (field == null) {
8631         throw new IllegalArgumentException();
8632       }
8633
8634       switch (field) {
8635       case SUCCESS:
8636         return isSetSuccess();
8637       }
8638       throw new IllegalStateException();
8639     }
8640
8641     @Override
8642     public boolean equals(Object that) {
8643       if (that == null)
8644         return false;
8645       if (that instanceof pushRoute_result)
8646         return this.equals((pushRoute_result)that);
8647       return false;
8648     }
8649
8650     public boolean equals(pushRoute_result that) {
8651       if (that == null)
8652         return false;
8653
8654       boolean this_present_success = true;
8655       boolean that_present_success = true;
8656       if (this_present_success || that_present_success) {
8657         if (!(this_present_success && that_present_success))
8658           return false;
8659         if (this.success != that.success)
8660           return false;
8661       }
8662
8663       return true;
8664     }
8665
8666     @Override
8667     public int hashCode() {
8668       return 0;
8669     }
8670
8671     @Override
8672     public int compareTo(pushRoute_result other) {
8673       if (!getClass().equals(other.getClass())) {
8674         return getClass().getName().compareTo(other.getClass().getName());
8675       }
8676
8677       int lastComparison = 0;
8678
8679       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
8680       if (lastComparison != 0) {
8681         return lastComparison;
8682       }
8683       if (isSetSuccess()) {
8684         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
8685         if (lastComparison != 0) {
8686           return lastComparison;
8687         }
8688       }
8689       return 0;
8690     }
8691
8692     public _Fields fieldForId(int fieldId) {
8693       return _Fields.findByThriftId(fieldId);
8694     }
8695
8696     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8697       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8698     }
8699
8700     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8701       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8702       }
8703
8704     @Override
8705     public String toString() {
8706       StringBuilder sb = new StringBuilder("pushRoute_result(");
8707       boolean first = true;
8708
8709       sb.append("success:");
8710       sb.append(this.success);
8711       first = false;
8712       sb.append(")");
8713       return sb.toString();
8714     }
8715
8716     public void validate() throws org.apache.thrift.TException {
8717       // check for required fields
8718       // check for sub-struct validity
8719     }
8720
8721     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8722       try {
8723         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8724       } catch (org.apache.thrift.TException te) {
8725         throw new java.io.IOException(te);
8726       }
8727     }
8728
8729     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8730       try {
8731         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8732         __isset_bitfield = 0;
8733         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8734       } catch (org.apache.thrift.TException te) {
8735         throw new java.io.IOException(te);
8736       }
8737     }
8738
8739     private static class pushRoute_resultStandardSchemeFactory implements SchemeFactory {
8740       public pushRoute_resultStandardScheme getScheme() {
8741         return new pushRoute_resultStandardScheme();
8742       }
8743     }
8744
8745     private static class pushRoute_resultStandardScheme extends StandardScheme<pushRoute_result> {
8746
8747       public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_result struct) throws org.apache.thrift.TException {
8748         org.apache.thrift.protocol.TField schemeField;
8749         iprot.readStructBegin();
8750         while (true)
8751         {
8752           schemeField = iprot.readFieldBegin();
8753           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
8754             break;
8755           }
8756           switch (schemeField.id) {
8757             case 0: // SUCCESS
8758               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
8759                 struct.success = iprot.readI32();
8760                 struct.setSuccessIsSet(true);
8761               } else { 
8762                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8763               }
8764               break;
8765             default:
8766               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8767           }
8768           iprot.readFieldEnd();
8769         }
8770         iprot.readStructEnd();
8771
8772         // check for required fields of primitive type, which can't be checked in the validate method
8773         struct.validate();
8774       }
8775
8776       public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_result struct) throws org.apache.thrift.TException {
8777         struct.validate();
8778
8779         oprot.writeStructBegin(STRUCT_DESC);
8780         if (struct.isSetSuccess()) {
8781           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8782           oprot.writeI32(struct.success);
8783           oprot.writeFieldEnd();
8784         }
8785         oprot.writeFieldStop();
8786         oprot.writeStructEnd();
8787       }
8788
8789     }
8790
8791     private static class pushRoute_resultTupleSchemeFactory implements SchemeFactory {
8792       public pushRoute_resultTupleScheme getScheme() {
8793         return new pushRoute_resultTupleScheme();
8794       }
8795     }
8796
8797     private static class pushRoute_resultTupleScheme extends TupleScheme<pushRoute_result> {
8798
8799       @Override
8800       public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
8801         TTupleProtocol oprot = (TTupleProtocol) prot;
8802         BitSet optionals = new BitSet();
8803         if (struct.isSetSuccess()) {
8804           optionals.set(0);
8805         }
8806         oprot.writeBitSet(optionals, 1);
8807         if (struct.isSetSuccess()) {
8808           oprot.writeI32(struct.success);
8809         }
8810       }
8811
8812       @Override
8813       public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
8814         TTupleProtocol iprot = (TTupleProtocol) prot;
8815         BitSet incoming = iprot.readBitSet(1);
8816         if (incoming.get(0)) {
8817           struct.success = iprot.readI32();
8818           struct.setSuccessIsSet(true);
8819         }
8820       }
8821     }
8822
8823   }
8824
8825   public static class withdrawRoute_args implements org.apache.thrift.TBase<withdrawRoute_args, withdrawRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_args>   {
8826     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_args");
8827
8828     private static final org.apache.thrift.protocol.TField PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("prefix", org.apache.thrift.protocol.TType.STRING, (short)1);
8829     private static final org.apache.thrift.protocol.TField RD_FIELD_DESC = new org.apache.thrift.protocol.TField("rd", org.apache.thrift.protocol.TType.STRING, (short)2);
8830
8831     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8832     static {
8833       schemes.put(StandardScheme.class, new withdrawRoute_argsStandardSchemeFactory());
8834       schemes.put(TupleScheme.class, new withdrawRoute_argsTupleSchemeFactory());
8835     }
8836
8837     public String prefix; // required
8838     public String rd; // required
8839
8840     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8841     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8842       PREFIX((short)1, "prefix"),
8843       RD((short)2, "rd");
8844
8845       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8846
8847       static {
8848         for (_Fields field : EnumSet.allOf(_Fields.class)) {
8849           byName.put(field.getFieldName(), field);
8850         }
8851       }
8852
8853       /**
8854        * Find the _Fields constant that matches fieldId, or null if its not found.
8855        */
8856       public static _Fields findByThriftId(int fieldId) {
8857         switch(fieldId) {
8858           case 1: // PREFIX
8859             return PREFIX;
8860           case 2: // RD
8861             return RD;
8862           default:
8863             return null;
8864         }
8865       }
8866
8867       /**
8868        * Find the _Fields constant that matches fieldId, throwing an exception
8869        * if it is not found.
8870        */
8871       public static _Fields findByThriftIdOrThrow(int fieldId) {
8872         _Fields fields = findByThriftId(fieldId);
8873         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8874         return fields;
8875       }
8876
8877       /**
8878        * Find the _Fields constant that matches name, or null if its not found.
8879        */
8880       public static _Fields findByName(String name) {
8881         return byName.get(name);
8882       }
8883
8884       private final short _thriftId;
8885       private final String _fieldName;
8886
8887       _Fields(short thriftId, String fieldName) {
8888         _thriftId = thriftId;
8889         _fieldName = fieldName;
8890       }
8891
8892       public short getThriftFieldId() {
8893         return _thriftId;
8894       }
8895
8896       public String getFieldName() {
8897         return _fieldName;
8898       }
8899     }
8900
8901     // isset id assignments
8902     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8903     static {
8904       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8905       tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8906           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8907       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8908           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8909       metaDataMap = Collections.unmodifiableMap(tmpMap);
8910       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_args.class, metaDataMap);
8911     }
8912
8913     public withdrawRoute_args() {
8914     }
8915
8916     public withdrawRoute_args(
8917       String prefix,
8918       String rd)
8919     {
8920       this();
8921       this.prefix = prefix;
8922       this.rd = rd;
8923     }
8924
8925     /**
8926      * Performs a deep copy on <i>other</i>.
8927      */
8928     public withdrawRoute_args(withdrawRoute_args other) {
8929       if (other.isSetPrefix()) {
8930         this.prefix = other.prefix;
8931       }
8932       if (other.isSetRd()) {
8933         this.rd = other.rd;
8934       }
8935     }
8936
8937     public withdrawRoute_args deepCopy() {
8938       return new withdrawRoute_args(this);
8939     }
8940
8941     @Override
8942     public void clear() {
8943       this.prefix = null;
8944       this.rd = null;
8945     }
8946
8947     public String getPrefix() {
8948       return this.prefix;
8949     }
8950
8951     public withdrawRoute_args setPrefix(String prefix) {
8952       this.prefix = prefix;
8953       return this;
8954     }
8955
8956     public void unsetPrefix() {
8957       this.prefix = null;
8958     }
8959
8960     /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
8961     public boolean isSetPrefix() {
8962       return this.prefix != null;
8963     }
8964
8965     public void setPrefixIsSet(boolean value) {
8966       if (!value) {
8967         this.prefix = null;
8968       }
8969     }
8970
8971     public String getRd() {
8972       return this.rd;
8973     }
8974
8975     public withdrawRoute_args setRd(String rd) {
8976       this.rd = rd;
8977       return this;
8978     }
8979
8980     public void unsetRd() {
8981       this.rd = null;
8982     }
8983
8984     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
8985     public boolean isSetRd() {
8986       return this.rd != null;
8987     }
8988
8989     public void setRdIsSet(boolean value) {
8990       if (!value) {
8991         this.rd = null;
8992       }
8993     }
8994
8995     public void setFieldValue(_Fields field, Object value) {
8996       switch (field) {
8997       case PREFIX:
8998         if (value == null) {
8999           unsetPrefix();
9000         } else {
9001           setPrefix((String)value);
9002         }
9003         break;
9004
9005       case RD:
9006         if (value == null) {
9007           unsetRd();
9008         } else {
9009           setRd((String)value);
9010         }
9011         break;
9012
9013       }
9014     }
9015
9016     public Object getFieldValue(_Fields field) {
9017       switch (field) {
9018       case PREFIX:
9019         return getPrefix();
9020
9021       case RD:
9022         return getRd();
9023
9024       }
9025       throw new IllegalStateException();
9026     }
9027
9028     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9029     public boolean isSet(_Fields field) {
9030       if (field == null) {
9031         throw new IllegalArgumentException();
9032       }
9033
9034       switch (field) {
9035       case PREFIX:
9036         return isSetPrefix();
9037       case RD:
9038         return isSetRd();
9039       }
9040       throw new IllegalStateException();
9041     }
9042
9043     @Override
9044     public boolean equals(Object that) {
9045       if (that == null)
9046         return false;
9047       if (that instanceof withdrawRoute_args)
9048         return this.equals((withdrawRoute_args)that);
9049       return false;
9050     }
9051
9052     public boolean equals(withdrawRoute_args that) {
9053       if (that == null)
9054         return false;
9055
9056       boolean this_present_prefix = true && this.isSetPrefix();
9057       boolean that_present_prefix = true && that.isSetPrefix();
9058       if (this_present_prefix || that_present_prefix) {
9059         if (!(this_present_prefix && that_present_prefix))
9060           return false;
9061         if (!this.prefix.equals(that.prefix))
9062           return false;
9063       }
9064
9065       boolean this_present_rd = true && this.isSetRd();
9066       boolean that_present_rd = true && that.isSetRd();
9067       if (this_present_rd || that_present_rd) {
9068         if (!(this_present_rd && that_present_rd))
9069           return false;
9070         if (!this.rd.equals(that.rd))
9071           return false;
9072       }
9073
9074       return true;
9075     }
9076
9077     @Override
9078     public int hashCode() {
9079       return 0;
9080     }
9081
9082     @Override
9083     public int compareTo(withdrawRoute_args other) {
9084       if (!getClass().equals(other.getClass())) {
9085         return getClass().getName().compareTo(other.getClass().getName());
9086       }
9087
9088       int lastComparison = 0;
9089
9090       lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
9091       if (lastComparison != 0) {
9092         return lastComparison;
9093       }
9094       if (isSetPrefix()) {
9095         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
9096         if (lastComparison != 0) {
9097           return lastComparison;
9098         }
9099       }
9100       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
9101       if (lastComparison != 0) {
9102         return lastComparison;
9103       }
9104       if (isSetRd()) {
9105         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
9106         if (lastComparison != 0) {
9107           return lastComparison;
9108         }
9109       }
9110       return 0;
9111     }
9112
9113     public _Fields fieldForId(int fieldId) {
9114       return _Fields.findByThriftId(fieldId);
9115     }
9116
9117     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9118       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9119     }
9120
9121     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9122       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9123     }
9124
9125     @Override
9126     public String toString() {
9127       StringBuilder sb = new StringBuilder("withdrawRoute_args(");
9128       boolean first = true;
9129
9130       sb.append("prefix:");
9131       if (this.prefix == null) {
9132         sb.append("null");
9133       } else {
9134         sb.append(this.prefix);
9135       }
9136       first = false;
9137       if (!first) sb.append(", ");
9138       sb.append("rd:");
9139       if (this.rd == null) {
9140         sb.append("null");
9141       } else {
9142         sb.append(this.rd);
9143       }
9144       first = false;
9145       sb.append(")");
9146       return sb.toString();
9147     }
9148
9149     public void validate() throws org.apache.thrift.TException {
9150       // check for required fields
9151       // check for sub-struct validity
9152     }
9153
9154     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9155       try {
9156         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9157       } catch (org.apache.thrift.TException te) {
9158         throw new java.io.IOException(te);
9159       }
9160     }
9161
9162     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9163       try {
9164         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9165       } catch (org.apache.thrift.TException te) {
9166         throw new java.io.IOException(te);
9167       }
9168     }
9169
9170     private static class withdrawRoute_argsStandardSchemeFactory implements SchemeFactory {
9171       public withdrawRoute_argsStandardScheme getScheme() {
9172         return new withdrawRoute_argsStandardScheme();
9173       }
9174     }
9175
9176     private static class withdrawRoute_argsStandardScheme extends StandardScheme<withdrawRoute_args> {
9177
9178       public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
9179         org.apache.thrift.protocol.TField schemeField;
9180         iprot.readStructBegin();
9181         while (true)
9182         {
9183           schemeField = iprot.readFieldBegin();
9184           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
9185             break;
9186           }
9187           switch (schemeField.id) {
9188             case 1: // PREFIX
9189               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9190                 struct.prefix = iprot.readString();
9191                 struct.setPrefixIsSet(true);
9192               } else { 
9193                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9194               }
9195               break;
9196             case 2: // RD
9197               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9198                 struct.rd = iprot.readString();
9199                 struct.setRdIsSet(true);
9200               } else { 
9201                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9202               }
9203               break;
9204             default:
9205               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9206           }
9207           iprot.readFieldEnd();
9208         }
9209         iprot.readStructEnd();
9210
9211         // check for required fields of primitive type, which can't be checked in the validate method
9212         struct.validate();
9213       }
9214
9215       public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
9216         struct.validate();
9217
9218         oprot.writeStructBegin(STRUCT_DESC);
9219         if (struct.prefix != null) {
9220           oprot.writeFieldBegin(PREFIX_FIELD_DESC);
9221           oprot.writeString(struct.prefix);
9222           oprot.writeFieldEnd();
9223         }
9224         if (struct.rd != null) {
9225           oprot.writeFieldBegin(RD_FIELD_DESC);
9226           oprot.writeString(struct.rd);
9227           oprot.writeFieldEnd();
9228         }
9229         oprot.writeFieldStop();
9230         oprot.writeStructEnd();
9231       }
9232
9233     }
9234
9235     private static class withdrawRoute_argsTupleSchemeFactory implements SchemeFactory {
9236       public withdrawRoute_argsTupleScheme getScheme() {
9237         return new withdrawRoute_argsTupleScheme();
9238       }
9239     }
9240
9241     private static class withdrawRoute_argsTupleScheme extends TupleScheme<withdrawRoute_args> {
9242
9243       @Override
9244       public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
9245         TTupleProtocol oprot = (TTupleProtocol) prot;
9246         BitSet optionals = new BitSet();
9247         if (struct.isSetPrefix()) {
9248           optionals.set(0);
9249         }
9250         if (struct.isSetRd()) {
9251           optionals.set(1);
9252         }
9253         oprot.writeBitSet(optionals, 2);
9254         if (struct.isSetPrefix()) {
9255           oprot.writeString(struct.prefix);
9256         }
9257         if (struct.isSetRd()) {
9258           oprot.writeString(struct.rd);
9259         }
9260       }
9261
9262       @Override
9263       public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
9264         TTupleProtocol iprot = (TTupleProtocol) prot;
9265         BitSet incoming = iprot.readBitSet(2);
9266         if (incoming.get(0)) {
9267           struct.prefix = iprot.readString();
9268           struct.setPrefixIsSet(true);
9269         }
9270         if (incoming.get(1)) {
9271           struct.rd = iprot.readString();
9272           struct.setRdIsSet(true);
9273         }
9274       }
9275     }
9276
9277   }
9278
9279   public static class withdrawRoute_result implements org.apache.thrift.TBase<withdrawRoute_result, withdrawRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_result>   {
9280     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_result");
9281
9282     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
9283
9284     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9285     static {
9286       schemes.put(StandardScheme.class, new withdrawRoute_resultStandardSchemeFactory());
9287       schemes.put(TupleScheme.class, new withdrawRoute_resultTupleSchemeFactory());
9288     }
9289
9290     public int success; // required
9291
9292     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9293     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9294       SUCCESS((short)0, "success");
9295
9296       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9297
9298       static {
9299         for (_Fields field : EnumSet.allOf(_Fields.class)) {
9300           byName.put(field.getFieldName(), field);
9301         }
9302       }
9303
9304       /**
9305        * Find the _Fields constant that matches fieldId, or null if its not found.
9306        */
9307       public static _Fields findByThriftId(int fieldId) {
9308         switch(fieldId) {
9309           case 0: // SUCCESS
9310             return SUCCESS;
9311           default:
9312             return null;
9313         }
9314       }
9315
9316       /**
9317        * Find the _Fields constant that matches fieldId, throwing an exception
9318        * if it is not found.
9319        */
9320       public static _Fields findByThriftIdOrThrow(int fieldId) {
9321         _Fields fields = findByThriftId(fieldId);
9322         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9323         return fields;
9324       }
9325
9326       /**
9327        * Find the _Fields constant that matches name, or null if its not found.
9328        */
9329       public static _Fields findByName(String name) {
9330         return byName.get(name);
9331       }
9332
9333       private final short _thriftId;
9334       private final String _fieldName;
9335
9336       _Fields(short thriftId, String fieldName) {
9337         _thriftId = thriftId;
9338         _fieldName = fieldName;
9339       }
9340
9341       public short getThriftFieldId() {
9342         return _thriftId;
9343       }
9344
9345       public String getFieldName() {
9346         return _fieldName;
9347       }
9348     }
9349
9350     // isset id assignments
9351     private static final int __SUCCESS_ISSET_ID = 0;
9352     private byte __isset_bitfield = 0;
9353     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9354     static {
9355       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9356       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9357           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9358       metaDataMap = Collections.unmodifiableMap(tmpMap);
9359       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_result.class, metaDataMap);
9360     }
9361
9362     public withdrawRoute_result() {
9363     }
9364
9365     public withdrawRoute_result(
9366       int success)
9367     {
9368       this();
9369       this.success = success;
9370       setSuccessIsSet(true);
9371     }
9372
9373     /**
9374      * Performs a deep copy on <i>other</i>.
9375      */
9376     public withdrawRoute_result(withdrawRoute_result other) {
9377       __isset_bitfield = other.__isset_bitfield;
9378       this.success = other.success;
9379     }
9380
9381     public withdrawRoute_result deepCopy() {
9382       return new withdrawRoute_result(this);
9383     }
9384
9385     @Override
9386     public void clear() {
9387       setSuccessIsSet(false);
9388       this.success = 0;
9389     }
9390
9391     public int getSuccess() {
9392       return this.success;
9393     }
9394
9395     public withdrawRoute_result setSuccess(int success) {
9396       this.success = success;
9397       setSuccessIsSet(true);
9398       return this;
9399     }
9400
9401     public void unsetSuccess() {
9402       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9403     }
9404
9405     /** Returns true if field success is set (has been assigned a value) and false otherwise */
9406     public boolean isSetSuccess() {
9407       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9408     }
9409
9410     public void setSuccessIsSet(boolean value) {
9411       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
9412     }
9413
9414     public void setFieldValue(_Fields field, Object value) {
9415       switch (field) {
9416       case SUCCESS:
9417         if (value == null) {
9418           unsetSuccess();
9419         } else {
9420           setSuccess((Integer)value);
9421         }
9422         break;
9423
9424       }
9425     }
9426
9427     public Object getFieldValue(_Fields field) {
9428       switch (field) {
9429       case SUCCESS:
9430         return Integer.valueOf(getSuccess());
9431
9432       }
9433       throw new IllegalStateException();
9434     }
9435
9436     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9437     public boolean isSet(_Fields field) {
9438       if (field == null) {
9439         throw new IllegalArgumentException();
9440       }
9441
9442       switch (field) {
9443       case SUCCESS:
9444         return isSetSuccess();
9445       }
9446       throw new IllegalStateException();
9447     }
9448
9449     @Override
9450     public boolean equals(Object that) {
9451       if (that == null)
9452         return false;
9453       if (that instanceof withdrawRoute_result)
9454         return this.equals((withdrawRoute_result)that);
9455       return false;
9456     }
9457
9458     public boolean equals(withdrawRoute_result that) {
9459       if (that == null)
9460         return false;
9461
9462       boolean this_present_success = true;
9463       boolean that_present_success = true;
9464       if (this_present_success || that_present_success) {
9465         if (!(this_present_success && that_present_success))
9466           return false;
9467         if (this.success != that.success)
9468           return false;
9469       }
9470
9471       return true;
9472     }
9473
9474     @Override
9475     public int hashCode() {
9476       return 0;
9477     }
9478
9479     @Override
9480     public int compareTo(withdrawRoute_result other) {
9481       if (!getClass().equals(other.getClass())) {
9482         return getClass().getName().compareTo(other.getClass().getName());
9483       }
9484
9485       int lastComparison = 0;
9486
9487       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
9488       if (lastComparison != 0) {
9489         return lastComparison;
9490       }
9491       if (isSetSuccess()) {
9492         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
9493         if (lastComparison != 0) {
9494           return lastComparison;
9495         }
9496       }
9497       return 0;
9498     }
9499
9500     public _Fields fieldForId(int fieldId) {
9501       return _Fields.findByThriftId(fieldId);
9502     }
9503
9504     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9505       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9506     }
9507
9508     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9509       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9510       }
9511
9512     @Override
9513     public String toString() {
9514       StringBuilder sb = new StringBuilder("withdrawRoute_result(");
9515       boolean first = true;
9516
9517       sb.append("success:");
9518       sb.append(this.success);
9519       first = false;
9520       sb.append(")");
9521       return sb.toString();
9522     }
9523
9524     public void validate() throws org.apache.thrift.TException {
9525       // check for required fields
9526       // check for sub-struct validity
9527     }
9528
9529     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9530       try {
9531         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9532       } catch (org.apache.thrift.TException te) {
9533         throw new java.io.IOException(te);
9534       }
9535     }
9536
9537     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9538       try {
9539         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9540         __isset_bitfield = 0;
9541         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9542       } catch (org.apache.thrift.TException te) {
9543         throw new java.io.IOException(te);
9544       }
9545     }
9546
9547     private static class withdrawRoute_resultStandardSchemeFactory implements SchemeFactory {
9548       public withdrawRoute_resultStandardScheme getScheme() {
9549         return new withdrawRoute_resultStandardScheme();
9550       }
9551     }
9552
9553     private static class withdrawRoute_resultStandardScheme extends StandardScheme<withdrawRoute_result> {
9554
9555       public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
9556         org.apache.thrift.protocol.TField schemeField;
9557         iprot.readStructBegin();
9558         while (true)
9559         {
9560           schemeField = iprot.readFieldBegin();
9561           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
9562             break;
9563           }
9564           switch (schemeField.id) {
9565             case 0: // SUCCESS
9566               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9567                 struct.success = iprot.readI32();
9568                 struct.setSuccessIsSet(true);
9569               } else { 
9570                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9571               }
9572               break;
9573             default:
9574               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9575           }
9576           iprot.readFieldEnd();
9577         }
9578         iprot.readStructEnd();
9579
9580         // check for required fields of primitive type, which can't be checked in the validate method
9581         struct.validate();
9582       }
9583
9584       public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
9585         struct.validate();
9586
9587         oprot.writeStructBegin(STRUCT_DESC);
9588         if (struct.isSetSuccess()) {
9589           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9590           oprot.writeI32(struct.success);
9591           oprot.writeFieldEnd();
9592         }
9593         oprot.writeFieldStop();
9594         oprot.writeStructEnd();
9595       }
9596
9597     }
9598
9599     private static class withdrawRoute_resultTupleSchemeFactory implements SchemeFactory {
9600       public withdrawRoute_resultTupleScheme getScheme() {
9601         return new withdrawRoute_resultTupleScheme();
9602       }
9603     }
9604
9605     private static class withdrawRoute_resultTupleScheme extends TupleScheme<withdrawRoute_result> {
9606
9607       @Override
9608       public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
9609         TTupleProtocol oprot = (TTupleProtocol) prot;
9610         BitSet optionals = new BitSet();
9611         if (struct.isSetSuccess()) {
9612           optionals.set(0);
9613         }
9614         oprot.writeBitSet(optionals, 1);
9615         if (struct.isSetSuccess()) {
9616           oprot.writeI32(struct.success);
9617         }
9618       }
9619
9620       @Override
9621       public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
9622         TTupleProtocol iprot = (TTupleProtocol) prot;
9623         BitSet incoming = iprot.readBitSet(1);
9624         if (incoming.get(0)) {
9625           struct.success = iprot.readI32();
9626           struct.setSuccessIsSet(true);
9627         }
9628       }
9629     }
9630
9631   }
9632
9633   public static class setEbgpMultihop_args implements org.apache.thrift.TBase<setEbgpMultihop_args, setEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_args>   {
9634     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_args");
9635
9636     private static final org.apache.thrift.protocol.TField PEER_IP_FIELD_DESC = new org.apache.thrift.protocol.TField("peerIp", org.apache.thrift.protocol.TType.STRING, (short)1);
9637     private static final org.apache.thrift.protocol.TField N_HOPS_FIELD_DESC = new org.apache.thrift.protocol.TField("nHops", org.apache.thrift.protocol.TType.I32, (short)2);
9638
9639     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9640     static {
9641       schemes.put(StandardScheme.class, new setEbgpMultihop_argsStandardSchemeFactory());
9642       schemes.put(TupleScheme.class, new setEbgpMultihop_argsTupleSchemeFactory());
9643     }
9644
9645     public String peerIp; // required
9646     public int nHops; // required
9647
9648     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9649     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9650       PEER_IP((short)1, "peerIp"),
9651       N_HOPS((short)2, "nHops");
9652
9653       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9654
9655       static {
9656         for (_Fields field : EnumSet.allOf(_Fields.class)) {
9657           byName.put(field.getFieldName(), field);
9658         }
9659       }
9660
9661       /**
9662        * Find the _Fields constant that matches fieldId, or null if its not found.
9663        */
9664       public static _Fields findByThriftId(int fieldId) {
9665         switch(fieldId) {
9666           case 1: // PEER_IP
9667             return PEER_IP;
9668           case 2: // N_HOPS
9669             return N_HOPS;
9670           default:
9671             return null;
9672         }
9673       }
9674
9675       /**
9676        * Find the _Fields constant that matches fieldId, throwing an exception
9677        * if it is not found.
9678        */
9679       public static _Fields findByThriftIdOrThrow(int fieldId) {
9680         _Fields fields = findByThriftId(fieldId);
9681         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9682         return fields;
9683       }
9684
9685       /**
9686        * Find the _Fields constant that matches name, or null if its not found.
9687        */
9688       public static _Fields findByName(String name) {
9689         return byName.get(name);
9690       }
9691
9692       private final short _thriftId;
9693       private final String _fieldName;
9694
9695       _Fields(short thriftId, String fieldName) {
9696         _thriftId = thriftId;
9697         _fieldName = fieldName;
9698       }
9699
9700       public short getThriftFieldId() {
9701         return _thriftId;
9702       }
9703
9704       public String getFieldName() {
9705         return _fieldName;
9706       }
9707     }
9708
9709     // isset id assignments
9710     private static final int __NHOPS_ISSET_ID = 0;
9711     private byte __isset_bitfield = 0;
9712     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9713     static {
9714       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9715       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9716           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9717       tmpMap.put(_Fields.N_HOPS, new org.apache.thrift.meta_data.FieldMetaData("nHops", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9718           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9719       metaDataMap = Collections.unmodifiableMap(tmpMap);
9720       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_args.class, metaDataMap);
9721     }
9722
9723     public setEbgpMultihop_args() {
9724     }
9725
9726     public setEbgpMultihop_args(
9727       String peerIp,
9728       int nHops)
9729     {
9730       this();
9731       this.peerIp = peerIp;
9732       this.nHops = nHops;
9733       setNHopsIsSet(true);
9734     }
9735
9736     /**
9737      * Performs a deep copy on <i>other</i>.
9738      */
9739     public setEbgpMultihop_args(setEbgpMultihop_args other) {
9740       __isset_bitfield = other.__isset_bitfield;
9741       if (other.isSetPeerIp()) {
9742         this.peerIp = other.peerIp;
9743       }
9744       this.nHops = other.nHops;
9745     }
9746
9747     public setEbgpMultihop_args deepCopy() {
9748       return new setEbgpMultihop_args(this);
9749     }
9750
9751     @Override
9752     public void clear() {
9753       this.peerIp = null;
9754       setNHopsIsSet(false);
9755       this.nHops = 0;
9756     }
9757
9758     public String getPeerIp() {
9759       return this.peerIp;
9760     }
9761
9762     public setEbgpMultihop_args setPeerIp(String peerIp) {
9763       this.peerIp = peerIp;
9764       return this;
9765     }
9766
9767     public void unsetPeerIp() {
9768       this.peerIp = null;
9769     }
9770
9771     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
9772     public boolean isSetPeerIp() {
9773       return this.peerIp != null;
9774     }
9775
9776     public void setPeerIpIsSet(boolean value) {
9777       if (!value) {
9778         this.peerIp = null;
9779       }
9780     }
9781
9782     public int getNHops() {
9783       return this.nHops;
9784     }
9785
9786     public setEbgpMultihop_args setNHops(int nHops) {
9787       this.nHops = nHops;
9788       setNHopsIsSet(true);
9789       return this;
9790     }
9791
9792     public void unsetNHops() {
9793       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NHOPS_ISSET_ID);
9794     }
9795
9796     /** Returns true if field nHops is set (has been assigned a value) and false otherwise */
9797     public boolean isSetNHops() {
9798       return EncodingUtils.testBit(__isset_bitfield, __NHOPS_ISSET_ID);
9799     }
9800
9801     public void setNHopsIsSet(boolean value) {
9802       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NHOPS_ISSET_ID, value);
9803     }
9804
9805     public void setFieldValue(_Fields field, Object value) {
9806       switch (field) {
9807       case PEER_IP:
9808         if (value == null) {
9809           unsetPeerIp();
9810         } else {
9811           setPeerIp((String)value);
9812         }
9813         break;
9814
9815       case N_HOPS:
9816         if (value == null) {
9817           unsetNHops();
9818         } else {
9819           setNHops((Integer)value);
9820         }
9821         break;
9822
9823       }
9824     }
9825
9826     public Object getFieldValue(_Fields field) {
9827       switch (field) {
9828       case PEER_IP:
9829         return getPeerIp();
9830
9831       case N_HOPS:
9832         return Integer.valueOf(getNHops());
9833
9834       }
9835       throw new IllegalStateException();
9836     }
9837
9838     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9839     public boolean isSet(_Fields field) {
9840       if (field == null) {
9841         throw new IllegalArgumentException();
9842       }
9843
9844       switch (field) {
9845       case PEER_IP:
9846         return isSetPeerIp();
9847       case N_HOPS:
9848         return isSetNHops();
9849       }
9850       throw new IllegalStateException();
9851     }
9852
9853     @Override
9854     public boolean equals(Object that) {
9855       if (that == null)
9856         return false;
9857       if (that instanceof setEbgpMultihop_args)
9858         return this.equals((setEbgpMultihop_args)that);
9859       return false;
9860     }
9861
9862     public boolean equals(setEbgpMultihop_args that) {
9863       if (that == null)
9864         return false;
9865
9866       boolean this_present_peerIp = true && this.isSetPeerIp();
9867       boolean that_present_peerIp = true && that.isSetPeerIp();
9868       if (this_present_peerIp || that_present_peerIp) {
9869         if (!(this_present_peerIp && that_present_peerIp))
9870           return false;
9871         if (!this.peerIp.equals(that.peerIp))
9872           return false;
9873       }
9874
9875       boolean this_present_nHops = true;
9876       boolean that_present_nHops = true;
9877       if (this_present_nHops || that_present_nHops) {
9878         if (!(this_present_nHops && that_present_nHops))
9879           return false;
9880         if (this.nHops != that.nHops)
9881           return false;
9882       }
9883
9884       return true;
9885     }
9886
9887     @Override
9888     public int hashCode() {
9889       return 0;
9890     }
9891
9892     @Override
9893     public int compareTo(setEbgpMultihop_args other) {
9894       if (!getClass().equals(other.getClass())) {
9895         return getClass().getName().compareTo(other.getClass().getName());
9896       }
9897
9898       int lastComparison = 0;
9899
9900       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
9901       if (lastComparison != 0) {
9902         return lastComparison;
9903       }
9904       if (isSetPeerIp()) {
9905         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
9906         if (lastComparison != 0) {
9907           return lastComparison;
9908         }
9909       }
9910       lastComparison = Boolean.valueOf(isSetNHops()).compareTo(other.isSetNHops());
9911       if (lastComparison != 0) {
9912         return lastComparison;
9913       }
9914       if (isSetNHops()) {
9915         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nHops, other.nHops);
9916         if (lastComparison != 0) {
9917           return lastComparison;
9918         }
9919       }
9920       return 0;
9921     }
9922
9923     public _Fields fieldForId(int fieldId) {
9924       return _Fields.findByThriftId(fieldId);
9925     }
9926
9927     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9928       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9929     }
9930
9931     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9932       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9933     }
9934
9935     @Override
9936     public String toString() {
9937       StringBuilder sb = new StringBuilder("setEbgpMultihop_args(");
9938       boolean first = true;
9939
9940       sb.append("peerIp:");
9941       if (this.peerIp == null) {
9942         sb.append("null");
9943       } else {
9944         sb.append(this.peerIp);
9945       }
9946       first = false;
9947       if (!first) sb.append(", ");
9948       sb.append("nHops:");
9949       sb.append(this.nHops);
9950       first = false;
9951       sb.append(")");
9952       return sb.toString();
9953     }
9954
9955     public void validate() throws org.apache.thrift.TException {
9956       // check for required fields
9957       // check for sub-struct validity
9958     }
9959
9960     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9961       try {
9962         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9963       } catch (org.apache.thrift.TException te) {
9964         throw new java.io.IOException(te);
9965       }
9966     }
9967
9968     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9969       try {
9970         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9971         __isset_bitfield = 0;
9972         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9973       } catch (org.apache.thrift.TException te) {
9974         throw new java.io.IOException(te);
9975       }
9976     }
9977
9978     private static class setEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
9979       public setEbgpMultihop_argsStandardScheme getScheme() {
9980         return new setEbgpMultihop_argsStandardScheme();
9981       }
9982     }
9983
9984     private static class setEbgpMultihop_argsStandardScheme extends StandardScheme<setEbgpMultihop_args> {
9985
9986       public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
9987         org.apache.thrift.protocol.TField schemeField;
9988         iprot.readStructBegin();
9989         while (true)
9990         {
9991           schemeField = iprot.readFieldBegin();
9992           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
9993             break;
9994           }
9995           switch (schemeField.id) {
9996             case 1: // PEER_IP
9997               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9998                 struct.peerIp = iprot.readString();
9999                 struct.setPeerIpIsSet(true);
10000               } else { 
10001                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10002               }
10003               break;
10004             case 2: // N_HOPS
10005               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10006                 struct.nHops = iprot.readI32();
10007                 struct.setNHopsIsSet(true);
10008               } else { 
10009                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10010               }
10011               break;
10012             default:
10013               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10014           }
10015           iprot.readFieldEnd();
10016         }
10017         iprot.readStructEnd();
10018
10019         // check for required fields of primitive type, which can't be checked in the validate method
10020         struct.validate();
10021       }
10022
10023       public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
10024         struct.validate();
10025
10026         oprot.writeStructBegin(STRUCT_DESC);
10027         if (struct.peerIp != null) {
10028           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
10029           oprot.writeString(struct.peerIp);
10030           oprot.writeFieldEnd();
10031         }
10032         oprot.writeFieldBegin(N_HOPS_FIELD_DESC);
10033         oprot.writeI32(struct.nHops);
10034         oprot.writeFieldEnd();
10035         oprot.writeFieldStop();
10036         oprot.writeStructEnd();
10037       }
10038
10039     }
10040
10041     private static class setEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
10042       public setEbgpMultihop_argsTupleScheme getScheme() {
10043         return new setEbgpMultihop_argsTupleScheme();
10044       }
10045     }
10046
10047     private static class setEbgpMultihop_argsTupleScheme extends TupleScheme<setEbgpMultihop_args> {
10048
10049       @Override
10050       public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
10051         TTupleProtocol oprot = (TTupleProtocol) prot;
10052         BitSet optionals = new BitSet();
10053         if (struct.isSetPeerIp()) {
10054           optionals.set(0);
10055         }
10056         if (struct.isSetNHops()) {
10057           optionals.set(1);
10058         }
10059         oprot.writeBitSet(optionals, 2);
10060         if (struct.isSetPeerIp()) {
10061           oprot.writeString(struct.peerIp);
10062         }
10063         if (struct.isSetNHops()) {
10064           oprot.writeI32(struct.nHops);
10065         }
10066       }
10067
10068       @Override
10069       public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
10070         TTupleProtocol iprot = (TTupleProtocol) prot;
10071         BitSet incoming = iprot.readBitSet(2);
10072         if (incoming.get(0)) {
10073           struct.peerIp = iprot.readString();
10074           struct.setPeerIpIsSet(true);
10075         }
10076         if (incoming.get(1)) {
10077           struct.nHops = iprot.readI32();
10078           struct.setNHopsIsSet(true);
10079         }
10080       }
10081     }
10082
10083   }
10084
10085   public static class setEbgpMultihop_result implements org.apache.thrift.TBase<setEbgpMultihop_result, setEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_result>   {
10086     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_result");
10087
10088     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
10089
10090     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10091     static {
10092       schemes.put(StandardScheme.class, new setEbgpMultihop_resultStandardSchemeFactory());
10093       schemes.put(TupleScheme.class, new setEbgpMultihop_resultTupleSchemeFactory());
10094     }
10095
10096     public int success; // required
10097
10098     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10099     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10100       SUCCESS((short)0, "success");
10101
10102       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10103
10104       static {
10105         for (_Fields field : EnumSet.allOf(_Fields.class)) {
10106           byName.put(field.getFieldName(), field);
10107         }
10108       }
10109
10110       /**
10111        * Find the _Fields constant that matches fieldId, or null if its not found.
10112        */
10113       public static _Fields findByThriftId(int fieldId) {
10114         switch(fieldId) {
10115           case 0: // SUCCESS
10116             return SUCCESS;
10117           default:
10118             return null;
10119         }
10120       }
10121
10122       /**
10123        * Find the _Fields constant that matches fieldId, throwing an exception
10124        * if it is not found.
10125        */
10126       public static _Fields findByThriftIdOrThrow(int fieldId) {
10127         _Fields fields = findByThriftId(fieldId);
10128         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10129         return fields;
10130       }
10131
10132       /**
10133        * Find the _Fields constant that matches name, or null if its not found.
10134        */
10135       public static _Fields findByName(String name) {
10136         return byName.get(name);
10137       }
10138
10139       private final short _thriftId;
10140       private final String _fieldName;
10141
10142       _Fields(short thriftId, String fieldName) {
10143         _thriftId = thriftId;
10144         _fieldName = fieldName;
10145       }
10146
10147       public short getThriftFieldId() {
10148         return _thriftId;
10149       }
10150
10151       public String getFieldName() {
10152         return _fieldName;
10153       }
10154     }
10155
10156     // isset id assignments
10157     private static final int __SUCCESS_ISSET_ID = 0;
10158     private byte __isset_bitfield = 0;
10159     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10160     static {
10161       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10162       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10163           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10164       metaDataMap = Collections.unmodifiableMap(tmpMap);
10165       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_result.class, metaDataMap);
10166     }
10167
10168     public setEbgpMultihop_result() {
10169     }
10170
10171     public setEbgpMultihop_result(
10172       int success)
10173     {
10174       this();
10175       this.success = success;
10176       setSuccessIsSet(true);
10177     }
10178
10179     /**
10180      * Performs a deep copy on <i>other</i>.
10181      */
10182     public setEbgpMultihop_result(setEbgpMultihop_result other) {
10183       __isset_bitfield = other.__isset_bitfield;
10184       this.success = other.success;
10185     }
10186
10187     public setEbgpMultihop_result deepCopy() {
10188       return new setEbgpMultihop_result(this);
10189     }
10190
10191     @Override
10192     public void clear() {
10193       setSuccessIsSet(false);
10194       this.success = 0;
10195     }
10196
10197     public int getSuccess() {
10198       return this.success;
10199     }
10200
10201     public setEbgpMultihop_result setSuccess(int success) {
10202       this.success = success;
10203       setSuccessIsSet(true);
10204       return this;
10205     }
10206
10207     public void unsetSuccess() {
10208       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10209     }
10210
10211     /** Returns true if field success is set (has been assigned a value) and false otherwise */
10212     public boolean isSetSuccess() {
10213       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10214     }
10215
10216     public void setSuccessIsSet(boolean value) {
10217       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
10218     }
10219
10220     public void setFieldValue(_Fields field, Object value) {
10221       switch (field) {
10222       case SUCCESS:
10223         if (value == null) {
10224           unsetSuccess();
10225         } else {
10226           setSuccess((Integer)value);
10227         }
10228         break;
10229
10230       }
10231     }
10232
10233     public Object getFieldValue(_Fields field) {
10234       switch (field) {
10235       case SUCCESS:
10236         return Integer.valueOf(getSuccess());
10237
10238       }
10239       throw new IllegalStateException();
10240     }
10241
10242     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10243     public boolean isSet(_Fields field) {
10244       if (field == null) {
10245         throw new IllegalArgumentException();
10246       }
10247
10248       switch (field) {
10249       case SUCCESS:
10250         return isSetSuccess();
10251       }
10252       throw new IllegalStateException();
10253     }
10254
10255     @Override
10256     public boolean equals(Object that) {
10257       if (that == null)
10258         return false;
10259       if (that instanceof setEbgpMultihop_result)
10260         return this.equals((setEbgpMultihop_result)that);
10261       return false;
10262     }
10263
10264     public boolean equals(setEbgpMultihop_result that) {
10265       if (that == null)
10266         return false;
10267
10268       boolean this_present_success = true;
10269       boolean that_present_success = true;
10270       if (this_present_success || that_present_success) {
10271         if (!(this_present_success && that_present_success))
10272           return false;
10273         if (this.success != that.success)
10274           return false;
10275       }
10276
10277       return true;
10278     }
10279
10280     @Override
10281     public int hashCode() {
10282       return 0;
10283     }
10284
10285     @Override
10286     public int compareTo(setEbgpMultihop_result other) {
10287       if (!getClass().equals(other.getClass())) {
10288         return getClass().getName().compareTo(other.getClass().getName());
10289       }
10290
10291       int lastComparison = 0;
10292
10293       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
10294       if (lastComparison != 0) {
10295         return lastComparison;
10296       }
10297       if (isSetSuccess()) {
10298         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
10299         if (lastComparison != 0) {
10300           return lastComparison;
10301         }
10302       }
10303       return 0;
10304     }
10305
10306     public _Fields fieldForId(int fieldId) {
10307       return _Fields.findByThriftId(fieldId);
10308     }
10309
10310     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10311       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10312     }
10313
10314     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10315       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10316       }
10317
10318     @Override
10319     public String toString() {
10320       StringBuilder sb = new StringBuilder("setEbgpMultihop_result(");
10321       boolean first = true;
10322
10323       sb.append("success:");
10324       sb.append(this.success);
10325       first = false;
10326       sb.append(")");
10327       return sb.toString();
10328     }
10329
10330     public void validate() throws org.apache.thrift.TException {
10331       // check for required fields
10332       // check for sub-struct validity
10333     }
10334
10335     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10336       try {
10337         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10338       } catch (org.apache.thrift.TException te) {
10339         throw new java.io.IOException(te);
10340       }
10341     }
10342
10343     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10344       try {
10345         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10346         __isset_bitfield = 0;
10347         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10348       } catch (org.apache.thrift.TException te) {
10349         throw new java.io.IOException(te);
10350       }
10351     }
10352
10353     private static class setEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
10354       public setEbgpMultihop_resultStandardScheme getScheme() {
10355         return new setEbgpMultihop_resultStandardScheme();
10356       }
10357     }
10358
10359     private static class setEbgpMultihop_resultStandardScheme extends StandardScheme<setEbgpMultihop_result> {
10360
10361       public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
10362         org.apache.thrift.protocol.TField schemeField;
10363         iprot.readStructBegin();
10364         while (true)
10365         {
10366           schemeField = iprot.readFieldBegin();
10367           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
10368             break;
10369           }
10370           switch (schemeField.id) {
10371             case 0: // SUCCESS
10372               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10373                 struct.success = iprot.readI32();
10374                 struct.setSuccessIsSet(true);
10375               } else { 
10376                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10377               }
10378               break;
10379             default:
10380               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10381           }
10382           iprot.readFieldEnd();
10383         }
10384         iprot.readStructEnd();
10385
10386         // check for required fields of primitive type, which can't be checked in the validate method
10387         struct.validate();
10388       }
10389
10390       public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
10391         struct.validate();
10392
10393         oprot.writeStructBegin(STRUCT_DESC);
10394         if (struct.isSetSuccess()) {
10395           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10396           oprot.writeI32(struct.success);
10397           oprot.writeFieldEnd();
10398         }
10399         oprot.writeFieldStop();
10400         oprot.writeStructEnd();
10401       }
10402
10403     }
10404
10405     private static class setEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
10406       public setEbgpMultihop_resultTupleScheme getScheme() {
10407         return new setEbgpMultihop_resultTupleScheme();
10408       }
10409     }
10410
10411     private static class setEbgpMultihop_resultTupleScheme extends TupleScheme<setEbgpMultihop_result> {
10412
10413       @Override
10414       public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
10415         TTupleProtocol oprot = (TTupleProtocol) prot;
10416         BitSet optionals = new BitSet();
10417         if (struct.isSetSuccess()) {
10418           optionals.set(0);
10419         }
10420         oprot.writeBitSet(optionals, 1);
10421         if (struct.isSetSuccess()) {
10422           oprot.writeI32(struct.success);
10423         }
10424       }
10425
10426       @Override
10427       public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
10428         TTupleProtocol iprot = (TTupleProtocol) prot;
10429         BitSet incoming = iprot.readBitSet(1);
10430         if (incoming.get(0)) {
10431           struct.success = iprot.readI32();
10432           struct.setSuccessIsSet(true);
10433         }
10434       }
10435     }
10436
10437   }
10438
10439   public static class unsetEbgpMultihop_args implements org.apache.thrift.TBase<unsetEbgpMultihop_args, unsetEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_args>   {
10440     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_args");
10441
10442     private static final org.apache.thrift.protocol.TField PEER_IP_FIELD_DESC = new org.apache.thrift.protocol.TField("peerIp", org.apache.thrift.protocol.TType.STRING, (short)1);
10443
10444     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10445     static {
10446       schemes.put(StandardScheme.class, new unsetEbgpMultihop_argsStandardSchemeFactory());
10447       schemes.put(TupleScheme.class, new unsetEbgpMultihop_argsTupleSchemeFactory());
10448     }
10449
10450     public String peerIp; // required
10451
10452     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10453     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10454       PEER_IP((short)1, "peerIp");
10455
10456       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10457
10458       static {
10459         for (_Fields field : EnumSet.allOf(_Fields.class)) {
10460           byName.put(field.getFieldName(), field);
10461         }
10462       }
10463
10464       /**
10465        * Find the _Fields constant that matches fieldId, or null if its not found.
10466        */
10467       public static _Fields findByThriftId(int fieldId) {
10468         switch(fieldId) {
10469           case 1: // PEER_IP
10470             return PEER_IP;
10471           default:
10472             return null;
10473         }
10474       }
10475
10476       /**
10477        * Find the _Fields constant that matches fieldId, throwing an exception
10478        * if it is not found.
10479        */
10480       public static _Fields findByThriftIdOrThrow(int fieldId) {
10481         _Fields fields = findByThriftId(fieldId);
10482         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10483         return fields;
10484       }
10485
10486       /**
10487        * Find the _Fields constant that matches name, or null if its not found.
10488        */
10489       public static _Fields findByName(String name) {
10490         return byName.get(name);
10491       }
10492
10493       private final short _thriftId;
10494       private final String _fieldName;
10495
10496       _Fields(short thriftId, String fieldName) {
10497         _thriftId = thriftId;
10498         _fieldName = fieldName;
10499       }
10500
10501       public short getThriftFieldId() {
10502         return _thriftId;
10503       }
10504
10505       public String getFieldName() {
10506         return _fieldName;
10507       }
10508     }
10509
10510     // isset id assignments
10511     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10512     static {
10513       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10514       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10515           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10516       metaDataMap = Collections.unmodifiableMap(tmpMap);
10517       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_args.class, metaDataMap);
10518     }
10519
10520     public unsetEbgpMultihop_args() {
10521     }
10522
10523     public unsetEbgpMultihop_args(
10524       String peerIp)
10525     {
10526       this();
10527       this.peerIp = peerIp;
10528     }
10529
10530     /**
10531      * Performs a deep copy on <i>other</i>.
10532      */
10533     public unsetEbgpMultihop_args(unsetEbgpMultihop_args other) {
10534       if (other.isSetPeerIp()) {
10535         this.peerIp = other.peerIp;
10536       }
10537     }
10538
10539     public unsetEbgpMultihop_args deepCopy() {
10540       return new unsetEbgpMultihop_args(this);
10541     }
10542
10543     @Override
10544     public void clear() {
10545       this.peerIp = null;
10546     }
10547
10548     public String getPeerIp() {
10549       return this.peerIp;
10550     }
10551
10552     public unsetEbgpMultihop_args setPeerIp(String peerIp) {
10553       this.peerIp = peerIp;
10554       return this;
10555     }
10556
10557     public void unsetPeerIp() {
10558       this.peerIp = null;
10559     }
10560
10561     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
10562     public boolean isSetPeerIp() {
10563       return this.peerIp != null;
10564     }
10565
10566     public void setPeerIpIsSet(boolean value) {
10567       if (!value) {
10568         this.peerIp = null;
10569       }
10570     }
10571
10572     public void setFieldValue(_Fields field, Object value) {
10573       switch (field) {
10574       case PEER_IP:
10575         if (value == null) {
10576           unsetPeerIp();
10577         } else {
10578           setPeerIp((String)value);
10579         }
10580         break;
10581
10582       }
10583     }
10584
10585     public Object getFieldValue(_Fields field) {
10586       switch (field) {
10587       case PEER_IP:
10588         return getPeerIp();
10589
10590       }
10591       throw new IllegalStateException();
10592     }
10593
10594     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10595     public boolean isSet(_Fields field) {
10596       if (field == null) {
10597         throw new IllegalArgumentException();
10598       }
10599
10600       switch (field) {
10601       case PEER_IP:
10602         return isSetPeerIp();
10603       }
10604       throw new IllegalStateException();
10605     }
10606
10607     @Override
10608     public boolean equals(Object that) {
10609       if (that == null)
10610         return false;
10611       if (that instanceof unsetEbgpMultihop_args)
10612         return this.equals((unsetEbgpMultihop_args)that);
10613       return false;
10614     }
10615
10616     public boolean equals(unsetEbgpMultihop_args that) {
10617       if (that == null)
10618         return false;
10619
10620       boolean this_present_peerIp = true && this.isSetPeerIp();
10621       boolean that_present_peerIp = true && that.isSetPeerIp();
10622       if (this_present_peerIp || that_present_peerIp) {
10623         if (!(this_present_peerIp && that_present_peerIp))
10624           return false;
10625         if (!this.peerIp.equals(that.peerIp))
10626           return false;
10627       }
10628
10629       return true;
10630     }
10631
10632     @Override
10633     public int hashCode() {
10634       return 0;
10635     }
10636
10637     @Override
10638     public int compareTo(unsetEbgpMultihop_args other) {
10639       if (!getClass().equals(other.getClass())) {
10640         return getClass().getName().compareTo(other.getClass().getName());
10641       }
10642
10643       int lastComparison = 0;
10644
10645       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
10646       if (lastComparison != 0) {
10647         return lastComparison;
10648       }
10649       if (isSetPeerIp()) {
10650         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
10651         if (lastComparison != 0) {
10652           return lastComparison;
10653         }
10654       }
10655       return 0;
10656     }
10657
10658     public _Fields fieldForId(int fieldId) {
10659       return _Fields.findByThriftId(fieldId);
10660     }
10661
10662     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10663       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10664     }
10665
10666     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10667       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10668     }
10669
10670     @Override
10671     public String toString() {
10672       StringBuilder sb = new StringBuilder("unsetEbgpMultihop_args(");
10673       boolean first = true;
10674
10675       sb.append("peerIp:");
10676       if (this.peerIp == null) {
10677         sb.append("null");
10678       } else {
10679         sb.append(this.peerIp);
10680       }
10681       first = false;
10682       sb.append(")");
10683       return sb.toString();
10684     }
10685
10686     public void validate() throws org.apache.thrift.TException {
10687       // check for required fields
10688       // check for sub-struct validity
10689     }
10690
10691     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10692       try {
10693         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10694       } catch (org.apache.thrift.TException te) {
10695         throw new java.io.IOException(te);
10696       }
10697     }
10698
10699     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10700       try {
10701         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10702       } catch (org.apache.thrift.TException te) {
10703         throw new java.io.IOException(te);
10704       }
10705     }
10706
10707     private static class unsetEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
10708       public unsetEbgpMultihop_argsStandardScheme getScheme() {
10709         return new unsetEbgpMultihop_argsStandardScheme();
10710       }
10711     }
10712
10713     private static class unsetEbgpMultihop_argsStandardScheme extends StandardScheme<unsetEbgpMultihop_args> {
10714
10715       public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
10716         org.apache.thrift.protocol.TField schemeField;
10717         iprot.readStructBegin();
10718         while (true)
10719         {
10720           schemeField = iprot.readFieldBegin();
10721           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
10722             break;
10723           }
10724           switch (schemeField.id) {
10725             case 1: // PEER_IP
10726               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10727                 struct.peerIp = iprot.readString();
10728                 struct.setPeerIpIsSet(true);
10729               } else { 
10730                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10731               }
10732               break;
10733             default:
10734               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10735           }
10736           iprot.readFieldEnd();
10737         }
10738         iprot.readStructEnd();
10739
10740         // check for required fields of primitive type, which can't be checked in the validate method
10741         struct.validate();
10742       }
10743
10744       public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
10745         struct.validate();
10746
10747         oprot.writeStructBegin(STRUCT_DESC);
10748         if (struct.peerIp != null) {
10749           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
10750           oprot.writeString(struct.peerIp);
10751           oprot.writeFieldEnd();
10752         }
10753         oprot.writeFieldStop();
10754         oprot.writeStructEnd();
10755       }
10756
10757     }
10758
10759     private static class unsetEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
10760       public unsetEbgpMultihop_argsTupleScheme getScheme() {
10761         return new unsetEbgpMultihop_argsTupleScheme();
10762       }
10763     }
10764
10765     private static class unsetEbgpMultihop_argsTupleScheme extends TupleScheme<unsetEbgpMultihop_args> {
10766
10767       @Override
10768       public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
10769         TTupleProtocol oprot = (TTupleProtocol) prot;
10770         BitSet optionals = new BitSet();
10771         if (struct.isSetPeerIp()) {
10772           optionals.set(0);
10773         }
10774         oprot.writeBitSet(optionals, 1);
10775         if (struct.isSetPeerIp()) {
10776           oprot.writeString(struct.peerIp);
10777         }
10778       }
10779
10780       @Override
10781       public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
10782         TTupleProtocol iprot = (TTupleProtocol) prot;
10783         BitSet incoming = iprot.readBitSet(1);
10784         if (incoming.get(0)) {
10785           struct.peerIp = iprot.readString();
10786           struct.setPeerIpIsSet(true);
10787         }
10788       }
10789     }
10790
10791   }
10792
10793   public static class unsetEbgpMultihop_result implements org.apache.thrift.TBase<unsetEbgpMultihop_result, unsetEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_result>   {
10794     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_result");
10795
10796     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
10797
10798     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10799     static {
10800       schemes.put(StandardScheme.class, new unsetEbgpMultihop_resultStandardSchemeFactory());
10801       schemes.put(TupleScheme.class, new unsetEbgpMultihop_resultTupleSchemeFactory());
10802     }
10803
10804     public int success; // required
10805
10806     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10807     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10808       SUCCESS((short)0, "success");
10809
10810       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10811
10812       static {
10813         for (_Fields field : EnumSet.allOf(_Fields.class)) {
10814           byName.put(field.getFieldName(), field);
10815         }
10816       }
10817
10818       /**
10819        * Find the _Fields constant that matches fieldId, or null if its not found.
10820        */
10821       public static _Fields findByThriftId(int fieldId) {
10822         switch(fieldId) {
10823           case 0: // SUCCESS
10824             return SUCCESS;
10825           default:
10826             return null;
10827         }
10828       }
10829
10830       /**
10831        * Find the _Fields constant that matches fieldId, throwing an exception
10832        * if it is not found.
10833        */
10834       public static _Fields findByThriftIdOrThrow(int fieldId) {
10835         _Fields fields = findByThriftId(fieldId);
10836         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10837         return fields;
10838       }
10839
10840       /**
10841        * Find the _Fields constant that matches name, or null if its not found.
10842        */
10843       public static _Fields findByName(String name) {
10844         return byName.get(name);
10845       }
10846
10847       private final short _thriftId;
10848       private final String _fieldName;
10849
10850       _Fields(short thriftId, String fieldName) {
10851         _thriftId = thriftId;
10852         _fieldName = fieldName;
10853       }
10854
10855       public short getThriftFieldId() {
10856         return _thriftId;
10857       }
10858
10859       public String getFieldName() {
10860         return _fieldName;
10861       }
10862     }
10863
10864     // isset id assignments
10865     private static final int __SUCCESS_ISSET_ID = 0;
10866     private byte __isset_bitfield = 0;
10867     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10868     static {
10869       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10870       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10871           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10872       metaDataMap = Collections.unmodifiableMap(tmpMap);
10873       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_result.class, metaDataMap);
10874     }
10875
10876     public unsetEbgpMultihop_result() {
10877     }
10878
10879     public unsetEbgpMultihop_result(
10880       int success)
10881     {
10882       this();
10883       this.success = success;
10884       setSuccessIsSet(true);
10885     }
10886
10887     /**
10888      * Performs a deep copy on <i>other</i>.
10889      */
10890     public unsetEbgpMultihop_result(unsetEbgpMultihop_result other) {
10891       __isset_bitfield = other.__isset_bitfield;
10892       this.success = other.success;
10893     }
10894
10895     public unsetEbgpMultihop_result deepCopy() {
10896       return new unsetEbgpMultihop_result(this);
10897     }
10898
10899     @Override
10900     public void clear() {
10901       setSuccessIsSet(false);
10902       this.success = 0;
10903     }
10904
10905     public int getSuccess() {
10906       return this.success;
10907     }
10908
10909     public unsetEbgpMultihop_result setSuccess(int success) {
10910       this.success = success;
10911       setSuccessIsSet(true);
10912       return this;
10913     }
10914
10915     public void unsetSuccess() {
10916       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10917     }
10918
10919     /** Returns true if field success is set (has been assigned a value) and false otherwise */
10920     public boolean isSetSuccess() {
10921       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10922     }
10923
10924     public void setSuccessIsSet(boolean value) {
10925       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
10926     }
10927
10928     public void setFieldValue(_Fields field, Object value) {
10929       switch (field) {
10930       case SUCCESS:
10931         if (value == null) {
10932           unsetSuccess();
10933         } else {
10934           setSuccess((Integer)value);
10935         }
10936         break;
10937
10938       }
10939     }
10940
10941     public Object getFieldValue(_Fields field) {
10942       switch (field) {
10943       case SUCCESS:
10944         return Integer.valueOf(getSuccess());
10945
10946       }
10947       throw new IllegalStateException();
10948     }
10949
10950     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10951     public boolean isSet(_Fields field) {
10952       if (field == null) {
10953         throw new IllegalArgumentException();
10954       }
10955
10956       switch (field) {
10957       case SUCCESS:
10958         return isSetSuccess();
10959       }
10960       throw new IllegalStateException();
10961     }
10962
10963     @Override
10964     public boolean equals(Object that) {
10965       if (that == null)
10966         return false;
10967       if (that instanceof unsetEbgpMultihop_result)
10968         return this.equals((unsetEbgpMultihop_result)that);
10969       return false;
10970     }
10971
10972     public boolean equals(unsetEbgpMultihop_result that) {
10973       if (that == null)
10974         return false;
10975
10976       boolean this_present_success = true;
10977       boolean that_present_success = true;
10978       if (this_present_success || that_present_success) {
10979         if (!(this_present_success && that_present_success))
10980           return false;
10981         if (this.success != that.success)
10982           return false;
10983       }
10984
10985       return true;
10986     }
10987
10988     @Override
10989     public int hashCode() {
10990       return 0;
10991     }
10992
10993     @Override
10994     public int compareTo(unsetEbgpMultihop_result other) {
10995       if (!getClass().equals(other.getClass())) {
10996         return getClass().getName().compareTo(other.getClass().getName());
10997       }
10998
10999       int lastComparison = 0;
11000
11001       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
11002       if (lastComparison != 0) {
11003         return lastComparison;
11004       }
11005       if (isSetSuccess()) {
11006         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
11007         if (lastComparison != 0) {
11008           return lastComparison;
11009         }
11010       }
11011       return 0;
11012     }
11013
11014     public _Fields fieldForId(int fieldId) {
11015       return _Fields.findByThriftId(fieldId);
11016     }
11017
11018     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11019       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11020     }
11021
11022     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11023       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11024       }
11025
11026     @Override
11027     public String toString() {
11028       StringBuilder sb = new StringBuilder("unsetEbgpMultihop_result(");
11029       boolean first = true;
11030
11031       sb.append("success:");
11032       sb.append(this.success);
11033       first = false;
11034       sb.append(")");
11035       return sb.toString();
11036     }
11037
11038     public void validate() throws org.apache.thrift.TException {
11039       // check for required fields
11040       // check for sub-struct validity
11041     }
11042
11043     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11044       try {
11045         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11046       } catch (org.apache.thrift.TException te) {
11047         throw new java.io.IOException(te);
11048       }
11049     }
11050
11051     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11052       try {
11053         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11054         __isset_bitfield = 0;
11055         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11056       } catch (org.apache.thrift.TException te) {
11057         throw new java.io.IOException(te);
11058       }
11059     }
11060
11061     private static class unsetEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
11062       public unsetEbgpMultihop_resultStandardScheme getScheme() {
11063         return new unsetEbgpMultihop_resultStandardScheme();
11064       }
11065     }
11066
11067     private static class unsetEbgpMultihop_resultStandardScheme extends StandardScheme<unsetEbgpMultihop_result> {
11068
11069       public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
11070         org.apache.thrift.protocol.TField schemeField;
11071         iprot.readStructBegin();
11072         while (true)
11073         {
11074           schemeField = iprot.readFieldBegin();
11075           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
11076             break;
11077           }
11078           switch (schemeField.id) {
11079             case 0: // SUCCESS
11080               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11081                 struct.success = iprot.readI32();
11082                 struct.setSuccessIsSet(true);
11083               } else { 
11084                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11085               }
11086               break;
11087             default:
11088               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11089           }
11090           iprot.readFieldEnd();
11091         }
11092         iprot.readStructEnd();
11093
11094         // check for required fields of primitive type, which can't be checked in the validate method
11095         struct.validate();
11096       }
11097
11098       public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
11099         struct.validate();
11100
11101         oprot.writeStructBegin(STRUCT_DESC);
11102         if (struct.isSetSuccess()) {
11103           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11104           oprot.writeI32(struct.success);
11105           oprot.writeFieldEnd();
11106         }
11107         oprot.writeFieldStop();
11108         oprot.writeStructEnd();
11109       }
11110
11111     }
11112
11113     private static class unsetEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
11114       public unsetEbgpMultihop_resultTupleScheme getScheme() {
11115         return new unsetEbgpMultihop_resultTupleScheme();
11116       }
11117     }
11118
11119     private static class unsetEbgpMultihop_resultTupleScheme extends TupleScheme<unsetEbgpMultihop_result> {
11120
11121       @Override
11122       public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
11123         TTupleProtocol oprot = (TTupleProtocol) prot;
11124         BitSet optionals = new BitSet();
11125         if (struct.isSetSuccess()) {
11126           optionals.set(0);
11127         }
11128         oprot.writeBitSet(optionals, 1);
11129         if (struct.isSetSuccess()) {
11130           oprot.writeI32(struct.success);
11131         }
11132       }
11133
11134       @Override
11135       public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
11136         TTupleProtocol iprot = (TTupleProtocol) prot;
11137         BitSet incoming = iprot.readBitSet(1);
11138         if (incoming.get(0)) {
11139           struct.success = iprot.readI32();
11140           struct.setSuccessIsSet(true);
11141         }
11142       }
11143     }
11144
11145   }
11146
11147   public static class setUpdateSource_args implements org.apache.thrift.TBase<setUpdateSource_args, setUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_args>   {
11148     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_args");
11149
11150     private static final org.apache.thrift.protocol.TField PEER_IP_FIELD_DESC = new org.apache.thrift.protocol.TField("peerIp", org.apache.thrift.protocol.TType.STRING, (short)1);
11151     private static final org.apache.thrift.protocol.TField SRC_IP_FIELD_DESC = new org.apache.thrift.protocol.TField("srcIp", org.apache.thrift.protocol.TType.STRING, (short)2);
11152
11153     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11154     static {
11155       schemes.put(StandardScheme.class, new setUpdateSource_argsStandardSchemeFactory());
11156       schemes.put(TupleScheme.class, new setUpdateSource_argsTupleSchemeFactory());
11157     }
11158
11159     public String peerIp; // required
11160     public String srcIp; // required
11161
11162     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11163     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11164       PEER_IP((short)1, "peerIp"),
11165       SRC_IP((short)2, "srcIp");
11166
11167       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11168
11169       static {
11170         for (_Fields field : EnumSet.allOf(_Fields.class)) {
11171           byName.put(field.getFieldName(), field);
11172         }
11173       }
11174
11175       /**
11176        * Find the _Fields constant that matches fieldId, or null if its not found.
11177        */
11178       public static _Fields findByThriftId(int fieldId) {
11179         switch(fieldId) {
11180           case 1: // PEER_IP
11181             return PEER_IP;
11182           case 2: // SRC_IP
11183             return SRC_IP;
11184           default:
11185             return null;
11186         }
11187       }
11188
11189       /**
11190        * Find the _Fields constant that matches fieldId, throwing an exception
11191        * if it is not found.
11192        */
11193       public static _Fields findByThriftIdOrThrow(int fieldId) {
11194         _Fields fields = findByThriftId(fieldId);
11195         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11196         return fields;
11197       }
11198
11199       /**
11200        * Find the _Fields constant that matches name, or null if its not found.
11201        */
11202       public static _Fields findByName(String name) {
11203         return byName.get(name);
11204       }
11205
11206       private final short _thriftId;
11207       private final String _fieldName;
11208
11209       _Fields(short thriftId, String fieldName) {
11210         _thriftId = thriftId;
11211         _fieldName = fieldName;
11212       }
11213
11214       public short getThriftFieldId() {
11215         return _thriftId;
11216       }
11217
11218       public String getFieldName() {
11219         return _fieldName;
11220       }
11221     }
11222
11223     // isset id assignments
11224     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11225     static {
11226       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11227       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11228           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11229       tmpMap.put(_Fields.SRC_IP, new org.apache.thrift.meta_data.FieldMetaData("srcIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11230           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11231       metaDataMap = Collections.unmodifiableMap(tmpMap);
11232       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_args.class, metaDataMap);
11233     }
11234
11235     public setUpdateSource_args() {
11236     }
11237
11238     public setUpdateSource_args(
11239       String peerIp,
11240       String srcIp)
11241     {
11242       this();
11243       this.peerIp = peerIp;
11244       this.srcIp = srcIp;
11245     }
11246
11247     /**
11248      * Performs a deep copy on <i>other</i>.
11249      */
11250     public setUpdateSource_args(setUpdateSource_args other) {
11251       if (other.isSetPeerIp()) {
11252         this.peerIp = other.peerIp;
11253       }
11254       if (other.isSetSrcIp()) {
11255         this.srcIp = other.srcIp;
11256       }
11257     }
11258
11259     public setUpdateSource_args deepCopy() {
11260       return new setUpdateSource_args(this);
11261     }
11262
11263     @Override
11264     public void clear() {
11265       this.peerIp = null;
11266       this.srcIp = null;
11267     }
11268
11269     public String getPeerIp() {
11270       return this.peerIp;
11271     }
11272
11273     public setUpdateSource_args setPeerIp(String peerIp) {
11274       this.peerIp = peerIp;
11275       return this;
11276     }
11277
11278     public void unsetPeerIp() {
11279       this.peerIp = null;
11280     }
11281
11282     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
11283     public boolean isSetPeerIp() {
11284       return this.peerIp != null;
11285     }
11286
11287     public void setPeerIpIsSet(boolean value) {
11288       if (!value) {
11289         this.peerIp = null;
11290       }
11291     }
11292
11293     public String getSrcIp() {
11294       return this.srcIp;
11295     }
11296
11297     public setUpdateSource_args setSrcIp(String srcIp) {
11298       this.srcIp = srcIp;
11299       return this;
11300     }
11301
11302     public void unsetSrcIp() {
11303       this.srcIp = null;
11304     }
11305
11306     /** Returns true if field srcIp is set (has been assigned a value) and false otherwise */
11307     public boolean isSetSrcIp() {
11308       return this.srcIp != null;
11309     }
11310
11311     public void setSrcIpIsSet(boolean value) {
11312       if (!value) {
11313         this.srcIp = null;
11314       }
11315     }
11316
11317     public void setFieldValue(_Fields field, Object value) {
11318       switch (field) {
11319       case PEER_IP:
11320         if (value == null) {
11321           unsetPeerIp();
11322         } else {
11323           setPeerIp((String)value);
11324         }
11325         break;
11326
11327       case SRC_IP:
11328         if (value == null) {
11329           unsetSrcIp();
11330         } else {
11331           setSrcIp((String)value);
11332         }
11333         break;
11334
11335       }
11336     }
11337
11338     public Object getFieldValue(_Fields field) {
11339       switch (field) {
11340       case PEER_IP:
11341         return getPeerIp();
11342
11343       case SRC_IP:
11344         return getSrcIp();
11345
11346       }
11347       throw new IllegalStateException();
11348     }
11349
11350     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11351     public boolean isSet(_Fields field) {
11352       if (field == null) {
11353         throw new IllegalArgumentException();
11354       }
11355
11356       switch (field) {
11357       case PEER_IP:
11358         return isSetPeerIp();
11359       case SRC_IP:
11360         return isSetSrcIp();
11361       }
11362       throw new IllegalStateException();
11363     }
11364
11365     @Override
11366     public boolean equals(Object that) {
11367       if (that == null)
11368         return false;
11369       if (that instanceof setUpdateSource_args)
11370         return this.equals((setUpdateSource_args)that);
11371       return false;
11372     }
11373
11374     public boolean equals(setUpdateSource_args that) {
11375       if (that == null)
11376         return false;
11377
11378       boolean this_present_peerIp = true && this.isSetPeerIp();
11379       boolean that_present_peerIp = true && that.isSetPeerIp();
11380       if (this_present_peerIp || that_present_peerIp) {
11381         if (!(this_present_peerIp && that_present_peerIp))
11382           return false;
11383         if (!this.peerIp.equals(that.peerIp))
11384           return false;
11385       }
11386
11387       boolean this_present_srcIp = true && this.isSetSrcIp();
11388       boolean that_present_srcIp = true && that.isSetSrcIp();
11389       if (this_present_srcIp || that_present_srcIp) {
11390         if (!(this_present_srcIp && that_present_srcIp))
11391           return false;
11392         if (!this.srcIp.equals(that.srcIp))
11393           return false;
11394       }
11395
11396       return true;
11397     }
11398
11399     @Override
11400     public int hashCode() {
11401       return 0;
11402     }
11403
11404     @Override
11405     public int compareTo(setUpdateSource_args other) {
11406       if (!getClass().equals(other.getClass())) {
11407         return getClass().getName().compareTo(other.getClass().getName());
11408       }
11409
11410       int lastComparison = 0;
11411
11412       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
11413       if (lastComparison != 0) {
11414         return lastComparison;
11415       }
11416       if (isSetPeerIp()) {
11417         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
11418         if (lastComparison != 0) {
11419           return lastComparison;
11420         }
11421       }
11422       lastComparison = Boolean.valueOf(isSetSrcIp()).compareTo(other.isSetSrcIp());
11423       if (lastComparison != 0) {
11424         return lastComparison;
11425       }
11426       if (isSetSrcIp()) {
11427         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.srcIp, other.srcIp);
11428         if (lastComparison != 0) {
11429           return lastComparison;
11430         }
11431       }
11432       return 0;
11433     }
11434
11435     public _Fields fieldForId(int fieldId) {
11436       return _Fields.findByThriftId(fieldId);
11437     }
11438
11439     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11440       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11441     }
11442
11443     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11444       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11445     }
11446
11447     @Override
11448     public String toString() {
11449       StringBuilder sb = new StringBuilder("setUpdateSource_args(");
11450       boolean first = true;
11451
11452       sb.append("peerIp:");
11453       if (this.peerIp == null) {
11454         sb.append("null");
11455       } else {
11456         sb.append(this.peerIp);
11457       }
11458       first = false;
11459       if (!first) sb.append(", ");
11460       sb.append("srcIp:");
11461       if (this.srcIp == null) {
11462         sb.append("null");
11463       } else {
11464         sb.append(this.srcIp);
11465       }
11466       first = false;
11467       sb.append(")");
11468       return sb.toString();
11469     }
11470
11471     public void validate() throws org.apache.thrift.TException {
11472       // check for required fields
11473       // check for sub-struct validity
11474     }
11475
11476     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11477       try {
11478         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11479       } catch (org.apache.thrift.TException te) {
11480         throw new java.io.IOException(te);
11481       }
11482     }
11483
11484     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11485       try {
11486         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11487       } catch (org.apache.thrift.TException te) {
11488         throw new java.io.IOException(te);
11489       }
11490     }
11491
11492     private static class setUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
11493       public setUpdateSource_argsStandardScheme getScheme() {
11494         return new setUpdateSource_argsStandardScheme();
11495       }
11496     }
11497
11498     private static class setUpdateSource_argsStandardScheme extends StandardScheme<setUpdateSource_args> {
11499
11500       public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
11501         org.apache.thrift.protocol.TField schemeField;
11502         iprot.readStructBegin();
11503         while (true)
11504         {
11505           schemeField = iprot.readFieldBegin();
11506           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
11507             break;
11508           }
11509           switch (schemeField.id) {
11510             case 1: // PEER_IP
11511               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11512                 struct.peerIp = iprot.readString();
11513                 struct.setPeerIpIsSet(true);
11514               } else { 
11515                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11516               }
11517               break;
11518             case 2: // SRC_IP
11519               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11520                 struct.srcIp = iprot.readString();
11521                 struct.setSrcIpIsSet(true);
11522               } else { 
11523                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11524               }
11525               break;
11526             default:
11527               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11528           }
11529           iprot.readFieldEnd();
11530         }
11531         iprot.readStructEnd();
11532
11533         // check for required fields of primitive type, which can't be checked in the validate method
11534         struct.validate();
11535       }
11536
11537       public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
11538         struct.validate();
11539
11540         oprot.writeStructBegin(STRUCT_DESC);
11541         if (struct.peerIp != null) {
11542           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
11543           oprot.writeString(struct.peerIp);
11544           oprot.writeFieldEnd();
11545         }
11546         if (struct.srcIp != null) {
11547           oprot.writeFieldBegin(SRC_IP_FIELD_DESC);
11548           oprot.writeString(struct.srcIp);
11549           oprot.writeFieldEnd();
11550         }
11551         oprot.writeFieldStop();
11552         oprot.writeStructEnd();
11553       }
11554
11555     }
11556
11557     private static class setUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
11558       public setUpdateSource_argsTupleScheme getScheme() {
11559         return new setUpdateSource_argsTupleScheme();
11560       }
11561     }
11562
11563     private static class setUpdateSource_argsTupleScheme extends TupleScheme<setUpdateSource_args> {
11564
11565       @Override
11566       public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
11567         TTupleProtocol oprot = (TTupleProtocol) prot;
11568         BitSet optionals = new BitSet();
11569         if (struct.isSetPeerIp()) {
11570           optionals.set(0);
11571         }
11572         if (struct.isSetSrcIp()) {
11573           optionals.set(1);
11574         }
11575         oprot.writeBitSet(optionals, 2);
11576         if (struct.isSetPeerIp()) {
11577           oprot.writeString(struct.peerIp);
11578         }
11579         if (struct.isSetSrcIp()) {
11580           oprot.writeString(struct.srcIp);
11581         }
11582       }
11583
11584       @Override
11585       public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
11586         TTupleProtocol iprot = (TTupleProtocol) prot;
11587         BitSet incoming = iprot.readBitSet(2);
11588         if (incoming.get(0)) {
11589           struct.peerIp = iprot.readString();
11590           struct.setPeerIpIsSet(true);
11591         }
11592         if (incoming.get(1)) {
11593           struct.srcIp = iprot.readString();
11594           struct.setSrcIpIsSet(true);
11595         }
11596       }
11597     }
11598
11599   }
11600
11601   public static class setUpdateSource_result implements org.apache.thrift.TBase<setUpdateSource_result, setUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_result>   {
11602     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_result");
11603
11604     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
11605
11606     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11607     static {
11608       schemes.put(StandardScheme.class, new setUpdateSource_resultStandardSchemeFactory());
11609       schemes.put(TupleScheme.class, new setUpdateSource_resultTupleSchemeFactory());
11610     }
11611
11612     public int success; // required
11613
11614     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11615     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11616       SUCCESS((short)0, "success");
11617
11618       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11619
11620       static {
11621         for (_Fields field : EnumSet.allOf(_Fields.class)) {
11622           byName.put(field.getFieldName(), field);
11623         }
11624       }
11625
11626       /**
11627        * Find the _Fields constant that matches fieldId, or null if its not found.
11628        */
11629       public static _Fields findByThriftId(int fieldId) {
11630         switch(fieldId) {
11631           case 0: // SUCCESS
11632             return SUCCESS;
11633           default:
11634             return null;
11635         }
11636       }
11637
11638       /**
11639        * Find the _Fields constant that matches fieldId, throwing an exception
11640        * if it is not found.
11641        */
11642       public static _Fields findByThriftIdOrThrow(int fieldId) {
11643         _Fields fields = findByThriftId(fieldId);
11644         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11645         return fields;
11646       }
11647
11648       /**
11649        * Find the _Fields constant that matches name, or null if its not found.
11650        */
11651       public static _Fields findByName(String name) {
11652         return byName.get(name);
11653       }
11654
11655       private final short _thriftId;
11656       private final String _fieldName;
11657
11658       _Fields(short thriftId, String fieldName) {
11659         _thriftId = thriftId;
11660         _fieldName = fieldName;
11661       }
11662
11663       public short getThriftFieldId() {
11664         return _thriftId;
11665       }
11666
11667       public String getFieldName() {
11668         return _fieldName;
11669       }
11670     }
11671
11672     // isset id assignments
11673     private static final int __SUCCESS_ISSET_ID = 0;
11674     private byte __isset_bitfield = 0;
11675     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11676     static {
11677       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11678       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11679           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
11680       metaDataMap = Collections.unmodifiableMap(tmpMap);
11681       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_result.class, metaDataMap);
11682     }
11683
11684     public setUpdateSource_result() {
11685     }
11686
11687     public setUpdateSource_result(
11688       int success)
11689     {
11690       this();
11691       this.success = success;
11692       setSuccessIsSet(true);
11693     }
11694
11695     /**
11696      * Performs a deep copy on <i>other</i>.
11697      */
11698     public setUpdateSource_result(setUpdateSource_result other) {
11699       __isset_bitfield = other.__isset_bitfield;
11700       this.success = other.success;
11701     }
11702
11703     public setUpdateSource_result deepCopy() {
11704       return new setUpdateSource_result(this);
11705     }
11706
11707     @Override
11708     public void clear() {
11709       setSuccessIsSet(false);
11710       this.success = 0;
11711     }
11712
11713     public int getSuccess() {
11714       return this.success;
11715     }
11716
11717     public setUpdateSource_result setSuccess(int success) {
11718       this.success = success;
11719       setSuccessIsSet(true);
11720       return this;
11721     }
11722
11723     public void unsetSuccess() {
11724       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
11725     }
11726
11727     /** Returns true if field success is set (has been assigned a value) and false otherwise */
11728     public boolean isSetSuccess() {
11729       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
11730     }
11731
11732     public void setSuccessIsSet(boolean value) {
11733       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
11734     }
11735
11736     public void setFieldValue(_Fields field, Object value) {
11737       switch (field) {
11738       case SUCCESS:
11739         if (value == null) {
11740           unsetSuccess();
11741         } else {
11742           setSuccess((Integer)value);
11743         }
11744         break;
11745
11746       }
11747     }
11748
11749     public Object getFieldValue(_Fields field) {
11750       switch (field) {
11751       case SUCCESS:
11752         return Integer.valueOf(getSuccess());
11753
11754       }
11755       throw new IllegalStateException();
11756     }
11757
11758     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11759     public boolean isSet(_Fields field) {
11760       if (field == null) {
11761         throw new IllegalArgumentException();
11762       }
11763
11764       switch (field) {
11765       case SUCCESS:
11766         return isSetSuccess();
11767       }
11768       throw new IllegalStateException();
11769     }
11770
11771     @Override
11772     public boolean equals(Object that) {
11773       if (that == null)
11774         return false;
11775       if (that instanceof setUpdateSource_result)
11776         return this.equals((setUpdateSource_result)that);
11777       return false;
11778     }
11779
11780     public boolean equals(setUpdateSource_result that) {
11781       if (that == null)
11782         return false;
11783
11784       boolean this_present_success = true;
11785       boolean that_present_success = true;
11786       if (this_present_success || that_present_success) {
11787         if (!(this_present_success && that_present_success))
11788           return false;
11789         if (this.success != that.success)
11790           return false;
11791       }
11792
11793       return true;
11794     }
11795
11796     @Override
11797     public int hashCode() {
11798       return 0;
11799     }
11800
11801     @Override
11802     public int compareTo(setUpdateSource_result other) {
11803       if (!getClass().equals(other.getClass())) {
11804         return getClass().getName().compareTo(other.getClass().getName());
11805       }
11806
11807       int lastComparison = 0;
11808
11809       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
11810       if (lastComparison != 0) {
11811         return lastComparison;
11812       }
11813       if (isSetSuccess()) {
11814         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
11815         if (lastComparison != 0) {
11816           return lastComparison;
11817         }
11818       }
11819       return 0;
11820     }
11821
11822     public _Fields fieldForId(int fieldId) {
11823       return _Fields.findByThriftId(fieldId);
11824     }
11825
11826     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11827       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11828     }
11829
11830     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11831       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11832       }
11833
11834     @Override
11835     public String toString() {
11836       StringBuilder sb = new StringBuilder("setUpdateSource_result(");
11837       boolean first = true;
11838
11839       sb.append("success:");
11840       sb.append(this.success);
11841       first = false;
11842       sb.append(")");
11843       return sb.toString();
11844     }
11845
11846     public void validate() throws org.apache.thrift.TException {
11847       // check for required fields
11848       // check for sub-struct validity
11849     }
11850
11851     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11852       try {
11853         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11854       } catch (org.apache.thrift.TException te) {
11855         throw new java.io.IOException(te);
11856       }
11857     }
11858
11859     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11860       try {
11861         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11862         __isset_bitfield = 0;
11863         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11864       } catch (org.apache.thrift.TException te) {
11865         throw new java.io.IOException(te);
11866       }
11867     }
11868
11869     private static class setUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
11870       public setUpdateSource_resultStandardScheme getScheme() {
11871         return new setUpdateSource_resultStandardScheme();
11872       }
11873     }
11874
11875     private static class setUpdateSource_resultStandardScheme extends StandardScheme<setUpdateSource_result> {
11876
11877       public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
11878         org.apache.thrift.protocol.TField schemeField;
11879         iprot.readStructBegin();
11880         while (true)
11881         {
11882           schemeField = iprot.readFieldBegin();
11883           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
11884             break;
11885           }
11886           switch (schemeField.id) {
11887             case 0: // SUCCESS
11888               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11889                 struct.success = iprot.readI32();
11890                 struct.setSuccessIsSet(true);
11891               } else { 
11892                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11893               }
11894               break;
11895             default:
11896               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11897           }
11898           iprot.readFieldEnd();
11899         }
11900         iprot.readStructEnd();
11901
11902         // check for required fields of primitive type, which can't be checked in the validate method
11903         struct.validate();
11904       }
11905
11906       public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
11907         struct.validate();
11908
11909         oprot.writeStructBegin(STRUCT_DESC);
11910         if (struct.isSetSuccess()) {
11911           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11912           oprot.writeI32(struct.success);
11913           oprot.writeFieldEnd();
11914         }
11915         oprot.writeFieldStop();
11916         oprot.writeStructEnd();
11917       }
11918
11919     }
11920
11921     private static class setUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
11922       public setUpdateSource_resultTupleScheme getScheme() {
11923         return new setUpdateSource_resultTupleScheme();
11924       }
11925     }
11926
11927     private static class setUpdateSource_resultTupleScheme extends TupleScheme<setUpdateSource_result> {
11928
11929       @Override
11930       public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
11931         TTupleProtocol oprot = (TTupleProtocol) prot;
11932         BitSet optionals = new BitSet();
11933         if (struct.isSetSuccess()) {
11934           optionals.set(0);
11935         }
11936         oprot.writeBitSet(optionals, 1);
11937         if (struct.isSetSuccess()) {
11938           oprot.writeI32(struct.success);
11939         }
11940       }
11941
11942       @Override
11943       public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
11944         TTupleProtocol iprot = (TTupleProtocol) prot;
11945         BitSet incoming = iprot.readBitSet(1);
11946         if (incoming.get(0)) {
11947           struct.success = iprot.readI32();
11948           struct.setSuccessIsSet(true);
11949         }
11950       }
11951     }
11952
11953   }
11954
11955   public static class unsetUpdateSource_args implements org.apache.thrift.TBase<unsetUpdateSource_args, unsetUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_args>   {
11956     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_args");
11957
11958     private static final org.apache.thrift.protocol.TField PEER_IP_FIELD_DESC = new org.apache.thrift.protocol.TField("peerIp", org.apache.thrift.protocol.TType.STRING, (short)1);
11959
11960     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11961     static {
11962       schemes.put(StandardScheme.class, new unsetUpdateSource_argsStandardSchemeFactory());
11963       schemes.put(TupleScheme.class, new unsetUpdateSource_argsTupleSchemeFactory());
11964     }
11965
11966     public String peerIp; // required
11967
11968     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11969     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11970       PEER_IP((short)1, "peerIp");
11971
11972       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11973
11974       static {
11975         for (_Fields field : EnumSet.allOf(_Fields.class)) {
11976           byName.put(field.getFieldName(), field);
11977         }
11978       }
11979
11980       /**
11981        * Find the _Fields constant that matches fieldId, or null if its not found.
11982        */
11983       public static _Fields findByThriftId(int fieldId) {
11984         switch(fieldId) {
11985           case 1: // PEER_IP
11986             return PEER_IP;
11987           default:
11988             return null;
11989         }
11990       }
11991
11992       /**
11993        * Find the _Fields constant that matches fieldId, throwing an exception
11994        * if it is not found.
11995        */
11996       public static _Fields findByThriftIdOrThrow(int fieldId) {
11997         _Fields fields = findByThriftId(fieldId);
11998         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11999         return fields;
12000       }
12001
12002       /**
12003        * Find the _Fields constant that matches name, or null if its not found.
12004        */
12005       public static _Fields findByName(String name) {
12006         return byName.get(name);
12007       }
12008
12009       private final short _thriftId;
12010       private final String _fieldName;
12011
12012       _Fields(short thriftId, String fieldName) {
12013         _thriftId = thriftId;
12014         _fieldName = fieldName;
12015       }
12016
12017       public short getThriftFieldId() {
12018         return _thriftId;
12019       }
12020
12021       public String getFieldName() {
12022         return _fieldName;
12023       }
12024     }
12025
12026     // isset id assignments
12027     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12028     static {
12029       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12030       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12031           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12032       metaDataMap = Collections.unmodifiableMap(tmpMap);
12033       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_args.class, metaDataMap);
12034     }
12035
12036     public unsetUpdateSource_args() {
12037     }
12038
12039     public unsetUpdateSource_args(
12040       String peerIp)
12041     {
12042       this();
12043       this.peerIp = peerIp;
12044     }
12045
12046     /**
12047      * Performs a deep copy on <i>other</i>.
12048      */
12049     public unsetUpdateSource_args(unsetUpdateSource_args other) {
12050       if (other.isSetPeerIp()) {
12051         this.peerIp = other.peerIp;
12052       }
12053     }
12054
12055     public unsetUpdateSource_args deepCopy() {
12056       return new unsetUpdateSource_args(this);
12057     }
12058
12059     @Override
12060     public void clear() {
12061       this.peerIp = null;
12062     }
12063
12064     public String getPeerIp() {
12065       return this.peerIp;
12066     }
12067
12068     public unsetUpdateSource_args setPeerIp(String peerIp) {
12069       this.peerIp = peerIp;
12070       return this;
12071     }
12072
12073     public void unsetPeerIp() {
12074       this.peerIp = null;
12075     }
12076
12077     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
12078     public boolean isSetPeerIp() {
12079       return this.peerIp != null;
12080     }
12081
12082     public void setPeerIpIsSet(boolean value) {
12083       if (!value) {
12084         this.peerIp = null;
12085       }
12086     }
12087
12088     public void setFieldValue(_Fields field, Object value) {
12089       switch (field) {
12090       case PEER_IP:
12091         if (value == null) {
12092           unsetPeerIp();
12093         } else {
12094           setPeerIp((String)value);
12095         }
12096         break;
12097
12098       }
12099     }
12100
12101     public Object getFieldValue(_Fields field) {
12102       switch (field) {
12103       case PEER_IP:
12104         return getPeerIp();
12105
12106       }
12107       throw new IllegalStateException();
12108     }
12109
12110     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12111     public boolean isSet(_Fields field) {
12112       if (field == null) {
12113         throw new IllegalArgumentException();
12114       }
12115
12116       switch (field) {
12117       case PEER_IP:
12118         return isSetPeerIp();
12119       }
12120       throw new IllegalStateException();
12121     }
12122
12123     @Override
12124     public boolean equals(Object that) {
12125       if (that == null)
12126         return false;
12127       if (that instanceof unsetUpdateSource_args)
12128         return this.equals((unsetUpdateSource_args)that);
12129       return false;
12130     }
12131
12132     public boolean equals(unsetUpdateSource_args that) {
12133       if (that == null)
12134         return false;
12135
12136       boolean this_present_peerIp = true && this.isSetPeerIp();
12137       boolean that_present_peerIp = true && that.isSetPeerIp();
12138       if (this_present_peerIp || that_present_peerIp) {
12139         if (!(this_present_peerIp && that_present_peerIp))
12140           return false;
12141         if (!this.peerIp.equals(that.peerIp))
12142           return false;
12143       }
12144
12145       return true;
12146     }
12147
12148     @Override
12149     public int hashCode() {
12150       return 0;
12151     }
12152
12153     @Override
12154     public int compareTo(unsetUpdateSource_args other) {
12155       if (!getClass().equals(other.getClass())) {
12156         return getClass().getName().compareTo(other.getClass().getName());
12157       }
12158
12159       int lastComparison = 0;
12160
12161       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
12162       if (lastComparison != 0) {
12163         return lastComparison;
12164       }
12165       if (isSetPeerIp()) {
12166         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
12167         if (lastComparison != 0) {
12168           return lastComparison;
12169         }
12170       }
12171       return 0;
12172     }
12173
12174     public _Fields fieldForId(int fieldId) {
12175       return _Fields.findByThriftId(fieldId);
12176     }
12177
12178     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12179       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12180     }
12181
12182     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12183       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12184     }
12185
12186     @Override
12187     public String toString() {
12188       StringBuilder sb = new StringBuilder("unsetUpdateSource_args(");
12189       boolean first = true;
12190
12191       sb.append("peerIp:");
12192       if (this.peerIp == null) {
12193         sb.append("null");
12194       } else {
12195         sb.append(this.peerIp);
12196       }
12197       first = false;
12198       sb.append(")");
12199       return sb.toString();
12200     }
12201
12202     public void validate() throws org.apache.thrift.TException {
12203       // check for required fields
12204       // check for sub-struct validity
12205     }
12206
12207     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12208       try {
12209         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12210       } catch (org.apache.thrift.TException te) {
12211         throw new java.io.IOException(te);
12212       }
12213     }
12214
12215     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12216       try {
12217         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12218       } catch (org.apache.thrift.TException te) {
12219         throw new java.io.IOException(te);
12220       }
12221     }
12222
12223     private static class unsetUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
12224       public unsetUpdateSource_argsStandardScheme getScheme() {
12225         return new unsetUpdateSource_argsStandardScheme();
12226       }
12227     }
12228
12229     private static class unsetUpdateSource_argsStandardScheme extends StandardScheme<unsetUpdateSource_args> {
12230
12231       public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
12232         org.apache.thrift.protocol.TField schemeField;
12233         iprot.readStructBegin();
12234         while (true)
12235         {
12236           schemeField = iprot.readFieldBegin();
12237           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
12238             break;
12239           }
12240           switch (schemeField.id) {
12241             case 1: // PEER_IP
12242               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12243                 struct.peerIp = iprot.readString();
12244                 struct.setPeerIpIsSet(true);
12245               } else { 
12246                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12247               }
12248               break;
12249             default:
12250               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12251           }
12252           iprot.readFieldEnd();
12253         }
12254         iprot.readStructEnd();
12255
12256         // check for required fields of primitive type, which can't be checked in the validate method
12257         struct.validate();
12258       }
12259
12260       public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
12261         struct.validate();
12262
12263         oprot.writeStructBegin(STRUCT_DESC);
12264         if (struct.peerIp != null) {
12265           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
12266           oprot.writeString(struct.peerIp);
12267           oprot.writeFieldEnd();
12268         }
12269         oprot.writeFieldStop();
12270         oprot.writeStructEnd();
12271       }
12272
12273     }
12274
12275     private static class unsetUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
12276       public unsetUpdateSource_argsTupleScheme getScheme() {
12277         return new unsetUpdateSource_argsTupleScheme();
12278       }
12279     }
12280
12281     private static class unsetUpdateSource_argsTupleScheme extends TupleScheme<unsetUpdateSource_args> {
12282
12283       @Override
12284       public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
12285         TTupleProtocol oprot = (TTupleProtocol) prot;
12286         BitSet optionals = new BitSet();
12287         if (struct.isSetPeerIp()) {
12288           optionals.set(0);
12289         }
12290         oprot.writeBitSet(optionals, 1);
12291         if (struct.isSetPeerIp()) {
12292           oprot.writeString(struct.peerIp);
12293         }
12294       }
12295
12296       @Override
12297       public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
12298         TTupleProtocol iprot = (TTupleProtocol) prot;
12299         BitSet incoming = iprot.readBitSet(1);
12300         if (incoming.get(0)) {
12301           struct.peerIp = iprot.readString();
12302           struct.setPeerIpIsSet(true);
12303         }
12304       }
12305     }
12306
12307   }
12308
12309   public static class unsetUpdateSource_result implements org.apache.thrift.TBase<unsetUpdateSource_result, unsetUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_result>   {
12310     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_result");
12311
12312     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
12313
12314     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12315     static {
12316       schemes.put(StandardScheme.class, new unsetUpdateSource_resultStandardSchemeFactory());
12317       schemes.put(TupleScheme.class, new unsetUpdateSource_resultTupleSchemeFactory());
12318     }
12319
12320     public int success; // required
12321
12322     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12323     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12324       SUCCESS((short)0, "success");
12325
12326       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12327
12328       static {
12329         for (_Fields field : EnumSet.allOf(_Fields.class)) {
12330           byName.put(field.getFieldName(), field);
12331         }
12332       }
12333
12334       /**
12335        * Find the _Fields constant that matches fieldId, or null if its not found.
12336        */
12337       public static _Fields findByThriftId(int fieldId) {
12338         switch(fieldId) {
12339           case 0: // SUCCESS
12340             return SUCCESS;
12341           default:
12342             return null;
12343         }
12344       }
12345
12346       /**
12347        * Find the _Fields constant that matches fieldId, throwing an exception
12348        * if it is not found.
12349        */
12350       public static _Fields findByThriftIdOrThrow(int fieldId) {
12351         _Fields fields = findByThriftId(fieldId);
12352         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12353         return fields;
12354       }
12355
12356       /**
12357        * Find the _Fields constant that matches name, or null if its not found.
12358        */
12359       public static _Fields findByName(String name) {
12360         return byName.get(name);
12361       }
12362
12363       private final short _thriftId;
12364       private final String _fieldName;
12365
12366       _Fields(short thriftId, String fieldName) {
12367         _thriftId = thriftId;
12368         _fieldName = fieldName;
12369       }
12370
12371       public short getThriftFieldId() {
12372         return _thriftId;
12373       }
12374
12375       public String getFieldName() {
12376         return _fieldName;
12377       }
12378     }
12379
12380     // isset id assignments
12381     private static final int __SUCCESS_ISSET_ID = 0;
12382     private byte __isset_bitfield = 0;
12383     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12384     static {
12385       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12386       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12387           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12388       metaDataMap = Collections.unmodifiableMap(tmpMap);
12389       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_result.class, metaDataMap);
12390     }
12391
12392     public unsetUpdateSource_result() {
12393     }
12394
12395     public unsetUpdateSource_result(
12396       int success)
12397     {
12398       this();
12399       this.success = success;
12400       setSuccessIsSet(true);
12401     }
12402
12403     /**
12404      * Performs a deep copy on <i>other</i>.
12405      */
12406     public unsetUpdateSource_result(unsetUpdateSource_result other) {
12407       __isset_bitfield = other.__isset_bitfield;
12408       this.success = other.success;
12409     }
12410
12411     public unsetUpdateSource_result deepCopy() {
12412       return new unsetUpdateSource_result(this);
12413     }
12414
12415     @Override
12416     public void clear() {
12417       setSuccessIsSet(false);
12418       this.success = 0;
12419     }
12420
12421     public int getSuccess() {
12422       return this.success;
12423     }
12424
12425     public unsetUpdateSource_result setSuccess(int success) {
12426       this.success = success;
12427       setSuccessIsSet(true);
12428       return this;
12429     }
12430
12431     public void unsetSuccess() {
12432       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12433     }
12434
12435     /** Returns true if field success is set (has been assigned a value) and false otherwise */
12436     public boolean isSetSuccess() {
12437       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12438     }
12439
12440     public void setSuccessIsSet(boolean value) {
12441       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
12442     }
12443
12444     public void setFieldValue(_Fields field, Object value) {
12445       switch (field) {
12446       case SUCCESS:
12447         if (value == null) {
12448           unsetSuccess();
12449         } else {
12450           setSuccess((Integer)value);
12451         }
12452         break;
12453
12454       }
12455     }
12456
12457     public Object getFieldValue(_Fields field) {
12458       switch (field) {
12459       case SUCCESS:
12460         return Integer.valueOf(getSuccess());
12461
12462       }
12463       throw new IllegalStateException();
12464     }
12465
12466     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12467     public boolean isSet(_Fields field) {
12468       if (field == null) {
12469         throw new IllegalArgumentException();
12470       }
12471
12472       switch (field) {
12473       case SUCCESS:
12474         return isSetSuccess();
12475       }
12476       throw new IllegalStateException();
12477     }
12478
12479     @Override
12480     public boolean equals(Object that) {
12481       if (that == null)
12482         return false;
12483       if (that instanceof unsetUpdateSource_result)
12484         return this.equals((unsetUpdateSource_result)that);
12485       return false;
12486     }
12487
12488     public boolean equals(unsetUpdateSource_result that) {
12489       if (that == null)
12490         return false;
12491
12492       boolean this_present_success = true;
12493       boolean that_present_success = true;
12494       if (this_present_success || that_present_success) {
12495         if (!(this_present_success && that_present_success))
12496           return false;
12497         if (this.success != that.success)
12498           return false;
12499       }
12500
12501       return true;
12502     }
12503
12504     @Override
12505     public int hashCode() {
12506       return 0;
12507     }
12508
12509     @Override
12510     public int compareTo(unsetUpdateSource_result other) {
12511       if (!getClass().equals(other.getClass())) {
12512         return getClass().getName().compareTo(other.getClass().getName());
12513       }
12514
12515       int lastComparison = 0;
12516
12517       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
12518       if (lastComparison != 0) {
12519         return lastComparison;
12520       }
12521       if (isSetSuccess()) {
12522         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
12523         if (lastComparison != 0) {
12524           return lastComparison;
12525         }
12526       }
12527       return 0;
12528     }
12529
12530     public _Fields fieldForId(int fieldId) {
12531       return _Fields.findByThriftId(fieldId);
12532     }
12533
12534     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12535       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12536     }
12537
12538     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12539       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12540       }
12541
12542     @Override
12543     public String toString() {
12544       StringBuilder sb = new StringBuilder("unsetUpdateSource_result(");
12545       boolean first = true;
12546
12547       sb.append("success:");
12548       sb.append(this.success);
12549       first = false;
12550       sb.append(")");
12551       return sb.toString();
12552     }
12553
12554     public void validate() throws org.apache.thrift.TException {
12555       // check for required fields
12556       // check for sub-struct validity
12557     }
12558
12559     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12560       try {
12561         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12562       } catch (org.apache.thrift.TException te) {
12563         throw new java.io.IOException(te);
12564       }
12565     }
12566
12567     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12568       try {
12569         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12570         __isset_bitfield = 0;
12571         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12572       } catch (org.apache.thrift.TException te) {
12573         throw new java.io.IOException(te);
12574       }
12575     }
12576
12577     private static class unsetUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
12578       public unsetUpdateSource_resultStandardScheme getScheme() {
12579         return new unsetUpdateSource_resultStandardScheme();
12580       }
12581     }
12582
12583     private static class unsetUpdateSource_resultStandardScheme extends StandardScheme<unsetUpdateSource_result> {
12584
12585       public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
12586         org.apache.thrift.protocol.TField schemeField;
12587         iprot.readStructBegin();
12588         while (true)
12589         {
12590           schemeField = iprot.readFieldBegin();
12591           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
12592             break;
12593           }
12594           switch (schemeField.id) {
12595             case 0: // SUCCESS
12596               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12597                 struct.success = iprot.readI32();
12598                 struct.setSuccessIsSet(true);
12599               } else { 
12600                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12601               }
12602               break;
12603             default:
12604               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12605           }
12606           iprot.readFieldEnd();
12607         }
12608         iprot.readStructEnd();
12609
12610         // check for required fields of primitive type, which can't be checked in the validate method
12611         struct.validate();
12612       }
12613
12614       public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
12615         struct.validate();
12616
12617         oprot.writeStructBegin(STRUCT_DESC);
12618         if (struct.isSetSuccess()) {
12619           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12620           oprot.writeI32(struct.success);
12621           oprot.writeFieldEnd();
12622         }
12623         oprot.writeFieldStop();
12624         oprot.writeStructEnd();
12625       }
12626
12627     }
12628
12629     private static class unsetUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
12630       public unsetUpdateSource_resultTupleScheme getScheme() {
12631         return new unsetUpdateSource_resultTupleScheme();
12632       }
12633     }
12634
12635     private static class unsetUpdateSource_resultTupleScheme extends TupleScheme<unsetUpdateSource_result> {
12636
12637       @Override
12638       public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
12639         TTupleProtocol oprot = (TTupleProtocol) prot;
12640         BitSet optionals = new BitSet();
12641         if (struct.isSetSuccess()) {
12642           optionals.set(0);
12643         }
12644         oprot.writeBitSet(optionals, 1);
12645         if (struct.isSetSuccess()) {
12646           oprot.writeI32(struct.success);
12647         }
12648       }
12649
12650       @Override
12651       public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
12652         TTupleProtocol iprot = (TTupleProtocol) prot;
12653         BitSet incoming = iprot.readBitSet(1);
12654         if (incoming.get(0)) {
12655           struct.success = iprot.readI32();
12656           struct.setSuccessIsSet(true);
12657         }
12658       }
12659     }
12660
12661   }
12662
12663   public static class enableAddressFamily_args implements org.apache.thrift.TBase<enableAddressFamily_args, enableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_args>   {
12664     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_args");
12665
12666     private static final org.apache.thrift.protocol.TField PEER_IP_FIELD_DESC = new org.apache.thrift.protocol.TField("peerIp", org.apache.thrift.protocol.TType.STRING, (short)1);
12667     private static final org.apache.thrift.protocol.TField AFI_FIELD_DESC = new org.apache.thrift.protocol.TField("afi", org.apache.thrift.protocol.TType.I32, (short)2);
12668     private static final org.apache.thrift.protocol.TField SAFI_FIELD_DESC = new org.apache.thrift.protocol.TField("safi", org.apache.thrift.protocol.TType.I32, (short)3);
12669
12670     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12671     static {
12672       schemes.put(StandardScheme.class, new enableAddressFamily_argsStandardSchemeFactory());
12673       schemes.put(TupleScheme.class, new enableAddressFamily_argsTupleSchemeFactory());
12674     }
12675
12676     public String peerIp; // required
12677     /**
12678      * 
12679      * @see af_afi
12680      */
12681     public af_afi afi; // required
12682     /**
12683      * 
12684      * @see af_safi
12685      */
12686     public af_safi safi; // required
12687
12688     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12689     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12690       PEER_IP((short)1, "peerIp"),
12691       /**
12692        * 
12693        * @see af_afi
12694        */
12695       AFI((short)2, "afi"),
12696       /**
12697        * 
12698        * @see af_safi
12699        */
12700       SAFI((short)3, "safi");
12701
12702       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12703
12704       static {
12705         for (_Fields field : EnumSet.allOf(_Fields.class)) {
12706           byName.put(field.getFieldName(), field);
12707         }
12708       }
12709
12710       /**
12711        * Find the _Fields constant that matches fieldId, or null if its not found.
12712        */
12713       public static _Fields findByThriftId(int fieldId) {
12714         switch(fieldId) {
12715           case 1: // PEER_IP
12716             return PEER_IP;
12717           case 2: // AFI
12718             return AFI;
12719           case 3: // SAFI
12720             return SAFI;
12721           default:
12722             return null;
12723         }
12724       }
12725
12726       /**
12727        * Find the _Fields constant that matches fieldId, throwing an exception
12728        * if it is not found.
12729        */
12730       public static _Fields findByThriftIdOrThrow(int fieldId) {
12731         _Fields fields = findByThriftId(fieldId);
12732         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12733         return fields;
12734       }
12735
12736       /**
12737        * Find the _Fields constant that matches name, or null if its not found.
12738        */
12739       public static _Fields findByName(String name) {
12740         return byName.get(name);
12741       }
12742
12743       private final short _thriftId;
12744       private final String _fieldName;
12745
12746       _Fields(short thriftId, String fieldName) {
12747         _thriftId = thriftId;
12748         _fieldName = fieldName;
12749       }
12750
12751       public short getThriftFieldId() {
12752         return _thriftId;
12753       }
12754
12755       public String getFieldName() {
12756         return _fieldName;
12757       }
12758     }
12759
12760     // isset id assignments
12761     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12762     static {
12763       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12764       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12765           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12766       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12767           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
12768       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12769           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
12770       metaDataMap = Collections.unmodifiableMap(tmpMap);
12771       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_args.class, metaDataMap);
12772     }
12773
12774     public enableAddressFamily_args() {
12775     }
12776
12777     public enableAddressFamily_args(
12778       String peerIp,
12779       af_afi afi,
12780       af_safi safi)
12781     {
12782       this();
12783       this.peerIp = peerIp;
12784       this.afi = afi;
12785       this.safi = safi;
12786     }
12787
12788     /**
12789      * Performs a deep copy on <i>other</i>.
12790      */
12791     public enableAddressFamily_args(enableAddressFamily_args other) {
12792       if (other.isSetPeerIp()) {
12793         this.peerIp = other.peerIp;
12794       }
12795       if (other.isSetAfi()) {
12796         this.afi = other.afi;
12797       }
12798       if (other.isSetSafi()) {
12799         this.safi = other.safi;
12800       }
12801     }
12802
12803     public enableAddressFamily_args deepCopy() {
12804       return new enableAddressFamily_args(this);
12805     }
12806
12807     @Override
12808     public void clear() {
12809       this.peerIp = null;
12810       this.afi = null;
12811       this.safi = null;
12812     }
12813
12814     public String getPeerIp() {
12815       return this.peerIp;
12816     }
12817
12818     public enableAddressFamily_args setPeerIp(String peerIp) {
12819       this.peerIp = peerIp;
12820       return this;
12821     }
12822
12823     public void unsetPeerIp() {
12824       this.peerIp = null;
12825     }
12826
12827     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
12828     public boolean isSetPeerIp() {
12829       return this.peerIp != null;
12830     }
12831
12832     public void setPeerIpIsSet(boolean value) {
12833       if (!value) {
12834         this.peerIp = null;
12835       }
12836     }
12837
12838     /**
12839      * 
12840      * @see af_afi
12841      */
12842     public af_afi getAfi() {
12843       return this.afi;
12844     }
12845
12846     /**
12847      * 
12848      * @see af_afi
12849      */
12850     public enableAddressFamily_args setAfi(af_afi afi) {
12851       this.afi = afi;
12852       return this;
12853     }
12854
12855     public void unsetAfi() {
12856       this.afi = null;
12857     }
12858
12859     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
12860     public boolean isSetAfi() {
12861       return this.afi != null;
12862     }
12863
12864     public void setAfiIsSet(boolean value) {
12865       if (!value) {
12866         this.afi = null;
12867       }
12868     }
12869
12870     /**
12871      * 
12872      * @see af_safi
12873      */
12874     public af_safi getSafi() {
12875       return this.safi;
12876     }
12877
12878     /**
12879      * 
12880      * @see af_safi
12881      */
12882     public enableAddressFamily_args setSafi(af_safi safi) {
12883       this.safi = safi;
12884       return this;
12885     }
12886
12887     public void unsetSafi() {
12888       this.safi = null;
12889     }
12890
12891     /** Returns true if field safi is set (has been assigned a value) and false otherwise */
12892     public boolean isSetSafi() {
12893       return this.safi != null;
12894     }
12895
12896     public void setSafiIsSet(boolean value) {
12897       if (!value) {
12898         this.safi = null;
12899       }
12900     }
12901
12902     public void setFieldValue(_Fields field, Object value) {
12903       switch (field) {
12904       case PEER_IP:
12905         if (value == null) {
12906           unsetPeerIp();
12907         } else {
12908           setPeerIp((String)value);
12909         }
12910         break;
12911
12912       case AFI:
12913         if (value == null) {
12914           unsetAfi();
12915         } else {
12916           setAfi((af_afi)value);
12917         }
12918         break;
12919
12920       case SAFI:
12921         if (value == null) {
12922           unsetSafi();
12923         } else {
12924           setSafi((af_safi)value);
12925         }
12926         break;
12927
12928       }
12929     }
12930
12931     public Object getFieldValue(_Fields field) {
12932       switch (field) {
12933       case PEER_IP:
12934         return getPeerIp();
12935
12936       case AFI:
12937         return getAfi();
12938
12939       case SAFI:
12940         return getSafi();
12941
12942       }
12943       throw new IllegalStateException();
12944     }
12945
12946     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12947     public boolean isSet(_Fields field) {
12948       if (field == null) {
12949         throw new IllegalArgumentException();
12950       }
12951
12952       switch (field) {
12953       case PEER_IP:
12954         return isSetPeerIp();
12955       case AFI:
12956         return isSetAfi();
12957       case SAFI:
12958         return isSetSafi();
12959       }
12960       throw new IllegalStateException();
12961     }
12962
12963     @Override
12964     public boolean equals(Object that) {
12965       if (that == null)
12966         return false;
12967       if (that instanceof enableAddressFamily_args)
12968         return this.equals((enableAddressFamily_args)that);
12969       return false;
12970     }
12971
12972     public boolean equals(enableAddressFamily_args that) {
12973       if (that == null)
12974         return false;
12975
12976       boolean this_present_peerIp = true && this.isSetPeerIp();
12977       boolean that_present_peerIp = true && that.isSetPeerIp();
12978       if (this_present_peerIp || that_present_peerIp) {
12979         if (!(this_present_peerIp && that_present_peerIp))
12980           return false;
12981         if (!this.peerIp.equals(that.peerIp))
12982           return false;
12983       }
12984
12985       boolean this_present_afi = true && this.isSetAfi();
12986       boolean that_present_afi = true && that.isSetAfi();
12987       if (this_present_afi || that_present_afi) {
12988         if (!(this_present_afi && that_present_afi))
12989           return false;
12990         if (!this.afi.equals(that.afi))
12991           return false;
12992       }
12993
12994       boolean this_present_safi = true && this.isSetSafi();
12995       boolean that_present_safi = true && that.isSetSafi();
12996       if (this_present_safi || that_present_safi) {
12997         if (!(this_present_safi && that_present_safi))
12998           return false;
12999         if (!this.safi.equals(that.safi))
13000           return false;
13001       }
13002
13003       return true;
13004     }
13005
13006     @Override
13007     public int hashCode() {
13008       return 0;
13009     }
13010
13011     @Override
13012     public int compareTo(enableAddressFamily_args other) {
13013       if (!getClass().equals(other.getClass())) {
13014         return getClass().getName().compareTo(other.getClass().getName());
13015       }
13016
13017       int lastComparison = 0;
13018
13019       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
13020       if (lastComparison != 0) {
13021         return lastComparison;
13022       }
13023       if (isSetPeerIp()) {
13024         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
13025         if (lastComparison != 0) {
13026           return lastComparison;
13027         }
13028       }
13029       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
13030       if (lastComparison != 0) {
13031         return lastComparison;
13032       }
13033       if (isSetAfi()) {
13034         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
13035         if (lastComparison != 0) {
13036           return lastComparison;
13037         }
13038       }
13039       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
13040       if (lastComparison != 0) {
13041         return lastComparison;
13042       }
13043       if (isSetSafi()) {
13044         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
13045         if (lastComparison != 0) {
13046           return lastComparison;
13047         }
13048       }
13049       return 0;
13050     }
13051
13052     public _Fields fieldForId(int fieldId) {
13053       return _Fields.findByThriftId(fieldId);
13054     }
13055
13056     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13057       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13058     }
13059
13060     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13061       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13062     }
13063
13064     @Override
13065     public String toString() {
13066       StringBuilder sb = new StringBuilder("enableAddressFamily_args(");
13067       boolean first = true;
13068
13069       sb.append("peerIp:");
13070       if (this.peerIp == null) {
13071         sb.append("null");
13072       } else {
13073         sb.append(this.peerIp);
13074       }
13075       first = false;
13076       if (!first) sb.append(", ");
13077       sb.append("afi:");
13078       if (this.afi == null) {
13079         sb.append("null");
13080       } else {
13081         sb.append(this.afi);
13082       }
13083       first = false;
13084       if (!first) sb.append(", ");
13085       sb.append("safi:");
13086       if (this.safi == null) {
13087         sb.append("null");
13088       } else {
13089         sb.append(this.safi);
13090       }
13091       first = false;
13092       sb.append(")");
13093       return sb.toString();
13094     }
13095
13096     public void validate() throws org.apache.thrift.TException {
13097       // check for required fields
13098       // check for sub-struct validity
13099     }
13100
13101     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13102       try {
13103         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13104       } catch (org.apache.thrift.TException te) {
13105         throw new java.io.IOException(te);
13106       }
13107     }
13108
13109     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13110       try {
13111         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13112       } catch (org.apache.thrift.TException te) {
13113         throw new java.io.IOException(te);
13114       }
13115     }
13116
13117     private static class enableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
13118       public enableAddressFamily_argsStandardScheme getScheme() {
13119         return new enableAddressFamily_argsStandardScheme();
13120       }
13121     }
13122
13123     private static class enableAddressFamily_argsStandardScheme extends StandardScheme<enableAddressFamily_args> {
13124
13125       public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
13126         org.apache.thrift.protocol.TField schemeField;
13127         iprot.readStructBegin();
13128         while (true)
13129         {
13130           schemeField = iprot.readFieldBegin();
13131           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
13132             break;
13133           }
13134           switch (schemeField.id) {
13135             case 1: // PEER_IP
13136               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13137                 struct.peerIp = iprot.readString();
13138                 struct.setPeerIpIsSet(true);
13139               } else { 
13140                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13141               }
13142               break;
13143             case 2: // AFI
13144               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13145                 struct.afi = af_afi.findByValue(iprot.readI32());
13146                 struct.setAfiIsSet(true);
13147               } else { 
13148                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13149               }
13150               break;
13151             case 3: // SAFI
13152               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13153                 struct.safi = af_safi.findByValue(iprot.readI32());
13154                 struct.setSafiIsSet(true);
13155               } else { 
13156                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13157               }
13158               break;
13159             default:
13160               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13161           }
13162           iprot.readFieldEnd();
13163         }
13164         iprot.readStructEnd();
13165
13166         // check for required fields of primitive type, which can't be checked in the validate method
13167         struct.validate();
13168       }
13169
13170       public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
13171         struct.validate();
13172
13173         oprot.writeStructBegin(STRUCT_DESC);
13174         if (struct.peerIp != null) {
13175           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
13176           oprot.writeString(struct.peerIp);
13177           oprot.writeFieldEnd();
13178         }
13179         if (struct.afi != null) {
13180           oprot.writeFieldBegin(AFI_FIELD_DESC);
13181           oprot.writeI32(struct.afi.getValue());
13182           oprot.writeFieldEnd();
13183         }
13184         if (struct.safi != null) {
13185           oprot.writeFieldBegin(SAFI_FIELD_DESC);
13186           oprot.writeI32(struct.safi.getValue());
13187           oprot.writeFieldEnd();
13188         }
13189         oprot.writeFieldStop();
13190         oprot.writeStructEnd();
13191       }
13192
13193     }
13194
13195     private static class enableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
13196       public enableAddressFamily_argsTupleScheme getScheme() {
13197         return new enableAddressFamily_argsTupleScheme();
13198       }
13199     }
13200
13201     private static class enableAddressFamily_argsTupleScheme extends TupleScheme<enableAddressFamily_args> {
13202
13203       @Override
13204       public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
13205         TTupleProtocol oprot = (TTupleProtocol) prot;
13206         BitSet optionals = new BitSet();
13207         if (struct.isSetPeerIp()) {
13208           optionals.set(0);
13209         }
13210         if (struct.isSetAfi()) {
13211           optionals.set(1);
13212         }
13213         if (struct.isSetSafi()) {
13214           optionals.set(2);
13215         }
13216         oprot.writeBitSet(optionals, 3);
13217         if (struct.isSetPeerIp()) {
13218           oprot.writeString(struct.peerIp);
13219         }
13220         if (struct.isSetAfi()) {
13221           oprot.writeI32(struct.afi.getValue());
13222         }
13223         if (struct.isSetSafi()) {
13224           oprot.writeI32(struct.safi.getValue());
13225         }
13226       }
13227
13228       @Override
13229       public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
13230         TTupleProtocol iprot = (TTupleProtocol) prot;
13231         BitSet incoming = iprot.readBitSet(3);
13232         if (incoming.get(0)) {
13233           struct.peerIp = iprot.readString();
13234           struct.setPeerIpIsSet(true);
13235         }
13236         if (incoming.get(1)) {
13237           struct.afi = af_afi.findByValue(iprot.readI32());
13238           struct.setAfiIsSet(true);
13239         }
13240         if (incoming.get(2)) {
13241           struct.safi = af_safi.findByValue(iprot.readI32());
13242           struct.setSafiIsSet(true);
13243         }
13244       }
13245     }
13246
13247   }
13248
13249   public static class enableAddressFamily_result implements org.apache.thrift.TBase<enableAddressFamily_result, enableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_result>   {
13250     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_result");
13251
13252     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
13253
13254     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13255     static {
13256       schemes.put(StandardScheme.class, new enableAddressFamily_resultStandardSchemeFactory());
13257       schemes.put(TupleScheme.class, new enableAddressFamily_resultTupleSchemeFactory());
13258     }
13259
13260     public int success; // required
13261
13262     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13263     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13264       SUCCESS((short)0, "success");
13265
13266       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13267
13268       static {
13269         for (_Fields field : EnumSet.allOf(_Fields.class)) {
13270           byName.put(field.getFieldName(), field);
13271         }
13272       }
13273
13274       /**
13275        * Find the _Fields constant that matches fieldId, or null if its not found.
13276        */
13277       public static _Fields findByThriftId(int fieldId) {
13278         switch(fieldId) {
13279           case 0: // SUCCESS
13280             return SUCCESS;
13281           default:
13282             return null;
13283         }
13284       }
13285
13286       /**
13287        * Find the _Fields constant that matches fieldId, throwing an exception
13288        * if it is not found.
13289        */
13290       public static _Fields findByThriftIdOrThrow(int fieldId) {
13291         _Fields fields = findByThriftId(fieldId);
13292         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13293         return fields;
13294       }
13295
13296       /**
13297        * Find the _Fields constant that matches name, or null if its not found.
13298        */
13299       public static _Fields findByName(String name) {
13300         return byName.get(name);
13301       }
13302
13303       private final short _thriftId;
13304       private final String _fieldName;
13305
13306       _Fields(short thriftId, String fieldName) {
13307         _thriftId = thriftId;
13308         _fieldName = fieldName;
13309       }
13310
13311       public short getThriftFieldId() {
13312         return _thriftId;
13313       }
13314
13315       public String getFieldName() {
13316         return _fieldName;
13317       }
13318     }
13319
13320     // isset id assignments
13321     private static final int __SUCCESS_ISSET_ID = 0;
13322     private byte __isset_bitfield = 0;
13323     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13324     static {
13325       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13326       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13327           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
13328       metaDataMap = Collections.unmodifiableMap(tmpMap);
13329       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_result.class, metaDataMap);
13330     }
13331
13332     public enableAddressFamily_result() {
13333     }
13334
13335     public enableAddressFamily_result(
13336       int success)
13337     {
13338       this();
13339       this.success = success;
13340       setSuccessIsSet(true);
13341     }
13342
13343     /**
13344      * Performs a deep copy on <i>other</i>.
13345      */
13346     public enableAddressFamily_result(enableAddressFamily_result other) {
13347       __isset_bitfield = other.__isset_bitfield;
13348       this.success = other.success;
13349     }
13350
13351     public enableAddressFamily_result deepCopy() {
13352       return new enableAddressFamily_result(this);
13353     }
13354
13355     @Override
13356     public void clear() {
13357       setSuccessIsSet(false);
13358       this.success = 0;
13359     }
13360
13361     public int getSuccess() {
13362       return this.success;
13363     }
13364
13365     public enableAddressFamily_result setSuccess(int success) {
13366       this.success = success;
13367       setSuccessIsSet(true);
13368       return this;
13369     }
13370
13371     public void unsetSuccess() {
13372       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13373     }
13374
13375     /** Returns true if field success is set (has been assigned a value) and false otherwise */
13376     public boolean isSetSuccess() {
13377       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13378     }
13379
13380     public void setSuccessIsSet(boolean value) {
13381       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
13382     }
13383
13384     public void setFieldValue(_Fields field, Object value) {
13385       switch (field) {
13386       case SUCCESS:
13387         if (value == null) {
13388           unsetSuccess();
13389         } else {
13390           setSuccess((Integer)value);
13391         }
13392         break;
13393
13394       }
13395     }
13396
13397     public Object getFieldValue(_Fields field) {
13398       switch (field) {
13399       case SUCCESS:
13400         return Integer.valueOf(getSuccess());
13401
13402       }
13403       throw new IllegalStateException();
13404     }
13405
13406     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13407     public boolean isSet(_Fields field) {
13408       if (field == null) {
13409         throw new IllegalArgumentException();
13410       }
13411
13412       switch (field) {
13413       case SUCCESS:
13414         return isSetSuccess();
13415       }
13416       throw new IllegalStateException();
13417     }
13418
13419     @Override
13420     public boolean equals(Object that) {
13421       if (that == null)
13422         return false;
13423       if (that instanceof enableAddressFamily_result)
13424         return this.equals((enableAddressFamily_result)that);
13425       return false;
13426     }
13427
13428     public boolean equals(enableAddressFamily_result that) {
13429       if (that == null)
13430         return false;
13431
13432       boolean this_present_success = true;
13433       boolean that_present_success = true;
13434       if (this_present_success || that_present_success) {
13435         if (!(this_present_success && that_present_success))
13436           return false;
13437         if (this.success != that.success)
13438           return false;
13439       }
13440
13441       return true;
13442     }
13443
13444     @Override
13445     public int hashCode() {
13446       return 0;
13447     }
13448
13449     @Override
13450     public int compareTo(enableAddressFamily_result other) {
13451       if (!getClass().equals(other.getClass())) {
13452         return getClass().getName().compareTo(other.getClass().getName());
13453       }
13454
13455       int lastComparison = 0;
13456
13457       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
13458       if (lastComparison != 0) {
13459         return lastComparison;
13460       }
13461       if (isSetSuccess()) {
13462         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
13463         if (lastComparison != 0) {
13464           return lastComparison;
13465         }
13466       }
13467       return 0;
13468     }
13469
13470     public _Fields fieldForId(int fieldId) {
13471       return _Fields.findByThriftId(fieldId);
13472     }
13473
13474     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13475       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13476     }
13477
13478     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13479       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13480       }
13481
13482     @Override
13483     public String toString() {
13484       StringBuilder sb = new StringBuilder("enableAddressFamily_result(");
13485       boolean first = true;
13486
13487       sb.append("success:");
13488       sb.append(this.success);
13489       first = false;
13490       sb.append(")");
13491       return sb.toString();
13492     }
13493
13494     public void validate() throws org.apache.thrift.TException {
13495       // check for required fields
13496       // check for sub-struct validity
13497     }
13498
13499     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13500       try {
13501         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13502       } catch (org.apache.thrift.TException te) {
13503         throw new java.io.IOException(te);
13504       }
13505     }
13506
13507     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13508       try {
13509         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13510         __isset_bitfield = 0;
13511         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13512       } catch (org.apache.thrift.TException te) {
13513         throw new java.io.IOException(te);
13514       }
13515     }
13516
13517     private static class enableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
13518       public enableAddressFamily_resultStandardScheme getScheme() {
13519         return new enableAddressFamily_resultStandardScheme();
13520       }
13521     }
13522
13523     private static class enableAddressFamily_resultStandardScheme extends StandardScheme<enableAddressFamily_result> {
13524
13525       public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
13526         org.apache.thrift.protocol.TField schemeField;
13527         iprot.readStructBegin();
13528         while (true)
13529         {
13530           schemeField = iprot.readFieldBegin();
13531           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
13532             break;
13533           }
13534           switch (schemeField.id) {
13535             case 0: // SUCCESS
13536               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13537                 struct.success = iprot.readI32();
13538                 struct.setSuccessIsSet(true);
13539               } else { 
13540                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13541               }
13542               break;
13543             default:
13544               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13545           }
13546           iprot.readFieldEnd();
13547         }
13548         iprot.readStructEnd();
13549
13550         // check for required fields of primitive type, which can't be checked in the validate method
13551         struct.validate();
13552       }
13553
13554       public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
13555         struct.validate();
13556
13557         oprot.writeStructBegin(STRUCT_DESC);
13558         if (struct.isSetSuccess()) {
13559           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13560           oprot.writeI32(struct.success);
13561           oprot.writeFieldEnd();
13562         }
13563         oprot.writeFieldStop();
13564         oprot.writeStructEnd();
13565       }
13566
13567     }
13568
13569     private static class enableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
13570       public enableAddressFamily_resultTupleScheme getScheme() {
13571         return new enableAddressFamily_resultTupleScheme();
13572       }
13573     }
13574
13575     private static class enableAddressFamily_resultTupleScheme extends TupleScheme<enableAddressFamily_result> {
13576
13577       @Override
13578       public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
13579         TTupleProtocol oprot = (TTupleProtocol) prot;
13580         BitSet optionals = new BitSet();
13581         if (struct.isSetSuccess()) {
13582           optionals.set(0);
13583         }
13584         oprot.writeBitSet(optionals, 1);
13585         if (struct.isSetSuccess()) {
13586           oprot.writeI32(struct.success);
13587         }
13588       }
13589
13590       @Override
13591       public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
13592         TTupleProtocol iprot = (TTupleProtocol) prot;
13593         BitSet incoming = iprot.readBitSet(1);
13594         if (incoming.get(0)) {
13595           struct.success = iprot.readI32();
13596           struct.setSuccessIsSet(true);
13597         }
13598       }
13599     }
13600
13601   }
13602
13603   public static class disableAddressFamily_args implements org.apache.thrift.TBase<disableAddressFamily_args, disableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_args>   {
13604     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_args");
13605
13606     private static final org.apache.thrift.protocol.TField PEER_IP_FIELD_DESC = new org.apache.thrift.protocol.TField("peerIp", org.apache.thrift.protocol.TType.STRING, (short)1);
13607     private static final org.apache.thrift.protocol.TField AFI_FIELD_DESC = new org.apache.thrift.protocol.TField("afi", org.apache.thrift.protocol.TType.I32, (short)2);
13608     private static final org.apache.thrift.protocol.TField SAFI_FIELD_DESC = new org.apache.thrift.protocol.TField("safi", org.apache.thrift.protocol.TType.I32, (short)3);
13609
13610     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13611     static {
13612       schemes.put(StandardScheme.class, new disableAddressFamily_argsStandardSchemeFactory());
13613       schemes.put(TupleScheme.class, new disableAddressFamily_argsTupleSchemeFactory());
13614     }
13615
13616     public String peerIp; // required
13617     /**
13618      * 
13619      * @see af_afi
13620      */
13621     public af_afi afi; // required
13622     /**
13623      * 
13624      * @see af_safi
13625      */
13626     public af_safi safi; // required
13627
13628     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13629     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13630       PEER_IP((short)1, "peerIp"),
13631       /**
13632        * 
13633        * @see af_afi
13634        */
13635       AFI((short)2, "afi"),
13636       /**
13637        * 
13638        * @see af_safi
13639        */
13640       SAFI((short)3, "safi");
13641
13642       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13643
13644       static {
13645         for (_Fields field : EnumSet.allOf(_Fields.class)) {
13646           byName.put(field.getFieldName(), field);
13647         }
13648       }
13649
13650       /**
13651        * Find the _Fields constant that matches fieldId, or null if its not found.
13652        */
13653       public static _Fields findByThriftId(int fieldId) {
13654         switch(fieldId) {
13655           case 1: // PEER_IP
13656             return PEER_IP;
13657           case 2: // AFI
13658             return AFI;
13659           case 3: // SAFI
13660             return SAFI;
13661           default:
13662             return null;
13663         }
13664       }
13665
13666       /**
13667        * Find the _Fields constant that matches fieldId, throwing an exception
13668        * if it is not found.
13669        */
13670       public static _Fields findByThriftIdOrThrow(int fieldId) {
13671         _Fields fields = findByThriftId(fieldId);
13672         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13673         return fields;
13674       }
13675
13676       /**
13677        * Find the _Fields constant that matches name, or null if its not found.
13678        */
13679       public static _Fields findByName(String name) {
13680         return byName.get(name);
13681       }
13682
13683       private final short _thriftId;
13684       private final String _fieldName;
13685
13686       _Fields(short thriftId, String fieldName) {
13687         _thriftId = thriftId;
13688         _fieldName = fieldName;
13689       }
13690
13691       public short getThriftFieldId() {
13692         return _thriftId;
13693       }
13694
13695       public String getFieldName() {
13696         return _fieldName;
13697       }
13698     }
13699
13700     // isset id assignments
13701     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13702     static {
13703       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13704       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13705           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13706       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13707           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
13708       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13709           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
13710       metaDataMap = Collections.unmodifiableMap(tmpMap);
13711       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_args.class, metaDataMap);
13712     }
13713
13714     public disableAddressFamily_args() {
13715     }
13716
13717     public disableAddressFamily_args(
13718       String peerIp,
13719       af_afi afi,
13720       af_safi safi)
13721     {
13722       this();
13723       this.peerIp = peerIp;
13724       this.afi = afi;
13725       this.safi = safi;
13726     }
13727
13728     /**
13729      * Performs a deep copy on <i>other</i>.
13730      */
13731     public disableAddressFamily_args(disableAddressFamily_args other) {
13732       if (other.isSetPeerIp()) {
13733         this.peerIp = other.peerIp;
13734       }
13735       if (other.isSetAfi()) {
13736         this.afi = other.afi;
13737       }
13738       if (other.isSetSafi()) {
13739         this.safi = other.safi;
13740       }
13741     }
13742
13743     public disableAddressFamily_args deepCopy() {
13744       return new disableAddressFamily_args(this);
13745     }
13746
13747     @Override
13748     public void clear() {
13749       this.peerIp = null;
13750       this.afi = null;
13751       this.safi = null;
13752     }
13753
13754     public String getPeerIp() {
13755       return this.peerIp;
13756     }
13757
13758     public disableAddressFamily_args setPeerIp(String peerIp) {
13759       this.peerIp = peerIp;
13760       return this;
13761     }
13762
13763     public void unsetPeerIp() {
13764       this.peerIp = null;
13765     }
13766
13767     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
13768     public boolean isSetPeerIp() {
13769       return this.peerIp != null;
13770     }
13771
13772     public void setPeerIpIsSet(boolean value) {
13773       if (!value) {
13774         this.peerIp = null;
13775       }
13776     }
13777
13778     /**
13779      * 
13780      * @see af_afi
13781      */
13782     public af_afi getAfi() {
13783       return this.afi;
13784     }
13785
13786     /**
13787      * 
13788      * @see af_afi
13789      */
13790     public disableAddressFamily_args setAfi(af_afi afi) {
13791       this.afi = afi;
13792       return this;
13793     }
13794
13795     public void unsetAfi() {
13796       this.afi = null;
13797     }
13798
13799     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
13800     public boolean isSetAfi() {
13801       return this.afi != null;
13802     }
13803
13804     public void setAfiIsSet(boolean value) {
13805       if (!value) {
13806         this.afi = null;
13807       }
13808     }
13809
13810     /**
13811      * 
13812      * @see af_safi
13813      */
13814     public af_safi getSafi() {
13815       return this.safi;
13816     }
13817
13818     /**
13819      * 
13820      * @see af_safi
13821      */
13822     public disableAddressFamily_args setSafi(af_safi safi) {
13823       this.safi = safi;
13824       return this;
13825     }
13826
13827     public void unsetSafi() {
13828       this.safi = null;
13829     }
13830
13831     /** Returns true if field safi is set (has been assigned a value) and false otherwise */
13832     public boolean isSetSafi() {
13833       return this.safi != null;
13834     }
13835
13836     public void setSafiIsSet(boolean value) {
13837       if (!value) {
13838         this.safi = null;
13839       }
13840     }
13841
13842     public void setFieldValue(_Fields field, Object value) {
13843       switch (field) {
13844       case PEER_IP:
13845         if (value == null) {
13846           unsetPeerIp();
13847         } else {
13848           setPeerIp((String)value);
13849         }
13850         break;
13851
13852       case AFI:
13853         if (value == null) {
13854           unsetAfi();
13855         } else {
13856           setAfi((af_afi)value);
13857         }
13858         break;
13859
13860       case SAFI:
13861         if (value == null) {
13862           unsetSafi();
13863         } else {
13864           setSafi((af_safi)value);
13865         }
13866         break;
13867
13868       }
13869     }
13870
13871     public Object getFieldValue(_Fields field) {
13872       switch (field) {
13873       case PEER_IP:
13874         return getPeerIp();
13875
13876       case AFI:
13877         return getAfi();
13878
13879       case SAFI:
13880         return getSafi();
13881
13882       }
13883       throw new IllegalStateException();
13884     }
13885
13886     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13887     public boolean isSet(_Fields field) {
13888       if (field == null) {
13889         throw new IllegalArgumentException();
13890       }
13891
13892       switch (field) {
13893       case PEER_IP:
13894         return isSetPeerIp();
13895       case AFI:
13896         return isSetAfi();
13897       case SAFI:
13898         return isSetSafi();
13899       }
13900       throw new IllegalStateException();
13901     }
13902
13903     @Override
13904     public boolean equals(Object that) {
13905       if (that == null)
13906         return false;
13907       if (that instanceof disableAddressFamily_args)
13908         return this.equals((disableAddressFamily_args)that);
13909       return false;
13910     }
13911
13912     public boolean equals(disableAddressFamily_args that) {
13913       if (that == null)
13914         return false;
13915
13916       boolean this_present_peerIp = true && this.isSetPeerIp();
13917       boolean that_present_peerIp = true && that.isSetPeerIp();
13918       if (this_present_peerIp || that_present_peerIp) {
13919         if (!(this_present_peerIp && that_present_peerIp))
13920           return false;
13921         if (!this.peerIp.equals(that.peerIp))
13922           return false;
13923       }
13924
13925       boolean this_present_afi = true && this.isSetAfi();
13926       boolean that_present_afi = true && that.isSetAfi();
13927       if (this_present_afi || that_present_afi) {
13928         if (!(this_present_afi && that_present_afi))
13929           return false;
13930         if (!this.afi.equals(that.afi))
13931           return false;
13932       }
13933
13934       boolean this_present_safi = true && this.isSetSafi();
13935       boolean that_present_safi = true && that.isSetSafi();
13936       if (this_present_safi || that_present_safi) {
13937         if (!(this_present_safi && that_present_safi))
13938           return false;
13939         if (!this.safi.equals(that.safi))
13940           return false;
13941       }
13942
13943       return true;
13944     }
13945
13946     @Override
13947     public int hashCode() {
13948       return 0;
13949     }
13950
13951     @Override
13952     public int compareTo(disableAddressFamily_args other) {
13953       if (!getClass().equals(other.getClass())) {
13954         return getClass().getName().compareTo(other.getClass().getName());
13955       }
13956
13957       int lastComparison = 0;
13958
13959       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
13960       if (lastComparison != 0) {
13961         return lastComparison;
13962       }
13963       if (isSetPeerIp()) {
13964         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
13965         if (lastComparison != 0) {
13966           return lastComparison;
13967         }
13968       }
13969       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
13970       if (lastComparison != 0) {
13971         return lastComparison;
13972       }
13973       if (isSetAfi()) {
13974         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
13975         if (lastComparison != 0) {
13976           return lastComparison;
13977         }
13978       }
13979       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
13980       if (lastComparison != 0) {
13981         return lastComparison;
13982       }
13983       if (isSetSafi()) {
13984         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
13985         if (lastComparison != 0) {
13986           return lastComparison;
13987         }
13988       }
13989       return 0;
13990     }
13991
13992     public _Fields fieldForId(int fieldId) {
13993       return _Fields.findByThriftId(fieldId);
13994     }
13995
13996     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13997       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13998     }
13999
14000     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14001       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14002     }
14003
14004     @Override
14005     public String toString() {
14006       StringBuilder sb = new StringBuilder("disableAddressFamily_args(");
14007       boolean first = true;
14008
14009       sb.append("peerIp:");
14010       if (this.peerIp == null) {
14011         sb.append("null");
14012       } else {
14013         sb.append(this.peerIp);
14014       }
14015       first = false;
14016       if (!first) sb.append(", ");
14017       sb.append("afi:");
14018       if (this.afi == null) {
14019         sb.append("null");
14020       } else {
14021         sb.append(this.afi);
14022       }
14023       first = false;
14024       if (!first) sb.append(", ");
14025       sb.append("safi:");
14026       if (this.safi == null) {
14027         sb.append("null");
14028       } else {
14029         sb.append(this.safi);
14030       }
14031       first = false;
14032       sb.append(")");
14033       return sb.toString();
14034     }
14035
14036     public void validate() throws org.apache.thrift.TException {
14037       // check for required fields
14038       // check for sub-struct validity
14039     }
14040
14041     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14042       try {
14043         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14044       } catch (org.apache.thrift.TException te) {
14045         throw new java.io.IOException(te);
14046       }
14047     }
14048
14049     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14050       try {
14051         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14052       } catch (org.apache.thrift.TException te) {
14053         throw new java.io.IOException(te);
14054       }
14055     }
14056
14057     private static class disableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
14058       public disableAddressFamily_argsStandardScheme getScheme() {
14059         return new disableAddressFamily_argsStandardScheme();
14060       }
14061     }
14062
14063     private static class disableAddressFamily_argsStandardScheme extends StandardScheme<disableAddressFamily_args> {
14064
14065       public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
14066         org.apache.thrift.protocol.TField schemeField;
14067         iprot.readStructBegin();
14068         while (true)
14069         {
14070           schemeField = iprot.readFieldBegin();
14071           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
14072             break;
14073           }
14074           switch (schemeField.id) {
14075             case 1: // PEER_IP
14076               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14077                 struct.peerIp = iprot.readString();
14078                 struct.setPeerIpIsSet(true);
14079               } else { 
14080                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14081               }
14082               break;
14083             case 2: // AFI
14084               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14085                 struct.afi = af_afi.findByValue(iprot.readI32());
14086                 struct.setAfiIsSet(true);
14087               } else { 
14088                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14089               }
14090               break;
14091             case 3: // SAFI
14092               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14093                 struct.safi = af_safi.findByValue(iprot.readI32());
14094                 struct.setSafiIsSet(true);
14095               } else { 
14096                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14097               }
14098               break;
14099             default:
14100               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14101           }
14102           iprot.readFieldEnd();
14103         }
14104         iprot.readStructEnd();
14105
14106         // check for required fields of primitive type, which can't be checked in the validate method
14107         struct.validate();
14108       }
14109
14110       public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
14111         struct.validate();
14112
14113         oprot.writeStructBegin(STRUCT_DESC);
14114         if (struct.peerIp != null) {
14115           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
14116           oprot.writeString(struct.peerIp);
14117           oprot.writeFieldEnd();
14118         }
14119         if (struct.afi != null) {
14120           oprot.writeFieldBegin(AFI_FIELD_DESC);
14121           oprot.writeI32(struct.afi.getValue());
14122           oprot.writeFieldEnd();
14123         }
14124         if (struct.safi != null) {
14125           oprot.writeFieldBegin(SAFI_FIELD_DESC);
14126           oprot.writeI32(struct.safi.getValue());
14127           oprot.writeFieldEnd();
14128         }
14129         oprot.writeFieldStop();
14130         oprot.writeStructEnd();
14131       }
14132
14133     }
14134
14135     private static class disableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
14136       public disableAddressFamily_argsTupleScheme getScheme() {
14137         return new disableAddressFamily_argsTupleScheme();
14138       }
14139     }
14140
14141     private static class disableAddressFamily_argsTupleScheme extends TupleScheme<disableAddressFamily_args> {
14142
14143       @Override
14144       public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
14145         TTupleProtocol oprot = (TTupleProtocol) prot;
14146         BitSet optionals = new BitSet();
14147         if (struct.isSetPeerIp()) {
14148           optionals.set(0);
14149         }
14150         if (struct.isSetAfi()) {
14151           optionals.set(1);
14152         }
14153         if (struct.isSetSafi()) {
14154           optionals.set(2);
14155         }
14156         oprot.writeBitSet(optionals, 3);
14157         if (struct.isSetPeerIp()) {
14158           oprot.writeString(struct.peerIp);
14159         }
14160         if (struct.isSetAfi()) {
14161           oprot.writeI32(struct.afi.getValue());
14162         }
14163         if (struct.isSetSafi()) {
14164           oprot.writeI32(struct.safi.getValue());
14165         }
14166       }
14167
14168       @Override
14169       public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
14170         TTupleProtocol iprot = (TTupleProtocol) prot;
14171         BitSet incoming = iprot.readBitSet(3);
14172         if (incoming.get(0)) {
14173           struct.peerIp = iprot.readString();
14174           struct.setPeerIpIsSet(true);
14175         }
14176         if (incoming.get(1)) {
14177           struct.afi = af_afi.findByValue(iprot.readI32());
14178           struct.setAfiIsSet(true);
14179         }
14180         if (incoming.get(2)) {
14181           struct.safi = af_safi.findByValue(iprot.readI32());
14182           struct.setSafiIsSet(true);
14183         }
14184       }
14185     }
14186
14187   }
14188
14189   public static class disableAddressFamily_result implements org.apache.thrift.TBase<disableAddressFamily_result, disableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_result>   {
14190     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_result");
14191
14192     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
14193
14194     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14195     static {
14196       schemes.put(StandardScheme.class, new disableAddressFamily_resultStandardSchemeFactory());
14197       schemes.put(TupleScheme.class, new disableAddressFamily_resultTupleSchemeFactory());
14198     }
14199
14200     public int success; // required
14201
14202     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14203     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14204       SUCCESS((short)0, "success");
14205
14206       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14207
14208       static {
14209         for (_Fields field : EnumSet.allOf(_Fields.class)) {
14210           byName.put(field.getFieldName(), field);
14211         }
14212       }
14213
14214       /**
14215        * Find the _Fields constant that matches fieldId, or null if its not found.
14216        */
14217       public static _Fields findByThriftId(int fieldId) {
14218         switch(fieldId) {
14219           case 0: // SUCCESS
14220             return SUCCESS;
14221           default:
14222             return null;
14223         }
14224       }
14225
14226       /**
14227        * Find the _Fields constant that matches fieldId, throwing an exception
14228        * if it is not found.
14229        */
14230       public static _Fields findByThriftIdOrThrow(int fieldId) {
14231         _Fields fields = findByThriftId(fieldId);
14232         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14233         return fields;
14234       }
14235
14236       /**
14237        * Find the _Fields constant that matches name, or null if its not found.
14238        */
14239       public static _Fields findByName(String name) {
14240         return byName.get(name);
14241       }
14242
14243       private final short _thriftId;
14244       private final String _fieldName;
14245
14246       _Fields(short thriftId, String fieldName) {
14247         _thriftId = thriftId;
14248         _fieldName = fieldName;
14249       }
14250
14251       public short getThriftFieldId() {
14252         return _thriftId;
14253       }
14254
14255       public String getFieldName() {
14256         return _fieldName;
14257       }
14258     }
14259
14260     // isset id assignments
14261     private static final int __SUCCESS_ISSET_ID = 0;
14262     private byte __isset_bitfield = 0;
14263     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14264     static {
14265       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14266       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14267           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
14268       metaDataMap = Collections.unmodifiableMap(tmpMap);
14269       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_result.class, metaDataMap);
14270     }
14271
14272     public disableAddressFamily_result() {
14273     }
14274
14275     public disableAddressFamily_result(
14276       int success)
14277     {
14278       this();
14279       this.success = success;
14280       setSuccessIsSet(true);
14281     }
14282
14283     /**
14284      * Performs a deep copy on <i>other</i>.
14285      */
14286     public disableAddressFamily_result(disableAddressFamily_result other) {
14287       __isset_bitfield = other.__isset_bitfield;
14288       this.success = other.success;
14289     }
14290
14291     public disableAddressFamily_result deepCopy() {
14292       return new disableAddressFamily_result(this);
14293     }
14294
14295     @Override
14296     public void clear() {
14297       setSuccessIsSet(false);
14298       this.success = 0;
14299     }
14300
14301     public int getSuccess() {
14302       return this.success;
14303     }
14304
14305     public disableAddressFamily_result setSuccess(int success) {
14306       this.success = success;
14307       setSuccessIsSet(true);
14308       return this;
14309     }
14310
14311     public void unsetSuccess() {
14312       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14313     }
14314
14315     /** Returns true if field success is set (has been assigned a value) and false otherwise */
14316     public boolean isSetSuccess() {
14317       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14318     }
14319
14320     public void setSuccessIsSet(boolean value) {
14321       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
14322     }
14323
14324     public void setFieldValue(_Fields field, Object value) {
14325       switch (field) {
14326       case SUCCESS:
14327         if (value == null) {
14328           unsetSuccess();
14329         } else {
14330           setSuccess((Integer)value);
14331         }
14332         break;
14333
14334       }
14335     }
14336
14337     public Object getFieldValue(_Fields field) {
14338       switch (field) {
14339       case SUCCESS:
14340         return Integer.valueOf(getSuccess());
14341
14342       }
14343       throw new IllegalStateException();
14344     }
14345
14346     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14347     public boolean isSet(_Fields field) {
14348       if (field == null) {
14349         throw new IllegalArgumentException();
14350       }
14351
14352       switch (field) {
14353       case SUCCESS:
14354         return isSetSuccess();
14355       }
14356       throw new IllegalStateException();
14357     }
14358
14359     @Override
14360     public boolean equals(Object that) {
14361       if (that == null)
14362         return false;
14363       if (that instanceof disableAddressFamily_result)
14364         return this.equals((disableAddressFamily_result)that);
14365       return false;
14366     }
14367
14368     public boolean equals(disableAddressFamily_result that) {
14369       if (that == null)
14370         return false;
14371
14372       boolean this_present_success = true;
14373       boolean that_present_success = true;
14374       if (this_present_success || that_present_success) {
14375         if (!(this_present_success && that_present_success))
14376           return false;
14377         if (this.success != that.success)
14378           return false;
14379       }
14380
14381       return true;
14382     }
14383
14384     @Override
14385     public int hashCode() {
14386       return 0;
14387     }
14388
14389     @Override
14390     public int compareTo(disableAddressFamily_result other) {
14391       if (!getClass().equals(other.getClass())) {
14392         return getClass().getName().compareTo(other.getClass().getName());
14393       }
14394
14395       int lastComparison = 0;
14396
14397       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
14398       if (lastComparison != 0) {
14399         return lastComparison;
14400       }
14401       if (isSetSuccess()) {
14402         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
14403         if (lastComparison != 0) {
14404           return lastComparison;
14405         }
14406       }
14407       return 0;
14408     }
14409
14410     public _Fields fieldForId(int fieldId) {
14411       return _Fields.findByThriftId(fieldId);
14412     }
14413
14414     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14415       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14416     }
14417
14418     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14419       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14420       }
14421
14422     @Override
14423     public String toString() {
14424       StringBuilder sb = new StringBuilder("disableAddressFamily_result(");
14425       boolean first = true;
14426
14427       sb.append("success:");
14428       sb.append(this.success);
14429       first = false;
14430       sb.append(")");
14431       return sb.toString();
14432     }
14433
14434     public void validate() throws org.apache.thrift.TException {
14435       // check for required fields
14436       // check for sub-struct validity
14437     }
14438
14439     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14440       try {
14441         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14442       } catch (org.apache.thrift.TException te) {
14443         throw new java.io.IOException(te);
14444       }
14445     }
14446
14447     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14448       try {
14449         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14450         __isset_bitfield = 0;
14451         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14452       } catch (org.apache.thrift.TException te) {
14453         throw new java.io.IOException(te);
14454       }
14455     }
14456
14457     private static class disableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
14458       public disableAddressFamily_resultStandardScheme getScheme() {
14459         return new disableAddressFamily_resultStandardScheme();
14460       }
14461     }
14462
14463     private static class disableAddressFamily_resultStandardScheme extends StandardScheme<disableAddressFamily_result> {
14464
14465       public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
14466         org.apache.thrift.protocol.TField schemeField;
14467         iprot.readStructBegin();
14468         while (true)
14469         {
14470           schemeField = iprot.readFieldBegin();
14471           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
14472             break;
14473           }
14474           switch (schemeField.id) {
14475             case 0: // SUCCESS
14476               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14477                 struct.success = iprot.readI32();
14478                 struct.setSuccessIsSet(true);
14479               } else { 
14480                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14481               }
14482               break;
14483             default:
14484               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14485           }
14486           iprot.readFieldEnd();
14487         }
14488         iprot.readStructEnd();
14489
14490         // check for required fields of primitive type, which can't be checked in the validate method
14491         struct.validate();
14492       }
14493
14494       public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
14495         struct.validate();
14496
14497         oprot.writeStructBegin(STRUCT_DESC);
14498         if (struct.isSetSuccess()) {
14499           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14500           oprot.writeI32(struct.success);
14501           oprot.writeFieldEnd();
14502         }
14503         oprot.writeFieldStop();
14504         oprot.writeStructEnd();
14505       }
14506
14507     }
14508
14509     private static class disableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
14510       public disableAddressFamily_resultTupleScheme getScheme() {
14511         return new disableAddressFamily_resultTupleScheme();
14512       }
14513     }
14514
14515     private static class disableAddressFamily_resultTupleScheme extends TupleScheme<disableAddressFamily_result> {
14516
14517       @Override
14518       public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
14519         TTupleProtocol oprot = (TTupleProtocol) prot;
14520         BitSet optionals = new BitSet();
14521         if (struct.isSetSuccess()) {
14522           optionals.set(0);
14523         }
14524         oprot.writeBitSet(optionals, 1);
14525         if (struct.isSetSuccess()) {
14526           oprot.writeI32(struct.success);
14527         }
14528       }
14529
14530       @Override
14531       public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
14532         TTupleProtocol iprot = (TTupleProtocol) prot;
14533         BitSet incoming = iprot.readBitSet(1);
14534         if (incoming.get(0)) {
14535           struct.success = iprot.readI32();
14536           struct.setSuccessIsSet(true);
14537         }
14538       }
14539     }
14540
14541   }
14542
14543   public static class setLogConfig_args implements org.apache.thrift.TBase<setLogConfig_args, setLogConfig_args._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_args>   {
14544     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_args");
14545
14546     private static final org.apache.thrift.protocol.TField LOG_FILE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("logFileName", org.apache.thrift.protocol.TType.STRING, (short)1);
14547     private static final org.apache.thrift.protocol.TField LOG_LEVEL_FIELD_DESC = new org.apache.thrift.protocol.TField("logLevel", org.apache.thrift.protocol.TType.STRING, (short)2);
14548
14549     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14550     static {
14551       schemes.put(StandardScheme.class, new setLogConfig_argsStandardSchemeFactory());
14552       schemes.put(TupleScheme.class, new setLogConfig_argsTupleSchemeFactory());
14553     }
14554
14555     public String logFileName; // required
14556     public String logLevel; // required
14557
14558     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14559     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14560       LOG_FILE_NAME((short)1, "logFileName"),
14561       LOG_LEVEL((short)2, "logLevel");
14562
14563       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14564
14565       static {
14566         for (_Fields field : EnumSet.allOf(_Fields.class)) {
14567           byName.put(field.getFieldName(), field);
14568         }
14569       }
14570
14571       /**
14572        * Find the _Fields constant that matches fieldId, or null if its not found.
14573        */
14574       public static _Fields findByThriftId(int fieldId) {
14575         switch(fieldId) {
14576           case 1: // LOG_FILE_NAME
14577             return LOG_FILE_NAME;
14578           case 2: // LOG_LEVEL
14579             return LOG_LEVEL;
14580           default:
14581             return null;
14582         }
14583       }
14584
14585       /**
14586        * Find the _Fields constant that matches fieldId, throwing an exception
14587        * if it is not found.
14588        */
14589       public static _Fields findByThriftIdOrThrow(int fieldId) {
14590         _Fields fields = findByThriftId(fieldId);
14591         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14592         return fields;
14593       }
14594
14595       /**
14596        * Find the _Fields constant that matches name, or null if its not found.
14597        */
14598       public static _Fields findByName(String name) {
14599         return byName.get(name);
14600       }
14601
14602       private final short _thriftId;
14603       private final String _fieldName;
14604
14605       _Fields(short thriftId, String fieldName) {
14606         _thriftId = thriftId;
14607         _fieldName = fieldName;
14608       }
14609
14610       public short getThriftFieldId() {
14611         return _thriftId;
14612       }
14613
14614       public String getFieldName() {
14615         return _fieldName;
14616       }
14617     }
14618
14619     // isset id assignments
14620     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14621     static {
14622       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14623       tmpMap.put(_Fields.LOG_FILE_NAME, new org.apache.thrift.meta_data.FieldMetaData("logFileName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14624           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14625       tmpMap.put(_Fields.LOG_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("logLevel", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14626           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14627       metaDataMap = Collections.unmodifiableMap(tmpMap);
14628       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_args.class, metaDataMap);
14629     }
14630
14631     public setLogConfig_args() {
14632     }
14633
14634     public setLogConfig_args(
14635       String logFileName,
14636       String logLevel)
14637     {
14638       this();
14639       this.logFileName = logFileName;
14640       this.logLevel = logLevel;
14641     }
14642
14643     /**
14644      * Performs a deep copy on <i>other</i>.
14645      */
14646     public setLogConfig_args(setLogConfig_args other) {
14647       if (other.isSetLogFileName()) {
14648         this.logFileName = other.logFileName;
14649       }
14650       if (other.isSetLogLevel()) {
14651         this.logLevel = other.logLevel;
14652       }
14653     }
14654
14655     public setLogConfig_args deepCopy() {
14656       return new setLogConfig_args(this);
14657     }
14658
14659     @Override
14660     public void clear() {
14661       this.logFileName = null;
14662       this.logLevel = null;
14663     }
14664
14665     public String getLogFileName() {
14666       return this.logFileName;
14667     }
14668
14669     public setLogConfig_args setLogFileName(String logFileName) {
14670       this.logFileName = logFileName;
14671       return this;
14672     }
14673
14674     public void unsetLogFileName() {
14675       this.logFileName = null;
14676     }
14677
14678     /** Returns true if field logFileName is set (has been assigned a value) and false otherwise */
14679     public boolean isSetLogFileName() {
14680       return this.logFileName != null;
14681     }
14682
14683     public void setLogFileNameIsSet(boolean value) {
14684       if (!value) {
14685         this.logFileName = null;
14686       }
14687     }
14688
14689     public String getLogLevel() {
14690       return this.logLevel;
14691     }
14692
14693     public setLogConfig_args setLogLevel(String logLevel) {
14694       this.logLevel = logLevel;
14695       return this;
14696     }
14697
14698     public void unsetLogLevel() {
14699       this.logLevel = null;
14700     }
14701
14702     /** Returns true if field logLevel is set (has been assigned a value) and false otherwise */
14703     public boolean isSetLogLevel() {
14704       return this.logLevel != null;
14705     }
14706
14707     public void setLogLevelIsSet(boolean value) {
14708       if (!value) {
14709         this.logLevel = null;
14710       }
14711     }
14712
14713     public void setFieldValue(_Fields field, Object value) {
14714       switch (field) {
14715       case LOG_FILE_NAME:
14716         if (value == null) {
14717           unsetLogFileName();
14718         } else {
14719           setLogFileName((String)value);
14720         }
14721         break;
14722
14723       case LOG_LEVEL:
14724         if (value == null) {
14725           unsetLogLevel();
14726         } else {
14727           setLogLevel((String)value);
14728         }
14729         break;
14730
14731       }
14732     }
14733
14734     public Object getFieldValue(_Fields field) {
14735       switch (field) {
14736       case LOG_FILE_NAME:
14737         return getLogFileName();
14738
14739       case LOG_LEVEL:
14740         return getLogLevel();
14741
14742       }
14743       throw new IllegalStateException();
14744     }
14745
14746     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14747     public boolean isSet(_Fields field) {
14748       if (field == null) {
14749         throw new IllegalArgumentException();
14750       }
14751
14752       switch (field) {
14753       case LOG_FILE_NAME:
14754         return isSetLogFileName();
14755       case LOG_LEVEL:
14756         return isSetLogLevel();
14757       }
14758       throw new IllegalStateException();
14759     }
14760
14761     @Override
14762     public boolean equals(Object that) {
14763       if (that == null)
14764         return false;
14765       if (that instanceof setLogConfig_args)
14766         return this.equals((setLogConfig_args)that);
14767       return false;
14768     }
14769
14770     public boolean equals(setLogConfig_args that) {
14771       if (that == null)
14772         return false;
14773
14774       boolean this_present_logFileName = true && this.isSetLogFileName();
14775       boolean that_present_logFileName = true && that.isSetLogFileName();
14776       if (this_present_logFileName || that_present_logFileName) {
14777         if (!(this_present_logFileName && that_present_logFileName))
14778           return false;
14779         if (!this.logFileName.equals(that.logFileName))
14780           return false;
14781       }
14782
14783       boolean this_present_logLevel = true && this.isSetLogLevel();
14784       boolean that_present_logLevel = true && that.isSetLogLevel();
14785       if (this_present_logLevel || that_present_logLevel) {
14786         if (!(this_present_logLevel && that_present_logLevel))
14787           return false;
14788         if (!this.logLevel.equals(that.logLevel))
14789           return false;
14790       }
14791
14792       return true;
14793     }
14794
14795     @Override
14796     public int hashCode() {
14797       return 0;
14798     }
14799
14800     @Override
14801     public int compareTo(setLogConfig_args other) {
14802       if (!getClass().equals(other.getClass())) {
14803         return getClass().getName().compareTo(other.getClass().getName());
14804       }
14805
14806       int lastComparison = 0;
14807
14808       lastComparison = Boolean.valueOf(isSetLogFileName()).compareTo(other.isSetLogFileName());
14809       if (lastComparison != 0) {
14810         return lastComparison;
14811       }
14812       if (isSetLogFileName()) {
14813         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logFileName, other.logFileName);
14814         if (lastComparison != 0) {
14815           return lastComparison;
14816         }
14817       }
14818       lastComparison = Boolean.valueOf(isSetLogLevel()).compareTo(other.isSetLogLevel());
14819       if (lastComparison != 0) {
14820         return lastComparison;
14821       }
14822       if (isSetLogLevel()) {
14823         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logLevel, other.logLevel);
14824         if (lastComparison != 0) {
14825           return lastComparison;
14826         }
14827       }
14828       return 0;
14829     }
14830
14831     public _Fields fieldForId(int fieldId) {
14832       return _Fields.findByThriftId(fieldId);
14833     }
14834
14835     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14836       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14837     }
14838
14839     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14840       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14841     }
14842
14843     @Override
14844     public String toString() {
14845       StringBuilder sb = new StringBuilder("setLogConfig_args(");
14846       boolean first = true;
14847
14848       sb.append("logFileName:");
14849       if (this.logFileName == null) {
14850         sb.append("null");
14851       } else {
14852         sb.append(this.logFileName);
14853       }
14854       first = false;
14855       if (!first) sb.append(", ");
14856       sb.append("logLevel:");
14857       if (this.logLevel == null) {
14858         sb.append("null");
14859       } else {
14860         sb.append(this.logLevel);
14861       }
14862       first = false;
14863       sb.append(")");
14864       return sb.toString();
14865     }
14866
14867     public void validate() throws org.apache.thrift.TException {
14868       // check for required fields
14869       // check for sub-struct validity
14870     }
14871
14872     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14873       try {
14874         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14875       } catch (org.apache.thrift.TException te) {
14876         throw new java.io.IOException(te);
14877       }
14878     }
14879
14880     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14881       try {
14882         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14883       } catch (org.apache.thrift.TException te) {
14884         throw new java.io.IOException(te);
14885       }
14886     }
14887
14888     private static class setLogConfig_argsStandardSchemeFactory implements SchemeFactory {
14889       public setLogConfig_argsStandardScheme getScheme() {
14890         return new setLogConfig_argsStandardScheme();
14891       }
14892     }
14893
14894     private static class setLogConfig_argsStandardScheme extends StandardScheme<setLogConfig_args> {
14895
14896       public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_args struct) throws org.apache.thrift.TException {
14897         org.apache.thrift.protocol.TField schemeField;
14898         iprot.readStructBegin();
14899         while (true)
14900         {
14901           schemeField = iprot.readFieldBegin();
14902           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
14903             break;
14904           }
14905           switch (schemeField.id) {
14906             case 1: // LOG_FILE_NAME
14907               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14908                 struct.logFileName = iprot.readString();
14909                 struct.setLogFileNameIsSet(true);
14910               } else { 
14911                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14912               }
14913               break;
14914             case 2: // LOG_LEVEL
14915               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14916                 struct.logLevel = iprot.readString();
14917                 struct.setLogLevelIsSet(true);
14918               } else { 
14919                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14920               }
14921               break;
14922             default:
14923               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14924           }
14925           iprot.readFieldEnd();
14926         }
14927         iprot.readStructEnd();
14928
14929         // check for required fields of primitive type, which can't be checked in the validate method
14930         struct.validate();
14931       }
14932
14933       public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_args struct) throws org.apache.thrift.TException {
14934         struct.validate();
14935
14936         oprot.writeStructBegin(STRUCT_DESC);
14937         if (struct.logFileName != null) {
14938           oprot.writeFieldBegin(LOG_FILE_NAME_FIELD_DESC);
14939           oprot.writeString(struct.logFileName);
14940           oprot.writeFieldEnd();
14941         }
14942         if (struct.logLevel != null) {
14943           oprot.writeFieldBegin(LOG_LEVEL_FIELD_DESC);
14944           oprot.writeString(struct.logLevel);
14945           oprot.writeFieldEnd();
14946         }
14947         oprot.writeFieldStop();
14948         oprot.writeStructEnd();
14949       }
14950
14951     }
14952
14953     private static class setLogConfig_argsTupleSchemeFactory implements SchemeFactory {
14954       public setLogConfig_argsTupleScheme getScheme() {
14955         return new setLogConfig_argsTupleScheme();
14956       }
14957     }
14958
14959     private static class setLogConfig_argsTupleScheme extends TupleScheme<setLogConfig_args> {
14960
14961       @Override
14962       public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
14963         TTupleProtocol oprot = (TTupleProtocol) prot;
14964         BitSet optionals = new BitSet();
14965         if (struct.isSetLogFileName()) {
14966           optionals.set(0);
14967         }
14968         if (struct.isSetLogLevel()) {
14969           optionals.set(1);
14970         }
14971         oprot.writeBitSet(optionals, 2);
14972         if (struct.isSetLogFileName()) {
14973           oprot.writeString(struct.logFileName);
14974         }
14975         if (struct.isSetLogLevel()) {
14976           oprot.writeString(struct.logLevel);
14977         }
14978       }
14979
14980       @Override
14981       public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
14982         TTupleProtocol iprot = (TTupleProtocol) prot;
14983         BitSet incoming = iprot.readBitSet(2);
14984         if (incoming.get(0)) {
14985           struct.logFileName = iprot.readString();
14986           struct.setLogFileNameIsSet(true);
14987         }
14988         if (incoming.get(1)) {
14989           struct.logLevel = iprot.readString();
14990           struct.setLogLevelIsSet(true);
14991         }
14992       }
14993     }
14994
14995   }
14996
14997   public static class setLogConfig_result implements org.apache.thrift.TBase<setLogConfig_result, setLogConfig_result._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_result>   {
14998     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_result");
14999
15000     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
15001
15002     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15003     static {
15004       schemes.put(StandardScheme.class, new setLogConfig_resultStandardSchemeFactory());
15005       schemes.put(TupleScheme.class, new setLogConfig_resultTupleSchemeFactory());
15006     }
15007
15008     public int success; // required
15009
15010     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15011     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15012       SUCCESS((short)0, "success");
15013
15014       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15015
15016       static {
15017         for (_Fields field : EnumSet.allOf(_Fields.class)) {
15018           byName.put(field.getFieldName(), field);
15019         }
15020       }
15021
15022       /**
15023        * Find the _Fields constant that matches fieldId, or null if its not found.
15024        */
15025       public static _Fields findByThriftId(int fieldId) {
15026         switch(fieldId) {
15027           case 0: // SUCCESS
15028             return SUCCESS;
15029           default:
15030             return null;
15031         }
15032       }
15033
15034       /**
15035        * Find the _Fields constant that matches fieldId, throwing an exception
15036        * if it is not found.
15037        */
15038       public static _Fields findByThriftIdOrThrow(int fieldId) {
15039         _Fields fields = findByThriftId(fieldId);
15040         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15041         return fields;
15042       }
15043
15044       /**
15045        * Find the _Fields constant that matches name, or null if its not found.
15046        */
15047       public static _Fields findByName(String name) {
15048         return byName.get(name);
15049       }
15050
15051       private final short _thriftId;
15052       private final String _fieldName;
15053
15054       _Fields(short thriftId, String fieldName) {
15055         _thriftId = thriftId;
15056         _fieldName = fieldName;
15057       }
15058
15059       public short getThriftFieldId() {
15060         return _thriftId;
15061       }
15062
15063       public String getFieldName() {
15064         return _fieldName;
15065       }
15066     }
15067
15068     // isset id assignments
15069     private static final int __SUCCESS_ISSET_ID = 0;
15070     private byte __isset_bitfield = 0;
15071     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15072     static {
15073       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15074       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15075           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15076       metaDataMap = Collections.unmodifiableMap(tmpMap);
15077       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_result.class, metaDataMap);
15078     }
15079
15080     public setLogConfig_result() {
15081     }
15082
15083     public setLogConfig_result(
15084       int success)
15085     {
15086       this();
15087       this.success = success;
15088       setSuccessIsSet(true);
15089     }
15090
15091     /**
15092      * Performs a deep copy on <i>other</i>.
15093      */
15094     public setLogConfig_result(setLogConfig_result other) {
15095       __isset_bitfield = other.__isset_bitfield;
15096       this.success = other.success;
15097     }
15098
15099     public setLogConfig_result deepCopy() {
15100       return new setLogConfig_result(this);
15101     }
15102
15103     @Override
15104     public void clear() {
15105       setSuccessIsSet(false);
15106       this.success = 0;
15107     }
15108
15109     public int getSuccess() {
15110       return this.success;
15111     }
15112
15113     public setLogConfig_result setSuccess(int success) {
15114       this.success = success;
15115       setSuccessIsSet(true);
15116       return this;
15117     }
15118
15119     public void unsetSuccess() {
15120       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15121     }
15122
15123     /** Returns true if field success is set (has been assigned a value) and false otherwise */
15124     public boolean isSetSuccess() {
15125       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15126     }
15127
15128     public void setSuccessIsSet(boolean value) {
15129       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
15130     }
15131
15132     public void setFieldValue(_Fields field, Object value) {
15133       switch (field) {
15134       case SUCCESS:
15135         if (value == null) {
15136           unsetSuccess();
15137         } else {
15138           setSuccess((Integer)value);
15139         }
15140         break;
15141
15142       }
15143     }
15144
15145     public Object getFieldValue(_Fields field) {
15146       switch (field) {
15147       case SUCCESS:
15148         return Integer.valueOf(getSuccess());
15149
15150       }
15151       throw new IllegalStateException();
15152     }
15153
15154     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15155     public boolean isSet(_Fields field) {
15156       if (field == null) {
15157         throw new IllegalArgumentException();
15158       }
15159
15160       switch (field) {
15161       case SUCCESS:
15162         return isSetSuccess();
15163       }
15164       throw new IllegalStateException();
15165     }
15166
15167     @Override
15168     public boolean equals(Object that) {
15169       if (that == null)
15170         return false;
15171       if (that instanceof setLogConfig_result)
15172         return this.equals((setLogConfig_result)that);
15173       return false;
15174     }
15175
15176     public boolean equals(setLogConfig_result that) {
15177       if (that == null)
15178         return false;
15179
15180       boolean this_present_success = true;
15181       boolean that_present_success = true;
15182       if (this_present_success || that_present_success) {
15183         if (!(this_present_success && that_present_success))
15184           return false;
15185         if (this.success != that.success)
15186           return false;
15187       }
15188
15189       return true;
15190     }
15191
15192     @Override
15193     public int hashCode() {
15194       return 0;
15195     }
15196
15197     @Override
15198     public int compareTo(setLogConfig_result other) {
15199       if (!getClass().equals(other.getClass())) {
15200         return getClass().getName().compareTo(other.getClass().getName());
15201       }
15202
15203       int lastComparison = 0;
15204
15205       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15206       if (lastComparison != 0) {
15207         return lastComparison;
15208       }
15209       if (isSetSuccess()) {
15210         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15211         if (lastComparison != 0) {
15212           return lastComparison;
15213         }
15214       }
15215       return 0;
15216     }
15217
15218     public _Fields fieldForId(int fieldId) {
15219       return _Fields.findByThriftId(fieldId);
15220     }
15221
15222     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15223       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15224     }
15225
15226     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15227       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15228       }
15229
15230     @Override
15231     public String toString() {
15232       StringBuilder sb = new StringBuilder("setLogConfig_result(");
15233       boolean first = true;
15234
15235       sb.append("success:");
15236       sb.append(this.success);
15237       first = false;
15238       sb.append(")");
15239       return sb.toString();
15240     }
15241
15242     public void validate() throws org.apache.thrift.TException {
15243       // check for required fields
15244       // check for sub-struct validity
15245     }
15246
15247     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15248       try {
15249         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15250       } catch (org.apache.thrift.TException te) {
15251         throw new java.io.IOException(te);
15252       }
15253     }
15254
15255     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15256       try {
15257         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15258         __isset_bitfield = 0;
15259         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15260       } catch (org.apache.thrift.TException te) {
15261         throw new java.io.IOException(te);
15262       }
15263     }
15264
15265     private static class setLogConfig_resultStandardSchemeFactory implements SchemeFactory {
15266       public setLogConfig_resultStandardScheme getScheme() {
15267         return new setLogConfig_resultStandardScheme();
15268       }
15269     }
15270
15271     private static class setLogConfig_resultStandardScheme extends StandardScheme<setLogConfig_result> {
15272
15273       public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_result struct) throws org.apache.thrift.TException {
15274         org.apache.thrift.protocol.TField schemeField;
15275         iprot.readStructBegin();
15276         while (true)
15277         {
15278           schemeField = iprot.readFieldBegin();
15279           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
15280             break;
15281           }
15282           switch (schemeField.id) {
15283             case 0: // SUCCESS
15284               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15285                 struct.success = iprot.readI32();
15286                 struct.setSuccessIsSet(true);
15287               } else { 
15288                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15289               }
15290               break;
15291             default:
15292               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15293           }
15294           iprot.readFieldEnd();
15295         }
15296         iprot.readStructEnd();
15297
15298         // check for required fields of primitive type, which can't be checked in the validate method
15299         struct.validate();
15300       }
15301
15302       public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_result struct) throws org.apache.thrift.TException {
15303         struct.validate();
15304
15305         oprot.writeStructBegin(STRUCT_DESC);
15306         if (struct.isSetSuccess()) {
15307           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15308           oprot.writeI32(struct.success);
15309           oprot.writeFieldEnd();
15310         }
15311         oprot.writeFieldStop();
15312         oprot.writeStructEnd();
15313       }
15314
15315     }
15316
15317     private static class setLogConfig_resultTupleSchemeFactory implements SchemeFactory {
15318       public setLogConfig_resultTupleScheme getScheme() {
15319         return new setLogConfig_resultTupleScheme();
15320       }
15321     }
15322
15323     private static class setLogConfig_resultTupleScheme extends TupleScheme<setLogConfig_result> {
15324
15325       @Override
15326       public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
15327         TTupleProtocol oprot = (TTupleProtocol) prot;
15328         BitSet optionals = new BitSet();
15329         if (struct.isSetSuccess()) {
15330           optionals.set(0);
15331         }
15332         oprot.writeBitSet(optionals, 1);
15333         if (struct.isSetSuccess()) {
15334           oprot.writeI32(struct.success);
15335         }
15336       }
15337
15338       @Override
15339       public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
15340         TTupleProtocol iprot = (TTupleProtocol) prot;
15341         BitSet incoming = iprot.readBitSet(1);
15342         if (incoming.get(0)) {
15343           struct.success = iprot.readI32();
15344           struct.setSuccessIsSet(true);
15345         }
15346       }
15347     }
15348
15349   }
15350
15351   public static class enableGracefulRestart_args implements org.apache.thrift.TBase<enableGracefulRestart_args, enableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_args>   {
15352     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_args");
15353
15354     private static final org.apache.thrift.protocol.TField STALEPATH_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("stalepathTime", org.apache.thrift.protocol.TType.I32, (short)1);
15355
15356     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15357     static {
15358       schemes.put(StandardScheme.class, new enableGracefulRestart_argsStandardSchemeFactory());
15359       schemes.put(TupleScheme.class, new enableGracefulRestart_argsTupleSchemeFactory());
15360     }
15361
15362     public int stalepathTime; // required
15363
15364     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15365     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15366       STALEPATH_TIME((short)1, "stalepathTime");
15367
15368       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15369
15370       static {
15371         for (_Fields field : EnumSet.allOf(_Fields.class)) {
15372           byName.put(field.getFieldName(), field);
15373         }
15374       }
15375
15376       /**
15377        * Find the _Fields constant that matches fieldId, or null if its not found.
15378        */
15379       public static _Fields findByThriftId(int fieldId) {
15380         switch(fieldId) {
15381           case 1: // STALEPATH_TIME
15382             return STALEPATH_TIME;
15383           default:
15384             return null;
15385         }
15386       }
15387
15388       /**
15389        * Find the _Fields constant that matches fieldId, throwing an exception
15390        * if it is not found.
15391        */
15392       public static _Fields findByThriftIdOrThrow(int fieldId) {
15393         _Fields fields = findByThriftId(fieldId);
15394         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15395         return fields;
15396       }
15397
15398       /**
15399        * Find the _Fields constant that matches name, or null if its not found.
15400        */
15401       public static _Fields findByName(String name) {
15402         return byName.get(name);
15403       }
15404
15405       private final short _thriftId;
15406       private final String _fieldName;
15407
15408       _Fields(short thriftId, String fieldName) {
15409         _thriftId = thriftId;
15410         _fieldName = fieldName;
15411       }
15412
15413       public short getThriftFieldId() {
15414         return _thriftId;
15415       }
15416
15417       public String getFieldName() {
15418         return _fieldName;
15419       }
15420     }
15421
15422     // isset id assignments
15423     private static final int __STALEPATHTIME_ISSET_ID = 0;
15424     private byte __isset_bitfield = 0;
15425     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15426     static {
15427       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15428       tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15429           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15430       metaDataMap = Collections.unmodifiableMap(tmpMap);
15431       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_args.class, metaDataMap);
15432     }
15433
15434     public enableGracefulRestart_args() {
15435     }
15436
15437     public enableGracefulRestart_args(
15438       int stalepathTime)
15439     {
15440       this();
15441       this.stalepathTime = stalepathTime;
15442       setStalepathTimeIsSet(true);
15443     }
15444
15445     /**
15446      * Performs a deep copy on <i>other</i>.
15447      */
15448     public enableGracefulRestart_args(enableGracefulRestart_args other) {
15449       __isset_bitfield = other.__isset_bitfield;
15450       this.stalepathTime = other.stalepathTime;
15451     }
15452
15453     public enableGracefulRestart_args deepCopy() {
15454       return new enableGracefulRestart_args(this);
15455     }
15456
15457     @Override
15458     public void clear() {
15459       setStalepathTimeIsSet(false);
15460       this.stalepathTime = 0;
15461     }
15462
15463     public int getStalepathTime() {
15464       return this.stalepathTime;
15465     }
15466
15467     public enableGracefulRestart_args setStalepathTime(int stalepathTime) {
15468       this.stalepathTime = stalepathTime;
15469       setStalepathTimeIsSet(true);
15470       return this;
15471     }
15472
15473     public void unsetStalepathTime() {
15474       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
15475     }
15476
15477     /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
15478     public boolean isSetStalepathTime() {
15479       return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
15480     }
15481
15482     public void setStalepathTimeIsSet(boolean value) {
15483       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
15484     }
15485
15486     public void setFieldValue(_Fields field, Object value) {
15487       switch (field) {
15488       case STALEPATH_TIME:
15489         if (value == null) {
15490           unsetStalepathTime();
15491         } else {
15492           setStalepathTime((Integer)value);
15493         }
15494         break;
15495
15496       }
15497     }
15498
15499     public Object getFieldValue(_Fields field) {
15500       switch (field) {
15501       case STALEPATH_TIME:
15502         return Integer.valueOf(getStalepathTime());
15503
15504       }
15505       throw new IllegalStateException();
15506     }
15507
15508     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15509     public boolean isSet(_Fields field) {
15510       if (field == null) {
15511         throw new IllegalArgumentException();
15512       }
15513
15514       switch (field) {
15515       case STALEPATH_TIME:
15516         return isSetStalepathTime();
15517       }
15518       throw new IllegalStateException();
15519     }
15520
15521     @Override
15522     public boolean equals(Object that) {
15523       if (that == null)
15524         return false;
15525       if (that instanceof enableGracefulRestart_args)
15526         return this.equals((enableGracefulRestart_args)that);
15527       return false;
15528     }
15529
15530     public boolean equals(enableGracefulRestart_args that) {
15531       if (that == null)
15532         return false;
15533
15534       boolean this_present_stalepathTime = true;
15535       boolean that_present_stalepathTime = true;
15536       if (this_present_stalepathTime || that_present_stalepathTime) {
15537         if (!(this_present_stalepathTime && that_present_stalepathTime))
15538           return false;
15539         if (this.stalepathTime != that.stalepathTime)
15540           return false;
15541       }
15542
15543       return true;
15544     }
15545
15546     @Override
15547     public int hashCode() {
15548       return 0;
15549     }
15550
15551     @Override
15552     public int compareTo(enableGracefulRestart_args other) {
15553       if (!getClass().equals(other.getClass())) {
15554         return getClass().getName().compareTo(other.getClass().getName());
15555       }
15556
15557       int lastComparison = 0;
15558
15559       lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
15560       if (lastComparison != 0) {
15561         return lastComparison;
15562       }
15563       if (isSetStalepathTime()) {
15564         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
15565         if (lastComparison != 0) {
15566           return lastComparison;
15567         }
15568       }
15569       return 0;
15570     }
15571
15572     public _Fields fieldForId(int fieldId) {
15573       return _Fields.findByThriftId(fieldId);
15574     }
15575
15576     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15577       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15578     }
15579
15580     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15581       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15582     }
15583
15584     @Override
15585     public String toString() {
15586       StringBuilder sb = new StringBuilder("enableGracefulRestart_args(");
15587       boolean first = true;
15588
15589       sb.append("stalepathTime:");
15590       sb.append(this.stalepathTime);
15591       first = false;
15592       sb.append(")");
15593       return sb.toString();
15594     }
15595
15596     public void validate() throws org.apache.thrift.TException {
15597       // check for required fields
15598       // check for sub-struct validity
15599     }
15600
15601     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15602       try {
15603         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15604       } catch (org.apache.thrift.TException te) {
15605         throw new java.io.IOException(te);
15606       }
15607     }
15608
15609     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15610       try {
15611         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15612         __isset_bitfield = 0;
15613         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15614       } catch (org.apache.thrift.TException te) {
15615         throw new java.io.IOException(te);
15616       }
15617     }
15618
15619     private static class enableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
15620       public enableGracefulRestart_argsStandardScheme getScheme() {
15621         return new enableGracefulRestart_argsStandardScheme();
15622       }
15623     }
15624
15625     private static class enableGracefulRestart_argsStandardScheme extends StandardScheme<enableGracefulRestart_args> {
15626
15627       public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
15628         org.apache.thrift.protocol.TField schemeField;
15629         iprot.readStructBegin();
15630         while (true)
15631         {
15632           schemeField = iprot.readFieldBegin();
15633           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
15634             break;
15635           }
15636           switch (schemeField.id) {
15637             case 1: // STALEPATH_TIME
15638               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15639                 struct.stalepathTime = iprot.readI32();
15640                 struct.setStalepathTimeIsSet(true);
15641               } else { 
15642                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15643               }
15644               break;
15645             default:
15646               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15647           }
15648           iprot.readFieldEnd();
15649         }
15650         iprot.readStructEnd();
15651
15652         // check for required fields of primitive type, which can't be checked in the validate method
15653         struct.validate();
15654       }
15655
15656       public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
15657         struct.validate();
15658
15659         oprot.writeStructBegin(STRUCT_DESC);
15660         oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
15661         oprot.writeI32(struct.stalepathTime);
15662         oprot.writeFieldEnd();
15663         oprot.writeFieldStop();
15664         oprot.writeStructEnd();
15665       }
15666
15667     }
15668
15669     private static class enableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
15670       public enableGracefulRestart_argsTupleScheme getScheme() {
15671         return new enableGracefulRestart_argsTupleScheme();
15672       }
15673     }
15674
15675     private static class enableGracefulRestart_argsTupleScheme extends TupleScheme<enableGracefulRestart_args> {
15676
15677       @Override
15678       public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
15679         TTupleProtocol oprot = (TTupleProtocol) prot;
15680         BitSet optionals = new BitSet();
15681         if (struct.isSetStalepathTime()) {
15682           optionals.set(0);
15683         }
15684         oprot.writeBitSet(optionals, 1);
15685         if (struct.isSetStalepathTime()) {
15686           oprot.writeI32(struct.stalepathTime);
15687         }
15688       }
15689
15690       @Override
15691       public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
15692         TTupleProtocol iprot = (TTupleProtocol) prot;
15693         BitSet incoming = iprot.readBitSet(1);
15694         if (incoming.get(0)) {
15695           struct.stalepathTime = iprot.readI32();
15696           struct.setStalepathTimeIsSet(true);
15697         }
15698       }
15699     }
15700
15701   }
15702
15703   public static class enableGracefulRestart_result implements org.apache.thrift.TBase<enableGracefulRestart_result, enableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_result>   {
15704     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_result");
15705
15706     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
15707
15708     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15709     static {
15710       schemes.put(StandardScheme.class, new enableGracefulRestart_resultStandardSchemeFactory());
15711       schemes.put(TupleScheme.class, new enableGracefulRestart_resultTupleSchemeFactory());
15712     }
15713
15714     public int success; // required
15715
15716     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15717     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15718       SUCCESS((short)0, "success");
15719
15720       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15721
15722       static {
15723         for (_Fields field : EnumSet.allOf(_Fields.class)) {
15724           byName.put(field.getFieldName(), field);
15725         }
15726       }
15727
15728       /**
15729        * Find the _Fields constant that matches fieldId, or null if its not found.
15730        */
15731       public static _Fields findByThriftId(int fieldId) {
15732         switch(fieldId) {
15733           case 0: // SUCCESS
15734             return SUCCESS;
15735           default:
15736             return null;
15737         }
15738       }
15739
15740       /**
15741        * Find the _Fields constant that matches fieldId, throwing an exception
15742        * if it is not found.
15743        */
15744       public static _Fields findByThriftIdOrThrow(int fieldId) {
15745         _Fields fields = findByThriftId(fieldId);
15746         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15747         return fields;
15748       }
15749
15750       /**
15751        * Find the _Fields constant that matches name, or null if its not found.
15752        */
15753       public static _Fields findByName(String name) {
15754         return byName.get(name);
15755       }
15756
15757       private final short _thriftId;
15758       private final String _fieldName;
15759
15760       _Fields(short thriftId, String fieldName) {
15761         _thriftId = thriftId;
15762         _fieldName = fieldName;
15763       }
15764
15765       public short getThriftFieldId() {
15766         return _thriftId;
15767       }
15768
15769       public String getFieldName() {
15770         return _fieldName;
15771       }
15772     }
15773
15774     // isset id assignments
15775     private static final int __SUCCESS_ISSET_ID = 0;
15776     private byte __isset_bitfield = 0;
15777     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15778     static {
15779       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15780       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15781           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15782       metaDataMap = Collections.unmodifiableMap(tmpMap);
15783       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_result.class, metaDataMap);
15784     }
15785
15786     public enableGracefulRestart_result() {
15787     }
15788
15789     public enableGracefulRestart_result(
15790       int success)
15791     {
15792       this();
15793       this.success = success;
15794       setSuccessIsSet(true);
15795     }
15796
15797     /**
15798      * Performs a deep copy on <i>other</i>.
15799      */
15800     public enableGracefulRestart_result(enableGracefulRestart_result other) {
15801       __isset_bitfield = other.__isset_bitfield;
15802       this.success = other.success;
15803     }
15804
15805     public enableGracefulRestart_result deepCopy() {
15806       return new enableGracefulRestart_result(this);
15807     }
15808
15809     @Override
15810     public void clear() {
15811       setSuccessIsSet(false);
15812       this.success = 0;
15813     }
15814
15815     public int getSuccess() {
15816       return this.success;
15817     }
15818
15819     public enableGracefulRestart_result setSuccess(int success) {
15820       this.success = success;
15821       setSuccessIsSet(true);
15822       return this;
15823     }
15824
15825     public void unsetSuccess() {
15826       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15827     }
15828
15829     /** Returns true if field success is set (has been assigned a value) and false otherwise */
15830     public boolean isSetSuccess() {
15831       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15832     }
15833
15834     public void setSuccessIsSet(boolean value) {
15835       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
15836     }
15837
15838     public void setFieldValue(_Fields field, Object value) {
15839       switch (field) {
15840       case SUCCESS:
15841         if (value == null) {
15842           unsetSuccess();
15843         } else {
15844           setSuccess((Integer)value);
15845         }
15846         break;
15847
15848       }
15849     }
15850
15851     public Object getFieldValue(_Fields field) {
15852       switch (field) {
15853       case SUCCESS:
15854         return Integer.valueOf(getSuccess());
15855
15856       }
15857       throw new IllegalStateException();
15858     }
15859
15860     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15861     public boolean isSet(_Fields field) {
15862       if (field == null) {
15863         throw new IllegalArgumentException();
15864       }
15865
15866       switch (field) {
15867       case SUCCESS:
15868         return isSetSuccess();
15869       }
15870       throw new IllegalStateException();
15871     }
15872
15873     @Override
15874     public boolean equals(Object that) {
15875       if (that == null)
15876         return false;
15877       if (that instanceof enableGracefulRestart_result)
15878         return this.equals((enableGracefulRestart_result)that);
15879       return false;
15880     }
15881
15882     public boolean equals(enableGracefulRestart_result that) {
15883       if (that == null)
15884         return false;
15885
15886       boolean this_present_success = true;
15887       boolean that_present_success = true;
15888       if (this_present_success || that_present_success) {
15889         if (!(this_present_success && that_present_success))
15890           return false;
15891         if (this.success != that.success)
15892           return false;
15893       }
15894
15895       return true;
15896     }
15897
15898     @Override
15899     public int hashCode() {
15900       return 0;
15901     }
15902
15903     @Override
15904     public int compareTo(enableGracefulRestart_result other) {
15905       if (!getClass().equals(other.getClass())) {
15906         return getClass().getName().compareTo(other.getClass().getName());
15907       }
15908
15909       int lastComparison = 0;
15910
15911       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15912       if (lastComparison != 0) {
15913         return lastComparison;
15914       }
15915       if (isSetSuccess()) {
15916         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15917         if (lastComparison != 0) {
15918           return lastComparison;
15919         }
15920       }
15921       return 0;
15922     }
15923
15924     public _Fields fieldForId(int fieldId) {
15925       return _Fields.findByThriftId(fieldId);
15926     }
15927
15928     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15929       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15930     }
15931
15932     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15933       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15934       }
15935
15936     @Override
15937     public String toString() {
15938       StringBuilder sb = new StringBuilder("enableGracefulRestart_result(");
15939       boolean first = true;
15940
15941       sb.append("success:");
15942       sb.append(this.success);
15943       first = false;
15944       sb.append(")");
15945       return sb.toString();
15946     }
15947
15948     public void validate() throws org.apache.thrift.TException {
15949       // check for required fields
15950       // check for sub-struct validity
15951     }
15952
15953     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15954       try {
15955         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15956       } catch (org.apache.thrift.TException te) {
15957         throw new java.io.IOException(te);
15958       }
15959     }
15960
15961     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15962       try {
15963         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15964         __isset_bitfield = 0;
15965         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15966       } catch (org.apache.thrift.TException te) {
15967         throw new java.io.IOException(te);
15968       }
15969     }
15970
15971     private static class enableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
15972       public enableGracefulRestart_resultStandardScheme getScheme() {
15973         return new enableGracefulRestart_resultStandardScheme();
15974       }
15975     }
15976
15977     private static class enableGracefulRestart_resultStandardScheme extends StandardScheme<enableGracefulRestart_result> {
15978
15979       public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
15980         org.apache.thrift.protocol.TField schemeField;
15981         iprot.readStructBegin();
15982         while (true)
15983         {
15984           schemeField = iprot.readFieldBegin();
15985           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
15986             break;
15987           }
15988           switch (schemeField.id) {
15989             case 0: // SUCCESS
15990               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15991                 struct.success = iprot.readI32();
15992                 struct.setSuccessIsSet(true);
15993               } else { 
15994                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15995               }
15996               break;
15997             default:
15998               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15999           }
16000           iprot.readFieldEnd();
16001         }
16002         iprot.readStructEnd();
16003
16004         // check for required fields of primitive type, which can't be checked in the validate method
16005         struct.validate();
16006       }
16007
16008       public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
16009         struct.validate();
16010
16011         oprot.writeStructBegin(STRUCT_DESC);
16012         if (struct.isSetSuccess()) {
16013           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16014           oprot.writeI32(struct.success);
16015           oprot.writeFieldEnd();
16016         }
16017         oprot.writeFieldStop();
16018         oprot.writeStructEnd();
16019       }
16020
16021     }
16022
16023     private static class enableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
16024       public enableGracefulRestart_resultTupleScheme getScheme() {
16025         return new enableGracefulRestart_resultTupleScheme();
16026       }
16027     }
16028
16029     private static class enableGracefulRestart_resultTupleScheme extends TupleScheme<enableGracefulRestart_result> {
16030
16031       @Override
16032       public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
16033         TTupleProtocol oprot = (TTupleProtocol) prot;
16034         BitSet optionals = new BitSet();
16035         if (struct.isSetSuccess()) {
16036           optionals.set(0);
16037         }
16038         oprot.writeBitSet(optionals, 1);
16039         if (struct.isSetSuccess()) {
16040           oprot.writeI32(struct.success);
16041         }
16042       }
16043
16044       @Override
16045       public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
16046         TTupleProtocol iprot = (TTupleProtocol) prot;
16047         BitSet incoming = iprot.readBitSet(1);
16048         if (incoming.get(0)) {
16049           struct.success = iprot.readI32();
16050           struct.setSuccessIsSet(true);
16051         }
16052       }
16053     }
16054
16055   }
16056
16057   public static class disableGracefulRestart_args implements org.apache.thrift.TBase<disableGracefulRestart_args, disableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_args>   {
16058     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_args");
16059
16060
16061     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16062     static {
16063       schemes.put(StandardScheme.class, new disableGracefulRestart_argsStandardSchemeFactory());
16064       schemes.put(TupleScheme.class, new disableGracefulRestart_argsTupleSchemeFactory());
16065     }
16066
16067
16068     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16069     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16070 ;
16071
16072       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16073
16074       static {
16075         for (_Fields field : EnumSet.allOf(_Fields.class)) {
16076           byName.put(field.getFieldName(), field);
16077         }
16078       }
16079
16080       /**
16081        * Find the _Fields constant that matches fieldId, or null if its not found.
16082        */
16083       public static _Fields findByThriftId(int fieldId) {
16084         switch(fieldId) {
16085           default:
16086             return null;
16087         }
16088       }
16089
16090       /**
16091        * Find the _Fields constant that matches fieldId, throwing an exception
16092        * if it is not found.
16093        */
16094       public static _Fields findByThriftIdOrThrow(int fieldId) {
16095         _Fields fields = findByThriftId(fieldId);
16096         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16097         return fields;
16098       }
16099
16100       /**
16101        * Find the _Fields constant that matches name, or null if its not found.
16102        */
16103       public static _Fields findByName(String name) {
16104         return byName.get(name);
16105       }
16106
16107       private final short _thriftId;
16108       private final String _fieldName;
16109
16110       _Fields(short thriftId, String fieldName) {
16111         _thriftId = thriftId;
16112         _fieldName = fieldName;
16113       }
16114
16115       public short getThriftFieldId() {
16116         return _thriftId;
16117       }
16118
16119       public String getFieldName() {
16120         return _fieldName;
16121       }
16122     }
16123     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16124     static {
16125       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16126       metaDataMap = Collections.unmodifiableMap(tmpMap);
16127       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_args.class, metaDataMap);
16128     }
16129
16130     public disableGracefulRestart_args() {
16131     }
16132
16133     /**
16134      * Performs a deep copy on <i>other</i>.
16135      */
16136     public disableGracefulRestart_args(disableGracefulRestart_args other) {
16137     }
16138
16139     public disableGracefulRestart_args deepCopy() {
16140       return new disableGracefulRestart_args(this);
16141     }
16142
16143     @Override
16144     public void clear() {
16145     }
16146
16147     public void setFieldValue(_Fields field, Object value) {
16148       switch (field) {
16149       }
16150     }
16151
16152     public Object getFieldValue(_Fields field) {
16153       switch (field) {
16154       }
16155       throw new IllegalStateException();
16156     }
16157
16158     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16159     public boolean isSet(_Fields field) {
16160       if (field == null) {
16161         throw new IllegalArgumentException();
16162       }
16163
16164       switch (field) {
16165       }
16166       throw new IllegalStateException();
16167     }
16168
16169     @Override
16170     public boolean equals(Object that) {
16171       if (that == null)
16172         return false;
16173       if (that instanceof disableGracefulRestart_args)
16174         return this.equals((disableGracefulRestart_args)that);
16175       return false;
16176     }
16177
16178     public boolean equals(disableGracefulRestart_args that) {
16179       if (that == null)
16180         return false;
16181
16182       return true;
16183     }
16184
16185     @Override
16186     public int hashCode() {
16187       return 0;
16188     }
16189
16190     @Override
16191     public int compareTo(disableGracefulRestart_args other) {
16192       if (!getClass().equals(other.getClass())) {
16193         return getClass().getName().compareTo(other.getClass().getName());
16194       }
16195
16196       int lastComparison = 0;
16197
16198       return 0;
16199     }
16200
16201     public _Fields fieldForId(int fieldId) {
16202       return _Fields.findByThriftId(fieldId);
16203     }
16204
16205     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16206       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16207     }
16208
16209     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16210       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16211     }
16212
16213     @Override
16214     public String toString() {
16215       StringBuilder sb = new StringBuilder("disableGracefulRestart_args(");
16216       boolean first = true;
16217
16218       sb.append(")");
16219       return sb.toString();
16220     }
16221
16222     public void validate() throws org.apache.thrift.TException {
16223       // check for required fields
16224       // check for sub-struct validity
16225     }
16226
16227     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16228       try {
16229         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16230       } catch (org.apache.thrift.TException te) {
16231         throw new java.io.IOException(te);
16232       }
16233     }
16234
16235     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16236       try {
16237         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16238       } catch (org.apache.thrift.TException te) {
16239         throw new java.io.IOException(te);
16240       }
16241     }
16242
16243     private static class disableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
16244       public disableGracefulRestart_argsStandardScheme getScheme() {
16245         return new disableGracefulRestart_argsStandardScheme();
16246       }
16247     }
16248
16249     private static class disableGracefulRestart_argsStandardScheme extends StandardScheme<disableGracefulRestart_args> {
16250
16251       public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
16252         org.apache.thrift.protocol.TField schemeField;
16253         iprot.readStructBegin();
16254         while (true)
16255         {
16256           schemeField = iprot.readFieldBegin();
16257           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
16258             break;
16259           }
16260           switch (schemeField.id) {
16261             default:
16262               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16263           }
16264           iprot.readFieldEnd();
16265         }
16266         iprot.readStructEnd();
16267
16268         // check for required fields of primitive type, which can't be checked in the validate method
16269         struct.validate();
16270       }
16271
16272       public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
16273         struct.validate();
16274
16275         oprot.writeStructBegin(STRUCT_DESC);
16276         oprot.writeFieldStop();
16277         oprot.writeStructEnd();
16278       }
16279
16280     }
16281
16282     private static class disableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
16283       public disableGracefulRestart_argsTupleScheme getScheme() {
16284         return new disableGracefulRestart_argsTupleScheme();
16285       }
16286     }
16287
16288     private static class disableGracefulRestart_argsTupleScheme extends TupleScheme<disableGracefulRestart_args> {
16289
16290       @Override
16291       public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
16292         TTupleProtocol oprot = (TTupleProtocol) prot;
16293       }
16294
16295       @Override
16296       public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
16297         TTupleProtocol iprot = (TTupleProtocol) prot;
16298       }
16299     }
16300
16301   }
16302
16303   public static class disableGracefulRestart_result implements org.apache.thrift.TBase<disableGracefulRestart_result, disableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_result>   {
16304     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_result");
16305
16306     private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
16307
16308     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16309     static {
16310       schemes.put(StandardScheme.class, new disableGracefulRestart_resultStandardSchemeFactory());
16311       schemes.put(TupleScheme.class, new disableGracefulRestart_resultTupleSchemeFactory());
16312     }
16313
16314     public int success; // required
16315
16316     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16317     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16318       SUCCESS((short)0, "success");
16319
16320       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16321
16322       static {
16323         for (_Fields field : EnumSet.allOf(_Fields.class)) {
16324           byName.put(field.getFieldName(), field);
16325         }
16326       }
16327
16328       /**
16329        * Find the _Fields constant that matches fieldId, or null if its not found.
16330        */
16331       public static _Fields findByThriftId(int fieldId) {
16332         switch(fieldId) {
16333           case 0: // SUCCESS
16334             return SUCCESS;
16335           default:
16336             return null;
16337         }
16338       }
16339
16340       /**
16341        * Find the _Fields constant that matches fieldId, throwing an exception
16342        * if it is not found.
16343        */
16344       public static _Fields findByThriftIdOrThrow(int fieldId) {
16345         _Fields fields = findByThriftId(fieldId);
16346         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16347         return fields;
16348       }
16349
16350       /**
16351        * Find the _Fields constant that matches name, or null if its not found.
16352        */
16353       public static _Fields findByName(String name) {
16354         return byName.get(name);
16355       }
16356
16357       private final short _thriftId;
16358       private final String _fieldName;
16359
16360       _Fields(short thriftId, String fieldName) {
16361         _thriftId = thriftId;
16362         _fieldName = fieldName;
16363       }
16364
16365       public short getThriftFieldId() {
16366         return _thriftId;
16367       }
16368
16369       public String getFieldName() {
16370         return _fieldName;
16371       }
16372     }
16373
16374     // isset id assignments
16375     private static final int __SUCCESS_ISSET_ID = 0;
16376     private byte __isset_bitfield = 0;
16377     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16378     static {
16379       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16380       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16381           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16382       metaDataMap = Collections.unmodifiableMap(tmpMap);
16383       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_result.class, metaDataMap);
16384     }
16385
16386     public disableGracefulRestart_result() {
16387     }
16388
16389     public disableGracefulRestart_result(
16390       int success)
16391     {
16392       this();
16393       this.success = success;
16394       setSuccessIsSet(true);
16395     }
16396
16397     /**
16398      * Performs a deep copy on <i>other</i>.
16399      */
16400     public disableGracefulRestart_result(disableGracefulRestart_result other) {
16401       __isset_bitfield = other.__isset_bitfield;
16402       this.success = other.success;
16403     }
16404
16405     public disableGracefulRestart_result deepCopy() {
16406       return new disableGracefulRestart_result(this);
16407     }
16408
16409     @Override
16410     public void clear() {
16411       setSuccessIsSet(false);
16412       this.success = 0;
16413     }
16414
16415     public int getSuccess() {
16416       return this.success;
16417     }
16418
16419     public disableGracefulRestart_result setSuccess(int success) {
16420       this.success = success;
16421       setSuccessIsSet(true);
16422       return this;
16423     }
16424
16425     public void unsetSuccess() {
16426       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16427     }
16428
16429     /** Returns true if field success is set (has been assigned a value) and false otherwise */
16430     public boolean isSetSuccess() {
16431       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16432     }
16433
16434     public void setSuccessIsSet(boolean value) {
16435       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
16436     }
16437
16438     public void setFieldValue(_Fields field, Object value) {
16439       switch (field) {
16440       case SUCCESS:
16441         if (value == null) {
16442           unsetSuccess();
16443         } else {
16444           setSuccess((Integer)value);
16445         }
16446         break;
16447
16448       }
16449     }
16450
16451     public Object getFieldValue(_Fields field) {
16452       switch (field) {
16453       case SUCCESS:
16454         return Integer.valueOf(getSuccess());
16455
16456       }
16457       throw new IllegalStateException();
16458     }
16459
16460     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16461     public boolean isSet(_Fields field) {
16462       if (field == null) {
16463         throw new IllegalArgumentException();
16464       }
16465
16466       switch (field) {
16467       case SUCCESS:
16468         return isSetSuccess();
16469       }
16470       throw new IllegalStateException();
16471     }
16472
16473     @Override
16474     public boolean equals(Object that) {
16475       if (that == null)
16476         return false;
16477       if (that instanceof disableGracefulRestart_result)
16478         return this.equals((disableGracefulRestart_result)that);
16479       return false;
16480     }
16481
16482     public boolean equals(disableGracefulRestart_result that) {
16483       if (that == null)
16484         return false;
16485
16486       boolean this_present_success = true;
16487       boolean that_present_success = true;
16488       if (this_present_success || that_present_success) {
16489         if (!(this_present_success && that_present_success))
16490           return false;
16491         if (this.success != that.success)
16492           return false;
16493       }
16494
16495       return true;
16496     }
16497
16498     @Override
16499     public int hashCode() {
16500       return 0;
16501     }
16502
16503     @Override
16504     public int compareTo(disableGracefulRestart_result other) {
16505       if (!getClass().equals(other.getClass())) {
16506         return getClass().getName().compareTo(other.getClass().getName());
16507       }
16508
16509       int lastComparison = 0;
16510
16511       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
16512       if (lastComparison != 0) {
16513         return lastComparison;
16514       }
16515       if (isSetSuccess()) {
16516         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
16517         if (lastComparison != 0) {
16518           return lastComparison;
16519         }
16520       }
16521       return 0;
16522     }
16523
16524     public _Fields fieldForId(int fieldId) {
16525       return _Fields.findByThriftId(fieldId);
16526     }
16527
16528     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16529       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16530     }
16531
16532     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16533       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16534       }
16535
16536     @Override
16537     public String toString() {
16538       StringBuilder sb = new StringBuilder("disableGracefulRestart_result(");
16539       boolean first = true;
16540
16541       sb.append("success:");
16542       sb.append(this.success);
16543       first = false;
16544       sb.append(")");
16545       return sb.toString();
16546     }
16547
16548     public void validate() throws org.apache.thrift.TException {
16549       // check for required fields
16550       // check for sub-struct validity
16551     }
16552
16553     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16554       try {
16555         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16556       } catch (org.apache.thrift.TException te) {
16557         throw new java.io.IOException(te);
16558       }
16559     }
16560
16561     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16562       try {
16563         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16564         __isset_bitfield = 0;
16565         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16566       } catch (org.apache.thrift.TException te) {
16567         throw new java.io.IOException(te);
16568       }
16569     }
16570
16571     private static class disableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
16572       public disableGracefulRestart_resultStandardScheme getScheme() {
16573         return new disableGracefulRestart_resultStandardScheme();
16574       }
16575     }
16576
16577     private static class disableGracefulRestart_resultStandardScheme extends StandardScheme<disableGracefulRestart_result> {
16578
16579       public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
16580         org.apache.thrift.protocol.TField schemeField;
16581         iprot.readStructBegin();
16582         while (true)
16583         {
16584           schemeField = iprot.readFieldBegin();
16585           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
16586             break;
16587           }
16588           switch (schemeField.id) {
16589             case 0: // SUCCESS
16590               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16591                 struct.success = iprot.readI32();
16592                 struct.setSuccessIsSet(true);
16593               } else { 
16594                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16595               }
16596               break;
16597             default:
16598               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16599           }
16600           iprot.readFieldEnd();
16601         }
16602         iprot.readStructEnd();
16603
16604         // check for required fields of primitive type, which can't be checked in the validate method
16605         struct.validate();
16606       }
16607
16608       public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
16609         struct.validate();
16610
16611         oprot.writeStructBegin(STRUCT_DESC);
16612         if (struct.isSetSuccess()) {
16613           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16614           oprot.writeI32(struct.success);
16615           oprot.writeFieldEnd();
16616         }
16617         oprot.writeFieldStop();
16618         oprot.writeStructEnd();
16619       }
16620
16621     }
16622
16623     private static class disableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
16624       public disableGracefulRestart_resultTupleScheme getScheme() {
16625         return new disableGracefulRestart_resultTupleScheme();
16626       }
16627     }
16628
16629     private static class disableGracefulRestart_resultTupleScheme extends TupleScheme<disableGracefulRestart_result> {
16630
16631       @Override
16632       public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
16633         TTupleProtocol oprot = (TTupleProtocol) prot;
16634         BitSet optionals = new BitSet();
16635         if (struct.isSetSuccess()) {
16636           optionals.set(0);
16637         }
16638         oprot.writeBitSet(optionals, 1);
16639         if (struct.isSetSuccess()) {
16640           oprot.writeI32(struct.success);
16641         }
16642       }
16643
16644       @Override
16645       public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
16646         TTupleProtocol iprot = (TTupleProtocol) prot;
16647         BitSet incoming = iprot.readBitSet(1);
16648         if (incoming.get(0)) {
16649           struct.success = iprot.readI32();
16650           struct.setSuccessIsSet(true);
16651         }
16652       }
16653     }
16654
16655   }
16656
16657   public static class getRoutes_args implements org.apache.thrift.TBase<getRoutes_args, getRoutes_args._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_args>   {
16658     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_args");
16659
16660     private static final org.apache.thrift.protocol.TField OPTYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("optype", org.apache.thrift.protocol.TType.I32, (short)1);
16661     private static final org.apache.thrift.protocol.TField WIN_SIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("winSize", org.apache.thrift.protocol.TType.I32, (short)2);
16662
16663     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16664     static {
16665       schemes.put(StandardScheme.class, new getRoutes_argsStandardSchemeFactory());
16666       schemes.put(TupleScheme.class, new getRoutes_argsTupleSchemeFactory());
16667     }
16668
16669     public int optype; // required
16670     public int winSize; // required
16671
16672     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16673     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16674       OPTYPE((short)1, "optype"),
16675       WIN_SIZE((short)2, "winSize");
16676
16677       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16678
16679       static {
16680         for (_Fields field : EnumSet.allOf(_Fields.class)) {
16681           byName.put(field.getFieldName(), field);
16682         }
16683       }
16684
16685       /**
16686        * Find the _Fields constant that matches fieldId, or null if its not found.
16687        */
16688       public static _Fields findByThriftId(int fieldId) {
16689         switch(fieldId) {
16690           case 1: // OPTYPE
16691             return OPTYPE;
16692           case 2: // WIN_SIZE
16693             return WIN_SIZE;
16694           default:
16695             return null;
16696         }
16697       }
16698
16699       /**
16700        * Find the _Fields constant that matches fieldId, throwing an exception
16701        * if it is not found.
16702        */
16703       public static _Fields findByThriftIdOrThrow(int fieldId) {
16704         _Fields fields = findByThriftId(fieldId);
16705         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16706         return fields;
16707       }
16708
16709       /**
16710        * Find the _Fields constant that matches name, or null if its not found.
16711        */
16712       public static _Fields findByName(String name) {
16713         return byName.get(name);
16714       }
16715
16716       private final short _thriftId;
16717       private final String _fieldName;
16718
16719       _Fields(short thriftId, String fieldName) {
16720         _thriftId = thriftId;
16721         _fieldName = fieldName;
16722       }
16723
16724       public short getThriftFieldId() {
16725         return _thriftId;
16726       }
16727
16728       public String getFieldName() {
16729         return _fieldName;
16730       }
16731     }
16732
16733     // isset id assignments
16734     private static final int __OPTYPE_ISSET_ID = 0;
16735     private static final int __WINSIZE_ISSET_ID = 1;
16736     private byte __isset_bitfield = 0;
16737     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16738     static {
16739       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16740       tmpMap.put(_Fields.OPTYPE, new org.apache.thrift.meta_data.FieldMetaData("optype", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16741           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16742       tmpMap.put(_Fields.WIN_SIZE, new org.apache.thrift.meta_data.FieldMetaData("winSize", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16743           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16744       metaDataMap = Collections.unmodifiableMap(tmpMap);
16745       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_args.class, metaDataMap);
16746     }
16747
16748     public getRoutes_args() {
16749     }
16750
16751     public getRoutes_args(
16752       int optype,
16753       int winSize)
16754     {
16755       this();
16756       this.optype = optype;
16757       setOptypeIsSet(true);
16758       this.winSize = winSize;
16759       setWinSizeIsSet(true);
16760     }
16761
16762     /**
16763      * Performs a deep copy on <i>other</i>.
16764      */
16765     public getRoutes_args(getRoutes_args other) {
16766       __isset_bitfield = other.__isset_bitfield;
16767       this.optype = other.optype;
16768       this.winSize = other.winSize;
16769     }
16770
16771     public getRoutes_args deepCopy() {
16772       return new getRoutes_args(this);
16773     }
16774
16775     @Override
16776     public void clear() {
16777       setOptypeIsSet(false);
16778       this.optype = 0;
16779       setWinSizeIsSet(false);
16780       this.winSize = 0;
16781     }
16782
16783     public int getOptype() {
16784       return this.optype;
16785     }
16786
16787     public getRoutes_args setOptype(int optype) {
16788       this.optype = optype;
16789       setOptypeIsSet(true);
16790       return this;
16791     }
16792
16793     public void unsetOptype() {
16794       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OPTYPE_ISSET_ID);
16795     }
16796
16797     /** Returns true if field optype is set (has been assigned a value) and false otherwise */
16798     public boolean isSetOptype() {
16799       return EncodingUtils.testBit(__isset_bitfield, __OPTYPE_ISSET_ID);
16800     }
16801
16802     public void setOptypeIsSet(boolean value) {
16803       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OPTYPE_ISSET_ID, value);
16804     }
16805
16806     public int getWinSize() {
16807       return this.winSize;
16808     }
16809
16810     public getRoutes_args setWinSize(int winSize) {
16811       this.winSize = winSize;
16812       setWinSizeIsSet(true);
16813       return this;
16814     }
16815
16816     public void unsetWinSize() {
16817       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WINSIZE_ISSET_ID);
16818     }
16819
16820     /** Returns true if field winSize is set (has been assigned a value) and false otherwise */
16821     public boolean isSetWinSize() {
16822       return EncodingUtils.testBit(__isset_bitfield, __WINSIZE_ISSET_ID);
16823     }
16824
16825     public void setWinSizeIsSet(boolean value) {
16826       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WINSIZE_ISSET_ID, value);
16827     }
16828
16829     public void setFieldValue(_Fields field, Object value) {
16830       switch (field) {
16831       case OPTYPE:
16832         if (value == null) {
16833           unsetOptype();
16834         } else {
16835           setOptype((Integer)value);
16836         }
16837         break;
16838
16839       case WIN_SIZE:
16840         if (value == null) {
16841           unsetWinSize();
16842         } else {
16843           setWinSize((Integer)value);
16844         }
16845         break;
16846
16847       }
16848     }
16849
16850     public Object getFieldValue(_Fields field) {
16851       switch (field) {
16852       case OPTYPE:
16853         return Integer.valueOf(getOptype());
16854
16855       case WIN_SIZE:
16856         return Integer.valueOf(getWinSize());
16857
16858       }
16859       throw new IllegalStateException();
16860     }
16861
16862     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16863     public boolean isSet(_Fields field) {
16864       if (field == null) {
16865         throw new IllegalArgumentException();
16866       }
16867
16868       switch (field) {
16869       case OPTYPE:
16870         return isSetOptype();
16871       case WIN_SIZE:
16872         return isSetWinSize();
16873       }
16874       throw new IllegalStateException();
16875     }
16876
16877     @Override
16878     public boolean equals(Object that) {
16879       if (that == null)
16880         return false;
16881       if (that instanceof getRoutes_args)
16882         return this.equals((getRoutes_args)that);
16883       return false;
16884     }
16885
16886     public boolean equals(getRoutes_args that) {
16887       if (that == null)
16888         return false;
16889
16890       boolean this_present_optype = true;
16891       boolean that_present_optype = true;
16892       if (this_present_optype || that_present_optype) {
16893         if (!(this_present_optype && that_present_optype))
16894           return false;
16895         if (this.optype != that.optype)
16896           return false;
16897       }
16898
16899       boolean this_present_winSize = true;
16900       boolean that_present_winSize = true;
16901       if (this_present_winSize || that_present_winSize) {
16902         if (!(this_present_winSize && that_present_winSize))
16903           return false;
16904         if (this.winSize != that.winSize)
16905           return false;
16906       }
16907
16908       return true;
16909     }
16910
16911     @Override
16912     public int hashCode() {
16913       return 0;
16914     }
16915
16916     @Override
16917     public int compareTo(getRoutes_args other) {
16918       if (!getClass().equals(other.getClass())) {
16919         return getClass().getName().compareTo(other.getClass().getName());
16920       }
16921
16922       int lastComparison = 0;
16923
16924       lastComparison = Boolean.valueOf(isSetOptype()).compareTo(other.isSetOptype());
16925       if (lastComparison != 0) {
16926         return lastComparison;
16927       }
16928       if (isSetOptype()) {
16929         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.optype, other.optype);
16930         if (lastComparison != 0) {
16931           return lastComparison;
16932         }
16933       }
16934       lastComparison = Boolean.valueOf(isSetWinSize()).compareTo(other.isSetWinSize());
16935       if (lastComparison != 0) {
16936         return lastComparison;
16937       }
16938       if (isSetWinSize()) {
16939         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.winSize, other.winSize);
16940         if (lastComparison != 0) {
16941           return lastComparison;
16942         }
16943       }
16944       return 0;
16945     }
16946
16947     public _Fields fieldForId(int fieldId) {
16948       return _Fields.findByThriftId(fieldId);
16949     }
16950
16951     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16952       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16953     }
16954
16955     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16956       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16957     }
16958
16959     @Override
16960     public String toString() {
16961       StringBuilder sb = new StringBuilder("getRoutes_args(");
16962       boolean first = true;
16963
16964       sb.append("optype:");
16965       sb.append(this.optype);
16966       first = false;
16967       if (!first) sb.append(", ");
16968       sb.append("winSize:");
16969       sb.append(this.winSize);
16970       first = false;
16971       sb.append(")");
16972       return sb.toString();
16973     }
16974
16975     public void validate() throws org.apache.thrift.TException {
16976       // check for required fields
16977       // check for sub-struct validity
16978     }
16979
16980     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16981       try {
16982         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16983       } catch (org.apache.thrift.TException te) {
16984         throw new java.io.IOException(te);
16985       }
16986     }
16987
16988     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16989       try {
16990         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16991         __isset_bitfield = 0;
16992         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16993       } catch (org.apache.thrift.TException te) {
16994         throw new java.io.IOException(te);
16995       }
16996     }
16997
16998     private static class getRoutes_argsStandardSchemeFactory implements SchemeFactory {
16999       public getRoutes_argsStandardScheme getScheme() {
17000         return new getRoutes_argsStandardScheme();
17001       }
17002     }
17003
17004     private static class getRoutes_argsStandardScheme extends StandardScheme<getRoutes_args> {
17005
17006       public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_args struct) throws org.apache.thrift.TException {
17007         org.apache.thrift.protocol.TField schemeField;
17008         iprot.readStructBegin();
17009         while (true)
17010         {
17011           schemeField = iprot.readFieldBegin();
17012           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
17013             break;
17014           }
17015           switch (schemeField.id) {
17016             case 1: // OPTYPE
17017               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17018                 struct.optype = iprot.readI32();
17019                 struct.setOptypeIsSet(true);
17020               } else { 
17021                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17022               }
17023               break;
17024             case 2: // WIN_SIZE
17025               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17026                 struct.winSize = iprot.readI32();
17027                 struct.setWinSizeIsSet(true);
17028               } else { 
17029                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17030               }
17031               break;
17032             default:
17033               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17034           }
17035           iprot.readFieldEnd();
17036         }
17037         iprot.readStructEnd();
17038
17039         // check for required fields of primitive type, which can't be checked in the validate method
17040         struct.validate();
17041       }
17042
17043       public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_args struct) throws org.apache.thrift.TException {
17044         struct.validate();
17045
17046         oprot.writeStructBegin(STRUCT_DESC);
17047         oprot.writeFieldBegin(OPTYPE_FIELD_DESC);
17048         oprot.writeI32(struct.optype);
17049         oprot.writeFieldEnd();
17050         oprot.writeFieldBegin(WIN_SIZE_FIELD_DESC);
17051         oprot.writeI32(struct.winSize);
17052         oprot.writeFieldEnd();
17053         oprot.writeFieldStop();
17054         oprot.writeStructEnd();
17055       }
17056
17057     }
17058
17059     private static class getRoutes_argsTupleSchemeFactory implements SchemeFactory {
17060       public getRoutes_argsTupleScheme getScheme() {
17061         return new getRoutes_argsTupleScheme();
17062       }
17063     }
17064
17065     private static class getRoutes_argsTupleScheme extends TupleScheme<getRoutes_args> {
17066
17067       @Override
17068       public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
17069         TTupleProtocol oprot = (TTupleProtocol) prot;
17070         BitSet optionals = new BitSet();
17071         if (struct.isSetOptype()) {
17072           optionals.set(0);
17073         }
17074         if (struct.isSetWinSize()) {
17075           optionals.set(1);
17076         }
17077         oprot.writeBitSet(optionals, 2);
17078         if (struct.isSetOptype()) {
17079           oprot.writeI32(struct.optype);
17080         }
17081         if (struct.isSetWinSize()) {
17082           oprot.writeI32(struct.winSize);
17083         }
17084       }
17085
17086       @Override
17087       public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
17088         TTupleProtocol iprot = (TTupleProtocol) prot;
17089         BitSet incoming = iprot.readBitSet(2);
17090         if (incoming.get(0)) {
17091           struct.optype = iprot.readI32();
17092           struct.setOptypeIsSet(true);
17093         }
17094         if (incoming.get(1)) {
17095           struct.winSize = iprot.readI32();
17096           struct.setWinSizeIsSet(true);
17097         }
17098       }
17099     }
17100
17101   }
17102
17103   public static class getRoutes_result implements org.apache.thrift.TBase<getRoutes_result, getRoutes_result._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_result>   {
17104     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_result");
17105
17106     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);
17107
17108     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17109     static {
17110       schemes.put(StandardScheme.class, new getRoutes_resultStandardSchemeFactory());
17111       schemes.put(TupleScheme.class, new getRoutes_resultTupleSchemeFactory());
17112     }
17113
17114     public Routes success; // required
17115
17116     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17117     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17118       SUCCESS((short)0, "success");
17119
17120       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17121
17122       static {
17123         for (_Fields field : EnumSet.allOf(_Fields.class)) {
17124           byName.put(field.getFieldName(), field);
17125         }
17126       }
17127
17128       /**
17129        * Find the _Fields constant that matches fieldId, or null if its not found.
17130        */
17131       public static _Fields findByThriftId(int fieldId) {
17132         switch(fieldId) {
17133           case 0: // SUCCESS
17134             return SUCCESS;
17135           default:
17136             return null;
17137         }
17138       }
17139
17140       /**
17141        * Find the _Fields constant that matches fieldId, throwing an exception
17142        * if it is not found.
17143        */
17144       public static _Fields findByThriftIdOrThrow(int fieldId) {
17145         _Fields fields = findByThriftId(fieldId);
17146         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17147         return fields;
17148       }
17149
17150       /**
17151        * Find the _Fields constant that matches name, or null if its not found.
17152        */
17153       public static _Fields findByName(String name) {
17154         return byName.get(name);
17155       }
17156
17157       private final short _thriftId;
17158       private final String _fieldName;
17159
17160       _Fields(short thriftId, String fieldName) {
17161         _thriftId = thriftId;
17162         _fieldName = fieldName;
17163       }
17164
17165       public short getThriftFieldId() {
17166         return _thriftId;
17167       }
17168
17169       public String getFieldName() {
17170         return _fieldName;
17171       }
17172     }
17173
17174     // isset id assignments
17175     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17176     static {
17177       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17178       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17179           new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Routes.class)));
17180       metaDataMap = Collections.unmodifiableMap(tmpMap);
17181       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_result.class, metaDataMap);
17182     }
17183
17184     public getRoutes_result() {
17185     }
17186
17187     public getRoutes_result(
17188       Routes success)
17189     {
17190       this();
17191       this.success = success;
17192     }
17193
17194     /**
17195      * Performs a deep copy on <i>other</i>.
17196      */
17197     public getRoutes_result(getRoutes_result other) {
17198       if (other.isSetSuccess()) {
17199         this.success = new Routes(other.success);
17200       }
17201     }
17202
17203     public getRoutes_result deepCopy() {
17204       return new getRoutes_result(this);
17205     }
17206
17207     @Override
17208     public void clear() {
17209       this.success = null;
17210     }
17211
17212     public Routes getSuccess() {
17213       return this.success;
17214     }
17215
17216     public getRoutes_result setSuccess(Routes success) {
17217       this.success = success;
17218       return this;
17219     }
17220
17221     public void unsetSuccess() {
17222       this.success = null;
17223     }
17224
17225     /** Returns true if field success is set (has been assigned a value) and false otherwise */
17226     public boolean isSetSuccess() {
17227       return this.success != null;
17228     }
17229
17230     public void setSuccessIsSet(boolean value) {
17231       if (!value) {
17232         this.success = null;
17233       }
17234     }
17235
17236     public void setFieldValue(_Fields field, Object value) {
17237       switch (field) {
17238       case SUCCESS:
17239         if (value == null) {
17240           unsetSuccess();
17241         } else {
17242           setSuccess((Routes)value);
17243         }
17244         break;
17245
17246       }
17247     }
17248
17249     public Object getFieldValue(_Fields field) {
17250       switch (field) {
17251       case SUCCESS:
17252         return getSuccess();
17253
17254       }
17255       throw new IllegalStateException();
17256     }
17257
17258     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17259     public boolean isSet(_Fields field) {
17260       if (field == null) {
17261         throw new IllegalArgumentException();
17262       }
17263
17264       switch (field) {
17265       case SUCCESS:
17266         return isSetSuccess();
17267       }
17268       throw new IllegalStateException();
17269     }
17270
17271     @Override
17272     public boolean equals(Object that) {
17273       if (that == null)
17274         return false;
17275       if (that instanceof getRoutes_result)
17276         return this.equals((getRoutes_result)that);
17277       return false;
17278     }
17279
17280     public boolean equals(getRoutes_result that) {
17281       if (that == null)
17282         return false;
17283
17284       boolean this_present_success = true && this.isSetSuccess();
17285       boolean that_present_success = true && that.isSetSuccess();
17286       if (this_present_success || that_present_success) {
17287         if (!(this_present_success && that_present_success))
17288           return false;
17289         if (!this.success.equals(that.success))
17290           return false;
17291       }
17292
17293       return true;
17294     }
17295
17296     @Override
17297     public int hashCode() {
17298       return 0;
17299     }
17300
17301     @Override
17302     public int compareTo(getRoutes_result other) {
17303       if (!getClass().equals(other.getClass())) {
17304         return getClass().getName().compareTo(other.getClass().getName());
17305       }
17306
17307       int lastComparison = 0;
17308
17309       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
17310       if (lastComparison != 0) {
17311         return lastComparison;
17312       }
17313       if (isSetSuccess()) {
17314         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
17315         if (lastComparison != 0) {
17316           return lastComparison;
17317         }
17318       }
17319       return 0;
17320     }
17321
17322     public _Fields fieldForId(int fieldId) {
17323       return _Fields.findByThriftId(fieldId);
17324     }
17325
17326     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17327       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17328     }
17329
17330     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17331       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17332       }
17333
17334     @Override
17335     public String toString() {
17336       StringBuilder sb = new StringBuilder("getRoutes_result(");
17337       boolean first = true;
17338
17339       sb.append("success:");
17340       if (this.success == null) {
17341         sb.append("null");
17342       } else {
17343         sb.append(this.success);
17344       }
17345       first = false;
17346       sb.append(")");
17347       return sb.toString();
17348     }
17349
17350     public void validate() throws org.apache.thrift.TException {
17351       // check for required fields
17352       // check for sub-struct validity
17353       if (success != null) {
17354         success.validate();
17355       }
17356     }
17357
17358     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17359       try {
17360         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17361       } catch (org.apache.thrift.TException te) {
17362         throw new java.io.IOException(te);
17363       }
17364     }
17365
17366     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17367       try {
17368         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17369       } catch (org.apache.thrift.TException te) {
17370         throw new java.io.IOException(te);
17371       }
17372     }
17373
17374     private static class getRoutes_resultStandardSchemeFactory implements SchemeFactory {
17375       public getRoutes_resultStandardScheme getScheme() {
17376         return new getRoutes_resultStandardScheme();
17377       }
17378     }
17379
17380     private static class getRoutes_resultStandardScheme extends StandardScheme<getRoutes_result> {
17381
17382       public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_result struct) throws org.apache.thrift.TException {
17383         org.apache.thrift.protocol.TField schemeField;
17384         iprot.readStructBegin();
17385         while (true)
17386         {
17387           schemeField = iprot.readFieldBegin();
17388           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
17389             break;
17390           }
17391           switch (schemeField.id) {
17392             case 0: // SUCCESS
17393               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
17394                 struct.success = new Routes();
17395                 struct.success.read(iprot);
17396                 struct.setSuccessIsSet(true);
17397               } else { 
17398                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17399               }
17400               break;
17401             default:
17402               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17403           }
17404           iprot.readFieldEnd();
17405         }
17406         iprot.readStructEnd();
17407
17408         // check for required fields of primitive type, which can't be checked in the validate method
17409         struct.validate();
17410       }
17411
17412       public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_result struct) throws org.apache.thrift.TException {
17413         struct.validate();
17414
17415         oprot.writeStructBegin(STRUCT_DESC);
17416         if (struct.success != null) {
17417           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17418           struct.success.write(oprot);
17419           oprot.writeFieldEnd();
17420         }
17421         oprot.writeFieldStop();
17422         oprot.writeStructEnd();
17423       }
17424
17425     }
17426
17427     private static class getRoutes_resultTupleSchemeFactory implements SchemeFactory {
17428       public getRoutes_resultTupleScheme getScheme() {
17429         return new getRoutes_resultTupleScheme();
17430       }
17431     }
17432
17433     private static class getRoutes_resultTupleScheme extends TupleScheme<getRoutes_result> {
17434
17435       @Override
17436       public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
17437         TTupleProtocol oprot = (TTupleProtocol) prot;
17438         BitSet optionals = new BitSet();
17439         if (struct.isSetSuccess()) {
17440           optionals.set(0);
17441         }
17442         oprot.writeBitSet(optionals, 1);
17443         if (struct.isSetSuccess()) {
17444           struct.success.write(oprot);
17445         }
17446       }
17447
17448       @Override
17449       public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
17450         TTupleProtocol iprot = (TTupleProtocol) prot;
17451         BitSet incoming = iprot.readBitSet(1);
17452         if (incoming.get(0)) {
17453           struct.success = new Routes();
17454           struct.success.read(iprot);
17455           struct.setSuccessIsSet(true);
17456         }
17457       }
17458     }
17459
17460   }
17461
17462 }