Merge "Bug 6532: Fix ACL IPv6 VM to VM communication on same network"
[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.protocol.TProtocolException;
17 import org.apache.thrift.EncodingUtils;
18 import org.apache.thrift.TException;
19 import org.apache.thrift.async.AsyncMethodCallback;
20 import org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer;
21 import java.util.List;
22 import java.util.ArrayList;
23 import java.util.Map;
24 import java.util.HashMap;
25 import java.util.EnumMap;
26 import java.util.Set;
27 import java.util.HashSet;
28 import java.util.EnumSet;
29 import java.util.Collections;
30 import java.util.BitSet;
31 import java.nio.ByteBuffer;
32 import java.util.Arrays;
33 import org.slf4j.Logger;
34 import org.slf4j.LoggerFactory;
35
36 public class BgpConfigurator {
37
38   public interface Iface {
39
40     public int startBgp(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFbit) throws org.apache.thrift.TException;
41
42     public int stopBgp(int asNumber) throws org.apache.thrift.TException;
43
44     public int createPeer(String ipAddress, int asNumber) throws org.apache.thrift.TException;
45
46     public int deletePeer(String ipAddress) throws org.apache.thrift.TException;
47
48     public int addVrf(String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException;
49
50     public int delVrf(String rd) throws org.apache.thrift.TException;
51
52     public int pushRoute(String prefix, String nexthop, String rd, int label) throws org.apache.thrift.TException;
53
54     public int withdrawRoute(String prefix, String rd) throws org.apache.thrift.TException;
55
56     public int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException;
57
58     public int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException;
59
60     public int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException;
61
62     public int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException;
63
64     public int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
65
66     public int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
67
68     public int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException;
69
70     public int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException;
71
72     public int disableGracefulRestart() throws org.apache.thrift.TException;
73
74     public Routes getRoutes(int optype, int winSize) throws org.apache.thrift.TException;
75
76   }
77
78   public interface AsyncIface {
79
80     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;
81
82     public void stopBgp(int asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
83
84     public void createPeer(String ipAddress, int asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
85
86     public void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
87
88     public void addVrf(String rd, List<String> irts, List<String> erts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
89
90     public void delVrf(String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
91
92     public void pushRoute(String prefix, String nexthop, String rd, int label, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
93
94     public void withdrawRoute(String prefix, String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
95
96     public void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
97
98     public void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
99
100     public void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
101
102     public void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
103
104     public void enableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
105
106     public void disableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
107
108     public void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
109
110     public void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
111
112     public void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
113
114     public void getRoutes(int optype, int winSize, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
115
116   }
117
118   public static class Client extends org.apache.thrift.TServiceClient implements Iface {
119     public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
120       public Factory() {}
121       public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
122         return new Client(prot);
123       }
124       public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
125         return new Client(iprot, oprot);
126       }
127     }
128
129     public Client(org.apache.thrift.protocol.TProtocol prot)
130     {
131       super(prot, prot);
132     }
133
134     public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
135       super(iprot, oprot);
136     }
137
138     public int startBgp(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFbit) throws org.apache.thrift.TException
139     {
140       send_startBgp(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFbit);
141       return recv_startBgp();
142     }
143
144     public void send_startBgp(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFbit) throws org.apache.thrift.TException
145     {
146       startBgp_args args = new startBgp_args();
147       args.setAsNumber(asNumber);
148       args.setRouterId(routerId);
149       args.setPort(port);
150       args.setHoldTime(holdTime);
151       args.setKeepAliveTime(keepAliveTime);
152       args.setStalepathTime(stalepathTime);
153       args.setAnnounceFbit(announceFbit);
154       sendBase("startBgp", args);
155     }
156
157     public int recv_startBgp() throws org.apache.thrift.TException
158     {
159       startBgp_result result = new startBgp_result();
160       receiveBase(result, "startBgp");
161       if (result.isSetSuccess()) {
162         return result.success;
163       }
164       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startBgp failed: unknown result");
165     }
166
167     public int stopBgp(int asNumber) throws org.apache.thrift.TException
168     {
169       send_stopBgp(asNumber);
170       return recv_stopBgp();
171     }
172
173     public void send_stopBgp(int asNumber) throws org.apache.thrift.TException
174     {
175       stopBgp_args args = new stopBgp_args();
176       args.setAsNumber(asNumber);
177       sendBase("stopBgp", args);
178     }
179
180     public int recv_stopBgp() throws org.apache.thrift.TException
181     {
182       stopBgp_result result = new stopBgp_result();
183       receiveBase(result, "stopBgp");
184       if (result.isSetSuccess()) {
185         return result.success;
186       }
187       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "stopBgp failed: unknown result");
188     }
189
190     public int createPeer(String ipAddress, int asNumber) throws org.apache.thrift.TException
191     {
192       send_createPeer(ipAddress, asNumber);
193       return recv_createPeer();
194     }
195
196     public void send_createPeer(String ipAddress, int asNumber) throws org.apache.thrift.TException
197     {
198       createPeer_args args = new createPeer_args();
199       args.setIpAddress(ipAddress);
200       args.setAsNumber(asNumber);
201       sendBase("createPeer", args);
202     }
203
204     public int recv_createPeer() throws org.apache.thrift.TException
205     {
206       createPeer_result result = new createPeer_result();
207       receiveBase(result, "createPeer");
208       if (result.isSetSuccess()) {
209         return result.success;
210       }
211       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPeer failed: unknown result");
212     }
213
214     public int deletePeer(String ipAddress) throws org.apache.thrift.TException
215     {
216       send_deletePeer(ipAddress);
217       return recv_deletePeer();
218     }
219
220     public void send_deletePeer(String ipAddress) throws org.apache.thrift.TException
221     {
222       deletePeer_args args = new deletePeer_args();
223       args.setIpAddress(ipAddress);
224       sendBase("deletePeer", args);
225     }
226
227     public int recv_deletePeer() throws org.apache.thrift.TException
228     {
229       deletePeer_result result = new deletePeer_result();
230       receiveBase(result, "deletePeer");
231       if (result.isSetSuccess()) {
232         return result.success;
233       }
234       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deletePeer failed: unknown result");
235     }
236
237     public int addVrf(String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException
238     {
239       send_addVrf(rd, irts, erts);
240       return recv_addVrf();
241     }
242
243     public void send_addVrf(String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException
244     {
245       addVrf_args args = new addVrf_args();
246       args.setRd(rd);
247       args.setIrts(irts);
248       args.setErts(erts);
249       sendBase("addVrf", args);
250     }
251
252     public int recv_addVrf() throws org.apache.thrift.TException
253     {
254       addVrf_result result = new addVrf_result();
255       receiveBase(result, "addVrf");
256       if (result.isSetSuccess()) {
257         return result.success;
258       }
259       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVrf failed: unknown result");
260     }
261
262     public int delVrf(String rd) throws org.apache.thrift.TException
263     {
264       send_delVrf(rd);
265       return recv_delVrf();
266     }
267
268     public void send_delVrf(String rd) throws org.apache.thrift.TException
269     {
270       delVrf_args args = new delVrf_args();
271       args.setRd(rd);
272       sendBase("delVrf", args);
273     }
274
275     public int recv_delVrf() throws org.apache.thrift.TException
276     {
277       delVrf_result result = new delVrf_result();
278       receiveBase(result, "delVrf");
279       if (result.isSetSuccess()) {
280         return result.success;
281       }
282       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "delVrf failed: unknown result");
283     }
284
285     public int pushRoute(String prefix, String nexthop, String rd, int label) throws org.apache.thrift.TException
286     {
287       send_pushRoute(prefix, nexthop, rd, label);
288       return recv_pushRoute();
289     }
290
291     public void send_pushRoute(String prefix, String nexthop, String rd, int label) throws org.apache.thrift.TException
292     {
293       pushRoute_args args = new pushRoute_args();
294       args.setPrefix(prefix);
295       args.setNexthop(nexthop);
296       args.setRd(rd);
297       args.setLabel(label);
298       sendBase("pushRoute", args);
299     }
300
301     public int recv_pushRoute() throws org.apache.thrift.TException
302     {
303       pushRoute_result result = new pushRoute_result();
304       receiveBase(result, "pushRoute");
305       if (result.isSetSuccess()) {
306         return result.success;
307       }
308       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "pushRoute failed: unknown result");
309     }
310
311     public int withdrawRoute(String prefix, String rd) throws org.apache.thrift.TException
312     {
313       send_withdrawRoute(prefix, rd);
314       return recv_withdrawRoute();
315     }
316
317     public void send_withdrawRoute(String prefix, String rd) throws org.apache.thrift.TException
318     {
319       withdrawRoute_args args = new withdrawRoute_args();
320       args.setPrefix(prefix);
321       args.setRd(rd);
322       sendBase("withdrawRoute", args);
323     }
324
325     public int recv_withdrawRoute() throws org.apache.thrift.TException
326     {
327       withdrawRoute_result result = new withdrawRoute_result();
328       receiveBase(result, "withdrawRoute");
329       if (result.isSetSuccess()) {
330         return result.success;
331       }
332       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "withdrawRoute failed: unknown result");
333     }
334
335     public int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
336     {
337       send_setEbgpMultihop(peerIp, nHops);
338       return recv_setEbgpMultihop();
339     }
340
341     public void send_setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
342     {
343       setEbgpMultihop_args args = new setEbgpMultihop_args();
344       args.setPeerIp(peerIp);
345       args.setNHops(nHops);
346       sendBase("setEbgpMultihop", args);
347     }
348
349     public int recv_setEbgpMultihop() throws org.apache.thrift.TException
350     {
351       setEbgpMultihop_result result = new setEbgpMultihop_result();
352       receiveBase(result, "setEbgpMultihop");
353       if (result.isSetSuccess()) {
354         return result.success;
355       }
356       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setEbgpMultihop failed: unknown result");
357     }
358
359     public int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
360     {
361       send_unsetEbgpMultihop(peerIp);
362       return recv_unsetEbgpMultihop();
363     }
364
365     public void send_unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
366     {
367       unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
368       args.setPeerIp(peerIp);
369       sendBase("unsetEbgpMultihop", args);
370     }
371
372     public int recv_unsetEbgpMultihop() throws org.apache.thrift.TException
373     {
374       unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
375       receiveBase(result, "unsetEbgpMultihop");
376       if (result.isSetSuccess()) {
377         return result.success;
378       }
379       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetEbgpMultihop failed: unknown result");
380     }
381
382     public int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
383     {
384       send_setUpdateSource(peerIp, srcIp);
385       return recv_setUpdateSource();
386     }
387
388     public void send_setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
389     {
390       setUpdateSource_args args = new setUpdateSource_args();
391       args.setPeerIp(peerIp);
392       args.setSrcIp(srcIp);
393       sendBase("setUpdateSource", args);
394     }
395
396     public int recv_setUpdateSource() throws org.apache.thrift.TException
397     {
398       setUpdateSource_result result = new setUpdateSource_result();
399       receiveBase(result, "setUpdateSource");
400       if (result.isSetSuccess()) {
401         return result.success;
402       }
403       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setUpdateSource failed: unknown result");
404     }
405
406     public int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
407     {
408       send_unsetUpdateSource(peerIp);
409       return recv_unsetUpdateSource();
410     }
411
412     public void send_unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
413     {
414       unsetUpdateSource_args args = new unsetUpdateSource_args();
415       args.setPeerIp(peerIp);
416       sendBase("unsetUpdateSource", args);
417     }
418
419     public int recv_unsetUpdateSource() throws org.apache.thrift.TException
420     {
421       unsetUpdateSource_result result = new unsetUpdateSource_result();
422       receiveBase(result, "unsetUpdateSource");
423       if (result.isSetSuccess()) {
424         return result.success;
425       }
426       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetUpdateSource failed: unknown result");
427     }
428
429     public int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
430     {
431       send_enableAddressFamily(peerIp, afi, safi);
432       return recv_enableAddressFamily();
433     }
434
435     public void send_enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
436     {
437       enableAddressFamily_args args = new enableAddressFamily_args();
438       args.setPeerIp(peerIp);
439       args.setAfi(afi);
440       args.setSafi(safi);
441       sendBase("enableAddressFamily", args);
442     }
443
444     public int recv_enableAddressFamily() throws org.apache.thrift.TException
445     {
446       enableAddressFamily_result result = new enableAddressFamily_result();
447       receiveBase(result, "enableAddressFamily");
448       if (result.isSetSuccess()) {
449         return result.success;
450       }
451       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableAddressFamily failed: unknown result");
452     }
453
454     public int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
455     {
456       send_disableAddressFamily(peerIp, afi, safi);
457       return recv_disableAddressFamily();
458     }
459
460     public void send_disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
461     {
462       disableAddressFamily_args args = new disableAddressFamily_args();
463       args.setPeerIp(peerIp);
464       args.setAfi(afi);
465       args.setSafi(safi);
466       sendBase("disableAddressFamily", args);
467     }
468
469     public int recv_disableAddressFamily() throws org.apache.thrift.TException
470     {
471       disableAddressFamily_result result = new disableAddressFamily_result();
472       receiveBase(result, "disableAddressFamily");
473       if (result.isSetSuccess()) {
474         return result.success;
475       }
476       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableAddressFamily failed: unknown result");
477     }
478
479     public int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
480     {
481       send_setLogConfig(logFileName, logLevel);
482       return recv_setLogConfig();
483     }
484
485     public void send_setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
486     {
487       setLogConfig_args args = new setLogConfig_args();
488       args.setLogFileName(logFileName);
489       args.setLogLevel(logLevel);
490       sendBase("setLogConfig", args);
491     }
492
493     public int recv_setLogConfig() throws org.apache.thrift.TException
494     {
495       setLogConfig_result result = new setLogConfig_result();
496       receiveBase(result, "setLogConfig");
497       if (result.isSetSuccess()) {
498         return result.success;
499       }
500       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setLogConfig failed: unknown result");
501     }
502
503     public int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
504     {
505       send_enableGracefulRestart(stalepathTime);
506       return recv_enableGracefulRestart();
507     }
508
509     public void send_enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
510     {
511       enableGracefulRestart_args args = new enableGracefulRestart_args();
512       args.setStalepathTime(stalepathTime);
513       sendBase("enableGracefulRestart", args);
514     }
515
516     public int recv_enableGracefulRestart() throws org.apache.thrift.TException
517     {
518       enableGracefulRestart_result result = new enableGracefulRestart_result();
519       receiveBase(result, "enableGracefulRestart");
520       if (result.isSetSuccess()) {
521         return result.success;
522       }
523       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableGracefulRestart failed: unknown result");
524     }
525
526     public int disableGracefulRestart() throws org.apache.thrift.TException
527     {
528       send_disableGracefulRestart();
529       return recv_disableGracefulRestart();
530     }
531
532     public void send_disableGracefulRestart() throws org.apache.thrift.TException
533     {
534       disableGracefulRestart_args args = new disableGracefulRestart_args();
535       sendBase("disableGracefulRestart", args);
536     }
537
538     public int recv_disableGracefulRestart() throws org.apache.thrift.TException
539     {
540       disableGracefulRestart_result result = new disableGracefulRestart_result();
541       receiveBase(result, "disableGracefulRestart");
542       if (result.isSetSuccess()) {
543         return result.success;
544       }
545       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableGracefulRestart failed: unknown result");
546     }
547
548     public Routes getRoutes(int optype, int winSize) throws org.apache.thrift.TException
549     {
550       send_getRoutes(optype, winSize);
551       return recv_getRoutes();
552     }
553
554     public void send_getRoutes(int optype, int winSize) throws org.apache.thrift.TException
555     {
556       getRoutes_args args = new getRoutes_args();
557       args.setOptype(optype);
558       args.setWinSize(winSize);
559       sendBase("getRoutes", args);
560     }
561
562     public Routes recv_getRoutes() throws org.apache.thrift.TException
563     {
564       getRoutes_result result = new getRoutes_result();
565       receiveBase(result, "getRoutes");
566       if (result.isSetSuccess()) {
567         return result.success;
568       }
569       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoutes failed: unknown result");
570     }
571
572   }
573   public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
574     public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
575       private org.apache.thrift.async.TAsyncClientManager clientManager;
576       private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
577       public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
578         this.clientManager = clientManager;
579         this.protocolFactory = protocolFactory;
580       }
581       public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
582         return new AsyncClient(protocolFactory, clientManager, transport);
583       }
584     }
585
586     public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
587       super(protocolFactory, clientManager, transport);
588     }
589
590     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 {
591       checkReady();
592       startBgp_call method_call = new startBgp_call(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFbit, resultHandler, this, ___protocolFactory, ___transport);
593       this.___currentMethod = method_call;
594       ___manager.call(method_call);
595     }
596
597     public static class startBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
598       private int asNumber;
599       private String routerId;
600       private int port;
601       private int holdTime;
602       private int keepAliveTime;
603       private int stalepathTime;
604       private boolean announceFbit;
605       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 {
606         super(client, protocolFactory, transport, resultHandler, false);
607         this.asNumber = asNumber;
608         this.routerId = routerId;
609         this.port = port;
610         this.holdTime = holdTime;
611         this.keepAliveTime = keepAliveTime;
612         this.stalepathTime = stalepathTime;
613         this.announceFbit = announceFbit;
614       }
615
616       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
617         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
618         startBgp_args args = new startBgp_args();
619         args.setAsNumber(asNumber);
620         args.setRouterId(routerId);
621         args.setPort(port);
622         args.setHoldTime(holdTime);
623         args.setKeepAliveTime(keepAliveTime);
624         args.setStalepathTime(stalepathTime);
625         args.setAnnounceFbit(announceFbit);
626         args.write(prot);
627         prot.writeMessageEnd();
628       }
629
630       public int getResult() throws org.apache.thrift.TException {
631         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
632           throw new IllegalStateException("Method call not finished!");
633         }
634         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
635         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
636         return (new Client(prot)).recv_startBgp();
637       }
638     }
639
640     public void stopBgp(int asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
641       checkReady();
642       stopBgp_call method_call = new stopBgp_call(asNumber, resultHandler, this, ___protocolFactory, ___transport);
643       this.___currentMethod = method_call;
644       ___manager.call(method_call);
645     }
646
647     public static class stopBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
648       private int asNumber;
649       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 {
650         super(client, protocolFactory, transport, resultHandler, false);
651         this.asNumber = asNumber;
652       }
653
654       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
655         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("stopBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
656         stopBgp_args args = new stopBgp_args();
657         args.setAsNumber(asNumber);
658         args.write(prot);
659         prot.writeMessageEnd();
660       }
661
662       public int getResult() throws org.apache.thrift.TException {
663         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
664           throw new IllegalStateException("Method call not finished!");
665         }
666         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
667         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
668         return (new Client(prot)).recv_stopBgp();
669       }
670     }
671
672     public void createPeer(String ipAddress, int asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
673       checkReady();
674       createPeer_call method_call = new createPeer_call(ipAddress, asNumber, resultHandler, this, ___protocolFactory, ___transport);
675       this.___currentMethod = method_call;
676       ___manager.call(method_call);
677     }
678
679     public static class createPeer_call extends org.apache.thrift.async.TAsyncMethodCall {
680       private String ipAddress;
681       private int asNumber;
682       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 {
683         super(client, protocolFactory, transport, resultHandler, false);
684         this.ipAddress = ipAddress;
685         this.asNumber = asNumber;
686       }
687
688       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
689         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
690         createPeer_args args = new createPeer_args();
691         args.setIpAddress(ipAddress);
692         args.setAsNumber(asNumber);
693         args.write(prot);
694         prot.writeMessageEnd();
695       }
696
697       public int getResult() throws org.apache.thrift.TException {
698         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
699           throw new IllegalStateException("Method call not finished!");
700         }
701         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
702         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
703         return (new Client(prot)).recv_createPeer();
704       }
705     }
706
707     public void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
708       checkReady();
709       deletePeer_call method_call = new deletePeer_call(ipAddress, resultHandler, this, ___protocolFactory, ___transport);
710       this.___currentMethod = method_call;
711       ___manager.call(method_call);
712     }
713
714     public static class deletePeer_call extends org.apache.thrift.async.TAsyncMethodCall {
715       private String ipAddress;
716       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 {
717         super(client, protocolFactory, transport, resultHandler, false);
718         this.ipAddress = ipAddress;
719       }
720
721       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
722         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deletePeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
723         deletePeer_args args = new deletePeer_args();
724         args.setIpAddress(ipAddress);
725         args.write(prot);
726         prot.writeMessageEnd();
727       }
728
729       public int getResult() throws org.apache.thrift.TException {
730         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
731           throw new IllegalStateException("Method call not finished!");
732         }
733         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
734         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
735         return (new Client(prot)).recv_deletePeer();
736       }
737     }
738
739     public void addVrf(String rd, List<String> irts, List<String> erts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
740       checkReady();
741       addVrf_call method_call = new addVrf_call(rd, irts, erts, resultHandler, this, ___protocolFactory, ___transport);
742       this.___currentMethod = method_call;
743       ___manager.call(method_call);
744     }
745
746     public static class addVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
747       private String rd;
748       private List<String> irts;
749       private List<String> erts;
750       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 {
751         super(client, protocolFactory, transport, resultHandler, false);
752         this.rd = rd;
753         this.irts = irts;
754         this.erts = erts;
755       }
756
757       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
758         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
759         addVrf_args args = new addVrf_args();
760         args.setRd(rd);
761         args.setIrts(irts);
762         args.setErts(erts);
763         args.write(prot);
764         prot.writeMessageEnd();
765       }
766
767       public int getResult() throws org.apache.thrift.TException {
768         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
769           throw new IllegalStateException("Method call not finished!");
770         }
771         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
772         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
773         return (new Client(prot)).recv_addVrf();
774       }
775     }
776
777     public void delVrf(String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
778       checkReady();
779       delVrf_call method_call = new delVrf_call(rd, resultHandler, this, ___protocolFactory, ___transport);
780       this.___currentMethod = method_call;
781       ___manager.call(method_call);
782     }
783
784     public static class delVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
785       private String rd;
786       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 {
787         super(client, protocolFactory, transport, resultHandler, false);
788         this.rd = rd;
789       }
790
791       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
792         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("delVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
793         delVrf_args args = new delVrf_args();
794         args.setRd(rd);
795         args.write(prot);
796         prot.writeMessageEnd();
797       }
798
799       public int getResult() throws org.apache.thrift.TException {
800         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
801           throw new IllegalStateException("Method call not finished!");
802         }
803         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
804         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
805         return (new Client(prot)).recv_delVrf();
806       }
807     }
808
809     public void pushRoute(String prefix, String nexthop, String rd, int label, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
810       checkReady();
811       pushRoute_call method_call = new pushRoute_call(prefix, nexthop, rd, label, resultHandler, this, ___protocolFactory, ___transport);
812       this.___currentMethod = method_call;
813       ___manager.call(method_call);
814     }
815
816     public static class pushRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
817       private String prefix;
818       private String nexthop;
819       private String rd;
820       private int label;
821       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 {
822         super(client, protocolFactory, transport, resultHandler, false);
823         this.prefix = prefix;
824         this.nexthop = nexthop;
825         this.rd = rd;
826         this.label = label;
827       }
828
829       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
830         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("pushRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
831         pushRoute_args args = new pushRoute_args();
832         args.setPrefix(prefix);
833         args.setNexthop(nexthop);
834         args.setRd(rd);
835         args.setLabel(label);
836         args.write(prot);
837         prot.writeMessageEnd();
838       }
839
840       public int getResult() throws org.apache.thrift.TException {
841         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
842           throw new IllegalStateException("Method call not finished!");
843         }
844         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
845         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
846         return (new Client(prot)).recv_pushRoute();
847       }
848     }
849
850     public void withdrawRoute(String prefix, String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
851       checkReady();
852       withdrawRoute_call method_call = new withdrawRoute_call(prefix, rd, resultHandler, this, ___protocolFactory, ___transport);
853       this.___currentMethod = method_call;
854       ___manager.call(method_call);
855     }
856
857     public static class withdrawRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
858       private String prefix;
859       private String rd;
860       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 {
861         super(client, protocolFactory, transport, resultHandler, false);
862         this.prefix = prefix;
863         this.rd = rd;
864       }
865
866       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
867         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("withdrawRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
868         withdrawRoute_args args = new withdrawRoute_args();
869         args.setPrefix(prefix);
870         args.setRd(rd);
871         args.write(prot);
872         prot.writeMessageEnd();
873       }
874
875       public int getResult() throws org.apache.thrift.TException {
876         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
877           throw new IllegalStateException("Method call not finished!");
878         }
879         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
880         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
881         return (new Client(prot)).recv_withdrawRoute();
882       }
883     }
884
885     public void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
886       checkReady();
887       setEbgpMultihop_call method_call = new setEbgpMultihop_call(peerIp, nHops, resultHandler, this, ___protocolFactory, ___transport);
888       this.___currentMethod = method_call;
889       ___manager.call(method_call);
890     }
891
892     public static class setEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
893       private String peerIp;
894       private int nHops;
895       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 {
896         super(client, protocolFactory, transport, resultHandler, false);
897         this.peerIp = peerIp;
898         this.nHops = nHops;
899       }
900
901       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
902         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
903         setEbgpMultihop_args args = new setEbgpMultihop_args();
904         args.setPeerIp(peerIp);
905         args.setNHops(nHops);
906         args.write(prot);
907         prot.writeMessageEnd();
908       }
909
910       public int getResult() throws org.apache.thrift.TException {
911         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
912           throw new IllegalStateException("Method call not finished!");
913         }
914         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
915         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
916         return (new Client(prot)).recv_setEbgpMultihop();
917       }
918     }
919
920     public void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
921       checkReady();
922       unsetEbgpMultihop_call method_call = new unsetEbgpMultihop_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
923       this.___currentMethod = method_call;
924       ___manager.call(method_call);
925     }
926
927     public static class unsetEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
928       private String peerIp;
929       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 {
930         super(client, protocolFactory, transport, resultHandler, false);
931         this.peerIp = peerIp;
932       }
933
934       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
935         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
936         unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
937         args.setPeerIp(peerIp);
938         args.write(prot);
939         prot.writeMessageEnd();
940       }
941
942       public int getResult() throws org.apache.thrift.TException {
943         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
944           throw new IllegalStateException("Method call not finished!");
945         }
946         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
947         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
948         return (new Client(prot)).recv_unsetEbgpMultihop();
949       }
950     }
951
952     public void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
953       checkReady();
954       setUpdateSource_call method_call = new setUpdateSource_call(peerIp, srcIp, resultHandler, this, ___protocolFactory, ___transport);
955       this.___currentMethod = method_call;
956       ___manager.call(method_call);
957     }
958
959     public static class setUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
960       private String peerIp;
961       private String srcIp;
962       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 {
963         super(client, protocolFactory, transport, resultHandler, false);
964         this.peerIp = peerIp;
965         this.srcIp = srcIp;
966       }
967
968       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
969         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
970         setUpdateSource_args args = new setUpdateSource_args();
971         args.setPeerIp(peerIp);
972         args.setSrcIp(srcIp);
973         args.write(prot);
974         prot.writeMessageEnd();
975       }
976
977       public int getResult() throws org.apache.thrift.TException {
978         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
979           throw new IllegalStateException("Method call not finished!");
980         }
981         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
982         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
983         return (new Client(prot)).recv_setUpdateSource();
984       }
985     }
986
987     public void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
988       checkReady();
989       unsetUpdateSource_call method_call = new unsetUpdateSource_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
990       this.___currentMethod = method_call;
991       ___manager.call(method_call);
992     }
993
994     public static class unsetUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
995       private String peerIp;
996       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 {
997         super(client, protocolFactory, transport, resultHandler, false);
998         this.peerIp = peerIp;
999       }
1000
1001       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1002         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
1003         unsetUpdateSource_args args = new unsetUpdateSource_args();
1004         args.setPeerIp(peerIp);
1005         args.write(prot);
1006         prot.writeMessageEnd();
1007       }
1008
1009       public int getResult() throws org.apache.thrift.TException {
1010         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1011           throw new IllegalStateException("Method call not finished!");
1012         }
1013         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1014         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1015         return (new Client(prot)).recv_unsetUpdateSource();
1016       }
1017     }
1018
1019     public void enableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1020       checkReady();
1021       enableAddressFamily_call method_call = new enableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1022       this.___currentMethod = method_call;
1023       ___manager.call(method_call);
1024     }
1025
1026     public static class enableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1027       private String peerIp;
1028       private af_afi afi;
1029       private af_safi safi;
1030       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 {
1031         super(client, protocolFactory, transport, resultHandler, false);
1032         this.peerIp = peerIp;
1033         this.afi = afi;
1034         this.safi = safi;
1035       }
1036
1037       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1038         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1039         enableAddressFamily_args args = new enableAddressFamily_args();
1040         args.setPeerIp(peerIp);
1041         args.setAfi(afi);
1042         args.setSafi(safi);
1043         args.write(prot);
1044         prot.writeMessageEnd();
1045       }
1046
1047       public int getResult() throws org.apache.thrift.TException {
1048         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1049           throw new IllegalStateException("Method call not finished!");
1050         }
1051         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1052         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1053         return (new Client(prot)).recv_enableAddressFamily();
1054       }
1055     }
1056
1057     public void disableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1058       checkReady();
1059       disableAddressFamily_call method_call = new disableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1060       this.___currentMethod = method_call;
1061       ___manager.call(method_call);
1062     }
1063
1064     public static class disableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1065       private String peerIp;
1066       private af_afi afi;
1067       private af_safi safi;
1068       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 {
1069         super(client, protocolFactory, transport, resultHandler, false);
1070         this.peerIp = peerIp;
1071         this.afi = afi;
1072         this.safi = safi;
1073       }
1074
1075       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1076         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1077         disableAddressFamily_args args = new disableAddressFamily_args();
1078         args.setPeerIp(peerIp);
1079         args.setAfi(afi);
1080         args.setSafi(safi);
1081         args.write(prot);
1082         prot.writeMessageEnd();
1083       }
1084
1085       public int getResult() throws org.apache.thrift.TException {
1086         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1087           throw new IllegalStateException("Method call not finished!");
1088         }
1089         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1090         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1091         return (new Client(prot)).recv_disableAddressFamily();
1092       }
1093     }
1094
1095     public void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1096       checkReady();
1097       setLogConfig_call method_call = new setLogConfig_call(logFileName, logLevel, resultHandler, this, ___protocolFactory, ___transport);
1098       this.___currentMethod = method_call;
1099       ___manager.call(method_call);
1100     }
1101
1102     public static class setLogConfig_call extends org.apache.thrift.async.TAsyncMethodCall {
1103       private String logFileName;
1104       private String logLevel;
1105       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 {
1106         super(client, protocolFactory, transport, resultHandler, false);
1107         this.logFileName = logFileName;
1108         this.logLevel = logLevel;
1109       }
1110
1111       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1112         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setLogConfig", org.apache.thrift.protocol.TMessageType.CALL, 0));
1113         setLogConfig_args args = new setLogConfig_args();
1114         args.setLogFileName(logFileName);
1115         args.setLogLevel(logLevel);
1116         args.write(prot);
1117         prot.writeMessageEnd();
1118       }
1119
1120       public int getResult() throws org.apache.thrift.TException {
1121         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1122           throw new IllegalStateException("Method call not finished!");
1123         }
1124         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1125         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1126         return (new Client(prot)).recv_setLogConfig();
1127       }
1128     }
1129
1130     public void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1131       checkReady();
1132       enableGracefulRestart_call method_call = new enableGracefulRestart_call(stalepathTime, resultHandler, this, ___protocolFactory, ___transport);
1133       this.___currentMethod = method_call;
1134       ___manager.call(method_call);
1135     }
1136
1137     public static class enableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1138       private int stalepathTime;
1139       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 {
1140         super(client, protocolFactory, transport, resultHandler, false);
1141         this.stalepathTime = stalepathTime;
1142       }
1143
1144       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1145         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1146         enableGracefulRestart_args args = new enableGracefulRestart_args();
1147         args.setStalepathTime(stalepathTime);
1148         args.write(prot);
1149         prot.writeMessageEnd();
1150       }
1151
1152       public int getResult() throws org.apache.thrift.TException {
1153         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1154           throw new IllegalStateException("Method call not finished!");
1155         }
1156         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1157         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1158         return (new Client(prot)).recv_enableGracefulRestart();
1159       }
1160     }
1161
1162     public void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1163       checkReady();
1164       disableGracefulRestart_call method_call = new disableGracefulRestart_call(resultHandler, this, ___protocolFactory, ___transport);
1165       this.___currentMethod = method_call;
1166       ___manager.call(method_call);
1167     }
1168
1169     public static class disableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1170       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 {
1171         super(client, protocolFactory, transport, resultHandler, false);
1172       }
1173
1174       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1175         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1176         disableGracefulRestart_args args = new disableGracefulRestart_args();
1177         args.write(prot);
1178         prot.writeMessageEnd();
1179       }
1180
1181       public int getResult() throws org.apache.thrift.TException {
1182         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1183           throw new IllegalStateException("Method call not finished!");
1184         }
1185         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1186         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1187         return (new Client(prot)).recv_disableGracefulRestart();
1188       }
1189     }
1190
1191     public void getRoutes(int optype, int winSize, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1192       checkReady();
1193       getRoutes_call method_call = new getRoutes_call(optype, winSize, resultHandler, this, ___protocolFactory, ___transport);
1194       this.___currentMethod = method_call;
1195       ___manager.call(method_call);
1196     }
1197
1198     public static class getRoutes_call extends org.apache.thrift.async.TAsyncMethodCall {
1199       private int optype;
1200       private int winSize;
1201       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 {
1202         super(client, protocolFactory, transport, resultHandler, false);
1203         this.optype = optype;
1204         this.winSize = winSize;
1205       }
1206
1207       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1208         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoutes", org.apache.thrift.protocol.TMessageType.CALL, 0));
1209         getRoutes_args args = new getRoutes_args();
1210         args.setOptype(optype);
1211         args.setWinSize(winSize);
1212         args.write(prot);
1213         prot.writeMessageEnd();
1214       }
1215
1216       public Routes getResult() throws org.apache.thrift.TException {
1217         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1218           throw new IllegalStateException("Method call not finished!");
1219         }
1220         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1221         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1222         return (new Client(prot)).recv_getRoutes();
1223       }
1224     }
1225
1226   }
1227
1228   public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
1229     private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1230     public Processor(I iface) {
1231       super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1232     }
1233
1234     protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1235       super(iface, getProcessMap(processMap));
1236     }
1237
1238     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) {
1239       processMap.put("startBgp", new startBgp());
1240       processMap.put("stopBgp", new stopBgp());
1241       processMap.put("createPeer", new createPeer());
1242       processMap.put("deletePeer", new deletePeer());
1243       processMap.put("addVrf", new addVrf());
1244       processMap.put("delVrf", new delVrf());
1245       processMap.put("pushRoute", new pushRoute());
1246       processMap.put("withdrawRoute", new withdrawRoute());
1247       processMap.put("setEbgpMultihop", new setEbgpMultihop());
1248       processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
1249       processMap.put("setUpdateSource", new setUpdateSource());
1250       processMap.put("unsetUpdateSource", new unsetUpdateSource());
1251       processMap.put("enableAddressFamily", new enableAddressFamily());
1252       processMap.put("disableAddressFamily", new disableAddressFamily());
1253       processMap.put("setLogConfig", new setLogConfig());
1254       processMap.put("enableGracefulRestart", new enableGracefulRestart());
1255       processMap.put("disableGracefulRestart", new disableGracefulRestart());
1256       processMap.put("getRoutes", new getRoutes());
1257       return processMap;
1258     }
1259
1260     public static class startBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, startBgp_args> {
1261       public startBgp() {
1262         super("startBgp");
1263       }
1264
1265       public startBgp_args getEmptyArgsInstance() {
1266         return new startBgp_args();
1267       }
1268
1269       protected boolean isOneway() {
1270         return false;
1271       }
1272
1273       public startBgp_result getResult(I iface, startBgp_args args) throws org.apache.thrift.TException {
1274         startBgp_result result = new startBgp_result();
1275         result.success = iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFbit);
1276         result.setSuccessIsSet(true);
1277         return result;
1278       }
1279     }
1280
1281     public static class stopBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, stopBgp_args> {
1282       public stopBgp() {
1283         super("stopBgp");
1284       }
1285
1286       public stopBgp_args getEmptyArgsInstance() {
1287         return new stopBgp_args();
1288       }
1289
1290       protected boolean isOneway() {
1291         return false;
1292       }
1293
1294       public stopBgp_result getResult(I iface, stopBgp_args args) throws org.apache.thrift.TException {
1295         stopBgp_result result = new stopBgp_result();
1296         result.success = iface.stopBgp(args.asNumber);
1297         result.setSuccessIsSet(true);
1298         return result;
1299       }
1300     }
1301
1302     public static class createPeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPeer_args> {
1303       public createPeer() {
1304         super("createPeer");
1305       }
1306
1307       public createPeer_args getEmptyArgsInstance() {
1308         return new createPeer_args();
1309       }
1310
1311       protected boolean isOneway() {
1312         return false;
1313       }
1314
1315       public createPeer_result getResult(I iface, createPeer_args args) throws org.apache.thrift.TException {
1316         createPeer_result result = new createPeer_result();
1317         result.success = iface.createPeer(args.ipAddress, args.asNumber);
1318         result.setSuccessIsSet(true);
1319         return result;
1320       }
1321     }
1322
1323     public static class deletePeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deletePeer_args> {
1324       public deletePeer() {
1325         super("deletePeer");
1326       }
1327
1328       public deletePeer_args getEmptyArgsInstance() {
1329         return new deletePeer_args();
1330       }
1331
1332       protected boolean isOneway() {
1333         return false;
1334       }
1335
1336       public deletePeer_result getResult(I iface, deletePeer_args args) throws org.apache.thrift.TException {
1337         deletePeer_result result = new deletePeer_result();
1338         result.success = iface.deletePeer(args.ipAddress);
1339         result.setSuccessIsSet(true);
1340         return result;
1341       }
1342     }
1343
1344     public static class addVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVrf_args> {
1345       public addVrf() {
1346         super("addVrf");
1347       }
1348
1349       public addVrf_args getEmptyArgsInstance() {
1350         return new addVrf_args();
1351       }
1352
1353       protected boolean isOneway() {
1354         return false;
1355       }
1356
1357       public addVrf_result getResult(I iface, addVrf_args args) throws org.apache.thrift.TException {
1358         addVrf_result result = new addVrf_result();
1359         result.success = iface.addVrf(args.rd, args.irts, args.erts);
1360         result.setSuccessIsSet(true);
1361         return result;
1362       }
1363     }
1364
1365     public static class delVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, delVrf_args> {
1366       public delVrf() {
1367         super("delVrf");
1368       }
1369
1370       public delVrf_args getEmptyArgsInstance() {
1371         return new delVrf_args();
1372       }
1373
1374       protected boolean isOneway() {
1375         return false;
1376       }
1377
1378       public delVrf_result getResult(I iface, delVrf_args args) throws org.apache.thrift.TException {
1379         delVrf_result result = new delVrf_result();
1380         result.success = iface.delVrf(args.rd);
1381         result.setSuccessIsSet(true);
1382         return result;
1383       }
1384     }
1385
1386     public static class pushRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, pushRoute_args> {
1387       public pushRoute() {
1388         super("pushRoute");
1389       }
1390
1391       public pushRoute_args getEmptyArgsInstance() {
1392         return new pushRoute_args();
1393       }
1394
1395       protected boolean isOneway() {
1396         return false;
1397       }
1398
1399       public pushRoute_result getResult(I iface, pushRoute_args args) throws org.apache.thrift.TException {
1400         pushRoute_result result = new pushRoute_result();
1401         result.success = iface.pushRoute(args.prefix, args.nexthop, args.rd, args.label);
1402         result.setSuccessIsSet(true);
1403         return result;
1404       }
1405     }
1406
1407     public static class withdrawRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, withdrawRoute_args> {
1408       public withdrawRoute() {
1409         super("withdrawRoute");
1410       }
1411
1412       public withdrawRoute_args getEmptyArgsInstance() {
1413         return new withdrawRoute_args();
1414       }
1415
1416       protected boolean isOneway() {
1417         return false;
1418       }
1419
1420       public withdrawRoute_result getResult(I iface, withdrawRoute_args args) throws org.apache.thrift.TException {
1421         withdrawRoute_result result = new withdrawRoute_result();
1422         result.success = iface.withdrawRoute(args.prefix, args.rd);
1423         result.setSuccessIsSet(true);
1424         return result;
1425       }
1426     }
1427
1428     public static class setEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setEbgpMultihop_args> {
1429       public setEbgpMultihop() {
1430         super("setEbgpMultihop");
1431       }
1432
1433       public setEbgpMultihop_args getEmptyArgsInstance() {
1434         return new setEbgpMultihop_args();
1435       }
1436
1437       protected boolean isOneway() {
1438         return false;
1439       }
1440
1441       public setEbgpMultihop_result getResult(I iface, setEbgpMultihop_args args) throws org.apache.thrift.TException {
1442         setEbgpMultihop_result result = new setEbgpMultihop_result();
1443         result.success = iface.setEbgpMultihop(args.peerIp, args.nHops);
1444         result.setSuccessIsSet(true);
1445         return result;
1446       }
1447     }
1448
1449     public static class unsetEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetEbgpMultihop_args> {
1450       public unsetEbgpMultihop() {
1451         super("unsetEbgpMultihop");
1452       }
1453
1454       public unsetEbgpMultihop_args getEmptyArgsInstance() {
1455         return new unsetEbgpMultihop_args();
1456       }
1457
1458       protected boolean isOneway() {
1459         return false;
1460       }
1461
1462       public unsetEbgpMultihop_result getResult(I iface, unsetEbgpMultihop_args args) throws org.apache.thrift.TException {
1463         unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
1464         result.success = iface.unsetEbgpMultihop(args.peerIp);
1465         result.setSuccessIsSet(true);
1466         return result;
1467       }
1468     }
1469
1470     public static class setUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setUpdateSource_args> {
1471       public setUpdateSource() {
1472         super("setUpdateSource");
1473       }
1474
1475       public setUpdateSource_args getEmptyArgsInstance() {
1476         return new setUpdateSource_args();
1477       }
1478
1479       protected boolean isOneway() {
1480         return false;
1481       }
1482
1483       public setUpdateSource_result getResult(I iface, setUpdateSource_args args) throws org.apache.thrift.TException {
1484         setUpdateSource_result result = new setUpdateSource_result();
1485         result.success = iface.setUpdateSource(args.peerIp, args.srcIp);
1486         result.setSuccessIsSet(true);
1487         return result;
1488       }
1489     }
1490
1491     public static class unsetUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetUpdateSource_args> {
1492       public unsetUpdateSource() {
1493         super("unsetUpdateSource");
1494       }
1495
1496       public unsetUpdateSource_args getEmptyArgsInstance() {
1497         return new unsetUpdateSource_args();
1498       }
1499
1500       protected boolean isOneway() {
1501         return false;
1502       }
1503
1504       public unsetUpdateSource_result getResult(I iface, unsetUpdateSource_args args) throws org.apache.thrift.TException {
1505         unsetUpdateSource_result result = new unsetUpdateSource_result();
1506         result.success = iface.unsetUpdateSource(args.peerIp);
1507         result.setSuccessIsSet(true);
1508         return result;
1509       }
1510     }
1511
1512     public static class enableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableAddressFamily_args> {
1513       public enableAddressFamily() {
1514         super("enableAddressFamily");
1515       }
1516
1517       public enableAddressFamily_args getEmptyArgsInstance() {
1518         return new enableAddressFamily_args();
1519       }
1520
1521       protected boolean isOneway() {
1522         return false;
1523       }
1524
1525       public enableAddressFamily_result getResult(I iface, enableAddressFamily_args args) throws org.apache.thrift.TException {
1526         enableAddressFamily_result result = new enableAddressFamily_result();
1527         result.success = iface.enableAddressFamily(args.peerIp, args.afi, args.safi);
1528         result.setSuccessIsSet(true);
1529         return result;
1530       }
1531     }
1532
1533     public static class disableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableAddressFamily_args> {
1534       public disableAddressFamily() {
1535         super("disableAddressFamily");
1536       }
1537
1538       public disableAddressFamily_args getEmptyArgsInstance() {
1539         return new disableAddressFamily_args();
1540       }
1541
1542       protected boolean isOneway() {
1543         return false;
1544       }
1545
1546       public disableAddressFamily_result getResult(I iface, disableAddressFamily_args args) throws org.apache.thrift.TException {
1547         disableAddressFamily_result result = new disableAddressFamily_result();
1548         result.success = iface.disableAddressFamily(args.peerIp, args.afi, args.safi);
1549         result.setSuccessIsSet(true);
1550         return result;
1551       }
1552     }
1553
1554     public static class setLogConfig<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setLogConfig_args> {
1555       public setLogConfig() {
1556         super("setLogConfig");
1557       }
1558
1559       public setLogConfig_args getEmptyArgsInstance() {
1560         return new setLogConfig_args();
1561       }
1562
1563       protected boolean isOneway() {
1564         return false;
1565       }
1566
1567       public setLogConfig_result getResult(I iface, setLogConfig_args args) throws org.apache.thrift.TException {
1568         setLogConfig_result result = new setLogConfig_result();
1569         result.success = iface.setLogConfig(args.logFileName, args.logLevel);
1570         result.setSuccessIsSet(true);
1571         return result;
1572       }
1573     }
1574
1575     public static class enableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableGracefulRestart_args> {
1576       public enableGracefulRestart() {
1577         super("enableGracefulRestart");
1578       }
1579
1580       public enableGracefulRestart_args getEmptyArgsInstance() {
1581         return new enableGracefulRestart_args();
1582       }
1583
1584       protected boolean isOneway() {
1585         return false;
1586       }
1587
1588       public enableGracefulRestart_result getResult(I iface, enableGracefulRestart_args args) throws org.apache.thrift.TException {
1589         enableGracefulRestart_result result = new enableGracefulRestart_result();
1590         result.success = iface.enableGracefulRestart(args.stalepathTime);
1591         result.setSuccessIsSet(true);
1592         return result;
1593       }
1594     }
1595
1596     public static class disableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableGracefulRestart_args> {
1597       public disableGracefulRestart() {
1598         super("disableGracefulRestart");
1599       }
1600
1601       public disableGracefulRestart_args getEmptyArgsInstance() {
1602         return new disableGracefulRestart_args();
1603       }
1604
1605       protected boolean isOneway() {
1606         return false;
1607       }
1608
1609       public disableGracefulRestart_result getResult(I iface, disableGracefulRestart_args args) throws org.apache.thrift.TException {
1610         disableGracefulRestart_result result = new disableGracefulRestart_result();
1611         result.success = iface.disableGracefulRestart();
1612         result.setSuccessIsSet(true);
1613         return result;
1614       }
1615     }
1616
1617     public static class getRoutes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoutes_args> {
1618       public getRoutes() {
1619         super("getRoutes");
1620       }
1621
1622       public getRoutes_args getEmptyArgsInstance() {
1623         return new getRoutes_args();
1624       }
1625
1626       protected boolean isOneway() {
1627         return false;
1628       }
1629
1630       public getRoutes_result getResult(I iface, getRoutes_args args) throws org.apache.thrift.TException {
1631         getRoutes_result result = new getRoutes_result();
1632         result.success = iface.getRoutes(args.optype, args.winSize);
1633         return result;
1634       }
1635     }
1636
1637   }
1638
1639   public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
1640     private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
1641     public AsyncProcessor(I iface) {
1642       super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
1643     }
1644
1645     protected AsyncProcessor(I iface, Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
1646       super(iface, getProcessMap(processMap));
1647     }
1648
1649     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) {
1650       processMap.put("startBgp", new startBgp());
1651       processMap.put("stopBgp", new stopBgp());
1652       processMap.put("createPeer", new createPeer());
1653       processMap.put("deletePeer", new deletePeer());
1654       processMap.put("addVrf", new addVrf());
1655       processMap.put("delVrf", new delVrf());
1656       processMap.put("pushRoute", new pushRoute());
1657       processMap.put("withdrawRoute", new withdrawRoute());
1658       processMap.put("setEbgpMultihop", new setEbgpMultihop());
1659       processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
1660       processMap.put("setUpdateSource", new setUpdateSource());
1661       processMap.put("unsetUpdateSource", new unsetUpdateSource());
1662       processMap.put("enableAddressFamily", new enableAddressFamily());
1663       processMap.put("disableAddressFamily", new disableAddressFamily());
1664       processMap.put("setLogConfig", new setLogConfig());
1665       processMap.put("enableGracefulRestart", new enableGracefulRestart());
1666       processMap.put("disableGracefulRestart", new disableGracefulRestart());
1667       processMap.put("getRoutes", new getRoutes());
1668       return processMap;
1669     }
1670
1671     public static class startBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, startBgp_args, Integer> {
1672       public startBgp() {
1673         super("startBgp");
1674       }
1675
1676       public startBgp_args getEmptyArgsInstance() {
1677         return new startBgp_args();
1678       }
1679
1680       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1681         final org.apache.thrift.AsyncProcessFunction fcall = this;
1682         return new AsyncMethodCallback<Integer>() { 
1683           public void onComplete(Integer o) {
1684             startBgp_result result = new startBgp_result();
1685             result.success = o;
1686             result.setSuccessIsSet(true);
1687             try {
1688               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1689               return;
1690             } catch (Exception e) {
1691               LOGGER.error("Exception writing to internal frame buffer", e);
1692             }
1693             fb.close();
1694           }
1695           public void onError(Exception e) {
1696             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1697             org.apache.thrift.TBase msg;
1698             startBgp_result result = new startBgp_result();
1699             {
1700               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1701               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1702             }
1703             try {
1704               fcall.sendResponse(fb,msg,msgType,seqid);
1705               return;
1706             } catch (Exception ex) {
1707               LOGGER.error("Exception writing to internal frame buffer", ex);
1708             }
1709             fb.close();
1710           }
1711         };
1712       }
1713
1714       protected boolean isOneway() {
1715         return false;
1716       }
1717
1718       public void start(I iface, startBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1719         iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFbit,resultHandler);
1720       }
1721     }
1722
1723     public static class stopBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, stopBgp_args, Integer> {
1724       public stopBgp() {
1725         super("stopBgp");
1726       }
1727
1728       public stopBgp_args getEmptyArgsInstance() {
1729         return new stopBgp_args();
1730       }
1731
1732       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1733         final org.apache.thrift.AsyncProcessFunction fcall = this;
1734         return new AsyncMethodCallback<Integer>() { 
1735           public void onComplete(Integer o) {
1736             stopBgp_result result = new stopBgp_result();
1737             result.success = o;
1738             result.setSuccessIsSet(true);
1739             try {
1740               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1741               return;
1742             } catch (Exception e) {
1743               LOGGER.error("Exception writing to internal frame buffer", e);
1744             }
1745             fb.close();
1746           }
1747           public void onError(Exception e) {
1748             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1749             org.apache.thrift.TBase msg;
1750             stopBgp_result result = new stopBgp_result();
1751             {
1752               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1753               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1754             }
1755             try {
1756               fcall.sendResponse(fb,msg,msgType,seqid);
1757               return;
1758             } catch (Exception ex) {
1759               LOGGER.error("Exception writing to internal frame buffer", ex);
1760             }
1761             fb.close();
1762           }
1763         };
1764       }
1765
1766       protected boolean isOneway() {
1767         return false;
1768       }
1769
1770       public void start(I iface, stopBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1771         iface.stopBgp(args.asNumber,resultHandler);
1772       }
1773     }
1774
1775     public static class createPeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createPeer_args, Integer> {
1776       public createPeer() {
1777         super("createPeer");
1778       }
1779
1780       public createPeer_args getEmptyArgsInstance() {
1781         return new createPeer_args();
1782       }
1783
1784       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1785         final org.apache.thrift.AsyncProcessFunction fcall = this;
1786         return new AsyncMethodCallback<Integer>() { 
1787           public void onComplete(Integer o) {
1788             createPeer_result result = new createPeer_result();
1789             result.success = o;
1790             result.setSuccessIsSet(true);
1791             try {
1792               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1793               return;
1794             } catch (Exception e) {
1795               LOGGER.error("Exception writing to internal frame buffer", e);
1796             }
1797             fb.close();
1798           }
1799           public void onError(Exception e) {
1800             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1801             org.apache.thrift.TBase msg;
1802             createPeer_result result = new createPeer_result();
1803             {
1804               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1805               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1806             }
1807             try {
1808               fcall.sendResponse(fb,msg,msgType,seqid);
1809               return;
1810             } catch (Exception ex) {
1811               LOGGER.error("Exception writing to internal frame buffer", ex);
1812             }
1813             fb.close();
1814           }
1815         };
1816       }
1817
1818       protected boolean isOneway() {
1819         return false;
1820       }
1821
1822       public void start(I iface, createPeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1823         iface.createPeer(args.ipAddress, args.asNumber,resultHandler);
1824       }
1825     }
1826
1827     public static class deletePeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, deletePeer_args, Integer> {
1828       public deletePeer() {
1829         super("deletePeer");
1830       }
1831
1832       public deletePeer_args getEmptyArgsInstance() {
1833         return new deletePeer_args();
1834       }
1835
1836       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1837         final org.apache.thrift.AsyncProcessFunction fcall = this;
1838         return new AsyncMethodCallback<Integer>() { 
1839           public void onComplete(Integer o) {
1840             deletePeer_result result = new deletePeer_result();
1841             result.success = o;
1842             result.setSuccessIsSet(true);
1843             try {
1844               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1845               return;
1846             } catch (Exception e) {
1847               LOGGER.error("Exception writing to internal frame buffer", e);
1848             }
1849             fb.close();
1850           }
1851           public void onError(Exception e) {
1852             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1853             org.apache.thrift.TBase msg;
1854             deletePeer_result result = new deletePeer_result();
1855             {
1856               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1857               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1858             }
1859             try {
1860               fcall.sendResponse(fb,msg,msgType,seqid);
1861               return;
1862             } catch (Exception ex) {
1863               LOGGER.error("Exception writing to internal frame buffer", ex);
1864             }
1865             fb.close();
1866           }
1867         };
1868       }
1869
1870       protected boolean isOneway() {
1871         return false;
1872       }
1873
1874       public void start(I iface, deletePeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1875         iface.deletePeer(args.ipAddress,resultHandler);
1876       }
1877     }
1878
1879     public static class addVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, addVrf_args, Integer> {
1880       public addVrf() {
1881         super("addVrf");
1882       }
1883
1884       public addVrf_args getEmptyArgsInstance() {
1885         return new addVrf_args();
1886       }
1887
1888       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1889         final org.apache.thrift.AsyncProcessFunction fcall = this;
1890         return new AsyncMethodCallback<Integer>() { 
1891           public void onComplete(Integer o) {
1892             addVrf_result result = new addVrf_result();
1893             result.success = o;
1894             result.setSuccessIsSet(true);
1895             try {
1896               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1897               return;
1898             } catch (Exception e) {
1899               LOGGER.error("Exception writing to internal frame buffer", e);
1900             }
1901             fb.close();
1902           }
1903           public void onError(Exception e) {
1904             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1905             org.apache.thrift.TBase msg;
1906             addVrf_result result = new addVrf_result();
1907             {
1908               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1909               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1910             }
1911             try {
1912               fcall.sendResponse(fb,msg,msgType,seqid);
1913               return;
1914             } catch (Exception ex) {
1915               LOGGER.error("Exception writing to internal frame buffer", ex);
1916             }
1917             fb.close();
1918           }
1919         };
1920       }
1921
1922       protected boolean isOneway() {
1923         return false;
1924       }
1925
1926       public void start(I iface, addVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1927         iface.addVrf(args.rd, args.irts, args.erts,resultHandler);
1928       }
1929     }
1930
1931     public static class delVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, delVrf_args, Integer> {
1932       public delVrf() {
1933         super("delVrf");
1934       }
1935
1936       public delVrf_args getEmptyArgsInstance() {
1937         return new delVrf_args();
1938       }
1939
1940       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1941         final org.apache.thrift.AsyncProcessFunction fcall = this;
1942         return new AsyncMethodCallback<Integer>() { 
1943           public void onComplete(Integer o) {
1944             delVrf_result result = new delVrf_result();
1945             result.success = o;
1946             result.setSuccessIsSet(true);
1947             try {
1948               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1949               return;
1950             } catch (Exception e) {
1951               LOGGER.error("Exception writing to internal frame buffer", e);
1952             }
1953             fb.close();
1954           }
1955           public void onError(Exception e) {
1956             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1957             org.apache.thrift.TBase msg;
1958             delVrf_result result = new delVrf_result();
1959             {
1960               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1961               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1962             }
1963             try {
1964               fcall.sendResponse(fb,msg,msgType,seqid);
1965               return;
1966             } catch (Exception ex) {
1967               LOGGER.error("Exception writing to internal frame buffer", ex);
1968             }
1969             fb.close();
1970           }
1971         };
1972       }
1973
1974       protected boolean isOneway() {
1975         return false;
1976       }
1977
1978       public void start(I iface, delVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1979         iface.delVrf(args.rd,resultHandler);
1980       }
1981     }
1982
1983     public static class pushRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, pushRoute_args, Integer> {
1984       public pushRoute() {
1985         super("pushRoute");
1986       }
1987
1988       public pushRoute_args getEmptyArgsInstance() {
1989         return new pushRoute_args();
1990       }
1991
1992       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1993         final org.apache.thrift.AsyncProcessFunction fcall = this;
1994         return new AsyncMethodCallback<Integer>() { 
1995           public void onComplete(Integer o) {
1996             pushRoute_result result = new pushRoute_result();
1997             result.success = o;
1998             result.setSuccessIsSet(true);
1999             try {
2000               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2001               return;
2002             } catch (Exception e) {
2003               LOGGER.error("Exception writing to internal frame buffer", e);
2004             }
2005             fb.close();
2006           }
2007           public void onError(Exception e) {
2008             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2009             org.apache.thrift.TBase msg;
2010             pushRoute_result result = new pushRoute_result();
2011             {
2012               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2013               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2014             }
2015             try {
2016               fcall.sendResponse(fb,msg,msgType,seqid);
2017               return;
2018             } catch (Exception ex) {
2019               LOGGER.error("Exception writing to internal frame buffer", ex);
2020             }
2021             fb.close();
2022           }
2023         };
2024       }
2025
2026       protected boolean isOneway() {
2027         return false;
2028       }
2029
2030       public void start(I iface, pushRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2031         iface.pushRoute(args.prefix, args.nexthop, args.rd, args.label,resultHandler);
2032       }
2033     }
2034
2035     public static class withdrawRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, withdrawRoute_args, Integer> {
2036       public withdrawRoute() {
2037         super("withdrawRoute");
2038       }
2039
2040       public withdrawRoute_args getEmptyArgsInstance() {
2041         return new withdrawRoute_args();
2042       }
2043
2044       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2045         final org.apache.thrift.AsyncProcessFunction fcall = this;
2046         return new AsyncMethodCallback<Integer>() { 
2047           public void onComplete(Integer o) {
2048             withdrawRoute_result result = new withdrawRoute_result();
2049             result.success = o;
2050             result.setSuccessIsSet(true);
2051             try {
2052               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2053               return;
2054             } catch (Exception e) {
2055               LOGGER.error("Exception writing to internal frame buffer", e);
2056             }
2057             fb.close();
2058           }
2059           public void onError(Exception e) {
2060             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2061             org.apache.thrift.TBase msg;
2062             withdrawRoute_result result = new withdrawRoute_result();
2063             {
2064               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2065               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2066             }
2067             try {
2068               fcall.sendResponse(fb,msg,msgType,seqid);
2069               return;
2070             } catch (Exception ex) {
2071               LOGGER.error("Exception writing to internal frame buffer", ex);
2072             }
2073             fb.close();
2074           }
2075         };
2076       }
2077
2078       protected boolean isOneway() {
2079         return false;
2080       }
2081
2082       public void start(I iface, withdrawRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2083         iface.withdrawRoute(args.prefix, args.rd,resultHandler);
2084       }
2085     }
2086
2087     public static class setEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setEbgpMultihop_args, Integer> {
2088       public setEbgpMultihop() {
2089         super("setEbgpMultihop");
2090       }
2091
2092       public setEbgpMultihop_args getEmptyArgsInstance() {
2093         return new setEbgpMultihop_args();
2094       }
2095
2096       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2097         final org.apache.thrift.AsyncProcessFunction fcall = this;
2098         return new AsyncMethodCallback<Integer>() { 
2099           public void onComplete(Integer o) {
2100             setEbgpMultihop_result result = new setEbgpMultihop_result();
2101             result.success = o;
2102             result.setSuccessIsSet(true);
2103             try {
2104               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2105               return;
2106             } catch (Exception e) {
2107               LOGGER.error("Exception writing to internal frame buffer", e);
2108             }
2109             fb.close();
2110           }
2111           public void onError(Exception e) {
2112             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2113             org.apache.thrift.TBase msg;
2114             setEbgpMultihop_result result = new setEbgpMultihop_result();
2115             {
2116               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2117               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2118             }
2119             try {
2120               fcall.sendResponse(fb,msg,msgType,seqid);
2121               return;
2122             } catch (Exception ex) {
2123               LOGGER.error("Exception writing to internal frame buffer", ex);
2124             }
2125             fb.close();
2126           }
2127         };
2128       }
2129
2130       protected boolean isOneway() {
2131         return false;
2132       }
2133
2134       public void start(I iface, setEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2135         iface.setEbgpMultihop(args.peerIp, args.nHops,resultHandler);
2136       }
2137     }
2138
2139     public static class unsetEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetEbgpMultihop_args, Integer> {
2140       public unsetEbgpMultihop() {
2141         super("unsetEbgpMultihop");
2142       }
2143
2144       public unsetEbgpMultihop_args getEmptyArgsInstance() {
2145         return new unsetEbgpMultihop_args();
2146       }
2147
2148       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2149         final org.apache.thrift.AsyncProcessFunction fcall = this;
2150         return new AsyncMethodCallback<Integer>() { 
2151           public void onComplete(Integer o) {
2152             unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2153             result.success = o;
2154             result.setSuccessIsSet(true);
2155             try {
2156               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2157               return;
2158             } catch (Exception e) {
2159               LOGGER.error("Exception writing to internal frame buffer", e);
2160             }
2161             fb.close();
2162           }
2163           public void onError(Exception e) {
2164             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2165             org.apache.thrift.TBase msg;
2166             unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2167             {
2168               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2169               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2170             }
2171             try {
2172               fcall.sendResponse(fb,msg,msgType,seqid);
2173               return;
2174             } catch (Exception ex) {
2175               LOGGER.error("Exception writing to internal frame buffer", ex);
2176             }
2177             fb.close();
2178           }
2179         };
2180       }
2181
2182       protected boolean isOneway() {
2183         return false;
2184       }
2185
2186       public void start(I iface, unsetEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2187         iface.unsetEbgpMultihop(args.peerIp,resultHandler);
2188       }
2189     }
2190
2191     public static class setUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setUpdateSource_args, Integer> {
2192       public setUpdateSource() {
2193         super("setUpdateSource");
2194       }
2195
2196       public setUpdateSource_args getEmptyArgsInstance() {
2197         return new setUpdateSource_args();
2198       }
2199
2200       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2201         final org.apache.thrift.AsyncProcessFunction fcall = this;
2202         return new AsyncMethodCallback<Integer>() { 
2203           public void onComplete(Integer o) {
2204             setUpdateSource_result result = new setUpdateSource_result();
2205             result.success = o;
2206             result.setSuccessIsSet(true);
2207             try {
2208               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2209               return;
2210             } catch (Exception e) {
2211               LOGGER.error("Exception writing to internal frame buffer", e);
2212             }
2213             fb.close();
2214           }
2215           public void onError(Exception e) {
2216             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2217             org.apache.thrift.TBase msg;
2218             setUpdateSource_result result = new setUpdateSource_result();
2219             {
2220               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2221               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2222             }
2223             try {
2224               fcall.sendResponse(fb,msg,msgType,seqid);
2225               return;
2226             } catch (Exception ex) {
2227               LOGGER.error("Exception writing to internal frame buffer", ex);
2228             }
2229             fb.close();
2230           }
2231         };
2232       }
2233
2234       protected boolean isOneway() {
2235         return false;
2236       }
2237
2238       public void start(I iface, setUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2239         iface.setUpdateSource(args.peerIp, args.srcIp,resultHandler);
2240       }
2241     }
2242
2243     public static class unsetUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetUpdateSource_args, Integer> {
2244       public unsetUpdateSource() {
2245         super("unsetUpdateSource");
2246       }
2247
2248       public unsetUpdateSource_args getEmptyArgsInstance() {
2249         return new unsetUpdateSource_args();
2250       }
2251
2252       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2253         final org.apache.thrift.AsyncProcessFunction fcall = this;
2254         return new AsyncMethodCallback<Integer>() { 
2255           public void onComplete(Integer o) {
2256             unsetUpdateSource_result result = new unsetUpdateSource_result();
2257             result.success = o;
2258             result.setSuccessIsSet(true);
2259             try {
2260               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2261               return;
2262             } catch (Exception e) {
2263               LOGGER.error("Exception writing to internal frame buffer", e);
2264             }
2265             fb.close();
2266           }
2267           public void onError(Exception e) {
2268             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2269             org.apache.thrift.TBase msg;
2270             unsetUpdateSource_result result = new unsetUpdateSource_result();
2271             {
2272               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2273               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2274             }
2275             try {
2276               fcall.sendResponse(fb,msg,msgType,seqid);
2277               return;
2278             } catch (Exception ex) {
2279               LOGGER.error("Exception writing to internal frame buffer", ex);
2280             }
2281             fb.close();
2282           }
2283         };
2284       }
2285
2286       protected boolean isOneway() {
2287         return false;
2288       }
2289
2290       public void start(I iface, unsetUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2291         iface.unsetUpdateSource(args.peerIp,resultHandler);
2292       }
2293     }
2294
2295     public static class enableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableAddressFamily_args, Integer> {
2296       public enableAddressFamily() {
2297         super("enableAddressFamily");
2298       }
2299
2300       public enableAddressFamily_args getEmptyArgsInstance() {
2301         return new enableAddressFamily_args();
2302       }
2303
2304       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2305         final org.apache.thrift.AsyncProcessFunction fcall = this;
2306         return new AsyncMethodCallback<Integer>() { 
2307           public void onComplete(Integer o) {
2308             enableAddressFamily_result result = new enableAddressFamily_result();
2309             result.success = o;
2310             result.setSuccessIsSet(true);
2311             try {
2312               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2313               return;
2314             } catch (Exception e) {
2315               LOGGER.error("Exception writing to internal frame buffer", e);
2316             }
2317             fb.close();
2318           }
2319           public void onError(Exception e) {
2320             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2321             org.apache.thrift.TBase msg;
2322             enableAddressFamily_result result = new enableAddressFamily_result();
2323             {
2324               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2325               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2326             }
2327             try {
2328               fcall.sendResponse(fb,msg,msgType,seqid);
2329               return;
2330             } catch (Exception ex) {
2331               LOGGER.error("Exception writing to internal frame buffer", ex);
2332             }
2333             fb.close();
2334           }
2335         };
2336       }
2337
2338       protected boolean isOneway() {
2339         return false;
2340       }
2341
2342       public void start(I iface, enableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2343         iface.enableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
2344       }
2345     }
2346
2347     public static class disableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableAddressFamily_args, Integer> {
2348       public disableAddressFamily() {
2349         super("disableAddressFamily");
2350       }
2351
2352       public disableAddressFamily_args getEmptyArgsInstance() {
2353         return new disableAddressFamily_args();
2354       }
2355
2356       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2357         final org.apache.thrift.AsyncProcessFunction fcall = this;
2358         return new AsyncMethodCallback<Integer>() { 
2359           public void onComplete(Integer o) {
2360             disableAddressFamily_result result = new disableAddressFamily_result();
2361             result.success = o;
2362             result.setSuccessIsSet(true);
2363             try {
2364               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2365               return;
2366             } catch (Exception e) {
2367               LOGGER.error("Exception writing to internal frame buffer", e);
2368             }
2369             fb.close();
2370           }
2371           public void onError(Exception e) {
2372             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2373             org.apache.thrift.TBase msg;
2374             disableAddressFamily_result result = new disableAddressFamily_result();
2375             {
2376               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2377               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2378             }
2379             try {
2380               fcall.sendResponse(fb,msg,msgType,seqid);
2381               return;
2382             } catch (Exception ex) {
2383               LOGGER.error("Exception writing to internal frame buffer", ex);
2384             }
2385             fb.close();
2386           }
2387         };
2388       }
2389
2390       protected boolean isOneway() {
2391         return false;
2392       }
2393
2394       public void start(I iface, disableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2395         iface.disableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
2396       }
2397     }
2398
2399     public static class setLogConfig<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setLogConfig_args, Integer> {
2400       public setLogConfig() {
2401         super("setLogConfig");
2402       }
2403
2404       public setLogConfig_args getEmptyArgsInstance() {
2405         return new setLogConfig_args();
2406       }
2407
2408       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2409         final org.apache.thrift.AsyncProcessFunction fcall = this;
2410         return new AsyncMethodCallback<Integer>() { 
2411           public void onComplete(Integer o) {
2412             setLogConfig_result result = new setLogConfig_result();
2413             result.success = o;
2414             result.setSuccessIsSet(true);
2415             try {
2416               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2417               return;
2418             } catch (Exception e) {
2419               LOGGER.error("Exception writing to internal frame buffer", e);
2420             }
2421             fb.close();
2422           }
2423           public void onError(Exception e) {
2424             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2425             org.apache.thrift.TBase msg;
2426             setLogConfig_result result = new setLogConfig_result();
2427             {
2428               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2429               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2430             }
2431             try {
2432               fcall.sendResponse(fb,msg,msgType,seqid);
2433               return;
2434             } catch (Exception ex) {
2435               LOGGER.error("Exception writing to internal frame buffer", ex);
2436             }
2437             fb.close();
2438           }
2439         };
2440       }
2441
2442       protected boolean isOneway() {
2443         return false;
2444       }
2445
2446       public void start(I iface, setLogConfig_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2447         iface.setLogConfig(args.logFileName, args.logLevel,resultHandler);
2448       }
2449     }
2450
2451     public static class enableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableGracefulRestart_args, Integer> {
2452       public enableGracefulRestart() {
2453         super("enableGracefulRestart");
2454       }
2455
2456       public enableGracefulRestart_args getEmptyArgsInstance() {
2457         return new enableGracefulRestart_args();
2458       }
2459
2460       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2461         final org.apache.thrift.AsyncProcessFunction fcall = this;
2462         return new AsyncMethodCallback<Integer>() { 
2463           public void onComplete(Integer o) {
2464             enableGracefulRestart_result result = new enableGracefulRestart_result();
2465             result.success = o;
2466             result.setSuccessIsSet(true);
2467             try {
2468               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2469               return;
2470             } catch (Exception e) {
2471               LOGGER.error("Exception writing to internal frame buffer", e);
2472             }
2473             fb.close();
2474           }
2475           public void onError(Exception e) {
2476             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2477             org.apache.thrift.TBase msg;
2478             enableGracefulRestart_result result = new enableGracefulRestart_result();
2479             {
2480               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2481               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2482             }
2483             try {
2484               fcall.sendResponse(fb,msg,msgType,seqid);
2485               return;
2486             } catch (Exception ex) {
2487               LOGGER.error("Exception writing to internal frame buffer", ex);
2488             }
2489             fb.close();
2490           }
2491         };
2492       }
2493
2494       protected boolean isOneway() {
2495         return false;
2496       }
2497
2498       public void start(I iface, enableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2499         iface.enableGracefulRestart(args.stalepathTime,resultHandler);
2500       }
2501     }
2502
2503     public static class disableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableGracefulRestart_args, Integer> {
2504       public disableGracefulRestart() {
2505         super("disableGracefulRestart");
2506       }
2507
2508       public disableGracefulRestart_args getEmptyArgsInstance() {
2509         return new disableGracefulRestart_args();
2510       }
2511
2512       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2513         final org.apache.thrift.AsyncProcessFunction fcall = this;
2514         return new AsyncMethodCallback<Integer>() { 
2515           public void onComplete(Integer o) {
2516             disableGracefulRestart_result result = new disableGracefulRestart_result();
2517             result.success = o;
2518             result.setSuccessIsSet(true);
2519             try {
2520               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2521               return;
2522             } catch (Exception e) {
2523               LOGGER.error("Exception writing to internal frame buffer", e);
2524             }
2525             fb.close();
2526           }
2527           public void onError(Exception e) {
2528             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2529             org.apache.thrift.TBase msg;
2530             disableGracefulRestart_result result = new disableGracefulRestart_result();
2531             {
2532               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2533               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2534             }
2535             try {
2536               fcall.sendResponse(fb,msg,msgType,seqid);
2537               return;
2538             } catch (Exception ex) {
2539               LOGGER.error("Exception writing to internal frame buffer", ex);
2540             }
2541             fb.close();
2542           }
2543         };
2544       }
2545
2546       protected boolean isOneway() {
2547         return false;
2548       }
2549
2550       public void start(I iface, disableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2551         iface.disableGracefulRestart(resultHandler);
2552       }
2553     }
2554
2555     public static class getRoutes<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getRoutes_args, Routes> {
2556       public getRoutes() {
2557         super("getRoutes");
2558       }
2559
2560       public getRoutes_args getEmptyArgsInstance() {
2561         return new getRoutes_args();
2562       }
2563
2564       public AsyncMethodCallback<Routes> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2565         final org.apache.thrift.AsyncProcessFunction fcall = this;
2566         return new AsyncMethodCallback<Routes>() { 
2567           public void onComplete(Routes o) {
2568             getRoutes_result result = new getRoutes_result();
2569             result.success = o;
2570             try {
2571               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2572               return;
2573             } catch (Exception e) {
2574               LOGGER.error("Exception writing to internal frame buffer", e);
2575             }
2576             fb.close();
2577           }
2578           public void onError(Exception e) {
2579             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2580             org.apache.thrift.TBase msg;
2581             getRoutes_result result = new getRoutes_result();
2582             {
2583               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2584               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2585             }
2586             try {
2587               fcall.sendResponse(fb,msg,msgType,seqid);
2588               return;
2589             } catch (Exception ex) {
2590               LOGGER.error("Exception writing to internal frame buffer", ex);
2591             }
2592             fb.close();
2593           }
2594         };
2595       }
2596
2597       protected boolean isOneway() {
2598         return false;
2599       }
2600
2601       public void start(I iface, getRoutes_args args, org.apache.thrift.async.AsyncMethodCallback<Routes> resultHandler) throws TException {
2602         iface.getRoutes(args.optype, args.winSize,resultHandler);
2603       }
2604     }
2605
2606   }
2607
2608   public static class startBgp_args implements org.apache.thrift.TBase<startBgp_args, startBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_args>   {
2609     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_args");
2610
2611     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);
2612     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);
2613     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);
2614     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);
2615     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);
2616     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);
2617     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);
2618
2619     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
2620     static {
2621       schemes.put(StandardScheme.class, new startBgp_argsStandardSchemeFactory());
2622       schemes.put(TupleScheme.class, new startBgp_argsTupleSchemeFactory());
2623     }
2624
2625     public int asNumber; // required
2626     public String routerId; // required
2627     public int port; // required
2628     public int holdTime; // required
2629     public int keepAliveTime; // required
2630     public int stalepathTime; // required
2631     public boolean announceFbit; // required
2632
2633     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2634     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2635       AS_NUMBER((short)1, "asNumber"),
2636       ROUTER_ID((short)2, "routerId"),
2637       PORT((short)3, "port"),
2638       HOLD_TIME((short)4, "holdTime"),
2639       KEEP_ALIVE_TIME((short)5, "keepAliveTime"),
2640       STALEPATH_TIME((short)6, "stalepathTime"),
2641       ANNOUNCE_FBIT((short)7, "announceFbit");
2642
2643       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2644
2645       static {
2646         for (_Fields field : EnumSet.allOf(_Fields.class)) {
2647           byName.put(field.getFieldName(), field);
2648         }
2649       }
2650
2651       /**
2652        * Find the _Fields constant that matches fieldId, or null if its not found.
2653        */
2654       public static _Fields findByThriftId(int fieldId) {
2655         switch(fieldId) {
2656           case 1: // AS_NUMBER
2657             return AS_NUMBER;
2658           case 2: // ROUTER_ID
2659             return ROUTER_ID;
2660           case 3: // PORT
2661             return PORT;
2662           case 4: // HOLD_TIME
2663             return HOLD_TIME;
2664           case 5: // KEEP_ALIVE_TIME
2665             return KEEP_ALIVE_TIME;
2666           case 6: // STALEPATH_TIME
2667             return STALEPATH_TIME;
2668           case 7: // ANNOUNCE_FBIT
2669             return ANNOUNCE_FBIT;
2670           default:
2671             return null;
2672         }
2673       }
2674
2675       /**
2676        * Find the _Fields constant that matches fieldId, throwing an exception
2677        * if it is not found.
2678        */
2679       public static _Fields findByThriftIdOrThrow(int fieldId) {
2680         _Fields fields = findByThriftId(fieldId);
2681         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2682         return fields;
2683       }
2684
2685       /**
2686        * Find the _Fields constant that matches name, or null if its not found.
2687        */
2688       public static _Fields findByName(String name) {
2689         return byName.get(name);
2690       }
2691
2692       private final short _thriftId;
2693       private final String _fieldName;
2694
2695       _Fields(short thriftId, String fieldName) {
2696         _thriftId = thriftId;
2697         _fieldName = fieldName;
2698       }
2699
2700       public short getThriftFieldId() {
2701         return _thriftId;
2702       }
2703
2704       public String getFieldName() {
2705         return _fieldName;
2706       }
2707     }
2708
2709     // isset id assignments
2710     private static final int __ASNUMBER_ISSET_ID = 0;
2711     private static final int __PORT_ISSET_ID = 1;
2712     private static final int __HOLDTIME_ISSET_ID = 2;
2713     private static final int __KEEPALIVETIME_ISSET_ID = 3;
2714     private static final int __STALEPATHTIME_ISSET_ID = 4;
2715     private static final int __ANNOUNCEFBIT_ISSET_ID = 5;
2716     private byte __isset_bitfield = 0;
2717     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2718     static {
2719       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2720       tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2721           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2722       tmpMap.put(_Fields.ROUTER_ID, new org.apache.thrift.meta_data.FieldMetaData("routerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2723           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2724       tmpMap.put(_Fields.PORT, new org.apache.thrift.meta_data.FieldMetaData("port", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2725           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2726       tmpMap.put(_Fields.HOLD_TIME, new org.apache.thrift.meta_data.FieldMetaData("holdTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2727           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2728       tmpMap.put(_Fields.KEEP_ALIVE_TIME, new org.apache.thrift.meta_data.FieldMetaData("keepAliveTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2729           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2730       tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2731           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2732       tmpMap.put(_Fields.ANNOUNCE_FBIT, new org.apache.thrift.meta_data.FieldMetaData("announceFbit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2733           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
2734       metaDataMap = Collections.unmodifiableMap(tmpMap);
2735       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_args.class, metaDataMap);
2736     }
2737
2738     public startBgp_args() {
2739     }
2740
2741     public startBgp_args(
2742       int asNumber,
2743       String routerId,
2744       int port,
2745       int holdTime,
2746       int keepAliveTime,
2747       int stalepathTime,
2748       boolean announceFbit)
2749     {
2750       this();
2751       this.asNumber = asNumber;
2752       setAsNumberIsSet(true);
2753       this.routerId = routerId;
2754       this.port = port;
2755       setPortIsSet(true);
2756       this.holdTime = holdTime;
2757       setHoldTimeIsSet(true);
2758       this.keepAliveTime = keepAliveTime;
2759       setKeepAliveTimeIsSet(true);
2760       this.stalepathTime = stalepathTime;
2761       setStalepathTimeIsSet(true);
2762       this.announceFbit = announceFbit;
2763       setAnnounceFbitIsSet(true);
2764     }
2765
2766     /**
2767      * Performs a deep copy on <i>other</i>.
2768      */
2769     public startBgp_args(startBgp_args other) {
2770       __isset_bitfield = other.__isset_bitfield;
2771       this.asNumber = other.asNumber;
2772       if (other.isSetRouterId()) {
2773         this.routerId = other.routerId;
2774       }
2775       this.port = other.port;
2776       this.holdTime = other.holdTime;
2777       this.keepAliveTime = other.keepAliveTime;
2778       this.stalepathTime = other.stalepathTime;
2779       this.announceFbit = other.announceFbit;
2780     }
2781
2782     public startBgp_args deepCopy() {
2783       return new startBgp_args(this);
2784     }
2785
2786     @Override
2787     public void clear() {
2788       setAsNumberIsSet(false);
2789       this.asNumber = 0;
2790       this.routerId = null;
2791       setPortIsSet(false);
2792       this.port = 0;
2793       setHoldTimeIsSet(false);
2794       this.holdTime = 0;
2795       setKeepAliveTimeIsSet(false);
2796       this.keepAliveTime = 0;
2797       setStalepathTimeIsSet(false);
2798       this.stalepathTime = 0;
2799       setAnnounceFbitIsSet(false);
2800       this.announceFbit = false;
2801     }
2802
2803     public int getAsNumber() {
2804       return this.asNumber;
2805     }
2806
2807     public startBgp_args setAsNumber(int asNumber) {
2808       this.asNumber = asNumber;
2809       setAsNumberIsSet(true);
2810       return this;
2811     }
2812
2813     public void unsetAsNumber() {
2814       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
2815     }
2816
2817     /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
2818     public boolean isSetAsNumber() {
2819       return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
2820     }
2821
2822     public void setAsNumberIsSet(boolean value) {
2823       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
2824     }
2825
2826     public String getRouterId() {
2827       return this.routerId;
2828     }
2829
2830     public startBgp_args setRouterId(String routerId) {
2831       this.routerId = routerId;
2832       return this;
2833     }
2834
2835     public void unsetRouterId() {
2836       this.routerId = null;
2837     }
2838
2839     /** Returns true if field routerId is set (has been assigned a value) and false otherwise */
2840     public boolean isSetRouterId() {
2841       return this.routerId != null;
2842     }
2843
2844     public void setRouterIdIsSet(boolean value) {
2845       if (!value) {
2846         this.routerId = null;
2847       }
2848     }
2849
2850     public int getPort() {
2851       return this.port;
2852     }
2853
2854     public startBgp_args setPort(int port) {
2855       this.port = port;
2856       setPortIsSet(true);
2857       return this;
2858     }
2859
2860     public void unsetPort() {
2861       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PORT_ISSET_ID);
2862     }
2863
2864     /** Returns true if field port is set (has been assigned a value) and false otherwise */
2865     public boolean isSetPort() {
2866       return EncodingUtils.testBit(__isset_bitfield, __PORT_ISSET_ID);
2867     }
2868
2869     public void setPortIsSet(boolean value) {
2870       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PORT_ISSET_ID, value);
2871     }
2872
2873     public int getHoldTime() {
2874       return this.holdTime;
2875     }
2876
2877     public startBgp_args setHoldTime(int holdTime) {
2878       this.holdTime = holdTime;
2879       setHoldTimeIsSet(true);
2880       return this;
2881     }
2882
2883     public void unsetHoldTime() {
2884       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
2885     }
2886
2887     /** Returns true if field holdTime is set (has been assigned a value) and false otherwise */
2888     public boolean isSetHoldTime() {
2889       return EncodingUtils.testBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
2890     }
2891
2892     public void setHoldTimeIsSet(boolean value) {
2893       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HOLDTIME_ISSET_ID, value);
2894     }
2895
2896     public int getKeepAliveTime() {
2897       return this.keepAliveTime;
2898     }
2899
2900     public startBgp_args setKeepAliveTime(int keepAliveTime) {
2901       this.keepAliveTime = keepAliveTime;
2902       setKeepAliveTimeIsSet(true);
2903       return this;
2904     }
2905
2906     public void unsetKeepAliveTime() {
2907       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
2908     }
2909
2910     /** Returns true if field keepAliveTime is set (has been assigned a value) and false otherwise */
2911     public boolean isSetKeepAliveTime() {
2912       return EncodingUtils.testBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
2913     }
2914
2915     public void setKeepAliveTimeIsSet(boolean value) {
2916       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID, value);
2917     }
2918
2919     public int getStalepathTime() {
2920       return this.stalepathTime;
2921     }
2922
2923     public startBgp_args setStalepathTime(int stalepathTime) {
2924       this.stalepathTime = stalepathTime;
2925       setStalepathTimeIsSet(true);
2926       return this;
2927     }
2928
2929     public void unsetStalepathTime() {
2930       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
2931     }
2932
2933     /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
2934     public boolean isSetStalepathTime() {
2935       return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
2936     }
2937
2938     public void setStalepathTimeIsSet(boolean value) {
2939       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
2940     }
2941
2942     public boolean isAnnounceFbit() {
2943       return this.announceFbit;
2944     }
2945
2946     public startBgp_args setAnnounceFbit(boolean announceFbit) {
2947       this.announceFbit = announceFbit;
2948       setAnnounceFbitIsSet(true);
2949       return this;
2950     }
2951
2952     public void unsetAnnounceFbit() {
2953       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ANNOUNCEFBIT_ISSET_ID);
2954     }
2955
2956     /** Returns true if field announceFbit is set (has been assigned a value) and false otherwise */
2957     public boolean isSetAnnounceFbit() {
2958       return EncodingUtils.testBit(__isset_bitfield, __ANNOUNCEFBIT_ISSET_ID);
2959     }
2960
2961     public void setAnnounceFbitIsSet(boolean value) {
2962       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ANNOUNCEFBIT_ISSET_ID, value);
2963     }
2964
2965     public void setFieldValue(_Fields field, Object value) {
2966       switch (field) {
2967       case AS_NUMBER:
2968         if (value == null) {
2969           unsetAsNumber();
2970         } else {
2971           setAsNumber((Integer)value);
2972         }
2973         break;
2974
2975       case ROUTER_ID:
2976         if (value == null) {
2977           unsetRouterId();
2978         } else {
2979           setRouterId((String)value);
2980         }
2981         break;
2982
2983       case PORT:
2984         if (value == null) {
2985           unsetPort();
2986         } else {
2987           setPort((Integer)value);
2988         }
2989         break;
2990
2991       case HOLD_TIME:
2992         if (value == null) {
2993           unsetHoldTime();
2994         } else {
2995           setHoldTime((Integer)value);
2996         }
2997         break;
2998
2999       case KEEP_ALIVE_TIME:
3000         if (value == null) {
3001           unsetKeepAliveTime();
3002         } else {
3003           setKeepAliveTime((Integer)value);
3004         }
3005         break;
3006
3007       case STALEPATH_TIME:
3008         if (value == null) {
3009           unsetStalepathTime();
3010         } else {
3011           setStalepathTime((Integer)value);
3012         }
3013         break;
3014
3015       case ANNOUNCE_FBIT:
3016         if (value == null) {
3017           unsetAnnounceFbit();
3018         } else {
3019           setAnnounceFbit((Boolean)value);
3020         }
3021         break;
3022
3023       }
3024     }
3025
3026     public Object getFieldValue(_Fields field) {
3027       switch (field) {
3028       case AS_NUMBER:
3029         return Integer.valueOf(getAsNumber());
3030
3031       case ROUTER_ID:
3032         return getRouterId();
3033
3034       case PORT:
3035         return Integer.valueOf(getPort());
3036
3037       case HOLD_TIME:
3038         return Integer.valueOf(getHoldTime());
3039
3040       case KEEP_ALIVE_TIME:
3041         return Integer.valueOf(getKeepAliveTime());
3042
3043       case STALEPATH_TIME:
3044         return Integer.valueOf(getStalepathTime());
3045
3046       case ANNOUNCE_FBIT:
3047         return Boolean.valueOf(isAnnounceFbit());
3048
3049       }
3050       throw new IllegalStateException();
3051     }
3052
3053     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3054     public boolean isSet(_Fields field) {
3055       if (field == null) {
3056         throw new IllegalArgumentException();
3057       }
3058
3059       switch (field) {
3060       case AS_NUMBER:
3061         return isSetAsNumber();
3062       case ROUTER_ID:
3063         return isSetRouterId();
3064       case PORT:
3065         return isSetPort();
3066       case HOLD_TIME:
3067         return isSetHoldTime();
3068       case KEEP_ALIVE_TIME:
3069         return isSetKeepAliveTime();
3070       case STALEPATH_TIME:
3071         return isSetStalepathTime();
3072       case ANNOUNCE_FBIT:
3073         return isSetAnnounceFbit();
3074       }
3075       throw new IllegalStateException();
3076     }
3077
3078     @Override
3079     public boolean equals(Object that) {
3080       if (that == null)
3081         return false;
3082       if (that instanceof startBgp_args)
3083         return this.equals((startBgp_args)that);
3084       return false;
3085     }
3086
3087     public boolean equals(startBgp_args that) {
3088       if (that == null)
3089         return false;
3090
3091       boolean this_present_asNumber = true;
3092       boolean that_present_asNumber = true;
3093       if (this_present_asNumber || that_present_asNumber) {
3094         if (!(this_present_asNumber && that_present_asNumber))
3095           return false;
3096         if (this.asNumber != that.asNumber)
3097           return false;
3098       }
3099
3100       boolean this_present_routerId = true && this.isSetRouterId();
3101       boolean that_present_routerId = true && that.isSetRouterId();
3102       if (this_present_routerId || that_present_routerId) {
3103         if (!(this_present_routerId && that_present_routerId))
3104           return false;
3105         if (!this.routerId.equals(that.routerId))
3106           return false;
3107       }
3108
3109       boolean this_present_port = true;
3110       boolean that_present_port = true;
3111       if (this_present_port || that_present_port) {
3112         if (!(this_present_port && that_present_port))
3113           return false;
3114         if (this.port != that.port)
3115           return false;
3116       }
3117
3118       boolean this_present_holdTime = true;
3119       boolean that_present_holdTime = true;
3120       if (this_present_holdTime || that_present_holdTime) {
3121         if (!(this_present_holdTime && that_present_holdTime))
3122           return false;
3123         if (this.holdTime != that.holdTime)
3124           return false;
3125       }
3126
3127       boolean this_present_keepAliveTime = true;
3128       boolean that_present_keepAliveTime = true;
3129       if (this_present_keepAliveTime || that_present_keepAliveTime) {
3130         if (!(this_present_keepAliveTime && that_present_keepAliveTime))
3131           return false;
3132         if (this.keepAliveTime != that.keepAliveTime)
3133           return false;
3134       }
3135
3136       boolean this_present_stalepathTime = true;
3137       boolean that_present_stalepathTime = true;
3138       if (this_present_stalepathTime || that_present_stalepathTime) {
3139         if (!(this_present_stalepathTime && that_present_stalepathTime))
3140           return false;
3141         if (this.stalepathTime != that.stalepathTime)
3142           return false;
3143       }
3144
3145       boolean this_present_announceFbit = true;
3146       boolean that_present_announceFbit = true;
3147       if (this_present_announceFbit || that_present_announceFbit) {
3148         if (!(this_present_announceFbit && that_present_announceFbit))
3149           return false;
3150         if (this.announceFbit != that.announceFbit)
3151           return false;
3152       }
3153
3154       return true;
3155     }
3156
3157     @Override
3158     public int hashCode() {
3159       return 0;
3160     }
3161
3162     @Override
3163     public int compareTo(startBgp_args other) {
3164       if (!getClass().equals(other.getClass())) {
3165         return getClass().getName().compareTo(other.getClass().getName());
3166       }
3167
3168       int lastComparison = 0;
3169
3170       lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
3171       if (lastComparison != 0) {
3172         return lastComparison;
3173       }
3174       if (isSetAsNumber()) {
3175         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
3176         if (lastComparison != 0) {
3177           return lastComparison;
3178         }
3179       }
3180       lastComparison = Boolean.valueOf(isSetRouterId()).compareTo(other.isSetRouterId());
3181       if (lastComparison != 0) {
3182         return lastComparison;
3183       }
3184       if (isSetRouterId()) {
3185         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routerId, other.routerId);
3186         if (lastComparison != 0) {
3187           return lastComparison;
3188         }
3189       }
3190       lastComparison = Boolean.valueOf(isSetPort()).compareTo(other.isSetPort());
3191       if (lastComparison != 0) {
3192         return lastComparison;
3193       }
3194       if (isSetPort()) {
3195         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, other.port);
3196         if (lastComparison != 0) {
3197           return lastComparison;
3198         }
3199       }
3200       lastComparison = Boolean.valueOf(isSetHoldTime()).compareTo(other.isSetHoldTime());
3201       if (lastComparison != 0) {
3202         return lastComparison;
3203       }
3204       if (isSetHoldTime()) {
3205         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdTime, other.holdTime);
3206         if (lastComparison != 0) {
3207           return lastComparison;
3208         }
3209       }
3210       lastComparison = Boolean.valueOf(isSetKeepAliveTime()).compareTo(other.isSetKeepAliveTime());
3211       if (lastComparison != 0) {
3212         return lastComparison;
3213       }
3214       if (isSetKeepAliveTime()) {
3215         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keepAliveTime, other.keepAliveTime);
3216         if (lastComparison != 0) {
3217           return lastComparison;
3218         }
3219       }
3220       lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
3221       if (lastComparison != 0) {
3222         return lastComparison;
3223       }
3224       if (isSetStalepathTime()) {
3225         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
3226         if (lastComparison != 0) {
3227           return lastComparison;
3228         }
3229       }
3230       lastComparison = Boolean.valueOf(isSetAnnounceFbit()).compareTo(other.isSetAnnounceFbit());
3231       if (lastComparison != 0) {
3232         return lastComparison;
3233       }
3234       if (isSetAnnounceFbit()) {
3235         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.announceFbit, other.announceFbit);
3236         if (lastComparison != 0) {
3237           return lastComparison;
3238         }
3239       }
3240       return 0;
3241     }
3242
3243     public _Fields fieldForId(int fieldId) {
3244       return _Fields.findByThriftId(fieldId);
3245     }
3246
3247     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3248       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3249     }
3250
3251     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3252       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3253     }
3254
3255     @Override
3256     public String toString() {
3257       StringBuilder sb = new StringBuilder("startBgp_args(");
3258       boolean first = true;
3259
3260       sb.append("asNumber:");
3261       sb.append(this.asNumber);
3262       first = false;
3263       if (!first) sb.append(", ");
3264       sb.append("routerId:");
3265       if (this.routerId == null) {
3266         sb.append("null");
3267       } else {
3268         sb.append(this.routerId);
3269       }
3270       first = false;
3271       if (!first) sb.append(", ");
3272       sb.append("port:");
3273       sb.append(this.port);
3274       first = false;
3275       if (!first) sb.append(", ");
3276       sb.append("holdTime:");
3277       sb.append(this.holdTime);
3278       first = false;
3279       if (!first) sb.append(", ");
3280       sb.append("keepAliveTime:");
3281       sb.append(this.keepAliveTime);
3282       first = false;
3283       if (!first) sb.append(", ");
3284       sb.append("stalepathTime:");
3285       sb.append(this.stalepathTime);
3286       first = false;
3287       if (!first) sb.append(", ");
3288       sb.append("announceFbit:");
3289       sb.append(this.announceFbit);
3290       first = false;
3291       sb.append(")");
3292       return sb.toString();
3293     }
3294
3295     public void validate() throws org.apache.thrift.TException {
3296       // check for required fields
3297       // check for sub-struct validity
3298     }
3299
3300     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3301       try {
3302         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3303       } catch (org.apache.thrift.TException te) {
3304         throw new java.io.IOException(te);
3305       }
3306     }
3307
3308     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3309       try {
3310         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3311         __isset_bitfield = 0;
3312         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3313       } catch (org.apache.thrift.TException te) {
3314         throw new java.io.IOException(te);
3315       }
3316     }
3317
3318     private static class startBgp_argsStandardSchemeFactory implements SchemeFactory {
3319       public startBgp_argsStandardScheme getScheme() {
3320         return new startBgp_argsStandardScheme();
3321       }
3322     }
3323
3324     private static class startBgp_argsStandardScheme extends StandardScheme<startBgp_args> {
3325
3326       public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_args struct) throws org.apache.thrift.TException {
3327         org.apache.thrift.protocol.TField schemeField;
3328         iprot.readStructBegin();
3329         while (true)
3330         {
3331           schemeField = iprot.readFieldBegin();
3332           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
3333             break;
3334           }
3335           switch (schemeField.id) {
3336             case 1: // AS_NUMBER
3337               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3338                 struct.asNumber = iprot.readI32();
3339                 struct.setAsNumberIsSet(true);
3340               } else { 
3341                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3342               }
3343               break;
3344             case 2: // ROUTER_ID
3345               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
3346                 struct.routerId = iprot.readString();
3347                 struct.setRouterIdIsSet(true);
3348               } else { 
3349                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3350               }
3351               break;
3352             case 3: // PORT
3353               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3354                 struct.port = iprot.readI32();
3355                 struct.setPortIsSet(true);
3356               } else { 
3357                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3358               }
3359               break;
3360             case 4: // HOLD_TIME
3361               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3362                 struct.holdTime = iprot.readI32();
3363                 struct.setHoldTimeIsSet(true);
3364               } else { 
3365                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3366               }
3367               break;
3368             case 5: // KEEP_ALIVE_TIME
3369               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3370                 struct.keepAliveTime = iprot.readI32();
3371                 struct.setKeepAliveTimeIsSet(true);
3372               } else { 
3373                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3374               }
3375               break;
3376             case 6: // STALEPATH_TIME
3377               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3378                 struct.stalepathTime = iprot.readI32();
3379                 struct.setStalepathTimeIsSet(true);
3380               } else { 
3381                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3382               }
3383               break;
3384             case 7: // ANNOUNCE_FBIT
3385               if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
3386                 struct.announceFbit = iprot.readBool();
3387                 struct.setAnnounceFbitIsSet(true);
3388               } else { 
3389                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3390               }
3391               break;
3392             default:
3393               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3394           }
3395           iprot.readFieldEnd();
3396         }
3397         iprot.readStructEnd();
3398
3399         // check for required fields of primitive type, which can't be checked in the validate method
3400         struct.validate();
3401       }
3402
3403       public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_args struct) throws org.apache.thrift.TException {
3404         struct.validate();
3405
3406         oprot.writeStructBegin(STRUCT_DESC);
3407         oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
3408         oprot.writeI32(struct.asNumber);
3409         oprot.writeFieldEnd();
3410         if (struct.routerId != null) {
3411           oprot.writeFieldBegin(ROUTER_ID_FIELD_DESC);
3412           oprot.writeString(struct.routerId);
3413           oprot.writeFieldEnd();
3414         }
3415         oprot.writeFieldBegin(PORT_FIELD_DESC);
3416         oprot.writeI32(struct.port);
3417         oprot.writeFieldEnd();
3418         oprot.writeFieldBegin(HOLD_TIME_FIELD_DESC);
3419         oprot.writeI32(struct.holdTime);
3420         oprot.writeFieldEnd();
3421         oprot.writeFieldBegin(KEEP_ALIVE_TIME_FIELD_DESC);
3422         oprot.writeI32(struct.keepAliveTime);
3423         oprot.writeFieldEnd();
3424         oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
3425         oprot.writeI32(struct.stalepathTime);
3426         oprot.writeFieldEnd();
3427         oprot.writeFieldBegin(ANNOUNCE_FBIT_FIELD_DESC);
3428         oprot.writeBool(struct.announceFbit);
3429         oprot.writeFieldEnd();
3430         oprot.writeFieldStop();
3431         oprot.writeStructEnd();
3432       }
3433
3434     }
3435
3436     private static class startBgp_argsTupleSchemeFactory implements SchemeFactory {
3437       public startBgp_argsTupleScheme getScheme() {
3438         return new startBgp_argsTupleScheme();
3439       }
3440     }
3441
3442     private static class startBgp_argsTupleScheme extends TupleScheme<startBgp_args> {
3443
3444       @Override
3445       public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
3446         TTupleProtocol oprot = (TTupleProtocol) prot;
3447         BitSet optionals = new BitSet();
3448         if (struct.isSetAsNumber()) {
3449           optionals.set(0);
3450         }
3451         if (struct.isSetRouterId()) {
3452           optionals.set(1);
3453         }
3454         if (struct.isSetPort()) {
3455           optionals.set(2);
3456         }
3457         if (struct.isSetHoldTime()) {
3458           optionals.set(3);
3459         }
3460         if (struct.isSetKeepAliveTime()) {
3461           optionals.set(4);
3462         }
3463         if (struct.isSetStalepathTime()) {
3464           optionals.set(5);
3465         }
3466         if (struct.isSetAnnounceFbit()) {
3467           optionals.set(6);
3468         }
3469         oprot.writeBitSet(optionals, 7);
3470         if (struct.isSetAsNumber()) {
3471           oprot.writeI32(struct.asNumber);
3472         }
3473         if (struct.isSetRouterId()) {
3474           oprot.writeString(struct.routerId);
3475         }
3476         if (struct.isSetPort()) {
3477           oprot.writeI32(struct.port);
3478         }
3479         if (struct.isSetHoldTime()) {
3480           oprot.writeI32(struct.holdTime);
3481         }
3482         if (struct.isSetKeepAliveTime()) {
3483           oprot.writeI32(struct.keepAliveTime);
3484         }
3485         if (struct.isSetStalepathTime()) {
3486           oprot.writeI32(struct.stalepathTime);
3487         }
3488         if (struct.isSetAnnounceFbit()) {
3489           oprot.writeBool(struct.announceFbit);
3490         }
3491       }
3492
3493       @Override
3494       public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
3495         TTupleProtocol iprot = (TTupleProtocol) prot;
3496         BitSet incoming = iprot.readBitSet(7);
3497         if (incoming.get(0)) {
3498           struct.asNumber = iprot.readI32();
3499           struct.setAsNumberIsSet(true);
3500         }
3501         if (incoming.get(1)) {
3502           struct.routerId = iprot.readString();
3503           struct.setRouterIdIsSet(true);
3504         }
3505         if (incoming.get(2)) {
3506           struct.port = iprot.readI32();
3507           struct.setPortIsSet(true);
3508         }
3509         if (incoming.get(3)) {
3510           struct.holdTime = iprot.readI32();
3511           struct.setHoldTimeIsSet(true);
3512         }
3513         if (incoming.get(4)) {
3514           struct.keepAliveTime = iprot.readI32();
3515           struct.setKeepAliveTimeIsSet(true);
3516         }
3517         if (incoming.get(5)) {
3518           struct.stalepathTime = iprot.readI32();
3519           struct.setStalepathTimeIsSet(true);
3520         }
3521         if (incoming.get(6)) {
3522           struct.announceFbit = iprot.readBool();
3523           struct.setAnnounceFbitIsSet(true);
3524         }
3525       }
3526     }
3527
3528   }
3529
3530   public static class startBgp_result implements org.apache.thrift.TBase<startBgp_result, startBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_result>   {
3531     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_result");
3532
3533     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);
3534
3535     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3536     static {
3537       schemes.put(StandardScheme.class, new startBgp_resultStandardSchemeFactory());
3538       schemes.put(TupleScheme.class, new startBgp_resultTupleSchemeFactory());
3539     }
3540
3541     public int success; // required
3542
3543     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3544     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3545       SUCCESS((short)0, "success");
3546
3547       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3548
3549       static {
3550         for (_Fields field : EnumSet.allOf(_Fields.class)) {
3551           byName.put(field.getFieldName(), field);
3552         }
3553       }
3554
3555       /**
3556        * Find the _Fields constant that matches fieldId, or null if its not found.
3557        */
3558       public static _Fields findByThriftId(int fieldId) {
3559         switch(fieldId) {
3560           case 0: // SUCCESS
3561             return SUCCESS;
3562           default:
3563             return null;
3564         }
3565       }
3566
3567       /**
3568        * Find the _Fields constant that matches fieldId, throwing an exception
3569        * if it is not found.
3570        */
3571       public static _Fields findByThriftIdOrThrow(int fieldId) {
3572         _Fields fields = findByThriftId(fieldId);
3573         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3574         return fields;
3575       }
3576
3577       /**
3578        * Find the _Fields constant that matches name, or null if its not found.
3579        */
3580       public static _Fields findByName(String name) {
3581         return byName.get(name);
3582       }
3583
3584       private final short _thriftId;
3585       private final String _fieldName;
3586
3587       _Fields(short thriftId, String fieldName) {
3588         _thriftId = thriftId;
3589         _fieldName = fieldName;
3590       }
3591
3592       public short getThriftFieldId() {
3593         return _thriftId;
3594       }
3595
3596       public String getFieldName() {
3597         return _fieldName;
3598       }
3599     }
3600
3601     // isset id assignments
3602     private static final int __SUCCESS_ISSET_ID = 0;
3603     private byte __isset_bitfield = 0;
3604     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3605     static {
3606       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3607       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3608           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3609       metaDataMap = Collections.unmodifiableMap(tmpMap);
3610       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_result.class, metaDataMap);
3611     }
3612
3613     public startBgp_result() {
3614     }
3615
3616     public startBgp_result(
3617       int success)
3618     {
3619       this();
3620       this.success = success;
3621       setSuccessIsSet(true);
3622     }
3623
3624     /**
3625      * Performs a deep copy on <i>other</i>.
3626      */
3627     public startBgp_result(startBgp_result other) {
3628       __isset_bitfield = other.__isset_bitfield;
3629       this.success = other.success;
3630     }
3631
3632     public startBgp_result deepCopy() {
3633       return new startBgp_result(this);
3634     }
3635
3636     @Override
3637     public void clear() {
3638       setSuccessIsSet(false);
3639       this.success = 0;
3640     }
3641
3642     public int getSuccess() {
3643       return this.success;
3644     }
3645
3646     public startBgp_result setSuccess(int success) {
3647       this.success = success;
3648       setSuccessIsSet(true);
3649       return this;
3650     }
3651
3652     public void unsetSuccess() {
3653       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
3654     }
3655
3656     /** Returns true if field success is set (has been assigned a value) and false otherwise */
3657     public boolean isSetSuccess() {
3658       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
3659     }
3660
3661     public void setSuccessIsSet(boolean value) {
3662       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
3663     }
3664
3665     public void setFieldValue(_Fields field, Object value) {
3666       switch (field) {
3667       case SUCCESS:
3668         if (value == null) {
3669           unsetSuccess();
3670         } else {
3671           setSuccess((Integer)value);
3672         }
3673         break;
3674
3675       }
3676     }
3677
3678     public Object getFieldValue(_Fields field) {
3679       switch (field) {
3680       case SUCCESS:
3681         return Integer.valueOf(getSuccess());
3682
3683       }
3684       throw new IllegalStateException();
3685     }
3686
3687     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3688     public boolean isSet(_Fields field) {
3689       if (field == null) {
3690         throw new IllegalArgumentException();
3691       }
3692
3693       switch (field) {
3694       case SUCCESS:
3695         return isSetSuccess();
3696       }
3697       throw new IllegalStateException();
3698     }
3699
3700     @Override
3701     public boolean equals(Object that) {
3702       if (that == null)
3703         return false;
3704       if (that instanceof startBgp_result)
3705         return this.equals((startBgp_result)that);
3706       return false;
3707     }
3708
3709     public boolean equals(startBgp_result that) {
3710       if (that == null)
3711         return false;
3712
3713       boolean this_present_success = true;
3714       boolean that_present_success = true;
3715       if (this_present_success || that_present_success) {
3716         if (!(this_present_success && that_present_success))
3717           return false;
3718         if (this.success != that.success)
3719           return false;
3720       }
3721
3722       return true;
3723     }
3724
3725     @Override
3726     public int hashCode() {
3727       return 0;
3728     }
3729
3730     @Override
3731     public int compareTo(startBgp_result other) {
3732       if (!getClass().equals(other.getClass())) {
3733         return getClass().getName().compareTo(other.getClass().getName());
3734       }
3735
3736       int lastComparison = 0;
3737
3738       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
3739       if (lastComparison != 0) {
3740         return lastComparison;
3741       }
3742       if (isSetSuccess()) {
3743         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
3744         if (lastComparison != 0) {
3745           return lastComparison;
3746         }
3747       }
3748       return 0;
3749     }
3750
3751     public _Fields fieldForId(int fieldId) {
3752       return _Fields.findByThriftId(fieldId);
3753     }
3754
3755     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3756       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3757     }
3758
3759     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3760       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3761       }
3762
3763     @Override
3764     public String toString() {
3765       StringBuilder sb = new StringBuilder("startBgp_result(");
3766       boolean first = true;
3767
3768       sb.append("success:");
3769       sb.append(this.success);
3770       first = false;
3771       sb.append(")");
3772       return sb.toString();
3773     }
3774
3775     public void validate() throws org.apache.thrift.TException {
3776       // check for required fields
3777       // check for sub-struct validity
3778     }
3779
3780     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3781       try {
3782         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3783       } catch (org.apache.thrift.TException te) {
3784         throw new java.io.IOException(te);
3785       }
3786     }
3787
3788     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3789       try {
3790         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3791         __isset_bitfield = 0;
3792         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3793       } catch (org.apache.thrift.TException te) {
3794         throw new java.io.IOException(te);
3795       }
3796     }
3797
3798     private static class startBgp_resultStandardSchemeFactory implements SchemeFactory {
3799       public startBgp_resultStandardScheme getScheme() {
3800         return new startBgp_resultStandardScheme();
3801       }
3802     }
3803
3804     private static class startBgp_resultStandardScheme extends StandardScheme<startBgp_result> {
3805
3806       public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_result struct) throws org.apache.thrift.TException {
3807         org.apache.thrift.protocol.TField schemeField;
3808         iprot.readStructBegin();
3809         while (true)
3810         {
3811           schemeField = iprot.readFieldBegin();
3812           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
3813             break;
3814           }
3815           switch (schemeField.id) {
3816             case 0: // SUCCESS
3817               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3818                 struct.success = iprot.readI32();
3819                 struct.setSuccessIsSet(true);
3820               } else { 
3821                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3822               }
3823               break;
3824             default:
3825               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3826           }
3827           iprot.readFieldEnd();
3828         }
3829         iprot.readStructEnd();
3830
3831         // check for required fields of primitive type, which can't be checked in the validate method
3832         struct.validate();
3833       }
3834
3835       public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_result struct) throws org.apache.thrift.TException {
3836         struct.validate();
3837
3838         oprot.writeStructBegin(STRUCT_DESC);
3839         if (struct.isSetSuccess()) {
3840           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3841           oprot.writeI32(struct.success);
3842           oprot.writeFieldEnd();
3843         }
3844         oprot.writeFieldStop();
3845         oprot.writeStructEnd();
3846       }
3847
3848     }
3849
3850     private static class startBgp_resultTupleSchemeFactory implements SchemeFactory {
3851       public startBgp_resultTupleScheme getScheme() {
3852         return new startBgp_resultTupleScheme();
3853       }
3854     }
3855
3856     private static class startBgp_resultTupleScheme extends TupleScheme<startBgp_result> {
3857
3858       @Override
3859       public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
3860         TTupleProtocol oprot = (TTupleProtocol) prot;
3861         BitSet optionals = new BitSet();
3862         if (struct.isSetSuccess()) {
3863           optionals.set(0);
3864         }
3865         oprot.writeBitSet(optionals, 1);
3866         if (struct.isSetSuccess()) {
3867           oprot.writeI32(struct.success);
3868         }
3869       }
3870
3871       @Override
3872       public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
3873         TTupleProtocol iprot = (TTupleProtocol) prot;
3874         BitSet incoming = iprot.readBitSet(1);
3875         if (incoming.get(0)) {
3876           struct.success = iprot.readI32();
3877           struct.setSuccessIsSet(true);
3878         }
3879       }
3880     }
3881
3882   }
3883
3884   public static class stopBgp_args implements org.apache.thrift.TBase<stopBgp_args, stopBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_args>   {
3885     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_args");
3886
3887     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);
3888
3889     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3890     static {
3891       schemes.put(StandardScheme.class, new stopBgp_argsStandardSchemeFactory());
3892       schemes.put(TupleScheme.class, new stopBgp_argsTupleSchemeFactory());
3893     }
3894
3895     public int asNumber; // required
3896
3897     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3898     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3899       AS_NUMBER((short)1, "asNumber");
3900
3901       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3902
3903       static {
3904         for (_Fields field : EnumSet.allOf(_Fields.class)) {
3905           byName.put(field.getFieldName(), field);
3906         }
3907       }
3908
3909       /**
3910        * Find the _Fields constant that matches fieldId, or null if its not found.
3911        */
3912       public static _Fields findByThriftId(int fieldId) {
3913         switch(fieldId) {
3914           case 1: // AS_NUMBER
3915             return AS_NUMBER;
3916           default:
3917             return null;
3918         }
3919       }
3920
3921       /**
3922        * Find the _Fields constant that matches fieldId, throwing an exception
3923        * if it is not found.
3924        */
3925       public static _Fields findByThriftIdOrThrow(int fieldId) {
3926         _Fields fields = findByThriftId(fieldId);
3927         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3928         return fields;
3929       }
3930
3931       /**
3932        * Find the _Fields constant that matches name, or null if its not found.
3933        */
3934       public static _Fields findByName(String name) {
3935         return byName.get(name);
3936       }
3937
3938       private final short _thriftId;
3939       private final String _fieldName;
3940
3941       _Fields(short thriftId, String fieldName) {
3942         _thriftId = thriftId;
3943         _fieldName = fieldName;
3944       }
3945
3946       public short getThriftFieldId() {
3947         return _thriftId;
3948       }
3949
3950       public String getFieldName() {
3951         return _fieldName;
3952       }
3953     }
3954
3955     // isset id assignments
3956     private static final int __ASNUMBER_ISSET_ID = 0;
3957     private byte __isset_bitfield = 0;
3958     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3959     static {
3960       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3961       tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3962           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3963       metaDataMap = Collections.unmodifiableMap(tmpMap);
3964       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_args.class, metaDataMap);
3965     }
3966
3967     public stopBgp_args() {
3968     }
3969
3970     public stopBgp_args(
3971       int asNumber)
3972     {
3973       this();
3974       this.asNumber = asNumber;
3975       setAsNumberIsSet(true);
3976     }
3977
3978     /**
3979      * Performs a deep copy on <i>other</i>.
3980      */
3981     public stopBgp_args(stopBgp_args other) {
3982       __isset_bitfield = other.__isset_bitfield;
3983       this.asNumber = other.asNumber;
3984     }
3985
3986     public stopBgp_args deepCopy() {
3987       return new stopBgp_args(this);
3988     }
3989
3990     @Override
3991     public void clear() {
3992       setAsNumberIsSet(false);
3993       this.asNumber = 0;
3994     }
3995
3996     public int getAsNumber() {
3997       return this.asNumber;
3998     }
3999
4000     public stopBgp_args setAsNumber(int asNumber) {
4001       this.asNumber = asNumber;
4002       setAsNumberIsSet(true);
4003       return this;
4004     }
4005
4006     public void unsetAsNumber() {
4007       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4008     }
4009
4010     /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
4011     public boolean isSetAsNumber() {
4012       return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4013     }
4014
4015     public void setAsNumberIsSet(boolean value) {
4016       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
4017     }
4018
4019     public void setFieldValue(_Fields field, Object value) {
4020       switch (field) {
4021       case AS_NUMBER:
4022         if (value == null) {
4023           unsetAsNumber();
4024         } else {
4025           setAsNumber((Integer)value);
4026         }
4027         break;
4028
4029       }
4030     }
4031
4032     public Object getFieldValue(_Fields field) {
4033       switch (field) {
4034       case AS_NUMBER:
4035         return Integer.valueOf(getAsNumber());
4036
4037       }
4038       throw new IllegalStateException();
4039     }
4040
4041     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4042     public boolean isSet(_Fields field) {
4043       if (field == null) {
4044         throw new IllegalArgumentException();
4045       }
4046
4047       switch (field) {
4048       case AS_NUMBER:
4049         return isSetAsNumber();
4050       }
4051       throw new IllegalStateException();
4052     }
4053
4054     @Override
4055     public boolean equals(Object that) {
4056       if (that == null)
4057         return false;
4058       if (that instanceof stopBgp_args)
4059         return this.equals((stopBgp_args)that);
4060       return false;
4061     }
4062
4063     public boolean equals(stopBgp_args that) {
4064       if (that == null)
4065         return false;
4066
4067       boolean this_present_asNumber = true;
4068       boolean that_present_asNumber = true;
4069       if (this_present_asNumber || that_present_asNumber) {
4070         if (!(this_present_asNumber && that_present_asNumber))
4071           return false;
4072         if (this.asNumber != that.asNumber)
4073           return false;
4074       }
4075
4076       return true;
4077     }
4078
4079     @Override
4080     public int hashCode() {
4081       return 0;
4082     }
4083
4084     @Override
4085     public int compareTo(stopBgp_args other) {
4086       if (!getClass().equals(other.getClass())) {
4087         return getClass().getName().compareTo(other.getClass().getName());
4088       }
4089
4090       int lastComparison = 0;
4091
4092       lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
4093       if (lastComparison != 0) {
4094         return lastComparison;
4095       }
4096       if (isSetAsNumber()) {
4097         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
4098         if (lastComparison != 0) {
4099           return lastComparison;
4100         }
4101       }
4102       return 0;
4103     }
4104
4105     public _Fields fieldForId(int fieldId) {
4106       return _Fields.findByThriftId(fieldId);
4107     }
4108
4109     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4110       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4111     }
4112
4113     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4114       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4115     }
4116
4117     @Override
4118     public String toString() {
4119       StringBuilder sb = new StringBuilder("stopBgp_args(");
4120       boolean first = true;
4121
4122       sb.append("asNumber:");
4123       sb.append(this.asNumber);
4124       first = false;
4125       sb.append(")");
4126       return sb.toString();
4127     }
4128
4129     public void validate() throws org.apache.thrift.TException {
4130       // check for required fields
4131       // check for sub-struct validity
4132     }
4133
4134     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4135       try {
4136         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4137       } catch (org.apache.thrift.TException te) {
4138         throw new java.io.IOException(te);
4139       }
4140     }
4141
4142     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4143       try {
4144         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4145         __isset_bitfield = 0;
4146         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4147       } catch (org.apache.thrift.TException te) {
4148         throw new java.io.IOException(te);
4149       }
4150     }
4151
4152     private static class stopBgp_argsStandardSchemeFactory implements SchemeFactory {
4153       public stopBgp_argsStandardScheme getScheme() {
4154         return new stopBgp_argsStandardScheme();
4155       }
4156     }
4157
4158     private static class stopBgp_argsStandardScheme extends StandardScheme<stopBgp_args> {
4159
4160       public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_args struct) throws org.apache.thrift.TException {
4161         org.apache.thrift.protocol.TField schemeField;
4162         iprot.readStructBegin();
4163         while (true)
4164         {
4165           schemeField = iprot.readFieldBegin();
4166           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
4167             break;
4168           }
4169           switch (schemeField.id) {
4170             case 1: // AS_NUMBER
4171               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4172                 struct.asNumber = iprot.readI32();
4173                 struct.setAsNumberIsSet(true);
4174               } else { 
4175                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4176               }
4177               break;
4178             default:
4179               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4180           }
4181           iprot.readFieldEnd();
4182         }
4183         iprot.readStructEnd();
4184
4185         // check for required fields of primitive type, which can't be checked in the validate method
4186         struct.validate();
4187       }
4188
4189       public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_args struct) throws org.apache.thrift.TException {
4190         struct.validate();
4191
4192         oprot.writeStructBegin(STRUCT_DESC);
4193         oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
4194         oprot.writeI32(struct.asNumber);
4195         oprot.writeFieldEnd();
4196         oprot.writeFieldStop();
4197         oprot.writeStructEnd();
4198       }
4199
4200     }
4201
4202     private static class stopBgp_argsTupleSchemeFactory implements SchemeFactory {
4203       public stopBgp_argsTupleScheme getScheme() {
4204         return new stopBgp_argsTupleScheme();
4205       }
4206     }
4207
4208     private static class stopBgp_argsTupleScheme extends TupleScheme<stopBgp_args> {
4209
4210       @Override
4211       public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
4212         TTupleProtocol oprot = (TTupleProtocol) prot;
4213         BitSet optionals = new BitSet();
4214         if (struct.isSetAsNumber()) {
4215           optionals.set(0);
4216         }
4217         oprot.writeBitSet(optionals, 1);
4218         if (struct.isSetAsNumber()) {
4219           oprot.writeI32(struct.asNumber);
4220         }
4221       }
4222
4223       @Override
4224       public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
4225         TTupleProtocol iprot = (TTupleProtocol) prot;
4226         BitSet incoming = iprot.readBitSet(1);
4227         if (incoming.get(0)) {
4228           struct.asNumber = iprot.readI32();
4229           struct.setAsNumberIsSet(true);
4230         }
4231       }
4232     }
4233
4234   }
4235
4236   public static class stopBgp_result implements org.apache.thrift.TBase<stopBgp_result, stopBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_result>   {
4237     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_result");
4238
4239     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);
4240
4241     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4242     static {
4243       schemes.put(StandardScheme.class, new stopBgp_resultStandardSchemeFactory());
4244       schemes.put(TupleScheme.class, new stopBgp_resultTupleSchemeFactory());
4245     }
4246
4247     public int success; // required
4248
4249     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4250     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4251       SUCCESS((short)0, "success");
4252
4253       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4254
4255       static {
4256         for (_Fields field : EnumSet.allOf(_Fields.class)) {
4257           byName.put(field.getFieldName(), field);
4258         }
4259       }
4260
4261       /**
4262        * Find the _Fields constant that matches fieldId, or null if its not found.
4263        */
4264       public static _Fields findByThriftId(int fieldId) {
4265         switch(fieldId) {
4266           case 0: // SUCCESS
4267             return SUCCESS;
4268           default:
4269             return null;
4270         }
4271       }
4272
4273       /**
4274        * Find the _Fields constant that matches fieldId, throwing an exception
4275        * if it is not found.
4276        */
4277       public static _Fields findByThriftIdOrThrow(int fieldId) {
4278         _Fields fields = findByThriftId(fieldId);
4279         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4280         return fields;
4281       }
4282
4283       /**
4284        * Find the _Fields constant that matches name, or null if its not found.
4285        */
4286       public static _Fields findByName(String name) {
4287         return byName.get(name);
4288       }
4289
4290       private final short _thriftId;
4291       private final String _fieldName;
4292
4293       _Fields(short thriftId, String fieldName) {
4294         _thriftId = thriftId;
4295         _fieldName = fieldName;
4296       }
4297
4298       public short getThriftFieldId() {
4299         return _thriftId;
4300       }
4301
4302       public String getFieldName() {
4303         return _fieldName;
4304       }
4305     }
4306
4307     // isset id assignments
4308     private static final int __SUCCESS_ISSET_ID = 0;
4309     private byte __isset_bitfield = 0;
4310     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4311     static {
4312       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4313       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4314           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4315       metaDataMap = Collections.unmodifiableMap(tmpMap);
4316       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_result.class, metaDataMap);
4317     }
4318
4319     public stopBgp_result() {
4320     }
4321
4322     public stopBgp_result(
4323       int success)
4324     {
4325       this();
4326       this.success = success;
4327       setSuccessIsSet(true);
4328     }
4329
4330     /**
4331      * Performs a deep copy on <i>other</i>.
4332      */
4333     public stopBgp_result(stopBgp_result other) {
4334       __isset_bitfield = other.__isset_bitfield;
4335       this.success = other.success;
4336     }
4337
4338     public stopBgp_result deepCopy() {
4339       return new stopBgp_result(this);
4340     }
4341
4342     @Override
4343     public void clear() {
4344       setSuccessIsSet(false);
4345       this.success = 0;
4346     }
4347
4348     public int getSuccess() {
4349       return this.success;
4350     }
4351
4352     public stopBgp_result setSuccess(int success) {
4353       this.success = success;
4354       setSuccessIsSet(true);
4355       return this;
4356     }
4357
4358     public void unsetSuccess() {
4359       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4360     }
4361
4362     /** Returns true if field success is set (has been assigned a value) and false otherwise */
4363     public boolean isSetSuccess() {
4364       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4365     }
4366
4367     public void setSuccessIsSet(boolean value) {
4368       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
4369     }
4370
4371     public void setFieldValue(_Fields field, Object value) {
4372       switch (field) {
4373       case SUCCESS:
4374         if (value == null) {
4375           unsetSuccess();
4376         } else {
4377           setSuccess((Integer)value);
4378         }
4379         break;
4380
4381       }
4382     }
4383
4384     public Object getFieldValue(_Fields field) {
4385       switch (field) {
4386       case SUCCESS:
4387         return Integer.valueOf(getSuccess());
4388
4389       }
4390       throw new IllegalStateException();
4391     }
4392
4393     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4394     public boolean isSet(_Fields field) {
4395       if (field == null) {
4396         throw new IllegalArgumentException();
4397       }
4398
4399       switch (field) {
4400       case SUCCESS:
4401         return isSetSuccess();
4402       }
4403       throw new IllegalStateException();
4404     }
4405
4406     @Override
4407     public boolean equals(Object that) {
4408       if (that == null)
4409         return false;
4410       if (that instanceof stopBgp_result)
4411         return this.equals((stopBgp_result)that);
4412       return false;
4413     }
4414
4415     public boolean equals(stopBgp_result that) {
4416       if (that == null)
4417         return false;
4418
4419       boolean this_present_success = true;
4420       boolean that_present_success = true;
4421       if (this_present_success || that_present_success) {
4422         if (!(this_present_success && that_present_success))
4423           return false;
4424         if (this.success != that.success)
4425           return false;
4426       }
4427
4428       return true;
4429     }
4430
4431     @Override
4432     public int hashCode() {
4433       return 0;
4434     }
4435
4436     @Override
4437     public int compareTo(stopBgp_result other) {
4438       if (!getClass().equals(other.getClass())) {
4439         return getClass().getName().compareTo(other.getClass().getName());
4440       }
4441
4442       int lastComparison = 0;
4443
4444       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
4445       if (lastComparison != 0) {
4446         return lastComparison;
4447       }
4448       if (isSetSuccess()) {
4449         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
4450         if (lastComparison != 0) {
4451           return lastComparison;
4452         }
4453       }
4454       return 0;
4455     }
4456
4457     public _Fields fieldForId(int fieldId) {
4458       return _Fields.findByThriftId(fieldId);
4459     }
4460
4461     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4462       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4463     }
4464
4465     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4466       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4467       }
4468
4469     @Override
4470     public String toString() {
4471       StringBuilder sb = new StringBuilder("stopBgp_result(");
4472       boolean first = true;
4473
4474       sb.append("success:");
4475       sb.append(this.success);
4476       first = false;
4477       sb.append(")");
4478       return sb.toString();
4479     }
4480
4481     public void validate() throws org.apache.thrift.TException {
4482       // check for required fields
4483       // check for sub-struct validity
4484     }
4485
4486     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4487       try {
4488         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4489       } catch (org.apache.thrift.TException te) {
4490         throw new java.io.IOException(te);
4491       }
4492     }
4493
4494     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4495       try {
4496         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4497         __isset_bitfield = 0;
4498         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4499       } catch (org.apache.thrift.TException te) {
4500         throw new java.io.IOException(te);
4501       }
4502     }
4503
4504     private static class stopBgp_resultStandardSchemeFactory implements SchemeFactory {
4505       public stopBgp_resultStandardScheme getScheme() {
4506         return new stopBgp_resultStandardScheme();
4507       }
4508     }
4509
4510     private static class stopBgp_resultStandardScheme extends StandardScheme<stopBgp_result> {
4511
4512       public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_result struct) throws org.apache.thrift.TException {
4513         org.apache.thrift.protocol.TField schemeField;
4514         iprot.readStructBegin();
4515         while (true)
4516         {
4517           schemeField = iprot.readFieldBegin();
4518           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
4519             break;
4520           }
4521           switch (schemeField.id) {
4522             case 0: // SUCCESS
4523               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4524                 struct.success = iprot.readI32();
4525                 struct.setSuccessIsSet(true);
4526               } else { 
4527                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4528               }
4529               break;
4530             default:
4531               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4532           }
4533           iprot.readFieldEnd();
4534         }
4535         iprot.readStructEnd();
4536
4537         // check for required fields of primitive type, which can't be checked in the validate method
4538         struct.validate();
4539       }
4540
4541       public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_result struct) throws org.apache.thrift.TException {
4542         struct.validate();
4543
4544         oprot.writeStructBegin(STRUCT_DESC);
4545         if (struct.isSetSuccess()) {
4546           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4547           oprot.writeI32(struct.success);
4548           oprot.writeFieldEnd();
4549         }
4550         oprot.writeFieldStop();
4551         oprot.writeStructEnd();
4552       }
4553
4554     }
4555
4556     private static class stopBgp_resultTupleSchemeFactory implements SchemeFactory {
4557       public stopBgp_resultTupleScheme getScheme() {
4558         return new stopBgp_resultTupleScheme();
4559       }
4560     }
4561
4562     private static class stopBgp_resultTupleScheme extends TupleScheme<stopBgp_result> {
4563
4564       @Override
4565       public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
4566         TTupleProtocol oprot = (TTupleProtocol) prot;
4567         BitSet optionals = new BitSet();
4568         if (struct.isSetSuccess()) {
4569           optionals.set(0);
4570         }
4571         oprot.writeBitSet(optionals, 1);
4572         if (struct.isSetSuccess()) {
4573           oprot.writeI32(struct.success);
4574         }
4575       }
4576
4577       @Override
4578       public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
4579         TTupleProtocol iprot = (TTupleProtocol) prot;
4580         BitSet incoming = iprot.readBitSet(1);
4581         if (incoming.get(0)) {
4582           struct.success = iprot.readI32();
4583           struct.setSuccessIsSet(true);
4584         }
4585       }
4586     }
4587
4588   }
4589
4590   public static class createPeer_args implements org.apache.thrift.TBase<createPeer_args, createPeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_args>   {
4591     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_args");
4592
4593     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);
4594     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);
4595
4596     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4597     static {
4598       schemes.put(StandardScheme.class, new createPeer_argsStandardSchemeFactory());
4599       schemes.put(TupleScheme.class, new createPeer_argsTupleSchemeFactory());
4600     }
4601
4602     public String ipAddress; // required
4603     public int asNumber; // required
4604
4605     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4606     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4607       IP_ADDRESS((short)1, "ipAddress"),
4608       AS_NUMBER((short)2, "asNumber");
4609
4610       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4611
4612       static {
4613         for (_Fields field : EnumSet.allOf(_Fields.class)) {
4614           byName.put(field.getFieldName(), field);
4615         }
4616       }
4617
4618       /**
4619        * Find the _Fields constant that matches fieldId, or null if its not found.
4620        */
4621       public static _Fields findByThriftId(int fieldId) {
4622         switch(fieldId) {
4623           case 1: // IP_ADDRESS
4624             return IP_ADDRESS;
4625           case 2: // AS_NUMBER
4626             return AS_NUMBER;
4627           default:
4628             return null;
4629         }
4630       }
4631
4632       /**
4633        * Find the _Fields constant that matches fieldId, throwing an exception
4634        * if it is not found.
4635        */
4636       public static _Fields findByThriftIdOrThrow(int fieldId) {
4637         _Fields fields = findByThriftId(fieldId);
4638         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4639         return fields;
4640       }
4641
4642       /**
4643        * Find the _Fields constant that matches name, or null if its not found.
4644        */
4645       public static _Fields findByName(String name) {
4646         return byName.get(name);
4647       }
4648
4649       private final short _thriftId;
4650       private final String _fieldName;
4651
4652       _Fields(short thriftId, String fieldName) {
4653         _thriftId = thriftId;
4654         _fieldName = fieldName;
4655       }
4656
4657       public short getThriftFieldId() {
4658         return _thriftId;
4659       }
4660
4661       public String getFieldName() {
4662         return _fieldName;
4663       }
4664     }
4665
4666     // isset id assignments
4667     private static final int __ASNUMBER_ISSET_ID = 0;
4668     private byte __isset_bitfield = 0;
4669     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4670     static {
4671       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4672       tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4673           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4674       tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4675           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4676       metaDataMap = Collections.unmodifiableMap(tmpMap);
4677       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_args.class, metaDataMap);
4678     }
4679
4680     public createPeer_args() {
4681     }
4682
4683     public createPeer_args(
4684       String ipAddress,
4685       int asNumber)
4686     {
4687       this();
4688       this.ipAddress = ipAddress;
4689       this.asNumber = asNumber;
4690       setAsNumberIsSet(true);
4691     }
4692
4693     /**
4694      * Performs a deep copy on <i>other</i>.
4695      */
4696     public createPeer_args(createPeer_args other) {
4697       __isset_bitfield = other.__isset_bitfield;
4698       if (other.isSetIpAddress()) {
4699         this.ipAddress = other.ipAddress;
4700       }
4701       this.asNumber = other.asNumber;
4702     }
4703
4704     public createPeer_args deepCopy() {
4705       return new createPeer_args(this);
4706     }
4707
4708     @Override
4709     public void clear() {
4710       this.ipAddress = null;
4711       setAsNumberIsSet(false);
4712       this.asNumber = 0;
4713     }
4714
4715     public String getIpAddress() {
4716       return this.ipAddress;
4717     }
4718
4719     public createPeer_args setIpAddress(String ipAddress) {
4720       this.ipAddress = ipAddress;
4721       return this;
4722     }
4723
4724     public void unsetIpAddress() {
4725       this.ipAddress = null;
4726     }
4727
4728     /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
4729     public boolean isSetIpAddress() {
4730       return this.ipAddress != null;
4731     }
4732
4733     public void setIpAddressIsSet(boolean value) {
4734       if (!value) {
4735         this.ipAddress = null;
4736       }
4737     }
4738
4739     public int getAsNumber() {
4740       return this.asNumber;
4741     }
4742
4743     public createPeer_args setAsNumber(int asNumber) {
4744       this.asNumber = asNumber;
4745       setAsNumberIsSet(true);
4746       return this;
4747     }
4748
4749     public void unsetAsNumber() {
4750       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4751     }
4752
4753     /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
4754     public boolean isSetAsNumber() {
4755       return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4756     }
4757
4758     public void setAsNumberIsSet(boolean value) {
4759       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
4760     }
4761
4762     public void setFieldValue(_Fields field, Object value) {
4763       switch (field) {
4764       case IP_ADDRESS:
4765         if (value == null) {
4766           unsetIpAddress();
4767         } else {
4768           setIpAddress((String)value);
4769         }
4770         break;
4771
4772       case AS_NUMBER:
4773         if (value == null) {
4774           unsetAsNumber();
4775         } else {
4776           setAsNumber((Integer)value);
4777         }
4778         break;
4779
4780       }
4781     }
4782
4783     public Object getFieldValue(_Fields field) {
4784       switch (field) {
4785       case IP_ADDRESS:
4786         return getIpAddress();
4787
4788       case AS_NUMBER:
4789         return Integer.valueOf(getAsNumber());
4790
4791       }
4792       throw new IllegalStateException();
4793     }
4794
4795     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4796     public boolean isSet(_Fields field) {
4797       if (field == null) {
4798         throw new IllegalArgumentException();
4799       }
4800
4801       switch (field) {
4802       case IP_ADDRESS:
4803         return isSetIpAddress();
4804       case AS_NUMBER:
4805         return isSetAsNumber();
4806       }
4807       throw new IllegalStateException();
4808     }
4809
4810     @Override
4811     public boolean equals(Object that) {
4812       if (that == null)
4813         return false;
4814       if (that instanceof createPeer_args)
4815         return this.equals((createPeer_args)that);
4816       return false;
4817     }
4818
4819     public boolean equals(createPeer_args that) {
4820       if (that == null)
4821         return false;
4822
4823       boolean this_present_ipAddress = true && this.isSetIpAddress();
4824       boolean that_present_ipAddress = true && that.isSetIpAddress();
4825       if (this_present_ipAddress || that_present_ipAddress) {
4826         if (!(this_present_ipAddress && that_present_ipAddress))
4827           return false;
4828         if (!this.ipAddress.equals(that.ipAddress))
4829           return false;
4830       }
4831
4832       boolean this_present_asNumber = true;
4833       boolean that_present_asNumber = true;
4834       if (this_present_asNumber || that_present_asNumber) {
4835         if (!(this_present_asNumber && that_present_asNumber))
4836           return false;
4837         if (this.asNumber != that.asNumber)
4838           return false;
4839       }
4840
4841       return true;
4842     }
4843
4844     @Override
4845     public int hashCode() {
4846       return 0;
4847     }
4848
4849     @Override
4850     public int compareTo(createPeer_args other) {
4851       if (!getClass().equals(other.getClass())) {
4852         return getClass().getName().compareTo(other.getClass().getName());
4853       }
4854
4855       int lastComparison = 0;
4856
4857       lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
4858       if (lastComparison != 0) {
4859         return lastComparison;
4860       }
4861       if (isSetIpAddress()) {
4862         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
4863         if (lastComparison != 0) {
4864           return lastComparison;
4865         }
4866       }
4867       lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
4868       if (lastComparison != 0) {
4869         return lastComparison;
4870       }
4871       if (isSetAsNumber()) {
4872         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
4873         if (lastComparison != 0) {
4874           return lastComparison;
4875         }
4876       }
4877       return 0;
4878     }
4879
4880     public _Fields fieldForId(int fieldId) {
4881       return _Fields.findByThriftId(fieldId);
4882     }
4883
4884     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4885       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4886     }
4887
4888     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4889       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4890     }
4891
4892     @Override
4893     public String toString() {
4894       StringBuilder sb = new StringBuilder("createPeer_args(");
4895       boolean first = true;
4896
4897       sb.append("ipAddress:");
4898       if (this.ipAddress == null) {
4899         sb.append("null");
4900       } else {
4901         sb.append(this.ipAddress);
4902       }
4903       first = false;
4904       if (!first) sb.append(", ");
4905       sb.append("asNumber:");
4906       sb.append(this.asNumber);
4907       first = false;
4908       sb.append(")");
4909       return sb.toString();
4910     }
4911
4912     public void validate() throws org.apache.thrift.TException {
4913       // check for required fields
4914       // check for sub-struct validity
4915     }
4916
4917     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4918       try {
4919         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4920       } catch (org.apache.thrift.TException te) {
4921         throw new java.io.IOException(te);
4922       }
4923     }
4924
4925     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4926       try {
4927         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4928         __isset_bitfield = 0;
4929         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4930       } catch (org.apache.thrift.TException te) {
4931         throw new java.io.IOException(te);
4932       }
4933     }
4934
4935     private static class createPeer_argsStandardSchemeFactory implements SchemeFactory {
4936       public createPeer_argsStandardScheme getScheme() {
4937         return new createPeer_argsStandardScheme();
4938       }
4939     }
4940
4941     private static class createPeer_argsStandardScheme extends StandardScheme<createPeer_args> {
4942
4943       public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_args struct) throws org.apache.thrift.TException {
4944         org.apache.thrift.protocol.TField schemeField;
4945         iprot.readStructBegin();
4946         while (true)
4947         {
4948           schemeField = iprot.readFieldBegin();
4949           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
4950             break;
4951           }
4952           switch (schemeField.id) {
4953             case 1: // IP_ADDRESS
4954               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
4955                 struct.ipAddress = iprot.readString();
4956                 struct.setIpAddressIsSet(true);
4957               } else { 
4958                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4959               }
4960               break;
4961             case 2: // AS_NUMBER
4962               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4963                 struct.asNumber = iprot.readI32();
4964                 struct.setAsNumberIsSet(true);
4965               } else { 
4966                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4967               }
4968               break;
4969             default:
4970               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4971           }
4972           iprot.readFieldEnd();
4973         }
4974         iprot.readStructEnd();
4975
4976         // check for required fields of primitive type, which can't be checked in the validate method
4977         struct.validate();
4978       }
4979
4980       public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_args struct) throws org.apache.thrift.TException {
4981         struct.validate();
4982
4983         oprot.writeStructBegin(STRUCT_DESC);
4984         if (struct.ipAddress != null) {
4985           oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
4986           oprot.writeString(struct.ipAddress);
4987           oprot.writeFieldEnd();
4988         }
4989         oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
4990         oprot.writeI32(struct.asNumber);
4991         oprot.writeFieldEnd();
4992         oprot.writeFieldStop();
4993         oprot.writeStructEnd();
4994       }
4995
4996     }
4997
4998     private static class createPeer_argsTupleSchemeFactory implements SchemeFactory {
4999       public createPeer_argsTupleScheme getScheme() {
5000         return new createPeer_argsTupleScheme();
5001       }
5002     }
5003
5004     private static class createPeer_argsTupleScheme extends TupleScheme<createPeer_args> {
5005
5006       @Override
5007       public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
5008         TTupleProtocol oprot = (TTupleProtocol) prot;
5009         BitSet optionals = new BitSet();
5010         if (struct.isSetIpAddress()) {
5011           optionals.set(0);
5012         }
5013         if (struct.isSetAsNumber()) {
5014           optionals.set(1);
5015         }
5016         oprot.writeBitSet(optionals, 2);
5017         if (struct.isSetIpAddress()) {
5018           oprot.writeString(struct.ipAddress);
5019         }
5020         if (struct.isSetAsNumber()) {
5021           oprot.writeI32(struct.asNumber);
5022         }
5023       }
5024
5025       @Override
5026       public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
5027         TTupleProtocol iprot = (TTupleProtocol) prot;
5028         BitSet incoming = iprot.readBitSet(2);
5029         if (incoming.get(0)) {
5030           struct.ipAddress = iprot.readString();
5031           struct.setIpAddressIsSet(true);
5032         }
5033         if (incoming.get(1)) {
5034           struct.asNumber = iprot.readI32();
5035           struct.setAsNumberIsSet(true);
5036         }
5037       }
5038     }
5039
5040   }
5041
5042   public static class createPeer_result implements org.apache.thrift.TBase<createPeer_result, createPeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_result>   {
5043     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_result");
5044
5045     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);
5046
5047     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5048     static {
5049       schemes.put(StandardScheme.class, new createPeer_resultStandardSchemeFactory());
5050       schemes.put(TupleScheme.class, new createPeer_resultTupleSchemeFactory());
5051     }
5052
5053     public int success; // required
5054
5055     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5056     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5057       SUCCESS((short)0, "success");
5058
5059       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5060
5061       static {
5062         for (_Fields field : EnumSet.allOf(_Fields.class)) {
5063           byName.put(field.getFieldName(), field);
5064         }
5065       }
5066
5067       /**
5068        * Find the _Fields constant that matches fieldId, or null if its not found.
5069        */
5070       public static _Fields findByThriftId(int fieldId) {
5071         switch(fieldId) {
5072           case 0: // SUCCESS
5073             return SUCCESS;
5074           default:
5075             return null;
5076         }
5077       }
5078
5079       /**
5080        * Find the _Fields constant that matches fieldId, throwing an exception
5081        * if it is not found.
5082        */
5083       public static _Fields findByThriftIdOrThrow(int fieldId) {
5084         _Fields fields = findByThriftId(fieldId);
5085         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5086         return fields;
5087       }
5088
5089       /**
5090        * Find the _Fields constant that matches name, or null if its not found.
5091        */
5092       public static _Fields findByName(String name) {
5093         return byName.get(name);
5094       }
5095
5096       private final short _thriftId;
5097       private final String _fieldName;
5098
5099       _Fields(short thriftId, String fieldName) {
5100         _thriftId = thriftId;
5101         _fieldName = fieldName;
5102       }
5103
5104       public short getThriftFieldId() {
5105         return _thriftId;
5106       }
5107
5108       public String getFieldName() {
5109         return _fieldName;
5110       }
5111     }
5112
5113     // isset id assignments
5114     private static final int __SUCCESS_ISSET_ID = 0;
5115     private byte __isset_bitfield = 0;
5116     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5117     static {
5118       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5119       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5120           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
5121       metaDataMap = Collections.unmodifiableMap(tmpMap);
5122       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_result.class, metaDataMap);
5123     }
5124
5125     public createPeer_result() {
5126     }
5127
5128     public createPeer_result(
5129       int success)
5130     {
5131       this();
5132       this.success = success;
5133       setSuccessIsSet(true);
5134     }
5135
5136     /**
5137      * Performs a deep copy on <i>other</i>.
5138      */
5139     public createPeer_result(createPeer_result other) {
5140       __isset_bitfield = other.__isset_bitfield;
5141       this.success = other.success;
5142     }
5143
5144     public createPeer_result deepCopy() {
5145       return new createPeer_result(this);
5146     }
5147
5148     @Override
5149     public void clear() {
5150       setSuccessIsSet(false);
5151       this.success = 0;
5152     }
5153
5154     public int getSuccess() {
5155       return this.success;
5156     }
5157
5158     public createPeer_result setSuccess(int success) {
5159       this.success = success;
5160       setSuccessIsSet(true);
5161       return this;
5162     }
5163
5164     public void unsetSuccess() {
5165       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5166     }
5167
5168     /** Returns true if field success is set (has been assigned a value) and false otherwise */
5169     public boolean isSetSuccess() {
5170       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5171     }
5172
5173     public void setSuccessIsSet(boolean value) {
5174       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
5175     }
5176
5177     public void setFieldValue(_Fields field, Object value) {
5178       switch (field) {
5179       case SUCCESS:
5180         if (value == null) {
5181           unsetSuccess();
5182         } else {
5183           setSuccess((Integer)value);
5184         }
5185         break;
5186
5187       }
5188     }
5189
5190     public Object getFieldValue(_Fields field) {
5191       switch (field) {
5192       case SUCCESS:
5193         return Integer.valueOf(getSuccess());
5194
5195       }
5196       throw new IllegalStateException();
5197     }
5198
5199     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5200     public boolean isSet(_Fields field) {
5201       if (field == null) {
5202         throw new IllegalArgumentException();
5203       }
5204
5205       switch (field) {
5206       case SUCCESS:
5207         return isSetSuccess();
5208       }
5209       throw new IllegalStateException();
5210     }
5211
5212     @Override
5213     public boolean equals(Object that) {
5214       if (that == null)
5215         return false;
5216       if (that instanceof createPeer_result)
5217         return this.equals((createPeer_result)that);
5218       return false;
5219     }
5220
5221     public boolean equals(createPeer_result that) {
5222       if (that == null)
5223         return false;
5224
5225       boolean this_present_success = true;
5226       boolean that_present_success = true;
5227       if (this_present_success || that_present_success) {
5228         if (!(this_present_success && that_present_success))
5229           return false;
5230         if (this.success != that.success)
5231           return false;
5232       }
5233
5234       return true;
5235     }
5236
5237     @Override
5238     public int hashCode() {
5239       return 0;
5240     }
5241
5242     @Override
5243     public int compareTo(createPeer_result other) {
5244       if (!getClass().equals(other.getClass())) {
5245         return getClass().getName().compareTo(other.getClass().getName());
5246       }
5247
5248       int lastComparison = 0;
5249
5250       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5251       if (lastComparison != 0) {
5252         return lastComparison;
5253       }
5254       if (isSetSuccess()) {
5255         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5256         if (lastComparison != 0) {
5257           return lastComparison;
5258         }
5259       }
5260       return 0;
5261     }
5262
5263     public _Fields fieldForId(int fieldId) {
5264       return _Fields.findByThriftId(fieldId);
5265     }
5266
5267     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5268       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5269     }
5270
5271     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5272       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5273       }
5274
5275     @Override
5276     public String toString() {
5277       StringBuilder sb = new StringBuilder("createPeer_result(");
5278       boolean first = true;
5279
5280       sb.append("success:");
5281       sb.append(this.success);
5282       first = false;
5283       sb.append(")");
5284       return sb.toString();
5285     }
5286
5287     public void validate() throws org.apache.thrift.TException {
5288       // check for required fields
5289       // check for sub-struct validity
5290     }
5291
5292     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5293       try {
5294         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5295       } catch (org.apache.thrift.TException te) {
5296         throw new java.io.IOException(te);
5297       }
5298     }
5299
5300     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5301       try {
5302         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5303         __isset_bitfield = 0;
5304         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5305       } catch (org.apache.thrift.TException te) {
5306         throw new java.io.IOException(te);
5307       }
5308     }
5309
5310     private static class createPeer_resultStandardSchemeFactory implements SchemeFactory {
5311       public createPeer_resultStandardScheme getScheme() {
5312         return new createPeer_resultStandardScheme();
5313       }
5314     }
5315
5316     private static class createPeer_resultStandardScheme extends StandardScheme<createPeer_result> {
5317
5318       public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_result struct) throws org.apache.thrift.TException {
5319         org.apache.thrift.protocol.TField schemeField;
5320         iprot.readStructBegin();
5321         while (true)
5322         {
5323           schemeField = iprot.readFieldBegin();
5324           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
5325             break;
5326           }
5327           switch (schemeField.id) {
5328             case 0: // SUCCESS
5329               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
5330                 struct.success = iprot.readI32();
5331                 struct.setSuccessIsSet(true);
5332               } else { 
5333                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5334               }
5335               break;
5336             default:
5337               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5338           }
5339           iprot.readFieldEnd();
5340         }
5341         iprot.readStructEnd();
5342
5343         // check for required fields of primitive type, which can't be checked in the validate method
5344         struct.validate();
5345       }
5346
5347       public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_result struct) throws org.apache.thrift.TException {
5348         struct.validate();
5349
5350         oprot.writeStructBegin(STRUCT_DESC);
5351         if (struct.isSetSuccess()) {
5352           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5353           oprot.writeI32(struct.success);
5354           oprot.writeFieldEnd();
5355         }
5356         oprot.writeFieldStop();
5357         oprot.writeStructEnd();
5358       }
5359
5360     }
5361
5362     private static class createPeer_resultTupleSchemeFactory implements SchemeFactory {
5363       public createPeer_resultTupleScheme getScheme() {
5364         return new createPeer_resultTupleScheme();
5365       }
5366     }
5367
5368     private static class createPeer_resultTupleScheme extends TupleScheme<createPeer_result> {
5369
5370       @Override
5371       public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
5372         TTupleProtocol oprot = (TTupleProtocol) prot;
5373         BitSet optionals = new BitSet();
5374         if (struct.isSetSuccess()) {
5375           optionals.set(0);
5376         }
5377         oprot.writeBitSet(optionals, 1);
5378         if (struct.isSetSuccess()) {
5379           oprot.writeI32(struct.success);
5380         }
5381       }
5382
5383       @Override
5384       public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
5385         TTupleProtocol iprot = (TTupleProtocol) prot;
5386         BitSet incoming = iprot.readBitSet(1);
5387         if (incoming.get(0)) {
5388           struct.success = iprot.readI32();
5389           struct.setSuccessIsSet(true);
5390         }
5391       }
5392     }
5393
5394   }
5395
5396   public static class deletePeer_args implements org.apache.thrift.TBase<deletePeer_args, deletePeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_args>   {
5397     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_args");
5398
5399     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);
5400
5401     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5402     static {
5403       schemes.put(StandardScheme.class, new deletePeer_argsStandardSchemeFactory());
5404       schemes.put(TupleScheme.class, new deletePeer_argsTupleSchemeFactory());
5405     }
5406
5407     public String ipAddress; // required
5408
5409     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5410     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5411       IP_ADDRESS((short)1, "ipAddress");
5412
5413       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5414
5415       static {
5416         for (_Fields field : EnumSet.allOf(_Fields.class)) {
5417           byName.put(field.getFieldName(), field);
5418         }
5419       }
5420
5421       /**
5422        * Find the _Fields constant that matches fieldId, or null if its not found.
5423        */
5424       public static _Fields findByThriftId(int fieldId) {
5425         switch(fieldId) {
5426           case 1: // IP_ADDRESS
5427             return IP_ADDRESS;
5428           default:
5429             return null;
5430         }
5431       }
5432
5433       /**
5434        * Find the _Fields constant that matches fieldId, throwing an exception
5435        * if it is not found.
5436        */
5437       public static _Fields findByThriftIdOrThrow(int fieldId) {
5438         _Fields fields = findByThriftId(fieldId);
5439         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5440         return fields;
5441       }
5442
5443       /**
5444        * Find the _Fields constant that matches name, or null if its not found.
5445        */
5446       public static _Fields findByName(String name) {
5447         return byName.get(name);
5448       }
5449
5450       private final short _thriftId;
5451       private final String _fieldName;
5452
5453       _Fields(short thriftId, String fieldName) {
5454         _thriftId = thriftId;
5455         _fieldName = fieldName;
5456       }
5457
5458       public short getThriftFieldId() {
5459         return _thriftId;
5460       }
5461
5462       public String getFieldName() {
5463         return _fieldName;
5464       }
5465     }
5466
5467     // isset id assignments
5468     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5469     static {
5470       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5471       tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5472           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5473       metaDataMap = Collections.unmodifiableMap(tmpMap);
5474       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_args.class, metaDataMap);
5475     }
5476
5477     public deletePeer_args() {
5478     }
5479
5480     public deletePeer_args(
5481       String ipAddress)
5482     {
5483       this();
5484       this.ipAddress = ipAddress;
5485     }
5486
5487     /**
5488      * Performs a deep copy on <i>other</i>.
5489      */
5490     public deletePeer_args(deletePeer_args other) {
5491       if (other.isSetIpAddress()) {
5492         this.ipAddress = other.ipAddress;
5493       }
5494     }
5495
5496     public deletePeer_args deepCopy() {
5497       return new deletePeer_args(this);
5498     }
5499
5500     @Override
5501     public void clear() {
5502       this.ipAddress = null;
5503     }
5504
5505     public String getIpAddress() {
5506       return this.ipAddress;
5507     }
5508
5509     public deletePeer_args setIpAddress(String ipAddress) {
5510       this.ipAddress = ipAddress;
5511       return this;
5512     }
5513
5514     public void unsetIpAddress() {
5515       this.ipAddress = null;
5516     }
5517
5518     /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
5519     public boolean isSetIpAddress() {
5520       return this.ipAddress != null;
5521     }
5522
5523     public void setIpAddressIsSet(boolean value) {
5524       if (!value) {
5525         this.ipAddress = null;
5526       }
5527     }
5528
5529     public void setFieldValue(_Fields field, Object value) {
5530       switch (field) {
5531       case IP_ADDRESS:
5532         if (value == null) {
5533           unsetIpAddress();
5534         } else {
5535           setIpAddress((String)value);
5536         }
5537         break;
5538
5539       }
5540     }
5541
5542     public Object getFieldValue(_Fields field) {
5543       switch (field) {
5544       case IP_ADDRESS:
5545         return getIpAddress();
5546
5547       }
5548       throw new IllegalStateException();
5549     }
5550
5551     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5552     public boolean isSet(_Fields field) {
5553       if (field == null) {
5554         throw new IllegalArgumentException();
5555       }
5556
5557       switch (field) {
5558       case IP_ADDRESS:
5559         return isSetIpAddress();
5560       }
5561       throw new IllegalStateException();
5562     }
5563
5564     @Override
5565     public boolean equals(Object that) {
5566       if (that == null)
5567         return false;
5568       if (that instanceof deletePeer_args)
5569         return this.equals((deletePeer_args)that);
5570       return false;
5571     }
5572
5573     public boolean equals(deletePeer_args that) {
5574       if (that == null)
5575         return false;
5576
5577       boolean this_present_ipAddress = true && this.isSetIpAddress();
5578       boolean that_present_ipAddress = true && that.isSetIpAddress();
5579       if (this_present_ipAddress || that_present_ipAddress) {
5580         if (!(this_present_ipAddress && that_present_ipAddress))
5581           return false;
5582         if (!this.ipAddress.equals(that.ipAddress))
5583           return false;
5584       }
5585
5586       return true;
5587     }
5588
5589     @Override
5590     public int hashCode() {
5591       return 0;
5592     }
5593
5594     @Override
5595     public int compareTo(deletePeer_args other) {
5596       if (!getClass().equals(other.getClass())) {
5597         return getClass().getName().compareTo(other.getClass().getName());
5598       }
5599
5600       int lastComparison = 0;
5601
5602       lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
5603       if (lastComparison != 0) {
5604         return lastComparison;
5605       }
5606       if (isSetIpAddress()) {
5607         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
5608         if (lastComparison != 0) {
5609           return lastComparison;
5610         }
5611       }
5612       return 0;
5613     }
5614
5615     public _Fields fieldForId(int fieldId) {
5616       return _Fields.findByThriftId(fieldId);
5617     }
5618
5619     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5620       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5621     }
5622
5623     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5624       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5625     }
5626
5627     @Override
5628     public String toString() {
5629       StringBuilder sb = new StringBuilder("deletePeer_args(");
5630       boolean first = true;
5631
5632       sb.append("ipAddress:");
5633       if (this.ipAddress == null) {
5634         sb.append("null");
5635       } else {
5636         sb.append(this.ipAddress);
5637       }
5638       first = false;
5639       sb.append(")");
5640       return sb.toString();
5641     }
5642
5643     public void validate() throws org.apache.thrift.TException {
5644       // check for required fields
5645       // check for sub-struct validity
5646     }
5647
5648     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5649       try {
5650         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5651       } catch (org.apache.thrift.TException te) {
5652         throw new java.io.IOException(te);
5653       }
5654     }
5655
5656     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5657       try {
5658         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5659       } catch (org.apache.thrift.TException te) {
5660         throw new java.io.IOException(te);
5661       }
5662     }
5663
5664     private static class deletePeer_argsStandardSchemeFactory implements SchemeFactory {
5665       public deletePeer_argsStandardScheme getScheme() {
5666         return new deletePeer_argsStandardScheme();
5667       }
5668     }
5669
5670     private static class deletePeer_argsStandardScheme extends StandardScheme<deletePeer_args> {
5671
5672       public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_args struct) throws org.apache.thrift.TException {
5673         org.apache.thrift.protocol.TField schemeField;
5674         iprot.readStructBegin();
5675         while (true)
5676         {
5677           schemeField = iprot.readFieldBegin();
5678           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
5679             break;
5680           }
5681           switch (schemeField.id) {
5682             case 1: // IP_ADDRESS
5683               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
5684                 struct.ipAddress = iprot.readString();
5685                 struct.setIpAddressIsSet(true);
5686               } else { 
5687                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5688               }
5689               break;
5690             default:
5691               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5692           }
5693           iprot.readFieldEnd();
5694         }
5695         iprot.readStructEnd();
5696
5697         // check for required fields of primitive type, which can't be checked in the validate method
5698         struct.validate();
5699       }
5700
5701       public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_args struct) throws org.apache.thrift.TException {
5702         struct.validate();
5703
5704         oprot.writeStructBegin(STRUCT_DESC);
5705         if (struct.ipAddress != null) {
5706           oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
5707           oprot.writeString(struct.ipAddress);
5708           oprot.writeFieldEnd();
5709         }
5710         oprot.writeFieldStop();
5711         oprot.writeStructEnd();
5712       }
5713
5714     }
5715
5716     private static class deletePeer_argsTupleSchemeFactory implements SchemeFactory {
5717       public deletePeer_argsTupleScheme getScheme() {
5718         return new deletePeer_argsTupleScheme();
5719       }
5720     }
5721
5722     private static class deletePeer_argsTupleScheme extends TupleScheme<deletePeer_args> {
5723
5724       @Override
5725       public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
5726         TTupleProtocol oprot = (TTupleProtocol) prot;
5727         BitSet optionals = new BitSet();
5728         if (struct.isSetIpAddress()) {
5729           optionals.set(0);
5730         }
5731         oprot.writeBitSet(optionals, 1);
5732         if (struct.isSetIpAddress()) {
5733           oprot.writeString(struct.ipAddress);
5734         }
5735       }
5736
5737       @Override
5738       public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
5739         TTupleProtocol iprot = (TTupleProtocol) prot;
5740         BitSet incoming = iprot.readBitSet(1);
5741         if (incoming.get(0)) {
5742           struct.ipAddress = iprot.readString();
5743           struct.setIpAddressIsSet(true);
5744         }
5745       }
5746     }
5747
5748   }
5749
5750   public static class deletePeer_result implements org.apache.thrift.TBase<deletePeer_result, deletePeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_result>   {
5751     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_result");
5752
5753     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);
5754
5755     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5756     static {
5757       schemes.put(StandardScheme.class, new deletePeer_resultStandardSchemeFactory());
5758       schemes.put(TupleScheme.class, new deletePeer_resultTupleSchemeFactory());
5759     }
5760
5761     public int success; // required
5762
5763     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5764     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5765       SUCCESS((short)0, "success");
5766
5767       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5768
5769       static {
5770         for (_Fields field : EnumSet.allOf(_Fields.class)) {
5771           byName.put(field.getFieldName(), field);
5772         }
5773       }
5774
5775       /**
5776        * Find the _Fields constant that matches fieldId, or null if its not found.
5777        */
5778       public static _Fields findByThriftId(int fieldId) {
5779         switch(fieldId) {
5780           case 0: // SUCCESS
5781             return SUCCESS;
5782           default:
5783             return null;
5784         }
5785       }
5786
5787       /**
5788        * Find the _Fields constant that matches fieldId, throwing an exception
5789        * if it is not found.
5790        */
5791       public static _Fields findByThriftIdOrThrow(int fieldId) {
5792         _Fields fields = findByThriftId(fieldId);
5793         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5794         return fields;
5795       }
5796
5797       /**
5798        * Find the _Fields constant that matches name, or null if its not found.
5799        */
5800       public static _Fields findByName(String name) {
5801         return byName.get(name);
5802       }
5803
5804       private final short _thriftId;
5805       private final String _fieldName;
5806
5807       _Fields(short thriftId, String fieldName) {
5808         _thriftId = thriftId;
5809         _fieldName = fieldName;
5810       }
5811
5812       public short getThriftFieldId() {
5813         return _thriftId;
5814       }
5815
5816       public String getFieldName() {
5817         return _fieldName;
5818       }
5819     }
5820
5821     // isset id assignments
5822     private static final int __SUCCESS_ISSET_ID = 0;
5823     private byte __isset_bitfield = 0;
5824     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5825     static {
5826       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5827       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5828           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
5829       metaDataMap = Collections.unmodifiableMap(tmpMap);
5830       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_result.class, metaDataMap);
5831     }
5832
5833     public deletePeer_result() {
5834     }
5835
5836     public deletePeer_result(
5837       int success)
5838     {
5839       this();
5840       this.success = success;
5841       setSuccessIsSet(true);
5842     }
5843
5844     /**
5845      * Performs a deep copy on <i>other</i>.
5846      */
5847     public deletePeer_result(deletePeer_result other) {
5848       __isset_bitfield = other.__isset_bitfield;
5849       this.success = other.success;
5850     }
5851
5852     public deletePeer_result deepCopy() {
5853       return new deletePeer_result(this);
5854     }
5855
5856     @Override
5857     public void clear() {
5858       setSuccessIsSet(false);
5859       this.success = 0;
5860     }
5861
5862     public int getSuccess() {
5863       return this.success;
5864     }
5865
5866     public deletePeer_result setSuccess(int success) {
5867       this.success = success;
5868       setSuccessIsSet(true);
5869       return this;
5870     }
5871
5872     public void unsetSuccess() {
5873       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5874     }
5875
5876     /** Returns true if field success is set (has been assigned a value) and false otherwise */
5877     public boolean isSetSuccess() {
5878       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5879     }
5880
5881     public void setSuccessIsSet(boolean value) {
5882       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
5883     }
5884
5885     public void setFieldValue(_Fields field, Object value) {
5886       switch (field) {
5887       case SUCCESS:
5888         if (value == null) {
5889           unsetSuccess();
5890         } else {
5891           setSuccess((Integer)value);
5892         }
5893         break;
5894
5895       }
5896     }
5897
5898     public Object getFieldValue(_Fields field) {
5899       switch (field) {
5900       case SUCCESS:
5901         return Integer.valueOf(getSuccess());
5902
5903       }
5904       throw new IllegalStateException();
5905     }
5906
5907     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5908     public boolean isSet(_Fields field) {
5909       if (field == null) {
5910         throw new IllegalArgumentException();
5911       }
5912
5913       switch (field) {
5914       case SUCCESS:
5915         return isSetSuccess();
5916       }
5917       throw new IllegalStateException();
5918     }
5919
5920     @Override
5921     public boolean equals(Object that) {
5922       if (that == null)
5923         return false;
5924       if (that instanceof deletePeer_result)
5925         return this.equals((deletePeer_result)that);
5926       return false;
5927     }
5928
5929     public boolean equals(deletePeer_result that) {
5930       if (that == null)
5931         return false;
5932
5933       boolean this_present_success = true;
5934       boolean that_present_success = true;
5935       if (this_present_success || that_present_success) {
5936         if (!(this_present_success && that_present_success))
5937           return false;
5938         if (this.success != that.success)
5939           return false;
5940       }
5941
5942       return true;
5943     }
5944
5945     @Override
5946     public int hashCode() {
5947       return 0;
5948     }
5949
5950     @Override
5951     public int compareTo(deletePeer_result other) {
5952       if (!getClass().equals(other.getClass())) {
5953         return getClass().getName().compareTo(other.getClass().getName());
5954       }
5955
5956       int lastComparison = 0;
5957
5958       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5959       if (lastComparison != 0) {
5960         return lastComparison;
5961       }
5962       if (isSetSuccess()) {
5963         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5964         if (lastComparison != 0) {
5965           return lastComparison;
5966         }
5967       }
5968       return 0;
5969     }
5970
5971     public _Fields fieldForId(int fieldId) {
5972       return _Fields.findByThriftId(fieldId);
5973     }
5974
5975     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5976       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5977     }
5978
5979     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5980       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5981       }
5982
5983     @Override
5984     public String toString() {
5985       StringBuilder sb = new StringBuilder("deletePeer_result(");
5986       boolean first = true;
5987
5988       sb.append("success:");
5989       sb.append(this.success);
5990       first = false;
5991       sb.append(")");
5992       return sb.toString();
5993     }
5994
5995     public void validate() throws org.apache.thrift.TException {
5996       // check for required fields
5997       // check for sub-struct validity
5998     }
5999
6000     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6001       try {
6002         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6003       } catch (org.apache.thrift.TException te) {
6004         throw new java.io.IOException(te);
6005       }
6006     }
6007
6008     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6009       try {
6010         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6011         __isset_bitfield = 0;
6012         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6013       } catch (org.apache.thrift.TException te) {
6014         throw new java.io.IOException(te);
6015       }
6016     }
6017
6018     private static class deletePeer_resultStandardSchemeFactory implements SchemeFactory {
6019       public deletePeer_resultStandardScheme getScheme() {
6020         return new deletePeer_resultStandardScheme();
6021       }
6022     }
6023
6024     private static class deletePeer_resultStandardScheme extends StandardScheme<deletePeer_result> {
6025
6026       public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_result struct) throws org.apache.thrift.TException {
6027         org.apache.thrift.protocol.TField schemeField;
6028         iprot.readStructBegin();
6029         while (true)
6030         {
6031           schemeField = iprot.readFieldBegin();
6032           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
6033             break;
6034           }
6035           switch (schemeField.id) {
6036             case 0: // SUCCESS
6037               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
6038                 struct.success = iprot.readI32();
6039                 struct.setSuccessIsSet(true);
6040               } else { 
6041                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6042               }
6043               break;
6044             default:
6045               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6046           }
6047           iprot.readFieldEnd();
6048         }
6049         iprot.readStructEnd();
6050
6051         // check for required fields of primitive type, which can't be checked in the validate method
6052         struct.validate();
6053       }
6054
6055       public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_result struct) throws org.apache.thrift.TException {
6056         struct.validate();
6057
6058         oprot.writeStructBegin(STRUCT_DESC);
6059         if (struct.isSetSuccess()) {
6060           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6061           oprot.writeI32(struct.success);
6062           oprot.writeFieldEnd();
6063         }
6064         oprot.writeFieldStop();
6065         oprot.writeStructEnd();
6066       }
6067
6068     }
6069
6070     private static class deletePeer_resultTupleSchemeFactory implements SchemeFactory {
6071       public deletePeer_resultTupleScheme getScheme() {
6072         return new deletePeer_resultTupleScheme();
6073       }
6074     }
6075
6076     private static class deletePeer_resultTupleScheme extends TupleScheme<deletePeer_result> {
6077
6078       @Override
6079       public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
6080         TTupleProtocol oprot = (TTupleProtocol) prot;
6081         BitSet optionals = new BitSet();
6082         if (struct.isSetSuccess()) {
6083           optionals.set(0);
6084         }
6085         oprot.writeBitSet(optionals, 1);
6086         if (struct.isSetSuccess()) {
6087           oprot.writeI32(struct.success);
6088         }
6089       }
6090
6091       @Override
6092       public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
6093         TTupleProtocol iprot = (TTupleProtocol) prot;
6094         BitSet incoming = iprot.readBitSet(1);
6095         if (incoming.get(0)) {
6096           struct.success = iprot.readI32();
6097           struct.setSuccessIsSet(true);
6098         }
6099       }
6100     }
6101
6102   }
6103
6104   public static class addVrf_args implements org.apache.thrift.TBase<addVrf_args, addVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_args>   {
6105     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_args");
6106
6107     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);
6108     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);
6109     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);
6110
6111     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6112     static {
6113       schemes.put(StandardScheme.class, new addVrf_argsStandardSchemeFactory());
6114       schemes.put(TupleScheme.class, new addVrf_argsTupleSchemeFactory());
6115     }
6116
6117     public String rd; // required
6118     public List<String> irts; // required
6119     public List<String> erts; // required
6120
6121     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6122     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6123       RD((short)1, "rd"),
6124       IRTS((short)2, "irts"),
6125       ERTS((short)3, "erts");
6126
6127       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6128
6129       static {
6130         for (_Fields field : EnumSet.allOf(_Fields.class)) {
6131           byName.put(field.getFieldName(), field);
6132         }
6133       }
6134
6135       /**
6136        * Find the _Fields constant that matches fieldId, or null if its not found.
6137        */
6138       public static _Fields findByThriftId(int fieldId) {
6139         switch(fieldId) {
6140           case 1: // RD
6141             return RD;
6142           case 2: // IRTS
6143             return IRTS;
6144           case 3: // ERTS
6145             return ERTS;
6146           default:
6147             return null;
6148         }
6149       }
6150
6151       /**
6152        * Find the _Fields constant that matches fieldId, throwing an exception
6153        * if it is not found.
6154        */
6155       public static _Fields findByThriftIdOrThrow(int fieldId) {
6156         _Fields fields = findByThriftId(fieldId);
6157         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6158         return fields;
6159       }
6160
6161       /**
6162        * Find the _Fields constant that matches name, or null if its not found.
6163        */
6164       public static _Fields findByName(String name) {
6165         return byName.get(name);
6166       }
6167
6168       private final short _thriftId;
6169       private final String _fieldName;
6170
6171       _Fields(short thriftId, String fieldName) {
6172         _thriftId = thriftId;
6173         _fieldName = fieldName;
6174       }
6175
6176       public short getThriftFieldId() {
6177         return _thriftId;
6178       }
6179
6180       public String getFieldName() {
6181         return _fieldName;
6182       }
6183     }
6184
6185     // isset id assignments
6186     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6187     static {
6188       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6189       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6190           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6191       tmpMap.put(_Fields.IRTS, new org.apache.thrift.meta_data.FieldMetaData("irts", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6192           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6193               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
6194       tmpMap.put(_Fields.ERTS, new org.apache.thrift.meta_data.FieldMetaData("erts", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6195           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6196               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
6197       metaDataMap = Collections.unmodifiableMap(tmpMap);
6198       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_args.class, metaDataMap);
6199     }
6200
6201     public addVrf_args() {
6202     }
6203
6204     public addVrf_args(
6205       String rd,
6206       List<String> irts,
6207       List<String> erts)
6208     {
6209       this();
6210       this.rd = rd;
6211       this.irts = irts;
6212       this.erts = erts;
6213     }
6214
6215     /**
6216      * Performs a deep copy on <i>other</i>.
6217      */
6218     public addVrf_args(addVrf_args other) {
6219       if (other.isSetRd()) {
6220         this.rd = other.rd;
6221       }
6222       if (other.isSetIrts()) {
6223         List<String> __this__irts = new ArrayList<String>(other.irts);
6224         this.irts = __this__irts;
6225       }
6226       if (other.isSetErts()) {
6227         List<String> __this__erts = new ArrayList<String>(other.erts);
6228         this.erts = __this__erts;
6229       }
6230     }
6231
6232     public addVrf_args deepCopy() {
6233       return new addVrf_args(this);
6234     }
6235
6236     @Override
6237     public void clear() {
6238       this.rd = null;
6239       this.irts = null;
6240       this.erts = null;
6241     }
6242
6243     public String getRd() {
6244       return this.rd;
6245     }
6246
6247     public addVrf_args setRd(String rd) {
6248       this.rd = rd;
6249       return this;
6250     }
6251
6252     public void unsetRd() {
6253       this.rd = null;
6254     }
6255
6256     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
6257     public boolean isSetRd() {
6258       return this.rd != null;
6259     }
6260
6261     public void setRdIsSet(boolean value) {
6262       if (!value) {
6263         this.rd = null;
6264       }
6265     }
6266
6267     public int getIrtsSize() {
6268       return (this.irts == null) ? 0 : this.irts.size();
6269     }
6270
6271     public java.util.Iterator<String> getIrtsIterator() {
6272       return (this.irts == null) ? null : this.irts.iterator();
6273     }
6274
6275     public void addToIrts(String elem) {
6276       if (this.irts == null) {
6277         this.irts = new ArrayList<String>();
6278       }
6279       this.irts.add(elem);
6280     }
6281
6282     public List<String> getIrts() {
6283       return this.irts;
6284     }
6285
6286     public addVrf_args setIrts(List<String> irts) {
6287       this.irts = irts;
6288       return this;
6289     }
6290
6291     public void unsetIrts() {
6292       this.irts = null;
6293     }
6294
6295     /** Returns true if field irts is set (has been assigned a value) and false otherwise */
6296     public boolean isSetIrts() {
6297       return this.irts != null;
6298     }
6299
6300     public void setIrtsIsSet(boolean value) {
6301       if (!value) {
6302         this.irts = null;
6303       }
6304     }
6305
6306     public int getErtsSize() {
6307       return (this.erts == null) ? 0 : this.erts.size();
6308     }
6309
6310     public java.util.Iterator<String> getErtsIterator() {
6311       return (this.erts == null) ? null : this.erts.iterator();
6312     }
6313
6314     public void addToErts(String elem) {
6315       if (this.erts == null) {
6316         this.erts = new ArrayList<String>();
6317       }
6318       this.erts.add(elem);
6319     }
6320
6321     public List<String> getErts() {
6322       return this.erts;
6323     }
6324
6325     public addVrf_args setErts(List<String> erts) {
6326       this.erts = erts;
6327       return this;
6328     }
6329
6330     public void unsetErts() {
6331       this.erts = null;
6332     }
6333
6334     /** Returns true if field erts is set (has been assigned a value) and false otherwise */
6335     public boolean isSetErts() {
6336       return this.erts != null;
6337     }
6338
6339     public void setErtsIsSet(boolean value) {
6340       if (!value) {
6341         this.erts = null;
6342       }
6343     }
6344
6345     public void setFieldValue(_Fields field, Object value) {
6346       switch (field) {
6347       case RD:
6348         if (value == null) {
6349           unsetRd();
6350         } else {
6351           setRd((String)value);
6352         }
6353         break;
6354
6355       case IRTS:
6356         if (value == null) {
6357           unsetIrts();
6358         } else {
6359           setIrts((List<String>)value);
6360         }
6361         break;
6362
6363       case ERTS:
6364         if (value == null) {
6365           unsetErts();
6366         } else {
6367           setErts((List<String>)value);
6368         }
6369         break;
6370
6371       }
6372     }
6373
6374     public Object getFieldValue(_Fields field) {
6375       switch (field) {
6376       case RD:
6377         return getRd();
6378
6379       case IRTS:
6380         return getIrts();
6381
6382       case ERTS:
6383         return getErts();
6384
6385       }
6386       throw new IllegalStateException();
6387     }
6388
6389     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6390     public boolean isSet(_Fields field) {
6391       if (field == null) {
6392         throw new IllegalArgumentException();
6393       }
6394
6395       switch (field) {
6396       case RD:
6397         return isSetRd();
6398       case IRTS:
6399         return isSetIrts();
6400       case ERTS:
6401         return isSetErts();
6402       }
6403       throw new IllegalStateException();
6404     }
6405
6406     @Override
6407     public boolean equals(Object that) {
6408       if (that == null)
6409         return false;
6410       if (that instanceof addVrf_args)
6411         return this.equals((addVrf_args)that);
6412       return false;
6413     }
6414
6415     public boolean equals(addVrf_args that) {
6416       if (that == null)
6417         return false;
6418
6419       boolean this_present_rd = true && this.isSetRd();
6420       boolean that_present_rd = true && that.isSetRd();
6421       if (this_present_rd || that_present_rd) {
6422         if (!(this_present_rd && that_present_rd))
6423           return false;
6424         if (!this.rd.equals(that.rd))
6425           return false;
6426       }
6427
6428       boolean this_present_irts = true && this.isSetIrts();
6429       boolean that_present_irts = true && that.isSetIrts();
6430       if (this_present_irts || that_present_irts) {
6431         if (!(this_present_irts && that_present_irts))
6432           return false;
6433         if (!this.irts.equals(that.irts))
6434           return false;
6435       }
6436
6437       boolean this_present_erts = true && this.isSetErts();
6438       boolean that_present_erts = true && that.isSetErts();
6439       if (this_present_erts || that_present_erts) {
6440         if (!(this_present_erts && that_present_erts))
6441           return false;
6442         if (!this.erts.equals(that.erts))
6443           return false;
6444       }
6445
6446       return true;
6447     }
6448
6449     @Override
6450     public int hashCode() {
6451       return 0;
6452     }
6453
6454     @Override
6455     public int compareTo(addVrf_args other) {
6456       if (!getClass().equals(other.getClass())) {
6457         return getClass().getName().compareTo(other.getClass().getName());
6458       }
6459
6460       int lastComparison = 0;
6461
6462       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
6463       if (lastComparison != 0) {
6464         return lastComparison;
6465       }
6466       if (isSetRd()) {
6467         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
6468         if (lastComparison != 0) {
6469           return lastComparison;
6470         }
6471       }
6472       lastComparison = Boolean.valueOf(isSetIrts()).compareTo(other.isSetIrts());
6473       if (lastComparison != 0) {
6474         return lastComparison;
6475       }
6476       if (isSetIrts()) {
6477         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.irts, other.irts);
6478         if (lastComparison != 0) {
6479           return lastComparison;
6480         }
6481       }
6482       lastComparison = Boolean.valueOf(isSetErts()).compareTo(other.isSetErts());
6483       if (lastComparison != 0) {
6484         return lastComparison;
6485       }
6486       if (isSetErts()) {
6487         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.erts, other.erts);
6488         if (lastComparison != 0) {
6489           return lastComparison;
6490         }
6491       }
6492       return 0;
6493     }
6494
6495     public _Fields fieldForId(int fieldId) {
6496       return _Fields.findByThriftId(fieldId);
6497     }
6498
6499     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6500       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6501     }
6502
6503     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6504       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6505     }
6506
6507     @Override
6508     public String toString() {
6509       StringBuilder sb = new StringBuilder("addVrf_args(");
6510       boolean first = true;
6511
6512       sb.append("rd:");
6513       if (this.rd == null) {
6514         sb.append("null");
6515       } else {
6516         sb.append(this.rd);
6517       }
6518       first = false;
6519       if (!first) sb.append(", ");
6520       sb.append("irts:");
6521       if (this.irts == null) {
6522         sb.append("null");
6523       } else {
6524         sb.append(this.irts);
6525       }
6526       first = false;
6527       if (!first) sb.append(", ");
6528       sb.append("erts:");
6529       if (this.erts == null) {
6530         sb.append("null");
6531       } else {
6532         sb.append(this.erts);
6533       }
6534       first = false;
6535       sb.append(")");
6536       return sb.toString();
6537     }
6538
6539     public void validate() throws org.apache.thrift.TException {
6540       // check for required fields
6541       // check for sub-struct validity
6542     }
6543
6544     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6545       try {
6546         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6547       } catch (org.apache.thrift.TException te) {
6548         throw new java.io.IOException(te);
6549       }
6550     }
6551
6552     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6553       try {
6554         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6555       } catch (org.apache.thrift.TException te) {
6556         throw new java.io.IOException(te);
6557       }
6558     }
6559
6560     private static class addVrf_argsStandardSchemeFactory implements SchemeFactory {
6561       public addVrf_argsStandardScheme getScheme() {
6562         return new addVrf_argsStandardScheme();
6563       }
6564     }
6565
6566     private static class addVrf_argsStandardScheme extends StandardScheme<addVrf_args> {
6567
6568       public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_args struct) throws org.apache.thrift.TException {
6569         org.apache.thrift.protocol.TField schemeField;
6570         iprot.readStructBegin();
6571         while (true)
6572         {
6573           schemeField = iprot.readFieldBegin();
6574           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
6575             break;
6576           }
6577           switch (schemeField.id) {
6578             case 1: // RD
6579               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
6580                 struct.rd = iprot.readString();
6581                 struct.setRdIsSet(true);
6582               } else { 
6583                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6584               }
6585               break;
6586             case 2: // IRTS
6587               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
6588                 {
6589                   org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
6590                   struct.irts = new ArrayList<String>(_list8.size);
6591                   for (int _i9 = 0; _i9 < _list8.size; ++_i9)
6592                   {
6593                     String _elem10;
6594                     _elem10 = iprot.readString();
6595                     struct.irts.add(_elem10);
6596                   }
6597                   iprot.readListEnd();
6598                 }
6599                 struct.setIrtsIsSet(true);
6600               } else { 
6601                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6602               }
6603               break;
6604             case 3: // ERTS
6605               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
6606                 {
6607                   org.apache.thrift.protocol.TList _list11 = iprot.readListBegin();
6608                   struct.erts = new ArrayList<String>(_list11.size);
6609                   for (int _i12 = 0; _i12 < _list11.size; ++_i12)
6610                   {
6611                     String _elem13;
6612                     _elem13 = iprot.readString();
6613                     struct.erts.add(_elem13);
6614                   }
6615                   iprot.readListEnd();
6616                 }
6617                 struct.setErtsIsSet(true);
6618               } else { 
6619                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6620               }
6621               break;
6622             default:
6623               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6624           }
6625           iprot.readFieldEnd();
6626         }
6627         iprot.readStructEnd();
6628
6629         // check for required fields of primitive type, which can't be checked in the validate method
6630         struct.validate();
6631       }
6632
6633       public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_args struct) throws org.apache.thrift.TException {
6634         struct.validate();
6635
6636         oprot.writeStructBegin(STRUCT_DESC);
6637         if (struct.rd != null) {
6638           oprot.writeFieldBegin(RD_FIELD_DESC);
6639           oprot.writeString(struct.rd);
6640           oprot.writeFieldEnd();
6641         }
6642         if (struct.irts != null) {
6643           oprot.writeFieldBegin(IRTS_FIELD_DESC);
6644           {
6645             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.irts.size()));
6646             for (String _iter14 : struct.irts)
6647             {
6648               oprot.writeString(_iter14);
6649             }
6650             oprot.writeListEnd();
6651           }
6652           oprot.writeFieldEnd();
6653         }
6654         if (struct.erts != null) {
6655           oprot.writeFieldBegin(ERTS_FIELD_DESC);
6656           {
6657             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.erts.size()));
6658             for (String _iter15 : struct.erts)
6659             {
6660               oprot.writeString(_iter15);
6661             }
6662             oprot.writeListEnd();
6663           }
6664           oprot.writeFieldEnd();
6665         }
6666         oprot.writeFieldStop();
6667         oprot.writeStructEnd();
6668       }
6669
6670     }
6671
6672     private static class addVrf_argsTupleSchemeFactory implements SchemeFactory {
6673       public addVrf_argsTupleScheme getScheme() {
6674         return new addVrf_argsTupleScheme();
6675       }
6676     }
6677
6678     private static class addVrf_argsTupleScheme extends TupleScheme<addVrf_args> {
6679
6680       @Override
6681       public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
6682         TTupleProtocol oprot = (TTupleProtocol) prot;
6683         BitSet optionals = new BitSet();
6684         if (struct.isSetRd()) {
6685           optionals.set(0);
6686         }
6687         if (struct.isSetIrts()) {
6688           optionals.set(1);
6689         }
6690         if (struct.isSetErts()) {
6691           optionals.set(2);
6692         }
6693         oprot.writeBitSet(optionals, 3);
6694         if (struct.isSetRd()) {
6695           oprot.writeString(struct.rd);
6696         }
6697         if (struct.isSetIrts()) {
6698           {
6699             oprot.writeI32(struct.irts.size());
6700             for (String _iter16 : struct.irts)
6701             {
6702               oprot.writeString(_iter16);
6703             }
6704           }
6705         }
6706         if (struct.isSetErts()) {
6707           {
6708             oprot.writeI32(struct.erts.size());
6709             for (String _iter17 : struct.erts)
6710             {
6711               oprot.writeString(_iter17);
6712             }
6713           }
6714         }
6715       }
6716
6717       @Override
6718       public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
6719         TTupleProtocol iprot = (TTupleProtocol) prot;
6720         BitSet incoming = iprot.readBitSet(3);
6721         if (incoming.get(0)) {
6722           struct.rd = iprot.readString();
6723           struct.setRdIsSet(true);
6724         }
6725         if (incoming.get(1)) {
6726           {
6727             org.apache.thrift.protocol.TList _list18 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
6728             struct.irts = new ArrayList<String>(_list18.size);
6729             for (int _i19 = 0; _i19 < _list18.size; ++_i19)
6730             {
6731               String _elem20;
6732               _elem20 = iprot.readString();
6733               struct.irts.add(_elem20);
6734             }
6735           }
6736           struct.setIrtsIsSet(true);
6737         }
6738         if (incoming.get(2)) {
6739           {
6740             org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
6741             struct.erts = new ArrayList<String>(_list21.size);
6742             for (int _i22 = 0; _i22 < _list21.size; ++_i22)
6743             {
6744               String _elem23;
6745               _elem23 = iprot.readString();
6746               struct.erts.add(_elem23);
6747             }
6748           }
6749           struct.setErtsIsSet(true);
6750         }
6751       }
6752     }
6753
6754   }
6755
6756   public static class addVrf_result implements org.apache.thrift.TBase<addVrf_result, addVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_result>   {
6757     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_result");
6758
6759     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);
6760
6761     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6762     static {
6763       schemes.put(StandardScheme.class, new addVrf_resultStandardSchemeFactory());
6764       schemes.put(TupleScheme.class, new addVrf_resultTupleSchemeFactory());
6765     }
6766
6767     public int success; // required
6768
6769     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6770     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6771       SUCCESS((short)0, "success");
6772
6773       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6774
6775       static {
6776         for (_Fields field : EnumSet.allOf(_Fields.class)) {
6777           byName.put(field.getFieldName(), field);
6778         }
6779       }
6780
6781       /**
6782        * Find the _Fields constant that matches fieldId, or null if its not found.
6783        */
6784       public static _Fields findByThriftId(int fieldId) {
6785         switch(fieldId) {
6786           case 0: // SUCCESS
6787             return SUCCESS;
6788           default:
6789             return null;
6790         }
6791       }
6792
6793       /**
6794        * Find the _Fields constant that matches fieldId, throwing an exception
6795        * if it is not found.
6796        */
6797       public static _Fields findByThriftIdOrThrow(int fieldId) {
6798         _Fields fields = findByThriftId(fieldId);
6799         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6800         return fields;
6801       }
6802
6803       /**
6804        * Find the _Fields constant that matches name, or null if its not found.
6805        */
6806       public static _Fields findByName(String name) {
6807         return byName.get(name);
6808       }
6809
6810       private final short _thriftId;
6811       private final String _fieldName;
6812
6813       _Fields(short thriftId, String fieldName) {
6814         _thriftId = thriftId;
6815         _fieldName = fieldName;
6816       }
6817
6818       public short getThriftFieldId() {
6819         return _thriftId;
6820       }
6821
6822       public String getFieldName() {
6823         return _fieldName;
6824       }
6825     }
6826
6827     // isset id assignments
6828     private static final int __SUCCESS_ISSET_ID = 0;
6829     private byte __isset_bitfield = 0;
6830     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6831     static {
6832       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6833       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6834           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6835       metaDataMap = Collections.unmodifiableMap(tmpMap);
6836       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_result.class, metaDataMap);
6837     }
6838
6839     public addVrf_result() {
6840     }
6841
6842     public addVrf_result(
6843       int success)
6844     {
6845       this();
6846       this.success = success;
6847       setSuccessIsSet(true);
6848     }
6849
6850     /**
6851      * Performs a deep copy on <i>other</i>.
6852      */
6853     public addVrf_result(addVrf_result other) {
6854       __isset_bitfield = other.__isset_bitfield;
6855       this.success = other.success;
6856     }
6857
6858     public addVrf_result deepCopy() {
6859       return new addVrf_result(this);
6860     }
6861
6862     @Override
6863     public void clear() {
6864       setSuccessIsSet(false);
6865       this.success = 0;
6866     }
6867
6868     public int getSuccess() {
6869       return this.success;
6870     }
6871
6872     public addVrf_result setSuccess(int success) {
6873       this.success = success;
6874       setSuccessIsSet(true);
6875       return this;
6876     }
6877
6878     public void unsetSuccess() {
6879       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6880     }
6881
6882     /** Returns true if field success is set (has been assigned a value) and false otherwise */
6883     public boolean isSetSuccess() {
6884       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6885     }
6886
6887     public void setSuccessIsSet(boolean value) {
6888       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
6889     }
6890
6891     public void setFieldValue(_Fields field, Object value) {
6892       switch (field) {
6893       case SUCCESS:
6894         if (value == null) {
6895           unsetSuccess();
6896         } else {
6897           setSuccess((Integer)value);
6898         }
6899         break;
6900
6901       }
6902     }
6903
6904     public Object getFieldValue(_Fields field) {
6905       switch (field) {
6906       case SUCCESS:
6907         return Integer.valueOf(getSuccess());
6908
6909       }
6910       throw new IllegalStateException();
6911     }
6912
6913     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6914     public boolean isSet(_Fields field) {
6915       if (field == null) {
6916         throw new IllegalArgumentException();
6917       }
6918
6919       switch (field) {
6920       case SUCCESS:
6921         return isSetSuccess();
6922       }
6923       throw new IllegalStateException();
6924     }
6925
6926     @Override
6927     public boolean equals(Object that) {
6928       if (that == null)
6929         return false;
6930       if (that instanceof addVrf_result)
6931         return this.equals((addVrf_result)that);
6932       return false;
6933     }
6934
6935     public boolean equals(addVrf_result that) {
6936       if (that == null)
6937         return false;
6938
6939       boolean this_present_success = true;
6940       boolean that_present_success = true;
6941       if (this_present_success || that_present_success) {
6942         if (!(this_present_success && that_present_success))
6943           return false;
6944         if (this.success != that.success)
6945           return false;
6946       }
6947
6948       return true;
6949     }
6950
6951     @Override
6952     public int hashCode() {
6953       return 0;
6954     }
6955
6956     @Override
6957     public int compareTo(addVrf_result other) {
6958       if (!getClass().equals(other.getClass())) {
6959         return getClass().getName().compareTo(other.getClass().getName());
6960       }
6961
6962       int lastComparison = 0;
6963
6964       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
6965       if (lastComparison != 0) {
6966         return lastComparison;
6967       }
6968       if (isSetSuccess()) {
6969         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
6970         if (lastComparison != 0) {
6971           return lastComparison;
6972         }
6973       }
6974       return 0;
6975     }
6976
6977     public _Fields fieldForId(int fieldId) {
6978       return _Fields.findByThriftId(fieldId);
6979     }
6980
6981     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6982       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6983     }
6984
6985     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6986       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6987       }
6988
6989     @Override
6990     public String toString() {
6991       StringBuilder sb = new StringBuilder("addVrf_result(");
6992       boolean first = true;
6993
6994       sb.append("success:");
6995       sb.append(this.success);
6996       first = false;
6997       sb.append(")");
6998       return sb.toString();
6999     }
7000
7001     public void validate() throws org.apache.thrift.TException {
7002       // check for required fields
7003       // check for sub-struct validity
7004     }
7005
7006     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7007       try {
7008         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7009       } catch (org.apache.thrift.TException te) {
7010         throw new java.io.IOException(te);
7011       }
7012     }
7013
7014     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7015       try {
7016         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7017         __isset_bitfield = 0;
7018         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7019       } catch (org.apache.thrift.TException te) {
7020         throw new java.io.IOException(te);
7021       }
7022     }
7023
7024     private static class addVrf_resultStandardSchemeFactory implements SchemeFactory {
7025       public addVrf_resultStandardScheme getScheme() {
7026         return new addVrf_resultStandardScheme();
7027       }
7028     }
7029
7030     private static class addVrf_resultStandardScheme extends StandardScheme<addVrf_result> {
7031
7032       public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_result struct) throws org.apache.thrift.TException {
7033         org.apache.thrift.protocol.TField schemeField;
7034         iprot.readStructBegin();
7035         while (true)
7036         {
7037           schemeField = iprot.readFieldBegin();
7038           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
7039             break;
7040           }
7041           switch (schemeField.id) {
7042             case 0: // SUCCESS
7043               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
7044                 struct.success = iprot.readI32();
7045                 struct.setSuccessIsSet(true);
7046               } else { 
7047                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7048               }
7049               break;
7050             default:
7051               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7052           }
7053           iprot.readFieldEnd();
7054         }
7055         iprot.readStructEnd();
7056
7057         // check for required fields of primitive type, which can't be checked in the validate method
7058         struct.validate();
7059       }
7060
7061       public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_result struct) throws org.apache.thrift.TException {
7062         struct.validate();
7063
7064         oprot.writeStructBegin(STRUCT_DESC);
7065         if (struct.isSetSuccess()) {
7066           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7067           oprot.writeI32(struct.success);
7068           oprot.writeFieldEnd();
7069         }
7070         oprot.writeFieldStop();
7071         oprot.writeStructEnd();
7072       }
7073
7074     }
7075
7076     private static class addVrf_resultTupleSchemeFactory implements SchemeFactory {
7077       public addVrf_resultTupleScheme getScheme() {
7078         return new addVrf_resultTupleScheme();
7079       }
7080     }
7081
7082     private static class addVrf_resultTupleScheme extends TupleScheme<addVrf_result> {
7083
7084       @Override
7085       public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
7086         TTupleProtocol oprot = (TTupleProtocol) prot;
7087         BitSet optionals = new BitSet();
7088         if (struct.isSetSuccess()) {
7089           optionals.set(0);
7090         }
7091         oprot.writeBitSet(optionals, 1);
7092         if (struct.isSetSuccess()) {
7093           oprot.writeI32(struct.success);
7094         }
7095       }
7096
7097       @Override
7098       public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
7099         TTupleProtocol iprot = (TTupleProtocol) prot;
7100         BitSet incoming = iprot.readBitSet(1);
7101         if (incoming.get(0)) {
7102           struct.success = iprot.readI32();
7103           struct.setSuccessIsSet(true);
7104         }
7105       }
7106     }
7107
7108   }
7109
7110   public static class delVrf_args implements org.apache.thrift.TBase<delVrf_args, delVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_args>   {
7111     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_args");
7112
7113     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);
7114
7115     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7116     static {
7117       schemes.put(StandardScheme.class, new delVrf_argsStandardSchemeFactory());
7118       schemes.put(TupleScheme.class, new delVrf_argsTupleSchemeFactory());
7119     }
7120
7121     public String rd; // required
7122
7123     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7124     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7125       RD((short)1, "rd");
7126
7127       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7128
7129       static {
7130         for (_Fields field : EnumSet.allOf(_Fields.class)) {
7131           byName.put(field.getFieldName(), field);
7132         }
7133       }
7134
7135       /**
7136        * Find the _Fields constant that matches fieldId, or null if its not found.
7137        */
7138       public static _Fields findByThriftId(int fieldId) {
7139         switch(fieldId) {
7140           case 1: // RD
7141             return RD;
7142           default:
7143             return null;
7144         }
7145       }
7146
7147       /**
7148        * Find the _Fields constant that matches fieldId, throwing an exception
7149        * if it is not found.
7150        */
7151       public static _Fields findByThriftIdOrThrow(int fieldId) {
7152         _Fields fields = findByThriftId(fieldId);
7153         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7154         return fields;
7155       }
7156
7157       /**
7158        * Find the _Fields constant that matches name, or null if its not found.
7159        */
7160       public static _Fields findByName(String name) {
7161         return byName.get(name);
7162       }
7163
7164       private final short _thriftId;
7165       private final String _fieldName;
7166
7167       _Fields(short thriftId, String fieldName) {
7168         _thriftId = thriftId;
7169         _fieldName = fieldName;
7170       }
7171
7172       public short getThriftFieldId() {
7173         return _thriftId;
7174       }
7175
7176       public String getFieldName() {
7177         return _fieldName;
7178       }
7179     }
7180
7181     // isset id assignments
7182     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7183     static {
7184       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7185       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7186           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7187       metaDataMap = Collections.unmodifiableMap(tmpMap);
7188       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_args.class, metaDataMap);
7189     }
7190
7191     public delVrf_args() {
7192     }
7193
7194     public delVrf_args(
7195       String rd)
7196     {
7197       this();
7198       this.rd = rd;
7199     }
7200
7201     /**
7202      * Performs a deep copy on <i>other</i>.
7203      */
7204     public delVrf_args(delVrf_args other) {
7205       if (other.isSetRd()) {
7206         this.rd = other.rd;
7207       }
7208     }
7209
7210     public delVrf_args deepCopy() {
7211       return new delVrf_args(this);
7212     }
7213
7214     @Override
7215     public void clear() {
7216       this.rd = null;
7217     }
7218
7219     public String getRd() {
7220       return this.rd;
7221     }
7222
7223     public delVrf_args setRd(String rd) {
7224       this.rd = rd;
7225       return this;
7226     }
7227
7228     public void unsetRd() {
7229       this.rd = null;
7230     }
7231
7232     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
7233     public boolean isSetRd() {
7234       return this.rd != null;
7235     }
7236
7237     public void setRdIsSet(boolean value) {
7238       if (!value) {
7239         this.rd = null;
7240       }
7241     }
7242
7243     public void setFieldValue(_Fields field, Object value) {
7244       switch (field) {
7245       case RD:
7246         if (value == null) {
7247           unsetRd();
7248         } else {
7249           setRd((String)value);
7250         }
7251         break;
7252
7253       }
7254     }
7255
7256     public Object getFieldValue(_Fields field) {
7257       switch (field) {
7258       case RD:
7259         return getRd();
7260
7261       }
7262       throw new IllegalStateException();
7263     }
7264
7265     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7266     public boolean isSet(_Fields field) {
7267       if (field == null) {
7268         throw new IllegalArgumentException();
7269       }
7270
7271       switch (field) {
7272       case RD:
7273         return isSetRd();
7274       }
7275       throw new IllegalStateException();
7276     }
7277
7278     @Override
7279     public boolean equals(Object that) {
7280       if (that == null)
7281         return false;
7282       if (that instanceof delVrf_args)
7283         return this.equals((delVrf_args)that);
7284       return false;
7285     }
7286
7287     public boolean equals(delVrf_args that) {
7288       if (that == null)
7289         return false;
7290
7291       boolean this_present_rd = true && this.isSetRd();
7292       boolean that_present_rd = true && that.isSetRd();
7293       if (this_present_rd || that_present_rd) {
7294         if (!(this_present_rd && that_present_rd))
7295           return false;
7296         if (!this.rd.equals(that.rd))
7297           return false;
7298       }
7299
7300       return true;
7301     }
7302
7303     @Override
7304     public int hashCode() {
7305       return 0;
7306     }
7307
7308     @Override
7309     public int compareTo(delVrf_args other) {
7310       if (!getClass().equals(other.getClass())) {
7311         return getClass().getName().compareTo(other.getClass().getName());
7312       }
7313
7314       int lastComparison = 0;
7315
7316       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
7317       if (lastComparison != 0) {
7318         return lastComparison;
7319       }
7320       if (isSetRd()) {
7321         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
7322         if (lastComparison != 0) {
7323           return lastComparison;
7324         }
7325       }
7326       return 0;
7327     }
7328
7329     public _Fields fieldForId(int fieldId) {
7330       return _Fields.findByThriftId(fieldId);
7331     }
7332
7333     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7334       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7335     }
7336
7337     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7338       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7339     }
7340
7341     @Override
7342     public String toString() {
7343       StringBuilder sb = new StringBuilder("delVrf_args(");
7344       boolean first = true;
7345
7346       sb.append("rd:");
7347       if (this.rd == null) {
7348         sb.append("null");
7349       } else {
7350         sb.append(this.rd);
7351       }
7352       first = false;
7353       sb.append(")");
7354       return sb.toString();
7355     }
7356
7357     public void validate() throws org.apache.thrift.TException {
7358       // check for required fields
7359       // check for sub-struct validity
7360     }
7361
7362     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7363       try {
7364         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7365       } catch (org.apache.thrift.TException te) {
7366         throw new java.io.IOException(te);
7367       }
7368     }
7369
7370     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7371       try {
7372         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7373       } catch (org.apache.thrift.TException te) {
7374         throw new java.io.IOException(te);
7375       }
7376     }
7377
7378     private static class delVrf_argsStandardSchemeFactory implements SchemeFactory {
7379       public delVrf_argsStandardScheme getScheme() {
7380         return new delVrf_argsStandardScheme();
7381       }
7382     }
7383
7384     private static class delVrf_argsStandardScheme extends StandardScheme<delVrf_args> {
7385
7386       public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_args struct) throws org.apache.thrift.TException {
7387         org.apache.thrift.protocol.TField schemeField;
7388         iprot.readStructBegin();
7389         while (true)
7390         {
7391           schemeField = iprot.readFieldBegin();
7392           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
7393             break;
7394           }
7395           switch (schemeField.id) {
7396             case 1: // RD
7397               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7398                 struct.rd = iprot.readString();
7399                 struct.setRdIsSet(true);
7400               } else { 
7401                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7402               }
7403               break;
7404             default:
7405               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7406           }
7407           iprot.readFieldEnd();
7408         }
7409         iprot.readStructEnd();
7410
7411         // check for required fields of primitive type, which can't be checked in the validate method
7412         struct.validate();
7413       }
7414
7415       public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_args struct) throws org.apache.thrift.TException {
7416         struct.validate();
7417
7418         oprot.writeStructBegin(STRUCT_DESC);
7419         if (struct.rd != null) {
7420           oprot.writeFieldBegin(RD_FIELD_DESC);
7421           oprot.writeString(struct.rd);
7422           oprot.writeFieldEnd();
7423         }
7424         oprot.writeFieldStop();
7425         oprot.writeStructEnd();
7426       }
7427
7428     }
7429
7430     private static class delVrf_argsTupleSchemeFactory implements SchemeFactory {
7431       public delVrf_argsTupleScheme getScheme() {
7432         return new delVrf_argsTupleScheme();
7433       }
7434     }
7435
7436     private static class delVrf_argsTupleScheme extends TupleScheme<delVrf_args> {
7437
7438       @Override
7439       public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
7440         TTupleProtocol oprot = (TTupleProtocol) prot;
7441         BitSet optionals = new BitSet();
7442         if (struct.isSetRd()) {
7443           optionals.set(0);
7444         }
7445         oprot.writeBitSet(optionals, 1);
7446         if (struct.isSetRd()) {
7447           oprot.writeString(struct.rd);
7448         }
7449       }
7450
7451       @Override
7452       public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
7453         TTupleProtocol iprot = (TTupleProtocol) prot;
7454         BitSet incoming = iprot.readBitSet(1);
7455         if (incoming.get(0)) {
7456           struct.rd = iprot.readString();
7457           struct.setRdIsSet(true);
7458         }
7459       }
7460     }
7461
7462   }
7463
7464   public static class delVrf_result implements org.apache.thrift.TBase<delVrf_result, delVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_result>   {
7465     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_result");
7466
7467     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);
7468
7469     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7470     static {
7471       schemes.put(StandardScheme.class, new delVrf_resultStandardSchemeFactory());
7472       schemes.put(TupleScheme.class, new delVrf_resultTupleSchemeFactory());
7473     }
7474
7475     public int success; // required
7476
7477     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7478     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7479       SUCCESS((short)0, "success");
7480
7481       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7482
7483       static {
7484         for (_Fields field : EnumSet.allOf(_Fields.class)) {
7485           byName.put(field.getFieldName(), field);
7486         }
7487       }
7488
7489       /**
7490        * Find the _Fields constant that matches fieldId, or null if its not found.
7491        */
7492       public static _Fields findByThriftId(int fieldId) {
7493         switch(fieldId) {
7494           case 0: // SUCCESS
7495             return SUCCESS;
7496           default:
7497             return null;
7498         }
7499       }
7500
7501       /**
7502        * Find the _Fields constant that matches fieldId, throwing an exception
7503        * if it is not found.
7504        */
7505       public static _Fields findByThriftIdOrThrow(int fieldId) {
7506         _Fields fields = findByThriftId(fieldId);
7507         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7508         return fields;
7509       }
7510
7511       /**
7512        * Find the _Fields constant that matches name, or null if its not found.
7513        */
7514       public static _Fields findByName(String name) {
7515         return byName.get(name);
7516       }
7517
7518       private final short _thriftId;
7519       private final String _fieldName;
7520
7521       _Fields(short thriftId, String fieldName) {
7522         _thriftId = thriftId;
7523         _fieldName = fieldName;
7524       }
7525
7526       public short getThriftFieldId() {
7527         return _thriftId;
7528       }
7529
7530       public String getFieldName() {
7531         return _fieldName;
7532       }
7533     }
7534
7535     // isset id assignments
7536     private static final int __SUCCESS_ISSET_ID = 0;
7537     private byte __isset_bitfield = 0;
7538     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7539     static {
7540       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7541       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7542           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
7543       metaDataMap = Collections.unmodifiableMap(tmpMap);
7544       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_result.class, metaDataMap);
7545     }
7546
7547     public delVrf_result() {
7548     }
7549
7550     public delVrf_result(
7551       int success)
7552     {
7553       this();
7554       this.success = success;
7555       setSuccessIsSet(true);
7556     }
7557
7558     /**
7559      * Performs a deep copy on <i>other</i>.
7560      */
7561     public delVrf_result(delVrf_result other) {
7562       __isset_bitfield = other.__isset_bitfield;
7563       this.success = other.success;
7564     }
7565
7566     public delVrf_result deepCopy() {
7567       return new delVrf_result(this);
7568     }
7569
7570     @Override
7571     public void clear() {
7572       setSuccessIsSet(false);
7573       this.success = 0;
7574     }
7575
7576     public int getSuccess() {
7577       return this.success;
7578     }
7579
7580     public delVrf_result setSuccess(int success) {
7581       this.success = success;
7582       setSuccessIsSet(true);
7583       return this;
7584     }
7585
7586     public void unsetSuccess() {
7587       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7588     }
7589
7590     /** Returns true if field success is set (has been assigned a value) and false otherwise */
7591     public boolean isSetSuccess() {
7592       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7593     }
7594
7595     public void setSuccessIsSet(boolean value) {
7596       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
7597     }
7598
7599     public void setFieldValue(_Fields field, Object value) {
7600       switch (field) {
7601       case SUCCESS:
7602         if (value == null) {
7603           unsetSuccess();
7604         } else {
7605           setSuccess((Integer)value);
7606         }
7607         break;
7608
7609       }
7610     }
7611
7612     public Object getFieldValue(_Fields field) {
7613       switch (field) {
7614       case SUCCESS:
7615         return Integer.valueOf(getSuccess());
7616
7617       }
7618       throw new IllegalStateException();
7619     }
7620
7621     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7622     public boolean isSet(_Fields field) {
7623       if (field == null) {
7624         throw new IllegalArgumentException();
7625       }
7626
7627       switch (field) {
7628       case SUCCESS:
7629         return isSetSuccess();
7630       }
7631       throw new IllegalStateException();
7632     }
7633
7634     @Override
7635     public boolean equals(Object that) {
7636       if (that == null)
7637         return false;
7638       if (that instanceof delVrf_result)
7639         return this.equals((delVrf_result)that);
7640       return false;
7641     }
7642
7643     public boolean equals(delVrf_result that) {
7644       if (that == null)
7645         return false;
7646
7647       boolean this_present_success = true;
7648       boolean that_present_success = true;
7649       if (this_present_success || that_present_success) {
7650         if (!(this_present_success && that_present_success))
7651           return false;
7652         if (this.success != that.success)
7653           return false;
7654       }
7655
7656       return true;
7657     }
7658
7659     @Override
7660     public int hashCode() {
7661       return 0;
7662     }
7663
7664     @Override
7665     public int compareTo(delVrf_result other) {
7666       if (!getClass().equals(other.getClass())) {
7667         return getClass().getName().compareTo(other.getClass().getName());
7668       }
7669
7670       int lastComparison = 0;
7671
7672       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
7673       if (lastComparison != 0) {
7674         return lastComparison;
7675       }
7676       if (isSetSuccess()) {
7677         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
7678         if (lastComparison != 0) {
7679           return lastComparison;
7680         }
7681       }
7682       return 0;
7683     }
7684
7685     public _Fields fieldForId(int fieldId) {
7686       return _Fields.findByThriftId(fieldId);
7687     }
7688
7689     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7690       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7691     }
7692
7693     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7694       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7695       }
7696
7697     @Override
7698     public String toString() {
7699       StringBuilder sb = new StringBuilder("delVrf_result(");
7700       boolean first = true;
7701
7702       sb.append("success:");
7703       sb.append(this.success);
7704       first = false;
7705       sb.append(")");
7706       return sb.toString();
7707     }
7708
7709     public void validate() throws org.apache.thrift.TException {
7710       // check for required fields
7711       // check for sub-struct validity
7712     }
7713
7714     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7715       try {
7716         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7717       } catch (org.apache.thrift.TException te) {
7718         throw new java.io.IOException(te);
7719       }
7720     }
7721
7722     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7723       try {
7724         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7725         __isset_bitfield = 0;
7726         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7727       } catch (org.apache.thrift.TException te) {
7728         throw new java.io.IOException(te);
7729       }
7730     }
7731
7732     private static class delVrf_resultStandardSchemeFactory implements SchemeFactory {
7733       public delVrf_resultStandardScheme getScheme() {
7734         return new delVrf_resultStandardScheme();
7735       }
7736     }
7737
7738     private static class delVrf_resultStandardScheme extends StandardScheme<delVrf_result> {
7739
7740       public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_result struct) throws org.apache.thrift.TException {
7741         org.apache.thrift.protocol.TField schemeField;
7742         iprot.readStructBegin();
7743         while (true)
7744         {
7745           schemeField = iprot.readFieldBegin();
7746           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
7747             break;
7748           }
7749           switch (schemeField.id) {
7750             case 0: // SUCCESS
7751               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
7752                 struct.success = iprot.readI32();
7753                 struct.setSuccessIsSet(true);
7754               } else { 
7755                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7756               }
7757               break;
7758             default:
7759               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7760           }
7761           iprot.readFieldEnd();
7762         }
7763         iprot.readStructEnd();
7764
7765         // check for required fields of primitive type, which can't be checked in the validate method
7766         struct.validate();
7767       }
7768
7769       public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_result struct) throws org.apache.thrift.TException {
7770         struct.validate();
7771
7772         oprot.writeStructBegin(STRUCT_DESC);
7773         if (struct.isSetSuccess()) {
7774           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7775           oprot.writeI32(struct.success);
7776           oprot.writeFieldEnd();
7777         }
7778         oprot.writeFieldStop();
7779         oprot.writeStructEnd();
7780       }
7781
7782     }
7783
7784     private static class delVrf_resultTupleSchemeFactory implements SchemeFactory {
7785       public delVrf_resultTupleScheme getScheme() {
7786         return new delVrf_resultTupleScheme();
7787       }
7788     }
7789
7790     private static class delVrf_resultTupleScheme extends TupleScheme<delVrf_result> {
7791
7792       @Override
7793       public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
7794         TTupleProtocol oprot = (TTupleProtocol) prot;
7795         BitSet optionals = new BitSet();
7796         if (struct.isSetSuccess()) {
7797           optionals.set(0);
7798         }
7799         oprot.writeBitSet(optionals, 1);
7800         if (struct.isSetSuccess()) {
7801           oprot.writeI32(struct.success);
7802         }
7803       }
7804
7805       @Override
7806       public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
7807         TTupleProtocol iprot = (TTupleProtocol) prot;
7808         BitSet incoming = iprot.readBitSet(1);
7809         if (incoming.get(0)) {
7810           struct.success = iprot.readI32();
7811           struct.setSuccessIsSet(true);
7812         }
7813       }
7814     }
7815
7816   }
7817
7818   public static class pushRoute_args implements org.apache.thrift.TBase<pushRoute_args, pushRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_args>   {
7819     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_args");
7820
7821     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);
7822     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);
7823     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);
7824     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);
7825
7826     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7827     static {
7828       schemes.put(StandardScheme.class, new pushRoute_argsStandardSchemeFactory());
7829       schemes.put(TupleScheme.class, new pushRoute_argsTupleSchemeFactory());
7830     }
7831
7832     public String prefix; // required
7833     public String nexthop; // required
7834     public String rd; // required
7835     public int label; // required
7836
7837     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7838     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7839       PREFIX((short)1, "prefix"),
7840       NEXTHOP((short)2, "nexthop"),
7841       RD((short)3, "rd"),
7842       LABEL((short)4, "label");
7843
7844       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7845
7846       static {
7847         for (_Fields field : EnumSet.allOf(_Fields.class)) {
7848           byName.put(field.getFieldName(), field);
7849         }
7850       }
7851
7852       /**
7853        * Find the _Fields constant that matches fieldId, or null if its not found.
7854        */
7855       public static _Fields findByThriftId(int fieldId) {
7856         switch(fieldId) {
7857           case 1: // PREFIX
7858             return PREFIX;
7859           case 2: // NEXTHOP
7860             return NEXTHOP;
7861           case 3: // RD
7862             return RD;
7863           case 4: // LABEL
7864             return LABEL;
7865           default:
7866             return null;
7867         }
7868       }
7869
7870       /**
7871        * Find the _Fields constant that matches fieldId, throwing an exception
7872        * if it is not found.
7873        */
7874       public static _Fields findByThriftIdOrThrow(int fieldId) {
7875         _Fields fields = findByThriftId(fieldId);
7876         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7877         return fields;
7878       }
7879
7880       /**
7881        * Find the _Fields constant that matches name, or null if its not found.
7882        */
7883       public static _Fields findByName(String name) {
7884         return byName.get(name);
7885       }
7886
7887       private final short _thriftId;
7888       private final String _fieldName;
7889
7890       _Fields(short thriftId, String fieldName) {
7891         _thriftId = thriftId;
7892         _fieldName = fieldName;
7893       }
7894
7895       public short getThriftFieldId() {
7896         return _thriftId;
7897       }
7898
7899       public String getFieldName() {
7900         return _fieldName;
7901       }
7902     }
7903
7904     // isset id assignments
7905     private static final int __LABEL_ISSET_ID = 0;
7906     private byte __isset_bitfield = 0;
7907     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7908     static {
7909       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7910       tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7911           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7912       tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7913           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7914       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7915           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7916       tmpMap.put(_Fields.LABEL, new org.apache.thrift.meta_data.FieldMetaData("label", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7917           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
7918       metaDataMap = Collections.unmodifiableMap(tmpMap);
7919       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_args.class, metaDataMap);
7920     }
7921
7922     public pushRoute_args() {
7923     }
7924
7925     public pushRoute_args(
7926       String prefix,
7927       String nexthop,
7928       String rd,
7929       int label)
7930     {
7931       this();
7932       this.prefix = prefix;
7933       this.nexthop = nexthop;
7934       this.rd = rd;
7935       this.label = label;
7936       setLabelIsSet(true);
7937     }
7938
7939     /**
7940      * Performs a deep copy on <i>other</i>.
7941      */
7942     public pushRoute_args(pushRoute_args other) {
7943       __isset_bitfield = other.__isset_bitfield;
7944       if (other.isSetPrefix()) {
7945         this.prefix = other.prefix;
7946       }
7947       if (other.isSetNexthop()) {
7948         this.nexthop = other.nexthop;
7949       }
7950       if (other.isSetRd()) {
7951         this.rd = other.rd;
7952       }
7953       this.label = other.label;
7954     }
7955
7956     public pushRoute_args deepCopy() {
7957       return new pushRoute_args(this);
7958     }
7959
7960     @Override
7961     public void clear() {
7962       this.prefix = null;
7963       this.nexthop = null;
7964       this.rd = null;
7965       setLabelIsSet(false);
7966       this.label = 0;
7967     }
7968
7969     public String getPrefix() {
7970       return this.prefix;
7971     }
7972
7973     public pushRoute_args setPrefix(String prefix) {
7974       this.prefix = prefix;
7975       return this;
7976     }
7977
7978     public void unsetPrefix() {
7979       this.prefix = null;
7980     }
7981
7982     /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
7983     public boolean isSetPrefix() {
7984       return this.prefix != null;
7985     }
7986
7987     public void setPrefixIsSet(boolean value) {
7988       if (!value) {
7989         this.prefix = null;
7990       }
7991     }
7992
7993     public String getNexthop() {
7994       return this.nexthop;
7995     }
7996
7997     public pushRoute_args setNexthop(String nexthop) {
7998       this.nexthop = nexthop;
7999       return this;
8000     }
8001
8002     public void unsetNexthop() {
8003       this.nexthop = null;
8004     }
8005
8006     /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
8007     public boolean isSetNexthop() {
8008       return this.nexthop != null;
8009     }
8010
8011     public void setNexthopIsSet(boolean value) {
8012       if (!value) {
8013         this.nexthop = null;
8014       }
8015     }
8016
8017     public String getRd() {
8018       return this.rd;
8019     }
8020
8021     public pushRoute_args setRd(String rd) {
8022       this.rd = rd;
8023       return this;
8024     }
8025
8026     public void unsetRd() {
8027       this.rd = null;
8028     }
8029
8030     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
8031     public boolean isSetRd() {
8032       return this.rd != null;
8033     }
8034
8035     public void setRdIsSet(boolean value) {
8036       if (!value) {
8037         this.rd = null;
8038       }
8039     }
8040
8041     public int getLabel() {
8042       return this.label;
8043     }
8044
8045     public pushRoute_args setLabel(int label) {
8046       this.label = label;
8047       setLabelIsSet(true);
8048       return this;
8049     }
8050
8051     public void unsetLabel() {
8052       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LABEL_ISSET_ID);
8053     }
8054
8055     /** Returns true if field label is set (has been assigned a value) and false otherwise */
8056     public boolean isSetLabel() {
8057       return EncodingUtils.testBit(__isset_bitfield, __LABEL_ISSET_ID);
8058     }
8059
8060     public void setLabelIsSet(boolean value) {
8061       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LABEL_ISSET_ID, value);
8062     }
8063
8064     public void setFieldValue(_Fields field, Object value) {
8065       switch (field) {
8066       case PREFIX:
8067         if (value == null) {
8068           unsetPrefix();
8069         } else {
8070           setPrefix((String)value);
8071         }
8072         break;
8073
8074       case NEXTHOP:
8075         if (value == null) {
8076           unsetNexthop();
8077         } else {
8078           setNexthop((String)value);
8079         }
8080         break;
8081
8082       case RD:
8083         if (value == null) {
8084           unsetRd();
8085         } else {
8086           setRd((String)value);
8087         }
8088         break;
8089
8090       case LABEL:
8091         if (value == null) {
8092           unsetLabel();
8093         } else {
8094           setLabel((Integer)value);
8095         }
8096         break;
8097
8098       }
8099     }
8100
8101     public Object getFieldValue(_Fields field) {
8102       switch (field) {
8103       case PREFIX:
8104         return getPrefix();
8105
8106       case NEXTHOP:
8107         return getNexthop();
8108
8109       case RD:
8110         return getRd();
8111
8112       case LABEL:
8113         return Integer.valueOf(getLabel());
8114
8115       }
8116       throw new IllegalStateException();
8117     }
8118
8119     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8120     public boolean isSet(_Fields field) {
8121       if (field == null) {
8122         throw new IllegalArgumentException();
8123       }
8124
8125       switch (field) {
8126       case PREFIX:
8127         return isSetPrefix();
8128       case NEXTHOP:
8129         return isSetNexthop();
8130       case RD:
8131         return isSetRd();
8132       case LABEL:
8133         return isSetLabel();
8134       }
8135       throw new IllegalStateException();
8136     }
8137
8138     @Override
8139     public boolean equals(Object that) {
8140       if (that == null)
8141         return false;
8142       if (that instanceof pushRoute_args)
8143         return this.equals((pushRoute_args)that);
8144       return false;
8145     }
8146
8147     public boolean equals(pushRoute_args that) {
8148       if (that == null)
8149         return false;
8150
8151       boolean this_present_prefix = true && this.isSetPrefix();
8152       boolean that_present_prefix = true && that.isSetPrefix();
8153       if (this_present_prefix || that_present_prefix) {
8154         if (!(this_present_prefix && that_present_prefix))
8155           return false;
8156         if (!this.prefix.equals(that.prefix))
8157           return false;
8158       }
8159
8160       boolean this_present_nexthop = true && this.isSetNexthop();
8161       boolean that_present_nexthop = true && that.isSetNexthop();
8162       if (this_present_nexthop || that_present_nexthop) {
8163         if (!(this_present_nexthop && that_present_nexthop))
8164           return false;
8165         if (!this.nexthop.equals(that.nexthop))
8166           return false;
8167       }
8168
8169       boolean this_present_rd = true && this.isSetRd();
8170       boolean that_present_rd = true && that.isSetRd();
8171       if (this_present_rd || that_present_rd) {
8172         if (!(this_present_rd && that_present_rd))
8173           return false;
8174         if (!this.rd.equals(that.rd))
8175           return false;
8176       }
8177
8178       boolean this_present_label = true;
8179       boolean that_present_label = true;
8180       if (this_present_label || that_present_label) {
8181         if (!(this_present_label && that_present_label))
8182           return false;
8183         if (this.label != that.label)
8184           return false;
8185       }
8186
8187       return true;
8188     }
8189
8190     @Override
8191     public int hashCode() {
8192       return 0;
8193     }
8194
8195     @Override
8196     public int compareTo(pushRoute_args other) {
8197       if (!getClass().equals(other.getClass())) {
8198         return getClass().getName().compareTo(other.getClass().getName());
8199       }
8200
8201       int lastComparison = 0;
8202
8203       lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
8204       if (lastComparison != 0) {
8205         return lastComparison;
8206       }
8207       if (isSetPrefix()) {
8208         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
8209         if (lastComparison != 0) {
8210           return lastComparison;
8211         }
8212       }
8213       lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
8214       if (lastComparison != 0) {
8215         return lastComparison;
8216       }
8217       if (isSetNexthop()) {
8218         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
8219         if (lastComparison != 0) {
8220           return lastComparison;
8221         }
8222       }
8223       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
8224       if (lastComparison != 0) {
8225         return lastComparison;
8226       }
8227       if (isSetRd()) {
8228         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
8229         if (lastComparison != 0) {
8230           return lastComparison;
8231         }
8232       }
8233       lastComparison = Boolean.valueOf(isSetLabel()).compareTo(other.isSetLabel());
8234       if (lastComparison != 0) {
8235         return lastComparison;
8236       }
8237       if (isSetLabel()) {
8238         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.label, other.label);
8239         if (lastComparison != 0) {
8240           return lastComparison;
8241         }
8242       }
8243       return 0;
8244     }
8245
8246     public _Fields fieldForId(int fieldId) {
8247       return _Fields.findByThriftId(fieldId);
8248     }
8249
8250     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8251       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8252     }
8253
8254     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8255       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8256     }
8257
8258     @Override
8259     public String toString() {
8260       StringBuilder sb = new StringBuilder("pushRoute_args(");
8261       boolean first = true;
8262
8263       sb.append("prefix:");
8264       if (this.prefix == null) {
8265         sb.append("null");
8266       } else {
8267         sb.append(this.prefix);
8268       }
8269       first = false;
8270       if (!first) sb.append(", ");
8271       sb.append("nexthop:");
8272       if (this.nexthop == null) {
8273         sb.append("null");
8274       } else {
8275         sb.append(this.nexthop);
8276       }
8277       first = false;
8278       if (!first) sb.append(", ");
8279       sb.append("rd:");
8280       if (this.rd == null) {
8281         sb.append("null");
8282       } else {
8283         sb.append(this.rd);
8284       }
8285       first = false;
8286       if (!first) sb.append(", ");
8287       sb.append("label:");
8288       sb.append(this.label);
8289       first = false;
8290       sb.append(")");
8291       return sb.toString();
8292     }
8293
8294     public void validate() throws org.apache.thrift.TException {
8295       // check for required fields
8296       // check for sub-struct validity
8297     }
8298
8299     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8300       try {
8301         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8302       } catch (org.apache.thrift.TException te) {
8303         throw new java.io.IOException(te);
8304       }
8305     }
8306
8307     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8308       try {
8309         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8310         __isset_bitfield = 0;
8311         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8312       } catch (org.apache.thrift.TException te) {
8313         throw new java.io.IOException(te);
8314       }
8315     }
8316
8317     private static class pushRoute_argsStandardSchemeFactory implements SchemeFactory {
8318       public pushRoute_argsStandardScheme getScheme() {
8319         return new pushRoute_argsStandardScheme();
8320       }
8321     }
8322
8323     private static class pushRoute_argsStandardScheme extends StandardScheme<pushRoute_args> {
8324
8325       public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_args struct) throws org.apache.thrift.TException {
8326         org.apache.thrift.protocol.TField schemeField;
8327         iprot.readStructBegin();
8328         while (true)
8329         {
8330           schemeField = iprot.readFieldBegin();
8331           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
8332             break;
8333           }
8334           switch (schemeField.id) {
8335             case 1: // PREFIX
8336               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8337                 struct.prefix = iprot.readString();
8338                 struct.setPrefixIsSet(true);
8339               } else { 
8340                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8341               }
8342               break;
8343             case 2: // NEXTHOP
8344               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8345                 struct.nexthop = iprot.readString();
8346                 struct.setNexthopIsSet(true);
8347               } else { 
8348                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8349               }
8350               break;
8351             case 3: // RD
8352               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8353                 struct.rd = iprot.readString();
8354                 struct.setRdIsSet(true);
8355               } else { 
8356                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8357               }
8358               break;
8359             case 4: // LABEL
8360               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
8361                 struct.label = iprot.readI32();
8362                 struct.setLabelIsSet(true);
8363               } else { 
8364                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8365               }
8366               break;
8367             default:
8368               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8369           }
8370           iprot.readFieldEnd();
8371         }
8372         iprot.readStructEnd();
8373
8374         // check for required fields of primitive type, which can't be checked in the validate method
8375         struct.validate();
8376       }
8377
8378       public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_args struct) throws org.apache.thrift.TException {
8379         struct.validate();
8380
8381         oprot.writeStructBegin(STRUCT_DESC);
8382         if (struct.prefix != null) {
8383           oprot.writeFieldBegin(PREFIX_FIELD_DESC);
8384           oprot.writeString(struct.prefix);
8385           oprot.writeFieldEnd();
8386         }
8387         if (struct.nexthop != null) {
8388           oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
8389           oprot.writeString(struct.nexthop);
8390           oprot.writeFieldEnd();
8391         }
8392         if (struct.rd != null) {
8393           oprot.writeFieldBegin(RD_FIELD_DESC);
8394           oprot.writeString(struct.rd);
8395           oprot.writeFieldEnd();
8396         }
8397         oprot.writeFieldBegin(LABEL_FIELD_DESC);
8398         oprot.writeI32(struct.label);
8399         oprot.writeFieldEnd();
8400         oprot.writeFieldStop();
8401         oprot.writeStructEnd();
8402       }
8403
8404     }
8405
8406     private static class pushRoute_argsTupleSchemeFactory implements SchemeFactory {
8407       public pushRoute_argsTupleScheme getScheme() {
8408         return new pushRoute_argsTupleScheme();
8409       }
8410     }
8411
8412     private static class pushRoute_argsTupleScheme extends TupleScheme<pushRoute_args> {
8413
8414       @Override
8415       public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
8416         TTupleProtocol oprot = (TTupleProtocol) prot;
8417         BitSet optionals = new BitSet();
8418         if (struct.isSetPrefix()) {
8419           optionals.set(0);
8420         }
8421         if (struct.isSetNexthop()) {
8422           optionals.set(1);
8423         }
8424         if (struct.isSetRd()) {
8425           optionals.set(2);
8426         }
8427         if (struct.isSetLabel()) {
8428           optionals.set(3);
8429         }
8430         oprot.writeBitSet(optionals, 4);
8431         if (struct.isSetPrefix()) {
8432           oprot.writeString(struct.prefix);
8433         }
8434         if (struct.isSetNexthop()) {
8435           oprot.writeString(struct.nexthop);
8436         }
8437         if (struct.isSetRd()) {
8438           oprot.writeString(struct.rd);
8439         }
8440         if (struct.isSetLabel()) {
8441           oprot.writeI32(struct.label);
8442         }
8443       }
8444
8445       @Override
8446       public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
8447         TTupleProtocol iprot = (TTupleProtocol) prot;
8448         BitSet incoming = iprot.readBitSet(4);
8449         if (incoming.get(0)) {
8450           struct.prefix = iprot.readString();
8451           struct.setPrefixIsSet(true);
8452         }
8453         if (incoming.get(1)) {
8454           struct.nexthop = iprot.readString();
8455           struct.setNexthopIsSet(true);
8456         }
8457         if (incoming.get(2)) {
8458           struct.rd = iprot.readString();
8459           struct.setRdIsSet(true);
8460         }
8461         if (incoming.get(3)) {
8462           struct.label = iprot.readI32();
8463           struct.setLabelIsSet(true);
8464         }
8465       }
8466     }
8467
8468   }
8469
8470   public static class pushRoute_result implements org.apache.thrift.TBase<pushRoute_result, pushRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_result>   {
8471     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_result");
8472
8473     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);
8474
8475     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8476     static {
8477       schemes.put(StandardScheme.class, new pushRoute_resultStandardSchemeFactory());
8478       schemes.put(TupleScheme.class, new pushRoute_resultTupleSchemeFactory());
8479     }
8480
8481     public int success; // required
8482
8483     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8484     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8485       SUCCESS((short)0, "success");
8486
8487       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8488
8489       static {
8490         for (_Fields field : EnumSet.allOf(_Fields.class)) {
8491           byName.put(field.getFieldName(), field);
8492         }
8493       }
8494
8495       /**
8496        * Find the _Fields constant that matches fieldId, or null if its not found.
8497        */
8498       public static _Fields findByThriftId(int fieldId) {
8499         switch(fieldId) {
8500           case 0: // SUCCESS
8501             return SUCCESS;
8502           default:
8503             return null;
8504         }
8505       }
8506
8507       /**
8508        * Find the _Fields constant that matches fieldId, throwing an exception
8509        * if it is not found.
8510        */
8511       public static _Fields findByThriftIdOrThrow(int fieldId) {
8512         _Fields fields = findByThriftId(fieldId);
8513         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8514         return fields;
8515       }
8516
8517       /**
8518        * Find the _Fields constant that matches name, or null if its not found.
8519        */
8520       public static _Fields findByName(String name) {
8521         return byName.get(name);
8522       }
8523
8524       private final short _thriftId;
8525       private final String _fieldName;
8526
8527       _Fields(short thriftId, String fieldName) {
8528         _thriftId = thriftId;
8529         _fieldName = fieldName;
8530       }
8531
8532       public short getThriftFieldId() {
8533         return _thriftId;
8534       }
8535
8536       public String getFieldName() {
8537         return _fieldName;
8538       }
8539     }
8540
8541     // isset id assignments
8542     private static final int __SUCCESS_ISSET_ID = 0;
8543     private byte __isset_bitfield = 0;
8544     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8545     static {
8546       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8547       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8548           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
8549       metaDataMap = Collections.unmodifiableMap(tmpMap);
8550       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_result.class, metaDataMap);
8551     }
8552
8553     public pushRoute_result() {
8554     }
8555
8556     public pushRoute_result(
8557       int success)
8558     {
8559       this();
8560       this.success = success;
8561       setSuccessIsSet(true);
8562     }
8563
8564     /**
8565      * Performs a deep copy on <i>other</i>.
8566      */
8567     public pushRoute_result(pushRoute_result other) {
8568       __isset_bitfield = other.__isset_bitfield;
8569       this.success = other.success;
8570     }
8571
8572     public pushRoute_result deepCopy() {
8573       return new pushRoute_result(this);
8574     }
8575
8576     @Override
8577     public void clear() {
8578       setSuccessIsSet(false);
8579       this.success = 0;
8580     }
8581
8582     public int getSuccess() {
8583       return this.success;
8584     }
8585
8586     public pushRoute_result setSuccess(int success) {
8587       this.success = success;
8588       setSuccessIsSet(true);
8589       return this;
8590     }
8591
8592     public void unsetSuccess() {
8593       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8594     }
8595
8596     /** Returns true if field success is set (has been assigned a value) and false otherwise */
8597     public boolean isSetSuccess() {
8598       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8599     }
8600
8601     public void setSuccessIsSet(boolean value) {
8602       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
8603     }
8604
8605     public void setFieldValue(_Fields field, Object value) {
8606       switch (field) {
8607       case SUCCESS:
8608         if (value == null) {
8609           unsetSuccess();
8610         } else {
8611           setSuccess((Integer)value);
8612         }
8613         break;
8614
8615       }
8616     }
8617
8618     public Object getFieldValue(_Fields field) {
8619       switch (field) {
8620       case SUCCESS:
8621         return Integer.valueOf(getSuccess());
8622
8623       }
8624       throw new IllegalStateException();
8625     }
8626
8627     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8628     public boolean isSet(_Fields field) {
8629       if (field == null) {
8630         throw new IllegalArgumentException();
8631       }
8632
8633       switch (field) {
8634       case SUCCESS:
8635         return isSetSuccess();
8636       }
8637       throw new IllegalStateException();
8638     }
8639
8640     @Override
8641     public boolean equals(Object that) {
8642       if (that == null)
8643         return false;
8644       if (that instanceof pushRoute_result)
8645         return this.equals((pushRoute_result)that);
8646       return false;
8647     }
8648
8649     public boolean equals(pushRoute_result that) {
8650       if (that == null)
8651         return false;
8652
8653       boolean this_present_success = true;
8654       boolean that_present_success = true;
8655       if (this_present_success || that_present_success) {
8656         if (!(this_present_success && that_present_success))
8657           return false;
8658         if (this.success != that.success)
8659           return false;
8660       }
8661
8662       return true;
8663     }
8664
8665     @Override
8666     public int hashCode() {
8667       return 0;
8668     }
8669
8670     @Override
8671     public int compareTo(pushRoute_result other) {
8672       if (!getClass().equals(other.getClass())) {
8673         return getClass().getName().compareTo(other.getClass().getName());
8674       }
8675
8676       int lastComparison = 0;
8677
8678       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
8679       if (lastComparison != 0) {
8680         return lastComparison;
8681       }
8682       if (isSetSuccess()) {
8683         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
8684         if (lastComparison != 0) {
8685           return lastComparison;
8686         }
8687       }
8688       return 0;
8689     }
8690
8691     public _Fields fieldForId(int fieldId) {
8692       return _Fields.findByThriftId(fieldId);
8693     }
8694
8695     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8696       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8697     }
8698
8699     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8700       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8701       }
8702
8703     @Override
8704     public String toString() {
8705       StringBuilder sb = new StringBuilder("pushRoute_result(");
8706       boolean first = true;
8707
8708       sb.append("success:");
8709       sb.append(this.success);
8710       first = false;
8711       sb.append(")");
8712       return sb.toString();
8713     }
8714
8715     public void validate() throws org.apache.thrift.TException {
8716       // check for required fields
8717       // check for sub-struct validity
8718     }
8719
8720     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8721       try {
8722         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8723       } catch (org.apache.thrift.TException te) {
8724         throw new java.io.IOException(te);
8725       }
8726     }
8727
8728     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8729       try {
8730         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8731         __isset_bitfield = 0;
8732         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8733       } catch (org.apache.thrift.TException te) {
8734         throw new java.io.IOException(te);
8735       }
8736     }
8737
8738     private static class pushRoute_resultStandardSchemeFactory implements SchemeFactory {
8739       public pushRoute_resultStandardScheme getScheme() {
8740         return new pushRoute_resultStandardScheme();
8741       }
8742     }
8743
8744     private static class pushRoute_resultStandardScheme extends StandardScheme<pushRoute_result> {
8745
8746       public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_result struct) throws org.apache.thrift.TException {
8747         org.apache.thrift.protocol.TField schemeField;
8748         iprot.readStructBegin();
8749         while (true)
8750         {
8751           schemeField = iprot.readFieldBegin();
8752           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
8753             break;
8754           }
8755           switch (schemeField.id) {
8756             case 0: // SUCCESS
8757               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
8758                 struct.success = iprot.readI32();
8759                 struct.setSuccessIsSet(true);
8760               } else { 
8761                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8762               }
8763               break;
8764             default:
8765               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8766           }
8767           iprot.readFieldEnd();
8768         }
8769         iprot.readStructEnd();
8770
8771         // check for required fields of primitive type, which can't be checked in the validate method
8772         struct.validate();
8773       }
8774
8775       public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_result struct) throws org.apache.thrift.TException {
8776         struct.validate();
8777
8778         oprot.writeStructBegin(STRUCT_DESC);
8779         if (struct.isSetSuccess()) {
8780           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8781           oprot.writeI32(struct.success);
8782           oprot.writeFieldEnd();
8783         }
8784         oprot.writeFieldStop();
8785         oprot.writeStructEnd();
8786       }
8787
8788     }
8789
8790     private static class pushRoute_resultTupleSchemeFactory implements SchemeFactory {
8791       public pushRoute_resultTupleScheme getScheme() {
8792         return new pushRoute_resultTupleScheme();
8793       }
8794     }
8795
8796     private static class pushRoute_resultTupleScheme extends TupleScheme<pushRoute_result> {
8797
8798       @Override
8799       public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
8800         TTupleProtocol oprot = (TTupleProtocol) prot;
8801         BitSet optionals = new BitSet();
8802         if (struct.isSetSuccess()) {
8803           optionals.set(0);
8804         }
8805         oprot.writeBitSet(optionals, 1);
8806         if (struct.isSetSuccess()) {
8807           oprot.writeI32(struct.success);
8808         }
8809       }
8810
8811       @Override
8812       public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
8813         TTupleProtocol iprot = (TTupleProtocol) prot;
8814         BitSet incoming = iprot.readBitSet(1);
8815         if (incoming.get(0)) {
8816           struct.success = iprot.readI32();
8817           struct.setSuccessIsSet(true);
8818         }
8819       }
8820     }
8821
8822   }
8823
8824   public static class withdrawRoute_args implements org.apache.thrift.TBase<withdrawRoute_args, withdrawRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_args>   {
8825     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_args");
8826
8827     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);
8828     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);
8829
8830     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8831     static {
8832       schemes.put(StandardScheme.class, new withdrawRoute_argsStandardSchemeFactory());
8833       schemes.put(TupleScheme.class, new withdrawRoute_argsTupleSchemeFactory());
8834     }
8835
8836     public String prefix; // required
8837     public String rd; // required
8838
8839     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8840     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8841       PREFIX((short)1, "prefix"),
8842       RD((short)2, "rd");
8843
8844       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8845
8846       static {
8847         for (_Fields field : EnumSet.allOf(_Fields.class)) {
8848           byName.put(field.getFieldName(), field);
8849         }
8850       }
8851
8852       /**
8853        * Find the _Fields constant that matches fieldId, or null if its not found.
8854        */
8855       public static _Fields findByThriftId(int fieldId) {
8856         switch(fieldId) {
8857           case 1: // PREFIX
8858             return PREFIX;
8859           case 2: // RD
8860             return RD;
8861           default:
8862             return null;
8863         }
8864       }
8865
8866       /**
8867        * Find the _Fields constant that matches fieldId, throwing an exception
8868        * if it is not found.
8869        */
8870       public static _Fields findByThriftIdOrThrow(int fieldId) {
8871         _Fields fields = findByThriftId(fieldId);
8872         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8873         return fields;
8874       }
8875
8876       /**
8877        * Find the _Fields constant that matches name, or null if its not found.
8878        */
8879       public static _Fields findByName(String name) {
8880         return byName.get(name);
8881       }
8882
8883       private final short _thriftId;
8884       private final String _fieldName;
8885
8886       _Fields(short thriftId, String fieldName) {
8887         _thriftId = thriftId;
8888         _fieldName = fieldName;
8889       }
8890
8891       public short getThriftFieldId() {
8892         return _thriftId;
8893       }
8894
8895       public String getFieldName() {
8896         return _fieldName;
8897       }
8898     }
8899
8900     // isset id assignments
8901     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8902     static {
8903       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8904       tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8905           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8906       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8907           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8908       metaDataMap = Collections.unmodifiableMap(tmpMap);
8909       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_args.class, metaDataMap);
8910     }
8911
8912     public withdrawRoute_args() {
8913     }
8914
8915     public withdrawRoute_args(
8916       String prefix,
8917       String rd)
8918     {
8919       this();
8920       this.prefix = prefix;
8921       this.rd = rd;
8922     }
8923
8924     /**
8925      * Performs a deep copy on <i>other</i>.
8926      */
8927     public withdrawRoute_args(withdrawRoute_args other) {
8928       if (other.isSetPrefix()) {
8929         this.prefix = other.prefix;
8930       }
8931       if (other.isSetRd()) {
8932         this.rd = other.rd;
8933       }
8934     }
8935
8936     public withdrawRoute_args deepCopy() {
8937       return new withdrawRoute_args(this);
8938     }
8939
8940     @Override
8941     public void clear() {
8942       this.prefix = null;
8943       this.rd = null;
8944     }
8945
8946     public String getPrefix() {
8947       return this.prefix;
8948     }
8949
8950     public withdrawRoute_args setPrefix(String prefix) {
8951       this.prefix = prefix;
8952       return this;
8953     }
8954
8955     public void unsetPrefix() {
8956       this.prefix = null;
8957     }
8958
8959     /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
8960     public boolean isSetPrefix() {
8961       return this.prefix != null;
8962     }
8963
8964     public void setPrefixIsSet(boolean value) {
8965       if (!value) {
8966         this.prefix = null;
8967       }
8968     }
8969
8970     public String getRd() {
8971       return this.rd;
8972     }
8973
8974     public withdrawRoute_args setRd(String rd) {
8975       this.rd = rd;
8976       return this;
8977     }
8978
8979     public void unsetRd() {
8980       this.rd = null;
8981     }
8982
8983     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
8984     public boolean isSetRd() {
8985       return this.rd != null;
8986     }
8987
8988     public void setRdIsSet(boolean value) {
8989       if (!value) {
8990         this.rd = null;
8991       }
8992     }
8993
8994     public void setFieldValue(_Fields field, Object value) {
8995       switch (field) {
8996       case PREFIX:
8997         if (value == null) {
8998           unsetPrefix();
8999         } else {
9000           setPrefix((String)value);
9001         }
9002         break;
9003
9004       case RD:
9005         if (value == null) {
9006           unsetRd();
9007         } else {
9008           setRd((String)value);
9009         }
9010         break;
9011
9012       }
9013     }
9014
9015     public Object getFieldValue(_Fields field) {
9016       switch (field) {
9017       case PREFIX:
9018         return getPrefix();
9019
9020       case RD:
9021         return getRd();
9022
9023       }
9024       throw new IllegalStateException();
9025     }
9026
9027     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9028     public boolean isSet(_Fields field) {
9029       if (field == null) {
9030         throw new IllegalArgumentException();
9031       }
9032
9033       switch (field) {
9034       case PREFIX:
9035         return isSetPrefix();
9036       case RD:
9037         return isSetRd();
9038       }
9039       throw new IllegalStateException();
9040     }
9041
9042     @Override
9043     public boolean equals(Object that) {
9044       if (that == null)
9045         return false;
9046       if (that instanceof withdrawRoute_args)
9047         return this.equals((withdrawRoute_args)that);
9048       return false;
9049     }
9050
9051     public boolean equals(withdrawRoute_args that) {
9052       if (that == null)
9053         return false;
9054
9055       boolean this_present_prefix = true && this.isSetPrefix();
9056       boolean that_present_prefix = true && that.isSetPrefix();
9057       if (this_present_prefix || that_present_prefix) {
9058         if (!(this_present_prefix && that_present_prefix))
9059           return false;
9060         if (!this.prefix.equals(that.prefix))
9061           return false;
9062       }
9063
9064       boolean this_present_rd = true && this.isSetRd();
9065       boolean that_present_rd = true && that.isSetRd();
9066       if (this_present_rd || that_present_rd) {
9067         if (!(this_present_rd && that_present_rd))
9068           return false;
9069         if (!this.rd.equals(that.rd))
9070           return false;
9071       }
9072
9073       return true;
9074     }
9075
9076     @Override
9077     public int hashCode() {
9078       return 0;
9079     }
9080
9081     @Override
9082     public int compareTo(withdrawRoute_args other) {
9083       if (!getClass().equals(other.getClass())) {
9084         return getClass().getName().compareTo(other.getClass().getName());
9085       }
9086
9087       int lastComparison = 0;
9088
9089       lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
9090       if (lastComparison != 0) {
9091         return lastComparison;
9092       }
9093       if (isSetPrefix()) {
9094         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
9095         if (lastComparison != 0) {
9096           return lastComparison;
9097         }
9098       }
9099       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
9100       if (lastComparison != 0) {
9101         return lastComparison;
9102       }
9103       if (isSetRd()) {
9104         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
9105         if (lastComparison != 0) {
9106           return lastComparison;
9107         }
9108       }
9109       return 0;
9110     }
9111
9112     public _Fields fieldForId(int fieldId) {
9113       return _Fields.findByThriftId(fieldId);
9114     }
9115
9116     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9117       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9118     }
9119
9120     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9121       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9122     }
9123
9124     @Override
9125     public String toString() {
9126       StringBuilder sb = new StringBuilder("withdrawRoute_args(");
9127       boolean first = true;
9128
9129       sb.append("prefix:");
9130       if (this.prefix == null) {
9131         sb.append("null");
9132       } else {
9133         sb.append(this.prefix);
9134       }
9135       first = false;
9136       if (!first) sb.append(", ");
9137       sb.append("rd:");
9138       if (this.rd == null) {
9139         sb.append("null");
9140       } else {
9141         sb.append(this.rd);
9142       }
9143       first = false;
9144       sb.append(")");
9145       return sb.toString();
9146     }
9147
9148     public void validate() throws org.apache.thrift.TException {
9149       // check for required fields
9150       // check for sub-struct validity
9151     }
9152
9153     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9154       try {
9155         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9156       } catch (org.apache.thrift.TException te) {
9157         throw new java.io.IOException(te);
9158       }
9159     }
9160
9161     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9162       try {
9163         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9164       } catch (org.apache.thrift.TException te) {
9165         throw new java.io.IOException(te);
9166       }
9167     }
9168
9169     private static class withdrawRoute_argsStandardSchemeFactory implements SchemeFactory {
9170       public withdrawRoute_argsStandardScheme getScheme() {
9171         return new withdrawRoute_argsStandardScheme();
9172       }
9173     }
9174
9175     private static class withdrawRoute_argsStandardScheme extends StandardScheme<withdrawRoute_args> {
9176
9177       public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
9178         org.apache.thrift.protocol.TField schemeField;
9179         iprot.readStructBegin();
9180         while (true)
9181         {
9182           schemeField = iprot.readFieldBegin();
9183           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
9184             break;
9185           }
9186           switch (schemeField.id) {
9187             case 1: // PREFIX
9188               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9189                 struct.prefix = iprot.readString();
9190                 struct.setPrefixIsSet(true);
9191               } else { 
9192                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9193               }
9194               break;
9195             case 2: // RD
9196               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9197                 struct.rd = iprot.readString();
9198                 struct.setRdIsSet(true);
9199               } else { 
9200                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9201               }
9202               break;
9203             default:
9204               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9205           }
9206           iprot.readFieldEnd();
9207         }
9208         iprot.readStructEnd();
9209
9210         // check for required fields of primitive type, which can't be checked in the validate method
9211         struct.validate();
9212       }
9213
9214       public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
9215         struct.validate();
9216
9217         oprot.writeStructBegin(STRUCT_DESC);
9218         if (struct.prefix != null) {
9219           oprot.writeFieldBegin(PREFIX_FIELD_DESC);
9220           oprot.writeString(struct.prefix);
9221           oprot.writeFieldEnd();
9222         }
9223         if (struct.rd != null) {
9224           oprot.writeFieldBegin(RD_FIELD_DESC);
9225           oprot.writeString(struct.rd);
9226           oprot.writeFieldEnd();
9227         }
9228         oprot.writeFieldStop();
9229         oprot.writeStructEnd();
9230       }
9231
9232     }
9233
9234     private static class withdrawRoute_argsTupleSchemeFactory implements SchemeFactory {
9235       public withdrawRoute_argsTupleScheme getScheme() {
9236         return new withdrawRoute_argsTupleScheme();
9237       }
9238     }
9239
9240     private static class withdrawRoute_argsTupleScheme extends TupleScheme<withdrawRoute_args> {
9241
9242       @Override
9243       public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
9244         TTupleProtocol oprot = (TTupleProtocol) prot;
9245         BitSet optionals = new BitSet();
9246         if (struct.isSetPrefix()) {
9247           optionals.set(0);
9248         }
9249         if (struct.isSetRd()) {
9250           optionals.set(1);
9251         }
9252         oprot.writeBitSet(optionals, 2);
9253         if (struct.isSetPrefix()) {
9254           oprot.writeString(struct.prefix);
9255         }
9256         if (struct.isSetRd()) {
9257           oprot.writeString(struct.rd);
9258         }
9259       }
9260
9261       @Override
9262       public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
9263         TTupleProtocol iprot = (TTupleProtocol) prot;
9264         BitSet incoming = iprot.readBitSet(2);
9265         if (incoming.get(0)) {
9266           struct.prefix = iprot.readString();
9267           struct.setPrefixIsSet(true);
9268         }
9269         if (incoming.get(1)) {
9270           struct.rd = iprot.readString();
9271           struct.setRdIsSet(true);
9272         }
9273       }
9274     }
9275
9276   }
9277
9278   public static class withdrawRoute_result implements org.apache.thrift.TBase<withdrawRoute_result, withdrawRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_result>   {
9279     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_result");
9280
9281     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);
9282
9283     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9284     static {
9285       schemes.put(StandardScheme.class, new withdrawRoute_resultStandardSchemeFactory());
9286       schemes.put(TupleScheme.class, new withdrawRoute_resultTupleSchemeFactory());
9287     }
9288
9289     public int success; // required
9290
9291     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9292     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9293       SUCCESS((short)0, "success");
9294
9295       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9296
9297       static {
9298         for (_Fields field : EnumSet.allOf(_Fields.class)) {
9299           byName.put(field.getFieldName(), field);
9300         }
9301       }
9302
9303       /**
9304        * Find the _Fields constant that matches fieldId, or null if its not found.
9305        */
9306       public static _Fields findByThriftId(int fieldId) {
9307         switch(fieldId) {
9308           case 0: // SUCCESS
9309             return SUCCESS;
9310           default:
9311             return null;
9312         }
9313       }
9314
9315       /**
9316        * Find the _Fields constant that matches fieldId, throwing an exception
9317        * if it is not found.
9318        */
9319       public static _Fields findByThriftIdOrThrow(int fieldId) {
9320         _Fields fields = findByThriftId(fieldId);
9321         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9322         return fields;
9323       }
9324
9325       /**
9326        * Find the _Fields constant that matches name, or null if its not found.
9327        */
9328       public static _Fields findByName(String name) {
9329         return byName.get(name);
9330       }
9331
9332       private final short _thriftId;
9333       private final String _fieldName;
9334
9335       _Fields(short thriftId, String fieldName) {
9336         _thriftId = thriftId;
9337         _fieldName = fieldName;
9338       }
9339
9340       public short getThriftFieldId() {
9341         return _thriftId;
9342       }
9343
9344       public String getFieldName() {
9345         return _fieldName;
9346       }
9347     }
9348
9349     // isset id assignments
9350     private static final int __SUCCESS_ISSET_ID = 0;
9351     private byte __isset_bitfield = 0;
9352     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9353     static {
9354       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9355       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9356           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9357       metaDataMap = Collections.unmodifiableMap(tmpMap);
9358       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_result.class, metaDataMap);
9359     }
9360
9361     public withdrawRoute_result() {
9362     }
9363
9364     public withdrawRoute_result(
9365       int success)
9366     {
9367       this();
9368       this.success = success;
9369       setSuccessIsSet(true);
9370     }
9371
9372     /**
9373      * Performs a deep copy on <i>other</i>.
9374      */
9375     public withdrawRoute_result(withdrawRoute_result other) {
9376       __isset_bitfield = other.__isset_bitfield;
9377       this.success = other.success;
9378     }
9379
9380     public withdrawRoute_result deepCopy() {
9381       return new withdrawRoute_result(this);
9382     }
9383
9384     @Override
9385     public void clear() {
9386       setSuccessIsSet(false);
9387       this.success = 0;
9388     }
9389
9390     public int getSuccess() {
9391       return this.success;
9392     }
9393
9394     public withdrawRoute_result setSuccess(int success) {
9395       this.success = success;
9396       setSuccessIsSet(true);
9397       return this;
9398     }
9399
9400     public void unsetSuccess() {
9401       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9402     }
9403
9404     /** Returns true if field success is set (has been assigned a value) and false otherwise */
9405     public boolean isSetSuccess() {
9406       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9407     }
9408
9409     public void setSuccessIsSet(boolean value) {
9410       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
9411     }
9412
9413     public void setFieldValue(_Fields field, Object value) {
9414       switch (field) {
9415       case SUCCESS:
9416         if (value == null) {
9417           unsetSuccess();
9418         } else {
9419           setSuccess((Integer)value);
9420         }
9421         break;
9422
9423       }
9424     }
9425
9426     public Object getFieldValue(_Fields field) {
9427       switch (field) {
9428       case SUCCESS:
9429         return Integer.valueOf(getSuccess());
9430
9431       }
9432       throw new IllegalStateException();
9433     }
9434
9435     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9436     public boolean isSet(_Fields field) {
9437       if (field == null) {
9438         throw new IllegalArgumentException();
9439       }
9440
9441       switch (field) {
9442       case SUCCESS:
9443         return isSetSuccess();
9444       }
9445       throw new IllegalStateException();
9446     }
9447
9448     @Override
9449     public boolean equals(Object that) {
9450       if (that == null)
9451         return false;
9452       if (that instanceof withdrawRoute_result)
9453         return this.equals((withdrawRoute_result)that);
9454       return false;
9455     }
9456
9457     public boolean equals(withdrawRoute_result that) {
9458       if (that == null)
9459         return false;
9460
9461       boolean this_present_success = true;
9462       boolean that_present_success = true;
9463       if (this_present_success || that_present_success) {
9464         if (!(this_present_success && that_present_success))
9465           return false;
9466         if (this.success != that.success)
9467           return false;
9468       }
9469
9470       return true;
9471     }
9472
9473     @Override
9474     public int hashCode() {
9475       return 0;
9476     }
9477
9478     @Override
9479     public int compareTo(withdrawRoute_result other) {
9480       if (!getClass().equals(other.getClass())) {
9481         return getClass().getName().compareTo(other.getClass().getName());
9482       }
9483
9484       int lastComparison = 0;
9485
9486       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
9487       if (lastComparison != 0) {
9488         return lastComparison;
9489       }
9490       if (isSetSuccess()) {
9491         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
9492         if (lastComparison != 0) {
9493           return lastComparison;
9494         }
9495       }
9496       return 0;
9497     }
9498
9499     public _Fields fieldForId(int fieldId) {
9500       return _Fields.findByThriftId(fieldId);
9501     }
9502
9503     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9504       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9505     }
9506
9507     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9508       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9509       }
9510
9511     @Override
9512     public String toString() {
9513       StringBuilder sb = new StringBuilder("withdrawRoute_result(");
9514       boolean first = true;
9515
9516       sb.append("success:");
9517       sb.append(this.success);
9518       first = false;
9519       sb.append(")");
9520       return sb.toString();
9521     }
9522
9523     public void validate() throws org.apache.thrift.TException {
9524       // check for required fields
9525       // check for sub-struct validity
9526     }
9527
9528     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9529       try {
9530         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9531       } catch (org.apache.thrift.TException te) {
9532         throw new java.io.IOException(te);
9533       }
9534     }
9535
9536     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9537       try {
9538         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9539         __isset_bitfield = 0;
9540         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9541       } catch (org.apache.thrift.TException te) {
9542         throw new java.io.IOException(te);
9543       }
9544     }
9545
9546     private static class withdrawRoute_resultStandardSchemeFactory implements SchemeFactory {
9547       public withdrawRoute_resultStandardScheme getScheme() {
9548         return new withdrawRoute_resultStandardScheme();
9549       }
9550     }
9551
9552     private static class withdrawRoute_resultStandardScheme extends StandardScheme<withdrawRoute_result> {
9553
9554       public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
9555         org.apache.thrift.protocol.TField schemeField;
9556         iprot.readStructBegin();
9557         while (true)
9558         {
9559           schemeField = iprot.readFieldBegin();
9560           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
9561             break;
9562           }
9563           switch (schemeField.id) {
9564             case 0: // SUCCESS
9565               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9566                 struct.success = iprot.readI32();
9567                 struct.setSuccessIsSet(true);
9568               } else { 
9569                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9570               }
9571               break;
9572             default:
9573               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9574           }
9575           iprot.readFieldEnd();
9576         }
9577         iprot.readStructEnd();
9578
9579         // check for required fields of primitive type, which can't be checked in the validate method
9580         struct.validate();
9581       }
9582
9583       public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
9584         struct.validate();
9585
9586         oprot.writeStructBegin(STRUCT_DESC);
9587         if (struct.isSetSuccess()) {
9588           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9589           oprot.writeI32(struct.success);
9590           oprot.writeFieldEnd();
9591         }
9592         oprot.writeFieldStop();
9593         oprot.writeStructEnd();
9594       }
9595
9596     }
9597
9598     private static class withdrawRoute_resultTupleSchemeFactory implements SchemeFactory {
9599       public withdrawRoute_resultTupleScheme getScheme() {
9600         return new withdrawRoute_resultTupleScheme();
9601       }
9602     }
9603
9604     private static class withdrawRoute_resultTupleScheme extends TupleScheme<withdrawRoute_result> {
9605
9606       @Override
9607       public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
9608         TTupleProtocol oprot = (TTupleProtocol) prot;
9609         BitSet optionals = new BitSet();
9610         if (struct.isSetSuccess()) {
9611           optionals.set(0);
9612         }
9613         oprot.writeBitSet(optionals, 1);
9614         if (struct.isSetSuccess()) {
9615           oprot.writeI32(struct.success);
9616         }
9617       }
9618
9619       @Override
9620       public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
9621         TTupleProtocol iprot = (TTupleProtocol) prot;
9622         BitSet incoming = iprot.readBitSet(1);
9623         if (incoming.get(0)) {
9624           struct.success = iprot.readI32();
9625           struct.setSuccessIsSet(true);
9626         }
9627       }
9628     }
9629
9630   }
9631
9632   public static class setEbgpMultihop_args implements org.apache.thrift.TBase<setEbgpMultihop_args, setEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_args>   {
9633     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_args");
9634
9635     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);
9636     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);
9637
9638     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9639     static {
9640       schemes.put(StandardScheme.class, new setEbgpMultihop_argsStandardSchemeFactory());
9641       schemes.put(TupleScheme.class, new setEbgpMultihop_argsTupleSchemeFactory());
9642     }
9643
9644     public String peerIp; // required
9645     public int nHops; // required
9646
9647     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9648     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9649       PEER_IP((short)1, "peerIp"),
9650       N_HOPS((short)2, "nHops");
9651
9652       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9653
9654       static {
9655         for (_Fields field : EnumSet.allOf(_Fields.class)) {
9656           byName.put(field.getFieldName(), field);
9657         }
9658       }
9659
9660       /**
9661        * Find the _Fields constant that matches fieldId, or null if its not found.
9662        */
9663       public static _Fields findByThriftId(int fieldId) {
9664         switch(fieldId) {
9665           case 1: // PEER_IP
9666             return PEER_IP;
9667           case 2: // N_HOPS
9668             return N_HOPS;
9669           default:
9670             return null;
9671         }
9672       }
9673
9674       /**
9675        * Find the _Fields constant that matches fieldId, throwing an exception
9676        * if it is not found.
9677        */
9678       public static _Fields findByThriftIdOrThrow(int fieldId) {
9679         _Fields fields = findByThriftId(fieldId);
9680         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9681         return fields;
9682       }
9683
9684       /**
9685        * Find the _Fields constant that matches name, or null if its not found.
9686        */
9687       public static _Fields findByName(String name) {
9688         return byName.get(name);
9689       }
9690
9691       private final short _thriftId;
9692       private final String _fieldName;
9693
9694       _Fields(short thriftId, String fieldName) {
9695         _thriftId = thriftId;
9696         _fieldName = fieldName;
9697       }
9698
9699       public short getThriftFieldId() {
9700         return _thriftId;
9701       }
9702
9703       public String getFieldName() {
9704         return _fieldName;
9705       }
9706     }
9707
9708     // isset id assignments
9709     private static final int __NHOPS_ISSET_ID = 0;
9710     private byte __isset_bitfield = 0;
9711     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9712     static {
9713       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9714       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9715           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9716       tmpMap.put(_Fields.N_HOPS, new org.apache.thrift.meta_data.FieldMetaData("nHops", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9717           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9718       metaDataMap = Collections.unmodifiableMap(tmpMap);
9719       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_args.class, metaDataMap);
9720     }
9721
9722     public setEbgpMultihop_args() {
9723     }
9724
9725     public setEbgpMultihop_args(
9726       String peerIp,
9727       int nHops)
9728     {
9729       this();
9730       this.peerIp = peerIp;
9731       this.nHops = nHops;
9732       setNHopsIsSet(true);
9733     }
9734
9735     /**
9736      * Performs a deep copy on <i>other</i>.
9737      */
9738     public setEbgpMultihop_args(setEbgpMultihop_args other) {
9739       __isset_bitfield = other.__isset_bitfield;
9740       if (other.isSetPeerIp()) {
9741         this.peerIp = other.peerIp;
9742       }
9743       this.nHops = other.nHops;
9744     }
9745
9746     public setEbgpMultihop_args deepCopy() {
9747       return new setEbgpMultihop_args(this);
9748     }
9749
9750     @Override
9751     public void clear() {
9752       this.peerIp = null;
9753       setNHopsIsSet(false);
9754       this.nHops = 0;
9755     }
9756
9757     public String getPeerIp() {
9758       return this.peerIp;
9759     }
9760
9761     public setEbgpMultihop_args setPeerIp(String peerIp) {
9762       this.peerIp = peerIp;
9763       return this;
9764     }
9765
9766     public void unsetPeerIp() {
9767       this.peerIp = null;
9768     }
9769
9770     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
9771     public boolean isSetPeerIp() {
9772       return this.peerIp != null;
9773     }
9774
9775     public void setPeerIpIsSet(boolean value) {
9776       if (!value) {
9777         this.peerIp = null;
9778       }
9779     }
9780
9781     public int getNHops() {
9782       return this.nHops;
9783     }
9784
9785     public setEbgpMultihop_args setNHops(int nHops) {
9786       this.nHops = nHops;
9787       setNHopsIsSet(true);
9788       return this;
9789     }
9790
9791     public void unsetNHops() {
9792       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NHOPS_ISSET_ID);
9793     }
9794
9795     /** Returns true if field nHops is set (has been assigned a value) and false otherwise */
9796     public boolean isSetNHops() {
9797       return EncodingUtils.testBit(__isset_bitfield, __NHOPS_ISSET_ID);
9798     }
9799
9800     public void setNHopsIsSet(boolean value) {
9801       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NHOPS_ISSET_ID, value);
9802     }
9803
9804     public void setFieldValue(_Fields field, Object value) {
9805       switch (field) {
9806       case PEER_IP:
9807         if (value == null) {
9808           unsetPeerIp();
9809         } else {
9810           setPeerIp((String)value);
9811         }
9812         break;
9813
9814       case N_HOPS:
9815         if (value == null) {
9816           unsetNHops();
9817         } else {
9818           setNHops((Integer)value);
9819         }
9820         break;
9821
9822       }
9823     }
9824
9825     public Object getFieldValue(_Fields field) {
9826       switch (field) {
9827       case PEER_IP:
9828         return getPeerIp();
9829
9830       case N_HOPS:
9831         return Integer.valueOf(getNHops());
9832
9833       }
9834       throw new IllegalStateException();
9835     }
9836
9837     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9838     public boolean isSet(_Fields field) {
9839       if (field == null) {
9840         throw new IllegalArgumentException();
9841       }
9842
9843       switch (field) {
9844       case PEER_IP:
9845         return isSetPeerIp();
9846       case N_HOPS:
9847         return isSetNHops();
9848       }
9849       throw new IllegalStateException();
9850     }
9851
9852     @Override
9853     public boolean equals(Object that) {
9854       if (that == null)
9855         return false;
9856       if (that instanceof setEbgpMultihop_args)
9857         return this.equals((setEbgpMultihop_args)that);
9858       return false;
9859     }
9860
9861     public boolean equals(setEbgpMultihop_args that) {
9862       if (that == null)
9863         return false;
9864
9865       boolean this_present_peerIp = true && this.isSetPeerIp();
9866       boolean that_present_peerIp = true && that.isSetPeerIp();
9867       if (this_present_peerIp || that_present_peerIp) {
9868         if (!(this_present_peerIp && that_present_peerIp))
9869           return false;
9870         if (!this.peerIp.equals(that.peerIp))
9871           return false;
9872       }
9873
9874       boolean this_present_nHops = true;
9875       boolean that_present_nHops = true;
9876       if (this_present_nHops || that_present_nHops) {
9877         if (!(this_present_nHops && that_present_nHops))
9878           return false;
9879         if (this.nHops != that.nHops)
9880           return false;
9881       }
9882
9883       return true;
9884     }
9885
9886     @Override
9887     public int hashCode() {
9888       return 0;
9889     }
9890
9891     @Override
9892     public int compareTo(setEbgpMultihop_args other) {
9893       if (!getClass().equals(other.getClass())) {
9894         return getClass().getName().compareTo(other.getClass().getName());
9895       }
9896
9897       int lastComparison = 0;
9898
9899       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
9900       if (lastComparison != 0) {
9901         return lastComparison;
9902       }
9903       if (isSetPeerIp()) {
9904         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
9905         if (lastComparison != 0) {
9906           return lastComparison;
9907         }
9908       }
9909       lastComparison = Boolean.valueOf(isSetNHops()).compareTo(other.isSetNHops());
9910       if (lastComparison != 0) {
9911         return lastComparison;
9912       }
9913       if (isSetNHops()) {
9914         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nHops, other.nHops);
9915         if (lastComparison != 0) {
9916           return lastComparison;
9917         }
9918       }
9919       return 0;
9920     }
9921
9922     public _Fields fieldForId(int fieldId) {
9923       return _Fields.findByThriftId(fieldId);
9924     }
9925
9926     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9927       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9928     }
9929
9930     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9931       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9932     }
9933
9934     @Override
9935     public String toString() {
9936       StringBuilder sb = new StringBuilder("setEbgpMultihop_args(");
9937       boolean first = true;
9938
9939       sb.append("peerIp:");
9940       if (this.peerIp == null) {
9941         sb.append("null");
9942       } else {
9943         sb.append(this.peerIp);
9944       }
9945       first = false;
9946       if (!first) sb.append(", ");
9947       sb.append("nHops:");
9948       sb.append(this.nHops);
9949       first = false;
9950       sb.append(")");
9951       return sb.toString();
9952     }
9953
9954     public void validate() throws org.apache.thrift.TException {
9955       // check for required fields
9956       // check for sub-struct validity
9957     }
9958
9959     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9960       try {
9961         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9962       } catch (org.apache.thrift.TException te) {
9963         throw new java.io.IOException(te);
9964       }
9965     }
9966
9967     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9968       try {
9969         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9970         __isset_bitfield = 0;
9971         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9972       } catch (org.apache.thrift.TException te) {
9973         throw new java.io.IOException(te);
9974       }
9975     }
9976
9977     private static class setEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
9978       public setEbgpMultihop_argsStandardScheme getScheme() {
9979         return new setEbgpMultihop_argsStandardScheme();
9980       }
9981     }
9982
9983     private static class setEbgpMultihop_argsStandardScheme extends StandardScheme<setEbgpMultihop_args> {
9984
9985       public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
9986         org.apache.thrift.protocol.TField schemeField;
9987         iprot.readStructBegin();
9988         while (true)
9989         {
9990           schemeField = iprot.readFieldBegin();
9991           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
9992             break;
9993           }
9994           switch (schemeField.id) {
9995             case 1: // PEER_IP
9996               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9997                 struct.peerIp = iprot.readString();
9998                 struct.setPeerIpIsSet(true);
9999               } else { 
10000                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10001               }
10002               break;
10003             case 2: // N_HOPS
10004               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10005                 struct.nHops = iprot.readI32();
10006                 struct.setNHopsIsSet(true);
10007               } else { 
10008                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10009               }
10010               break;
10011             default:
10012               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10013           }
10014           iprot.readFieldEnd();
10015         }
10016         iprot.readStructEnd();
10017
10018         // check for required fields of primitive type, which can't be checked in the validate method
10019         struct.validate();
10020       }
10021
10022       public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
10023         struct.validate();
10024
10025         oprot.writeStructBegin(STRUCT_DESC);
10026         if (struct.peerIp != null) {
10027           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
10028           oprot.writeString(struct.peerIp);
10029           oprot.writeFieldEnd();
10030         }
10031         oprot.writeFieldBegin(N_HOPS_FIELD_DESC);
10032         oprot.writeI32(struct.nHops);
10033         oprot.writeFieldEnd();
10034         oprot.writeFieldStop();
10035         oprot.writeStructEnd();
10036       }
10037
10038     }
10039
10040     private static class setEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
10041       public setEbgpMultihop_argsTupleScheme getScheme() {
10042         return new setEbgpMultihop_argsTupleScheme();
10043       }
10044     }
10045
10046     private static class setEbgpMultihop_argsTupleScheme extends TupleScheme<setEbgpMultihop_args> {
10047
10048       @Override
10049       public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
10050         TTupleProtocol oprot = (TTupleProtocol) prot;
10051         BitSet optionals = new BitSet();
10052         if (struct.isSetPeerIp()) {
10053           optionals.set(0);
10054         }
10055         if (struct.isSetNHops()) {
10056           optionals.set(1);
10057         }
10058         oprot.writeBitSet(optionals, 2);
10059         if (struct.isSetPeerIp()) {
10060           oprot.writeString(struct.peerIp);
10061         }
10062         if (struct.isSetNHops()) {
10063           oprot.writeI32(struct.nHops);
10064         }
10065       }
10066
10067       @Override
10068       public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
10069         TTupleProtocol iprot = (TTupleProtocol) prot;
10070         BitSet incoming = iprot.readBitSet(2);
10071         if (incoming.get(0)) {
10072           struct.peerIp = iprot.readString();
10073           struct.setPeerIpIsSet(true);
10074         }
10075         if (incoming.get(1)) {
10076           struct.nHops = iprot.readI32();
10077           struct.setNHopsIsSet(true);
10078         }
10079       }
10080     }
10081
10082   }
10083
10084   public static class setEbgpMultihop_result implements org.apache.thrift.TBase<setEbgpMultihop_result, setEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_result>   {
10085     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_result");
10086
10087     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);
10088
10089     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10090     static {
10091       schemes.put(StandardScheme.class, new setEbgpMultihop_resultStandardSchemeFactory());
10092       schemes.put(TupleScheme.class, new setEbgpMultihop_resultTupleSchemeFactory());
10093     }
10094
10095     public int success; // required
10096
10097     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10098     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10099       SUCCESS((short)0, "success");
10100
10101       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10102
10103       static {
10104         for (_Fields field : EnumSet.allOf(_Fields.class)) {
10105           byName.put(field.getFieldName(), field);
10106         }
10107       }
10108
10109       /**
10110        * Find the _Fields constant that matches fieldId, or null if its not found.
10111        */
10112       public static _Fields findByThriftId(int fieldId) {
10113         switch(fieldId) {
10114           case 0: // SUCCESS
10115             return SUCCESS;
10116           default:
10117             return null;
10118         }
10119       }
10120
10121       /**
10122        * Find the _Fields constant that matches fieldId, throwing an exception
10123        * if it is not found.
10124        */
10125       public static _Fields findByThriftIdOrThrow(int fieldId) {
10126         _Fields fields = findByThriftId(fieldId);
10127         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10128         return fields;
10129       }
10130
10131       /**
10132        * Find the _Fields constant that matches name, or null if its not found.
10133        */
10134       public static _Fields findByName(String name) {
10135         return byName.get(name);
10136       }
10137
10138       private final short _thriftId;
10139       private final String _fieldName;
10140
10141       _Fields(short thriftId, String fieldName) {
10142         _thriftId = thriftId;
10143         _fieldName = fieldName;
10144       }
10145
10146       public short getThriftFieldId() {
10147         return _thriftId;
10148       }
10149
10150       public String getFieldName() {
10151         return _fieldName;
10152       }
10153     }
10154
10155     // isset id assignments
10156     private static final int __SUCCESS_ISSET_ID = 0;
10157     private byte __isset_bitfield = 0;
10158     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10159     static {
10160       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10161       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10162           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10163       metaDataMap = Collections.unmodifiableMap(tmpMap);
10164       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_result.class, metaDataMap);
10165     }
10166
10167     public setEbgpMultihop_result() {
10168     }
10169
10170     public setEbgpMultihop_result(
10171       int success)
10172     {
10173       this();
10174       this.success = success;
10175       setSuccessIsSet(true);
10176     }
10177
10178     /**
10179      * Performs a deep copy on <i>other</i>.
10180      */
10181     public setEbgpMultihop_result(setEbgpMultihop_result other) {
10182       __isset_bitfield = other.__isset_bitfield;
10183       this.success = other.success;
10184     }
10185
10186     public setEbgpMultihop_result deepCopy() {
10187       return new setEbgpMultihop_result(this);
10188     }
10189
10190     @Override
10191     public void clear() {
10192       setSuccessIsSet(false);
10193       this.success = 0;
10194     }
10195
10196     public int getSuccess() {
10197       return this.success;
10198     }
10199
10200     public setEbgpMultihop_result setSuccess(int success) {
10201       this.success = success;
10202       setSuccessIsSet(true);
10203       return this;
10204     }
10205
10206     public void unsetSuccess() {
10207       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10208     }
10209
10210     /** Returns true if field success is set (has been assigned a value) and false otherwise */
10211     public boolean isSetSuccess() {
10212       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10213     }
10214
10215     public void setSuccessIsSet(boolean value) {
10216       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
10217     }
10218
10219     public void setFieldValue(_Fields field, Object value) {
10220       switch (field) {
10221       case SUCCESS:
10222         if (value == null) {
10223           unsetSuccess();
10224         } else {
10225           setSuccess((Integer)value);
10226         }
10227         break;
10228
10229       }
10230     }
10231
10232     public Object getFieldValue(_Fields field) {
10233       switch (field) {
10234       case SUCCESS:
10235         return Integer.valueOf(getSuccess());
10236
10237       }
10238       throw new IllegalStateException();
10239     }
10240
10241     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10242     public boolean isSet(_Fields field) {
10243       if (field == null) {
10244         throw new IllegalArgumentException();
10245       }
10246
10247       switch (field) {
10248       case SUCCESS:
10249         return isSetSuccess();
10250       }
10251       throw new IllegalStateException();
10252     }
10253
10254     @Override
10255     public boolean equals(Object that) {
10256       if (that == null)
10257         return false;
10258       if (that instanceof setEbgpMultihop_result)
10259         return this.equals((setEbgpMultihop_result)that);
10260       return false;
10261     }
10262
10263     public boolean equals(setEbgpMultihop_result that) {
10264       if (that == null)
10265         return false;
10266
10267       boolean this_present_success = true;
10268       boolean that_present_success = true;
10269       if (this_present_success || that_present_success) {
10270         if (!(this_present_success && that_present_success))
10271           return false;
10272         if (this.success != that.success)
10273           return false;
10274       }
10275
10276       return true;
10277     }
10278
10279     @Override
10280     public int hashCode() {
10281       return 0;
10282     }
10283
10284     @Override
10285     public int compareTo(setEbgpMultihop_result other) {
10286       if (!getClass().equals(other.getClass())) {
10287         return getClass().getName().compareTo(other.getClass().getName());
10288       }
10289
10290       int lastComparison = 0;
10291
10292       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
10293       if (lastComparison != 0) {
10294         return lastComparison;
10295       }
10296       if (isSetSuccess()) {
10297         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
10298         if (lastComparison != 0) {
10299           return lastComparison;
10300         }
10301       }
10302       return 0;
10303     }
10304
10305     public _Fields fieldForId(int fieldId) {
10306       return _Fields.findByThriftId(fieldId);
10307     }
10308
10309     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10310       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10311     }
10312
10313     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10314       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10315       }
10316
10317     @Override
10318     public String toString() {
10319       StringBuilder sb = new StringBuilder("setEbgpMultihop_result(");
10320       boolean first = true;
10321
10322       sb.append("success:");
10323       sb.append(this.success);
10324       first = false;
10325       sb.append(")");
10326       return sb.toString();
10327     }
10328
10329     public void validate() throws org.apache.thrift.TException {
10330       // check for required fields
10331       // check for sub-struct validity
10332     }
10333
10334     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10335       try {
10336         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10337       } catch (org.apache.thrift.TException te) {
10338         throw new java.io.IOException(te);
10339       }
10340     }
10341
10342     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10343       try {
10344         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10345         __isset_bitfield = 0;
10346         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10347       } catch (org.apache.thrift.TException te) {
10348         throw new java.io.IOException(te);
10349       }
10350     }
10351
10352     private static class setEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
10353       public setEbgpMultihop_resultStandardScheme getScheme() {
10354         return new setEbgpMultihop_resultStandardScheme();
10355       }
10356     }
10357
10358     private static class setEbgpMultihop_resultStandardScheme extends StandardScheme<setEbgpMultihop_result> {
10359
10360       public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
10361         org.apache.thrift.protocol.TField schemeField;
10362         iprot.readStructBegin();
10363         while (true)
10364         {
10365           schemeField = iprot.readFieldBegin();
10366           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
10367             break;
10368           }
10369           switch (schemeField.id) {
10370             case 0: // SUCCESS
10371               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10372                 struct.success = iprot.readI32();
10373                 struct.setSuccessIsSet(true);
10374               } else { 
10375                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10376               }
10377               break;
10378             default:
10379               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10380           }
10381           iprot.readFieldEnd();
10382         }
10383         iprot.readStructEnd();
10384
10385         // check for required fields of primitive type, which can't be checked in the validate method
10386         struct.validate();
10387       }
10388
10389       public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
10390         struct.validate();
10391
10392         oprot.writeStructBegin(STRUCT_DESC);
10393         if (struct.isSetSuccess()) {
10394           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10395           oprot.writeI32(struct.success);
10396           oprot.writeFieldEnd();
10397         }
10398         oprot.writeFieldStop();
10399         oprot.writeStructEnd();
10400       }
10401
10402     }
10403
10404     private static class setEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
10405       public setEbgpMultihop_resultTupleScheme getScheme() {
10406         return new setEbgpMultihop_resultTupleScheme();
10407       }
10408     }
10409
10410     private static class setEbgpMultihop_resultTupleScheme extends TupleScheme<setEbgpMultihop_result> {
10411
10412       @Override
10413       public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
10414         TTupleProtocol oprot = (TTupleProtocol) prot;
10415         BitSet optionals = new BitSet();
10416         if (struct.isSetSuccess()) {
10417           optionals.set(0);
10418         }
10419         oprot.writeBitSet(optionals, 1);
10420         if (struct.isSetSuccess()) {
10421           oprot.writeI32(struct.success);
10422         }
10423       }
10424
10425       @Override
10426       public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
10427         TTupleProtocol iprot = (TTupleProtocol) prot;
10428         BitSet incoming = iprot.readBitSet(1);
10429         if (incoming.get(0)) {
10430           struct.success = iprot.readI32();
10431           struct.setSuccessIsSet(true);
10432         }
10433       }
10434     }
10435
10436   }
10437
10438   public static class unsetEbgpMultihop_args implements org.apache.thrift.TBase<unsetEbgpMultihop_args, unsetEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_args>   {
10439     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_args");
10440
10441     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);
10442
10443     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10444     static {
10445       schemes.put(StandardScheme.class, new unsetEbgpMultihop_argsStandardSchemeFactory());
10446       schemes.put(TupleScheme.class, new unsetEbgpMultihop_argsTupleSchemeFactory());
10447     }
10448
10449     public String peerIp; // required
10450
10451     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10452     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10453       PEER_IP((short)1, "peerIp");
10454
10455       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10456
10457       static {
10458         for (_Fields field : EnumSet.allOf(_Fields.class)) {
10459           byName.put(field.getFieldName(), field);
10460         }
10461       }
10462
10463       /**
10464        * Find the _Fields constant that matches fieldId, or null if its not found.
10465        */
10466       public static _Fields findByThriftId(int fieldId) {
10467         switch(fieldId) {
10468           case 1: // PEER_IP
10469             return PEER_IP;
10470           default:
10471             return null;
10472         }
10473       }
10474
10475       /**
10476        * Find the _Fields constant that matches fieldId, throwing an exception
10477        * if it is not found.
10478        */
10479       public static _Fields findByThriftIdOrThrow(int fieldId) {
10480         _Fields fields = findByThriftId(fieldId);
10481         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10482         return fields;
10483       }
10484
10485       /**
10486        * Find the _Fields constant that matches name, or null if its not found.
10487        */
10488       public static _Fields findByName(String name) {
10489         return byName.get(name);
10490       }
10491
10492       private final short _thriftId;
10493       private final String _fieldName;
10494
10495       _Fields(short thriftId, String fieldName) {
10496         _thriftId = thriftId;
10497         _fieldName = fieldName;
10498       }
10499
10500       public short getThriftFieldId() {
10501         return _thriftId;
10502       }
10503
10504       public String getFieldName() {
10505         return _fieldName;
10506       }
10507     }
10508
10509     // isset id assignments
10510     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10511     static {
10512       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10513       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10514           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10515       metaDataMap = Collections.unmodifiableMap(tmpMap);
10516       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_args.class, metaDataMap);
10517     }
10518
10519     public unsetEbgpMultihop_args() {
10520     }
10521
10522     public unsetEbgpMultihop_args(
10523       String peerIp)
10524     {
10525       this();
10526       this.peerIp = peerIp;
10527     }
10528
10529     /**
10530      * Performs a deep copy on <i>other</i>.
10531      */
10532     public unsetEbgpMultihop_args(unsetEbgpMultihop_args other) {
10533       if (other.isSetPeerIp()) {
10534         this.peerIp = other.peerIp;
10535       }
10536     }
10537
10538     public unsetEbgpMultihop_args deepCopy() {
10539       return new unsetEbgpMultihop_args(this);
10540     }
10541
10542     @Override
10543     public void clear() {
10544       this.peerIp = null;
10545     }
10546
10547     public String getPeerIp() {
10548       return this.peerIp;
10549     }
10550
10551     public unsetEbgpMultihop_args setPeerIp(String peerIp) {
10552       this.peerIp = peerIp;
10553       return this;
10554     }
10555
10556     public void unsetPeerIp() {
10557       this.peerIp = null;
10558     }
10559
10560     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
10561     public boolean isSetPeerIp() {
10562       return this.peerIp != null;
10563     }
10564
10565     public void setPeerIpIsSet(boolean value) {
10566       if (!value) {
10567         this.peerIp = null;
10568       }
10569     }
10570
10571     public void setFieldValue(_Fields field, Object value) {
10572       switch (field) {
10573       case PEER_IP:
10574         if (value == null) {
10575           unsetPeerIp();
10576         } else {
10577           setPeerIp((String)value);
10578         }
10579         break;
10580
10581       }
10582     }
10583
10584     public Object getFieldValue(_Fields field) {
10585       switch (field) {
10586       case PEER_IP:
10587         return getPeerIp();
10588
10589       }
10590       throw new IllegalStateException();
10591     }
10592
10593     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10594     public boolean isSet(_Fields field) {
10595       if (field == null) {
10596         throw new IllegalArgumentException();
10597       }
10598
10599       switch (field) {
10600       case PEER_IP:
10601         return isSetPeerIp();
10602       }
10603       throw new IllegalStateException();
10604     }
10605
10606     @Override
10607     public boolean equals(Object that) {
10608       if (that == null)
10609         return false;
10610       if (that instanceof unsetEbgpMultihop_args)
10611         return this.equals((unsetEbgpMultihop_args)that);
10612       return false;
10613     }
10614
10615     public boolean equals(unsetEbgpMultihop_args that) {
10616       if (that == null)
10617         return false;
10618
10619       boolean this_present_peerIp = true && this.isSetPeerIp();
10620       boolean that_present_peerIp = true && that.isSetPeerIp();
10621       if (this_present_peerIp || that_present_peerIp) {
10622         if (!(this_present_peerIp && that_present_peerIp))
10623           return false;
10624         if (!this.peerIp.equals(that.peerIp))
10625           return false;
10626       }
10627
10628       return true;
10629     }
10630
10631     @Override
10632     public int hashCode() {
10633       return 0;
10634     }
10635
10636     @Override
10637     public int compareTo(unsetEbgpMultihop_args other) {
10638       if (!getClass().equals(other.getClass())) {
10639         return getClass().getName().compareTo(other.getClass().getName());
10640       }
10641
10642       int lastComparison = 0;
10643
10644       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
10645       if (lastComparison != 0) {
10646         return lastComparison;
10647       }
10648       if (isSetPeerIp()) {
10649         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
10650         if (lastComparison != 0) {
10651           return lastComparison;
10652         }
10653       }
10654       return 0;
10655     }
10656
10657     public _Fields fieldForId(int fieldId) {
10658       return _Fields.findByThriftId(fieldId);
10659     }
10660
10661     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10662       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10663     }
10664
10665     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10666       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10667     }
10668
10669     @Override
10670     public String toString() {
10671       StringBuilder sb = new StringBuilder("unsetEbgpMultihop_args(");
10672       boolean first = true;
10673
10674       sb.append("peerIp:");
10675       if (this.peerIp == null) {
10676         sb.append("null");
10677       } else {
10678         sb.append(this.peerIp);
10679       }
10680       first = false;
10681       sb.append(")");
10682       return sb.toString();
10683     }
10684
10685     public void validate() throws org.apache.thrift.TException {
10686       // check for required fields
10687       // check for sub-struct validity
10688     }
10689
10690     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10691       try {
10692         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10693       } catch (org.apache.thrift.TException te) {
10694         throw new java.io.IOException(te);
10695       }
10696     }
10697
10698     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10699       try {
10700         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10701       } catch (org.apache.thrift.TException te) {
10702         throw new java.io.IOException(te);
10703       }
10704     }
10705
10706     private static class unsetEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
10707       public unsetEbgpMultihop_argsStandardScheme getScheme() {
10708         return new unsetEbgpMultihop_argsStandardScheme();
10709       }
10710     }
10711
10712     private static class unsetEbgpMultihop_argsStandardScheme extends StandardScheme<unsetEbgpMultihop_args> {
10713
10714       public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
10715         org.apache.thrift.protocol.TField schemeField;
10716         iprot.readStructBegin();
10717         while (true)
10718         {
10719           schemeField = iprot.readFieldBegin();
10720           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
10721             break;
10722           }
10723           switch (schemeField.id) {
10724             case 1: // PEER_IP
10725               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10726                 struct.peerIp = iprot.readString();
10727                 struct.setPeerIpIsSet(true);
10728               } else { 
10729                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10730               }
10731               break;
10732             default:
10733               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10734           }
10735           iprot.readFieldEnd();
10736         }
10737         iprot.readStructEnd();
10738
10739         // check for required fields of primitive type, which can't be checked in the validate method
10740         struct.validate();
10741       }
10742
10743       public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
10744         struct.validate();
10745
10746         oprot.writeStructBegin(STRUCT_DESC);
10747         if (struct.peerIp != null) {
10748           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
10749           oprot.writeString(struct.peerIp);
10750           oprot.writeFieldEnd();
10751         }
10752         oprot.writeFieldStop();
10753         oprot.writeStructEnd();
10754       }
10755
10756     }
10757
10758     private static class unsetEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
10759       public unsetEbgpMultihop_argsTupleScheme getScheme() {
10760         return new unsetEbgpMultihop_argsTupleScheme();
10761       }
10762     }
10763
10764     private static class unsetEbgpMultihop_argsTupleScheme extends TupleScheme<unsetEbgpMultihop_args> {
10765
10766       @Override
10767       public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
10768         TTupleProtocol oprot = (TTupleProtocol) prot;
10769         BitSet optionals = new BitSet();
10770         if (struct.isSetPeerIp()) {
10771           optionals.set(0);
10772         }
10773         oprot.writeBitSet(optionals, 1);
10774         if (struct.isSetPeerIp()) {
10775           oprot.writeString(struct.peerIp);
10776         }
10777       }
10778
10779       @Override
10780       public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
10781         TTupleProtocol iprot = (TTupleProtocol) prot;
10782         BitSet incoming = iprot.readBitSet(1);
10783         if (incoming.get(0)) {
10784           struct.peerIp = iprot.readString();
10785           struct.setPeerIpIsSet(true);
10786         }
10787       }
10788     }
10789
10790   }
10791
10792   public static class unsetEbgpMultihop_result implements org.apache.thrift.TBase<unsetEbgpMultihop_result, unsetEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_result>   {
10793     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_result");
10794
10795     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);
10796
10797     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10798     static {
10799       schemes.put(StandardScheme.class, new unsetEbgpMultihop_resultStandardSchemeFactory());
10800       schemes.put(TupleScheme.class, new unsetEbgpMultihop_resultTupleSchemeFactory());
10801     }
10802
10803     public int success; // required
10804
10805     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10806     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10807       SUCCESS((short)0, "success");
10808
10809       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10810
10811       static {
10812         for (_Fields field : EnumSet.allOf(_Fields.class)) {
10813           byName.put(field.getFieldName(), field);
10814         }
10815       }
10816
10817       /**
10818        * Find the _Fields constant that matches fieldId, or null if its not found.
10819        */
10820       public static _Fields findByThriftId(int fieldId) {
10821         switch(fieldId) {
10822           case 0: // SUCCESS
10823             return SUCCESS;
10824           default:
10825             return null;
10826         }
10827       }
10828
10829       /**
10830        * Find the _Fields constant that matches fieldId, throwing an exception
10831        * if it is not found.
10832        */
10833       public static _Fields findByThriftIdOrThrow(int fieldId) {
10834         _Fields fields = findByThriftId(fieldId);
10835         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10836         return fields;
10837       }
10838
10839       /**
10840        * Find the _Fields constant that matches name, or null if its not found.
10841        */
10842       public static _Fields findByName(String name) {
10843         return byName.get(name);
10844       }
10845
10846       private final short _thriftId;
10847       private final String _fieldName;
10848
10849       _Fields(short thriftId, String fieldName) {
10850         _thriftId = thriftId;
10851         _fieldName = fieldName;
10852       }
10853
10854       public short getThriftFieldId() {
10855         return _thriftId;
10856       }
10857
10858       public String getFieldName() {
10859         return _fieldName;
10860       }
10861     }
10862
10863     // isset id assignments
10864     private static final int __SUCCESS_ISSET_ID = 0;
10865     private byte __isset_bitfield = 0;
10866     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10867     static {
10868       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10869       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10870           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10871       metaDataMap = Collections.unmodifiableMap(tmpMap);
10872       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_result.class, metaDataMap);
10873     }
10874
10875     public unsetEbgpMultihop_result() {
10876     }
10877
10878     public unsetEbgpMultihop_result(
10879       int success)
10880     {
10881       this();
10882       this.success = success;
10883       setSuccessIsSet(true);
10884     }
10885
10886     /**
10887      * Performs a deep copy on <i>other</i>.
10888      */
10889     public unsetEbgpMultihop_result(unsetEbgpMultihop_result other) {
10890       __isset_bitfield = other.__isset_bitfield;
10891       this.success = other.success;
10892     }
10893
10894     public unsetEbgpMultihop_result deepCopy() {
10895       return new unsetEbgpMultihop_result(this);
10896     }
10897
10898     @Override
10899     public void clear() {
10900       setSuccessIsSet(false);
10901       this.success = 0;
10902     }
10903
10904     public int getSuccess() {
10905       return this.success;
10906     }
10907
10908     public unsetEbgpMultihop_result setSuccess(int success) {
10909       this.success = success;
10910       setSuccessIsSet(true);
10911       return this;
10912     }
10913
10914     public void unsetSuccess() {
10915       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10916     }
10917
10918     /** Returns true if field success is set (has been assigned a value) and false otherwise */
10919     public boolean isSetSuccess() {
10920       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10921     }
10922
10923     public void setSuccessIsSet(boolean value) {
10924       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
10925     }
10926
10927     public void setFieldValue(_Fields field, Object value) {
10928       switch (field) {
10929       case SUCCESS:
10930         if (value == null) {
10931           unsetSuccess();
10932         } else {
10933           setSuccess((Integer)value);
10934         }
10935         break;
10936
10937       }
10938     }
10939
10940     public Object getFieldValue(_Fields field) {
10941       switch (field) {
10942       case SUCCESS:
10943         return Integer.valueOf(getSuccess());
10944
10945       }
10946       throw new IllegalStateException();
10947     }
10948
10949     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10950     public boolean isSet(_Fields field) {
10951       if (field == null) {
10952         throw new IllegalArgumentException();
10953       }
10954
10955       switch (field) {
10956       case SUCCESS:
10957         return isSetSuccess();
10958       }
10959       throw new IllegalStateException();
10960     }
10961
10962     @Override
10963     public boolean equals(Object that) {
10964       if (that == null)
10965         return false;
10966       if (that instanceof unsetEbgpMultihop_result)
10967         return this.equals((unsetEbgpMultihop_result)that);
10968       return false;
10969     }
10970
10971     public boolean equals(unsetEbgpMultihop_result that) {
10972       if (that == null)
10973         return false;
10974
10975       boolean this_present_success = true;
10976       boolean that_present_success = true;
10977       if (this_present_success || that_present_success) {
10978         if (!(this_present_success && that_present_success))
10979           return false;
10980         if (this.success != that.success)
10981           return false;
10982       }
10983
10984       return true;
10985     }
10986
10987     @Override
10988     public int hashCode() {
10989       return 0;
10990     }
10991
10992     @Override
10993     public int compareTo(unsetEbgpMultihop_result other) {
10994       if (!getClass().equals(other.getClass())) {
10995         return getClass().getName().compareTo(other.getClass().getName());
10996       }
10997
10998       int lastComparison = 0;
10999
11000       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
11001       if (lastComparison != 0) {
11002         return lastComparison;
11003       }
11004       if (isSetSuccess()) {
11005         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
11006         if (lastComparison != 0) {
11007           return lastComparison;
11008         }
11009       }
11010       return 0;
11011     }
11012
11013     public _Fields fieldForId(int fieldId) {
11014       return _Fields.findByThriftId(fieldId);
11015     }
11016
11017     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11018       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11019     }
11020
11021     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11022       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11023       }
11024
11025     @Override
11026     public String toString() {
11027       StringBuilder sb = new StringBuilder("unsetEbgpMultihop_result(");
11028       boolean first = true;
11029
11030       sb.append("success:");
11031       sb.append(this.success);
11032       first = false;
11033       sb.append(")");
11034       return sb.toString();
11035     }
11036
11037     public void validate() throws org.apache.thrift.TException {
11038       // check for required fields
11039       // check for sub-struct validity
11040     }
11041
11042     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11043       try {
11044         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11045       } catch (org.apache.thrift.TException te) {
11046         throw new java.io.IOException(te);
11047       }
11048     }
11049
11050     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11051       try {
11052         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11053         __isset_bitfield = 0;
11054         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11055       } catch (org.apache.thrift.TException te) {
11056         throw new java.io.IOException(te);
11057       }
11058     }
11059
11060     private static class unsetEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
11061       public unsetEbgpMultihop_resultStandardScheme getScheme() {
11062         return new unsetEbgpMultihop_resultStandardScheme();
11063       }
11064     }
11065
11066     private static class unsetEbgpMultihop_resultStandardScheme extends StandardScheme<unsetEbgpMultihop_result> {
11067
11068       public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
11069         org.apache.thrift.protocol.TField schemeField;
11070         iprot.readStructBegin();
11071         while (true)
11072         {
11073           schemeField = iprot.readFieldBegin();
11074           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
11075             break;
11076           }
11077           switch (schemeField.id) {
11078             case 0: // SUCCESS
11079               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11080                 struct.success = iprot.readI32();
11081                 struct.setSuccessIsSet(true);
11082               } else { 
11083                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11084               }
11085               break;
11086             default:
11087               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11088           }
11089           iprot.readFieldEnd();
11090         }
11091         iprot.readStructEnd();
11092
11093         // check for required fields of primitive type, which can't be checked in the validate method
11094         struct.validate();
11095       }
11096
11097       public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
11098         struct.validate();
11099
11100         oprot.writeStructBegin(STRUCT_DESC);
11101         if (struct.isSetSuccess()) {
11102           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11103           oprot.writeI32(struct.success);
11104           oprot.writeFieldEnd();
11105         }
11106         oprot.writeFieldStop();
11107         oprot.writeStructEnd();
11108       }
11109
11110     }
11111
11112     private static class unsetEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
11113       public unsetEbgpMultihop_resultTupleScheme getScheme() {
11114         return new unsetEbgpMultihop_resultTupleScheme();
11115       }
11116     }
11117
11118     private static class unsetEbgpMultihop_resultTupleScheme extends TupleScheme<unsetEbgpMultihop_result> {
11119
11120       @Override
11121       public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
11122         TTupleProtocol oprot = (TTupleProtocol) prot;
11123         BitSet optionals = new BitSet();
11124         if (struct.isSetSuccess()) {
11125           optionals.set(0);
11126         }
11127         oprot.writeBitSet(optionals, 1);
11128         if (struct.isSetSuccess()) {
11129           oprot.writeI32(struct.success);
11130         }
11131       }
11132
11133       @Override
11134       public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
11135         TTupleProtocol iprot = (TTupleProtocol) prot;
11136         BitSet incoming = iprot.readBitSet(1);
11137         if (incoming.get(0)) {
11138           struct.success = iprot.readI32();
11139           struct.setSuccessIsSet(true);
11140         }
11141       }
11142     }
11143
11144   }
11145
11146   public static class setUpdateSource_args implements org.apache.thrift.TBase<setUpdateSource_args, setUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_args>   {
11147     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_args");
11148
11149     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);
11150     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);
11151
11152     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11153     static {
11154       schemes.put(StandardScheme.class, new setUpdateSource_argsStandardSchemeFactory());
11155       schemes.put(TupleScheme.class, new setUpdateSource_argsTupleSchemeFactory());
11156     }
11157
11158     public String peerIp; // required
11159     public String srcIp; // required
11160
11161     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11162     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11163       PEER_IP((short)1, "peerIp"),
11164       SRC_IP((short)2, "srcIp");
11165
11166       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11167
11168       static {
11169         for (_Fields field : EnumSet.allOf(_Fields.class)) {
11170           byName.put(field.getFieldName(), field);
11171         }
11172       }
11173
11174       /**
11175        * Find the _Fields constant that matches fieldId, or null if its not found.
11176        */
11177       public static _Fields findByThriftId(int fieldId) {
11178         switch(fieldId) {
11179           case 1: // PEER_IP
11180             return PEER_IP;
11181           case 2: // SRC_IP
11182             return SRC_IP;
11183           default:
11184             return null;
11185         }
11186       }
11187
11188       /**
11189        * Find the _Fields constant that matches fieldId, throwing an exception
11190        * if it is not found.
11191        */
11192       public static _Fields findByThriftIdOrThrow(int fieldId) {
11193         _Fields fields = findByThriftId(fieldId);
11194         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11195         return fields;
11196       }
11197
11198       /**
11199        * Find the _Fields constant that matches name, or null if its not found.
11200        */
11201       public static _Fields findByName(String name) {
11202         return byName.get(name);
11203       }
11204
11205       private final short _thriftId;
11206       private final String _fieldName;
11207
11208       _Fields(short thriftId, String fieldName) {
11209         _thriftId = thriftId;
11210         _fieldName = fieldName;
11211       }
11212
11213       public short getThriftFieldId() {
11214         return _thriftId;
11215       }
11216
11217       public String getFieldName() {
11218         return _fieldName;
11219       }
11220     }
11221
11222     // isset id assignments
11223     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11224     static {
11225       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11226       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11227           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11228       tmpMap.put(_Fields.SRC_IP, new org.apache.thrift.meta_data.FieldMetaData("srcIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11229           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11230       metaDataMap = Collections.unmodifiableMap(tmpMap);
11231       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_args.class, metaDataMap);
11232     }
11233
11234     public setUpdateSource_args() {
11235     }
11236
11237     public setUpdateSource_args(
11238       String peerIp,
11239       String srcIp)
11240     {
11241       this();
11242       this.peerIp = peerIp;
11243       this.srcIp = srcIp;
11244     }
11245
11246     /**
11247      * Performs a deep copy on <i>other</i>.
11248      */
11249     public setUpdateSource_args(setUpdateSource_args other) {
11250       if (other.isSetPeerIp()) {
11251         this.peerIp = other.peerIp;
11252       }
11253       if (other.isSetSrcIp()) {
11254         this.srcIp = other.srcIp;
11255       }
11256     }
11257
11258     public setUpdateSource_args deepCopy() {
11259       return new setUpdateSource_args(this);
11260     }
11261
11262     @Override
11263     public void clear() {
11264       this.peerIp = null;
11265       this.srcIp = null;
11266     }
11267
11268     public String getPeerIp() {
11269       return this.peerIp;
11270     }
11271
11272     public setUpdateSource_args setPeerIp(String peerIp) {
11273       this.peerIp = peerIp;
11274       return this;
11275     }
11276
11277     public void unsetPeerIp() {
11278       this.peerIp = null;
11279     }
11280
11281     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
11282     public boolean isSetPeerIp() {
11283       return this.peerIp != null;
11284     }
11285
11286     public void setPeerIpIsSet(boolean value) {
11287       if (!value) {
11288         this.peerIp = null;
11289       }
11290     }
11291
11292     public String getSrcIp() {
11293       return this.srcIp;
11294     }
11295
11296     public setUpdateSource_args setSrcIp(String srcIp) {
11297       this.srcIp = srcIp;
11298       return this;
11299     }
11300
11301     public void unsetSrcIp() {
11302       this.srcIp = null;
11303     }
11304
11305     /** Returns true if field srcIp is set (has been assigned a value) and false otherwise */
11306     public boolean isSetSrcIp() {
11307       return this.srcIp != null;
11308     }
11309
11310     public void setSrcIpIsSet(boolean value) {
11311       if (!value) {
11312         this.srcIp = null;
11313       }
11314     }
11315
11316     public void setFieldValue(_Fields field, Object value) {
11317       switch (field) {
11318       case PEER_IP:
11319         if (value == null) {
11320           unsetPeerIp();
11321         } else {
11322           setPeerIp((String)value);
11323         }
11324         break;
11325
11326       case SRC_IP:
11327         if (value == null) {
11328           unsetSrcIp();
11329         } else {
11330           setSrcIp((String)value);
11331         }
11332         break;
11333
11334       }
11335     }
11336
11337     public Object getFieldValue(_Fields field) {
11338       switch (field) {
11339       case PEER_IP:
11340         return getPeerIp();
11341
11342       case SRC_IP:
11343         return getSrcIp();
11344
11345       }
11346       throw new IllegalStateException();
11347     }
11348
11349     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11350     public boolean isSet(_Fields field) {
11351       if (field == null) {
11352         throw new IllegalArgumentException();
11353       }
11354
11355       switch (field) {
11356       case PEER_IP:
11357         return isSetPeerIp();
11358       case SRC_IP:
11359         return isSetSrcIp();
11360       }
11361       throw new IllegalStateException();
11362     }
11363
11364     @Override
11365     public boolean equals(Object that) {
11366       if (that == null)
11367         return false;
11368       if (that instanceof setUpdateSource_args)
11369         return this.equals((setUpdateSource_args)that);
11370       return false;
11371     }
11372
11373     public boolean equals(setUpdateSource_args that) {
11374       if (that == null)
11375         return false;
11376
11377       boolean this_present_peerIp = true && this.isSetPeerIp();
11378       boolean that_present_peerIp = true && that.isSetPeerIp();
11379       if (this_present_peerIp || that_present_peerIp) {
11380         if (!(this_present_peerIp && that_present_peerIp))
11381           return false;
11382         if (!this.peerIp.equals(that.peerIp))
11383           return false;
11384       }
11385
11386       boolean this_present_srcIp = true && this.isSetSrcIp();
11387       boolean that_present_srcIp = true && that.isSetSrcIp();
11388       if (this_present_srcIp || that_present_srcIp) {
11389         if (!(this_present_srcIp && that_present_srcIp))
11390           return false;
11391         if (!this.srcIp.equals(that.srcIp))
11392           return false;
11393       }
11394
11395       return true;
11396     }
11397
11398     @Override
11399     public int hashCode() {
11400       return 0;
11401     }
11402
11403     @Override
11404     public int compareTo(setUpdateSource_args other) {
11405       if (!getClass().equals(other.getClass())) {
11406         return getClass().getName().compareTo(other.getClass().getName());
11407       }
11408
11409       int lastComparison = 0;
11410
11411       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
11412       if (lastComparison != 0) {
11413         return lastComparison;
11414       }
11415       if (isSetPeerIp()) {
11416         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
11417         if (lastComparison != 0) {
11418           return lastComparison;
11419         }
11420       }
11421       lastComparison = Boolean.valueOf(isSetSrcIp()).compareTo(other.isSetSrcIp());
11422       if (lastComparison != 0) {
11423         return lastComparison;
11424       }
11425       if (isSetSrcIp()) {
11426         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.srcIp, other.srcIp);
11427         if (lastComparison != 0) {
11428           return lastComparison;
11429         }
11430       }
11431       return 0;
11432     }
11433
11434     public _Fields fieldForId(int fieldId) {
11435       return _Fields.findByThriftId(fieldId);
11436     }
11437
11438     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11439       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11440     }
11441
11442     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11443       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11444     }
11445
11446     @Override
11447     public String toString() {
11448       StringBuilder sb = new StringBuilder("setUpdateSource_args(");
11449       boolean first = true;
11450
11451       sb.append("peerIp:");
11452       if (this.peerIp == null) {
11453         sb.append("null");
11454       } else {
11455         sb.append(this.peerIp);
11456       }
11457       first = false;
11458       if (!first) sb.append(", ");
11459       sb.append("srcIp:");
11460       if (this.srcIp == null) {
11461         sb.append("null");
11462       } else {
11463         sb.append(this.srcIp);
11464       }
11465       first = false;
11466       sb.append(")");
11467       return sb.toString();
11468     }
11469
11470     public void validate() throws org.apache.thrift.TException {
11471       // check for required fields
11472       // check for sub-struct validity
11473     }
11474
11475     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11476       try {
11477         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11478       } catch (org.apache.thrift.TException te) {
11479         throw new java.io.IOException(te);
11480       }
11481     }
11482
11483     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11484       try {
11485         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11486       } catch (org.apache.thrift.TException te) {
11487         throw new java.io.IOException(te);
11488       }
11489     }
11490
11491     private static class setUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
11492       public setUpdateSource_argsStandardScheme getScheme() {
11493         return new setUpdateSource_argsStandardScheme();
11494       }
11495     }
11496
11497     private static class setUpdateSource_argsStandardScheme extends StandardScheme<setUpdateSource_args> {
11498
11499       public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
11500         org.apache.thrift.protocol.TField schemeField;
11501         iprot.readStructBegin();
11502         while (true)
11503         {
11504           schemeField = iprot.readFieldBegin();
11505           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
11506             break;
11507           }
11508           switch (schemeField.id) {
11509             case 1: // PEER_IP
11510               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11511                 struct.peerIp = iprot.readString();
11512                 struct.setPeerIpIsSet(true);
11513               } else { 
11514                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11515               }
11516               break;
11517             case 2: // SRC_IP
11518               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11519                 struct.srcIp = iprot.readString();
11520                 struct.setSrcIpIsSet(true);
11521               } else { 
11522                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11523               }
11524               break;
11525             default:
11526               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11527           }
11528           iprot.readFieldEnd();
11529         }
11530         iprot.readStructEnd();
11531
11532         // check for required fields of primitive type, which can't be checked in the validate method
11533         struct.validate();
11534       }
11535
11536       public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
11537         struct.validate();
11538
11539         oprot.writeStructBegin(STRUCT_DESC);
11540         if (struct.peerIp != null) {
11541           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
11542           oprot.writeString(struct.peerIp);
11543           oprot.writeFieldEnd();
11544         }
11545         if (struct.srcIp != null) {
11546           oprot.writeFieldBegin(SRC_IP_FIELD_DESC);
11547           oprot.writeString(struct.srcIp);
11548           oprot.writeFieldEnd();
11549         }
11550         oprot.writeFieldStop();
11551         oprot.writeStructEnd();
11552       }
11553
11554     }
11555
11556     private static class setUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
11557       public setUpdateSource_argsTupleScheme getScheme() {
11558         return new setUpdateSource_argsTupleScheme();
11559       }
11560     }
11561
11562     private static class setUpdateSource_argsTupleScheme extends TupleScheme<setUpdateSource_args> {
11563
11564       @Override
11565       public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
11566         TTupleProtocol oprot = (TTupleProtocol) prot;
11567         BitSet optionals = new BitSet();
11568         if (struct.isSetPeerIp()) {
11569           optionals.set(0);
11570         }
11571         if (struct.isSetSrcIp()) {
11572           optionals.set(1);
11573         }
11574         oprot.writeBitSet(optionals, 2);
11575         if (struct.isSetPeerIp()) {
11576           oprot.writeString(struct.peerIp);
11577         }
11578         if (struct.isSetSrcIp()) {
11579           oprot.writeString(struct.srcIp);
11580         }
11581       }
11582
11583       @Override
11584       public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
11585         TTupleProtocol iprot = (TTupleProtocol) prot;
11586         BitSet incoming = iprot.readBitSet(2);
11587         if (incoming.get(0)) {
11588           struct.peerIp = iprot.readString();
11589           struct.setPeerIpIsSet(true);
11590         }
11591         if (incoming.get(1)) {
11592           struct.srcIp = iprot.readString();
11593           struct.setSrcIpIsSet(true);
11594         }
11595       }
11596     }
11597
11598   }
11599
11600   public static class setUpdateSource_result implements org.apache.thrift.TBase<setUpdateSource_result, setUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_result>   {
11601     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_result");
11602
11603     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);
11604
11605     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11606     static {
11607       schemes.put(StandardScheme.class, new setUpdateSource_resultStandardSchemeFactory());
11608       schemes.put(TupleScheme.class, new setUpdateSource_resultTupleSchemeFactory());
11609     }
11610
11611     public int success; // required
11612
11613     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11614     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11615       SUCCESS((short)0, "success");
11616
11617       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11618
11619       static {
11620         for (_Fields field : EnumSet.allOf(_Fields.class)) {
11621           byName.put(field.getFieldName(), field);
11622         }
11623       }
11624
11625       /**
11626        * Find the _Fields constant that matches fieldId, or null if its not found.
11627        */
11628       public static _Fields findByThriftId(int fieldId) {
11629         switch(fieldId) {
11630           case 0: // SUCCESS
11631             return SUCCESS;
11632           default:
11633             return null;
11634         }
11635       }
11636
11637       /**
11638        * Find the _Fields constant that matches fieldId, throwing an exception
11639        * if it is not found.
11640        */
11641       public static _Fields findByThriftIdOrThrow(int fieldId) {
11642         _Fields fields = findByThriftId(fieldId);
11643         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11644         return fields;
11645       }
11646
11647       /**
11648        * Find the _Fields constant that matches name, or null if its not found.
11649        */
11650       public static _Fields findByName(String name) {
11651         return byName.get(name);
11652       }
11653
11654       private final short _thriftId;
11655       private final String _fieldName;
11656
11657       _Fields(short thriftId, String fieldName) {
11658         _thriftId = thriftId;
11659         _fieldName = fieldName;
11660       }
11661
11662       public short getThriftFieldId() {
11663         return _thriftId;
11664       }
11665
11666       public String getFieldName() {
11667         return _fieldName;
11668       }
11669     }
11670
11671     // isset id assignments
11672     private static final int __SUCCESS_ISSET_ID = 0;
11673     private byte __isset_bitfield = 0;
11674     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11675     static {
11676       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11677       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11678           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
11679       metaDataMap = Collections.unmodifiableMap(tmpMap);
11680       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_result.class, metaDataMap);
11681     }
11682
11683     public setUpdateSource_result() {
11684     }
11685
11686     public setUpdateSource_result(
11687       int success)
11688     {
11689       this();
11690       this.success = success;
11691       setSuccessIsSet(true);
11692     }
11693
11694     /**
11695      * Performs a deep copy on <i>other</i>.
11696      */
11697     public setUpdateSource_result(setUpdateSource_result other) {
11698       __isset_bitfield = other.__isset_bitfield;
11699       this.success = other.success;
11700     }
11701
11702     public setUpdateSource_result deepCopy() {
11703       return new setUpdateSource_result(this);
11704     }
11705
11706     @Override
11707     public void clear() {
11708       setSuccessIsSet(false);
11709       this.success = 0;
11710     }
11711
11712     public int getSuccess() {
11713       return this.success;
11714     }
11715
11716     public setUpdateSource_result setSuccess(int success) {
11717       this.success = success;
11718       setSuccessIsSet(true);
11719       return this;
11720     }
11721
11722     public void unsetSuccess() {
11723       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
11724     }
11725
11726     /** Returns true if field success is set (has been assigned a value) and false otherwise */
11727     public boolean isSetSuccess() {
11728       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
11729     }
11730
11731     public void setSuccessIsSet(boolean value) {
11732       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
11733     }
11734
11735     public void setFieldValue(_Fields field, Object value) {
11736       switch (field) {
11737       case SUCCESS:
11738         if (value == null) {
11739           unsetSuccess();
11740         } else {
11741           setSuccess((Integer)value);
11742         }
11743         break;
11744
11745       }
11746     }
11747
11748     public Object getFieldValue(_Fields field) {
11749       switch (field) {
11750       case SUCCESS:
11751         return Integer.valueOf(getSuccess());
11752
11753       }
11754       throw new IllegalStateException();
11755     }
11756
11757     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11758     public boolean isSet(_Fields field) {
11759       if (field == null) {
11760         throw new IllegalArgumentException();
11761       }
11762
11763       switch (field) {
11764       case SUCCESS:
11765         return isSetSuccess();
11766       }
11767       throw new IllegalStateException();
11768     }
11769
11770     @Override
11771     public boolean equals(Object that) {
11772       if (that == null)
11773         return false;
11774       if (that instanceof setUpdateSource_result)
11775         return this.equals((setUpdateSource_result)that);
11776       return false;
11777     }
11778
11779     public boolean equals(setUpdateSource_result that) {
11780       if (that == null)
11781         return false;
11782
11783       boolean this_present_success = true;
11784       boolean that_present_success = true;
11785       if (this_present_success || that_present_success) {
11786         if (!(this_present_success && that_present_success))
11787           return false;
11788         if (this.success != that.success)
11789           return false;
11790       }
11791
11792       return true;
11793     }
11794
11795     @Override
11796     public int hashCode() {
11797       return 0;
11798     }
11799
11800     @Override
11801     public int compareTo(setUpdateSource_result other) {
11802       if (!getClass().equals(other.getClass())) {
11803         return getClass().getName().compareTo(other.getClass().getName());
11804       }
11805
11806       int lastComparison = 0;
11807
11808       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
11809       if (lastComparison != 0) {
11810         return lastComparison;
11811       }
11812       if (isSetSuccess()) {
11813         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
11814         if (lastComparison != 0) {
11815           return lastComparison;
11816         }
11817       }
11818       return 0;
11819     }
11820
11821     public _Fields fieldForId(int fieldId) {
11822       return _Fields.findByThriftId(fieldId);
11823     }
11824
11825     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11826       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11827     }
11828
11829     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11830       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11831       }
11832
11833     @Override
11834     public String toString() {
11835       StringBuilder sb = new StringBuilder("setUpdateSource_result(");
11836       boolean first = true;
11837
11838       sb.append("success:");
11839       sb.append(this.success);
11840       first = false;
11841       sb.append(")");
11842       return sb.toString();
11843     }
11844
11845     public void validate() throws org.apache.thrift.TException {
11846       // check for required fields
11847       // check for sub-struct validity
11848     }
11849
11850     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11851       try {
11852         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11853       } catch (org.apache.thrift.TException te) {
11854         throw new java.io.IOException(te);
11855       }
11856     }
11857
11858     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11859       try {
11860         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11861         __isset_bitfield = 0;
11862         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11863       } catch (org.apache.thrift.TException te) {
11864         throw new java.io.IOException(te);
11865       }
11866     }
11867
11868     private static class setUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
11869       public setUpdateSource_resultStandardScheme getScheme() {
11870         return new setUpdateSource_resultStandardScheme();
11871       }
11872     }
11873
11874     private static class setUpdateSource_resultStandardScheme extends StandardScheme<setUpdateSource_result> {
11875
11876       public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
11877         org.apache.thrift.protocol.TField schemeField;
11878         iprot.readStructBegin();
11879         while (true)
11880         {
11881           schemeField = iprot.readFieldBegin();
11882           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
11883             break;
11884           }
11885           switch (schemeField.id) {
11886             case 0: // SUCCESS
11887               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11888                 struct.success = iprot.readI32();
11889                 struct.setSuccessIsSet(true);
11890               } else { 
11891                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11892               }
11893               break;
11894             default:
11895               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11896           }
11897           iprot.readFieldEnd();
11898         }
11899         iprot.readStructEnd();
11900
11901         // check for required fields of primitive type, which can't be checked in the validate method
11902         struct.validate();
11903       }
11904
11905       public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
11906         struct.validate();
11907
11908         oprot.writeStructBegin(STRUCT_DESC);
11909         if (struct.isSetSuccess()) {
11910           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11911           oprot.writeI32(struct.success);
11912           oprot.writeFieldEnd();
11913         }
11914         oprot.writeFieldStop();
11915         oprot.writeStructEnd();
11916       }
11917
11918     }
11919
11920     private static class setUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
11921       public setUpdateSource_resultTupleScheme getScheme() {
11922         return new setUpdateSource_resultTupleScheme();
11923       }
11924     }
11925
11926     private static class setUpdateSource_resultTupleScheme extends TupleScheme<setUpdateSource_result> {
11927
11928       @Override
11929       public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
11930         TTupleProtocol oprot = (TTupleProtocol) prot;
11931         BitSet optionals = new BitSet();
11932         if (struct.isSetSuccess()) {
11933           optionals.set(0);
11934         }
11935         oprot.writeBitSet(optionals, 1);
11936         if (struct.isSetSuccess()) {
11937           oprot.writeI32(struct.success);
11938         }
11939       }
11940
11941       @Override
11942       public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
11943         TTupleProtocol iprot = (TTupleProtocol) prot;
11944         BitSet incoming = iprot.readBitSet(1);
11945         if (incoming.get(0)) {
11946           struct.success = iprot.readI32();
11947           struct.setSuccessIsSet(true);
11948         }
11949       }
11950     }
11951
11952   }
11953
11954   public static class unsetUpdateSource_args implements org.apache.thrift.TBase<unsetUpdateSource_args, unsetUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_args>   {
11955     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_args");
11956
11957     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);
11958
11959     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11960     static {
11961       schemes.put(StandardScheme.class, new unsetUpdateSource_argsStandardSchemeFactory());
11962       schemes.put(TupleScheme.class, new unsetUpdateSource_argsTupleSchemeFactory());
11963     }
11964
11965     public String peerIp; // required
11966
11967     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11968     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11969       PEER_IP((short)1, "peerIp");
11970
11971       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11972
11973       static {
11974         for (_Fields field : EnumSet.allOf(_Fields.class)) {
11975           byName.put(field.getFieldName(), field);
11976         }
11977       }
11978
11979       /**
11980        * Find the _Fields constant that matches fieldId, or null if its not found.
11981        */
11982       public static _Fields findByThriftId(int fieldId) {
11983         switch(fieldId) {
11984           case 1: // PEER_IP
11985             return PEER_IP;
11986           default:
11987             return null;
11988         }
11989       }
11990
11991       /**
11992        * Find the _Fields constant that matches fieldId, throwing an exception
11993        * if it is not found.
11994        */
11995       public static _Fields findByThriftIdOrThrow(int fieldId) {
11996         _Fields fields = findByThriftId(fieldId);
11997         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11998         return fields;
11999       }
12000
12001       /**
12002        * Find the _Fields constant that matches name, or null if its not found.
12003        */
12004       public static _Fields findByName(String name) {
12005         return byName.get(name);
12006       }
12007
12008       private final short _thriftId;
12009       private final String _fieldName;
12010
12011       _Fields(short thriftId, String fieldName) {
12012         _thriftId = thriftId;
12013         _fieldName = fieldName;
12014       }
12015
12016       public short getThriftFieldId() {
12017         return _thriftId;
12018       }
12019
12020       public String getFieldName() {
12021         return _fieldName;
12022       }
12023     }
12024
12025     // isset id assignments
12026     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12027     static {
12028       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12029       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12030           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12031       metaDataMap = Collections.unmodifiableMap(tmpMap);
12032       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_args.class, metaDataMap);
12033     }
12034
12035     public unsetUpdateSource_args() {
12036     }
12037
12038     public unsetUpdateSource_args(
12039       String peerIp)
12040     {
12041       this();
12042       this.peerIp = peerIp;
12043     }
12044
12045     /**
12046      * Performs a deep copy on <i>other</i>.
12047      */
12048     public unsetUpdateSource_args(unsetUpdateSource_args other) {
12049       if (other.isSetPeerIp()) {
12050         this.peerIp = other.peerIp;
12051       }
12052     }
12053
12054     public unsetUpdateSource_args deepCopy() {
12055       return new unsetUpdateSource_args(this);
12056     }
12057
12058     @Override
12059     public void clear() {
12060       this.peerIp = null;
12061     }
12062
12063     public String getPeerIp() {
12064       return this.peerIp;
12065     }
12066
12067     public unsetUpdateSource_args setPeerIp(String peerIp) {
12068       this.peerIp = peerIp;
12069       return this;
12070     }
12071
12072     public void unsetPeerIp() {
12073       this.peerIp = null;
12074     }
12075
12076     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
12077     public boolean isSetPeerIp() {
12078       return this.peerIp != null;
12079     }
12080
12081     public void setPeerIpIsSet(boolean value) {
12082       if (!value) {
12083         this.peerIp = null;
12084       }
12085     }
12086
12087     public void setFieldValue(_Fields field, Object value) {
12088       switch (field) {
12089       case PEER_IP:
12090         if (value == null) {
12091           unsetPeerIp();
12092         } else {
12093           setPeerIp((String)value);
12094         }
12095         break;
12096
12097       }
12098     }
12099
12100     public Object getFieldValue(_Fields field) {
12101       switch (field) {
12102       case PEER_IP:
12103         return getPeerIp();
12104
12105       }
12106       throw new IllegalStateException();
12107     }
12108
12109     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12110     public boolean isSet(_Fields field) {
12111       if (field == null) {
12112         throw new IllegalArgumentException();
12113       }
12114
12115       switch (field) {
12116       case PEER_IP:
12117         return isSetPeerIp();
12118       }
12119       throw new IllegalStateException();
12120     }
12121
12122     @Override
12123     public boolean equals(Object that) {
12124       if (that == null)
12125         return false;
12126       if (that instanceof unsetUpdateSource_args)
12127         return this.equals((unsetUpdateSource_args)that);
12128       return false;
12129     }
12130
12131     public boolean equals(unsetUpdateSource_args that) {
12132       if (that == null)
12133         return false;
12134
12135       boolean this_present_peerIp = true && this.isSetPeerIp();
12136       boolean that_present_peerIp = true && that.isSetPeerIp();
12137       if (this_present_peerIp || that_present_peerIp) {
12138         if (!(this_present_peerIp && that_present_peerIp))
12139           return false;
12140         if (!this.peerIp.equals(that.peerIp))
12141           return false;
12142       }
12143
12144       return true;
12145     }
12146
12147     @Override
12148     public int hashCode() {
12149       return 0;
12150     }
12151
12152     @Override
12153     public int compareTo(unsetUpdateSource_args other) {
12154       if (!getClass().equals(other.getClass())) {
12155         return getClass().getName().compareTo(other.getClass().getName());
12156       }
12157
12158       int lastComparison = 0;
12159
12160       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
12161       if (lastComparison != 0) {
12162         return lastComparison;
12163       }
12164       if (isSetPeerIp()) {
12165         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
12166         if (lastComparison != 0) {
12167           return lastComparison;
12168         }
12169       }
12170       return 0;
12171     }
12172
12173     public _Fields fieldForId(int fieldId) {
12174       return _Fields.findByThriftId(fieldId);
12175     }
12176
12177     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12178       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12179     }
12180
12181     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12182       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12183     }
12184
12185     @Override
12186     public String toString() {
12187       StringBuilder sb = new StringBuilder("unsetUpdateSource_args(");
12188       boolean first = true;
12189
12190       sb.append("peerIp:");
12191       if (this.peerIp == null) {
12192         sb.append("null");
12193       } else {
12194         sb.append(this.peerIp);
12195       }
12196       first = false;
12197       sb.append(")");
12198       return sb.toString();
12199     }
12200
12201     public void validate() throws org.apache.thrift.TException {
12202       // check for required fields
12203       // check for sub-struct validity
12204     }
12205
12206     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12207       try {
12208         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12209       } catch (org.apache.thrift.TException te) {
12210         throw new java.io.IOException(te);
12211       }
12212     }
12213
12214     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12215       try {
12216         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12217       } catch (org.apache.thrift.TException te) {
12218         throw new java.io.IOException(te);
12219       }
12220     }
12221
12222     private static class unsetUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
12223       public unsetUpdateSource_argsStandardScheme getScheme() {
12224         return new unsetUpdateSource_argsStandardScheme();
12225       }
12226     }
12227
12228     private static class unsetUpdateSource_argsStandardScheme extends StandardScheme<unsetUpdateSource_args> {
12229
12230       public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
12231         org.apache.thrift.protocol.TField schemeField;
12232         iprot.readStructBegin();
12233         while (true)
12234         {
12235           schemeField = iprot.readFieldBegin();
12236           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
12237             break;
12238           }
12239           switch (schemeField.id) {
12240             case 1: // PEER_IP
12241               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12242                 struct.peerIp = iprot.readString();
12243                 struct.setPeerIpIsSet(true);
12244               } else { 
12245                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12246               }
12247               break;
12248             default:
12249               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12250           }
12251           iprot.readFieldEnd();
12252         }
12253         iprot.readStructEnd();
12254
12255         // check for required fields of primitive type, which can't be checked in the validate method
12256         struct.validate();
12257       }
12258
12259       public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
12260         struct.validate();
12261
12262         oprot.writeStructBegin(STRUCT_DESC);
12263         if (struct.peerIp != null) {
12264           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
12265           oprot.writeString(struct.peerIp);
12266           oprot.writeFieldEnd();
12267         }
12268         oprot.writeFieldStop();
12269         oprot.writeStructEnd();
12270       }
12271
12272     }
12273
12274     private static class unsetUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
12275       public unsetUpdateSource_argsTupleScheme getScheme() {
12276         return new unsetUpdateSource_argsTupleScheme();
12277       }
12278     }
12279
12280     private static class unsetUpdateSource_argsTupleScheme extends TupleScheme<unsetUpdateSource_args> {
12281
12282       @Override
12283       public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
12284         TTupleProtocol oprot = (TTupleProtocol) prot;
12285         BitSet optionals = new BitSet();
12286         if (struct.isSetPeerIp()) {
12287           optionals.set(0);
12288         }
12289         oprot.writeBitSet(optionals, 1);
12290         if (struct.isSetPeerIp()) {
12291           oprot.writeString(struct.peerIp);
12292         }
12293       }
12294
12295       @Override
12296       public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
12297         TTupleProtocol iprot = (TTupleProtocol) prot;
12298         BitSet incoming = iprot.readBitSet(1);
12299         if (incoming.get(0)) {
12300           struct.peerIp = iprot.readString();
12301           struct.setPeerIpIsSet(true);
12302         }
12303       }
12304     }
12305
12306   }
12307
12308   public static class unsetUpdateSource_result implements org.apache.thrift.TBase<unsetUpdateSource_result, unsetUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_result>   {
12309     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_result");
12310
12311     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);
12312
12313     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12314     static {
12315       schemes.put(StandardScheme.class, new unsetUpdateSource_resultStandardSchemeFactory());
12316       schemes.put(TupleScheme.class, new unsetUpdateSource_resultTupleSchemeFactory());
12317     }
12318
12319     public int success; // required
12320
12321     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12322     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12323       SUCCESS((short)0, "success");
12324
12325       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12326
12327       static {
12328         for (_Fields field : EnumSet.allOf(_Fields.class)) {
12329           byName.put(field.getFieldName(), field);
12330         }
12331       }
12332
12333       /**
12334        * Find the _Fields constant that matches fieldId, or null if its not found.
12335        */
12336       public static _Fields findByThriftId(int fieldId) {
12337         switch(fieldId) {
12338           case 0: // SUCCESS
12339             return SUCCESS;
12340           default:
12341             return null;
12342         }
12343       }
12344
12345       /**
12346        * Find the _Fields constant that matches fieldId, throwing an exception
12347        * if it is not found.
12348        */
12349       public static _Fields findByThriftIdOrThrow(int fieldId) {
12350         _Fields fields = findByThriftId(fieldId);
12351         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12352         return fields;
12353       }
12354
12355       /**
12356        * Find the _Fields constant that matches name, or null if its not found.
12357        */
12358       public static _Fields findByName(String name) {
12359         return byName.get(name);
12360       }
12361
12362       private final short _thriftId;
12363       private final String _fieldName;
12364
12365       _Fields(short thriftId, String fieldName) {
12366         _thriftId = thriftId;
12367         _fieldName = fieldName;
12368       }
12369
12370       public short getThriftFieldId() {
12371         return _thriftId;
12372       }
12373
12374       public String getFieldName() {
12375         return _fieldName;
12376       }
12377     }
12378
12379     // isset id assignments
12380     private static final int __SUCCESS_ISSET_ID = 0;
12381     private byte __isset_bitfield = 0;
12382     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12383     static {
12384       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12385       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12386           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12387       metaDataMap = Collections.unmodifiableMap(tmpMap);
12388       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_result.class, metaDataMap);
12389     }
12390
12391     public unsetUpdateSource_result() {
12392     }
12393
12394     public unsetUpdateSource_result(
12395       int success)
12396     {
12397       this();
12398       this.success = success;
12399       setSuccessIsSet(true);
12400     }
12401
12402     /**
12403      * Performs a deep copy on <i>other</i>.
12404      */
12405     public unsetUpdateSource_result(unsetUpdateSource_result other) {
12406       __isset_bitfield = other.__isset_bitfield;
12407       this.success = other.success;
12408     }
12409
12410     public unsetUpdateSource_result deepCopy() {
12411       return new unsetUpdateSource_result(this);
12412     }
12413
12414     @Override
12415     public void clear() {
12416       setSuccessIsSet(false);
12417       this.success = 0;
12418     }
12419
12420     public int getSuccess() {
12421       return this.success;
12422     }
12423
12424     public unsetUpdateSource_result setSuccess(int success) {
12425       this.success = success;
12426       setSuccessIsSet(true);
12427       return this;
12428     }
12429
12430     public void unsetSuccess() {
12431       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12432     }
12433
12434     /** Returns true if field success is set (has been assigned a value) and false otherwise */
12435     public boolean isSetSuccess() {
12436       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12437     }
12438
12439     public void setSuccessIsSet(boolean value) {
12440       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
12441     }
12442
12443     public void setFieldValue(_Fields field, Object value) {
12444       switch (field) {
12445       case SUCCESS:
12446         if (value == null) {
12447           unsetSuccess();
12448         } else {
12449           setSuccess((Integer)value);
12450         }
12451         break;
12452
12453       }
12454     }
12455
12456     public Object getFieldValue(_Fields field) {
12457       switch (field) {
12458       case SUCCESS:
12459         return Integer.valueOf(getSuccess());
12460
12461       }
12462       throw new IllegalStateException();
12463     }
12464
12465     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12466     public boolean isSet(_Fields field) {
12467       if (field == null) {
12468         throw new IllegalArgumentException();
12469       }
12470
12471       switch (field) {
12472       case SUCCESS:
12473         return isSetSuccess();
12474       }
12475       throw new IllegalStateException();
12476     }
12477
12478     @Override
12479     public boolean equals(Object that) {
12480       if (that == null)
12481         return false;
12482       if (that instanceof unsetUpdateSource_result)
12483         return this.equals((unsetUpdateSource_result)that);
12484       return false;
12485     }
12486
12487     public boolean equals(unsetUpdateSource_result that) {
12488       if (that == null)
12489         return false;
12490
12491       boolean this_present_success = true;
12492       boolean that_present_success = true;
12493       if (this_present_success || that_present_success) {
12494         if (!(this_present_success && that_present_success))
12495           return false;
12496         if (this.success != that.success)
12497           return false;
12498       }
12499
12500       return true;
12501     }
12502
12503     @Override
12504     public int hashCode() {
12505       return 0;
12506     }
12507
12508     @Override
12509     public int compareTo(unsetUpdateSource_result other) {
12510       if (!getClass().equals(other.getClass())) {
12511         return getClass().getName().compareTo(other.getClass().getName());
12512       }
12513
12514       int lastComparison = 0;
12515
12516       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
12517       if (lastComparison != 0) {
12518         return lastComparison;
12519       }
12520       if (isSetSuccess()) {
12521         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
12522         if (lastComparison != 0) {
12523           return lastComparison;
12524         }
12525       }
12526       return 0;
12527     }
12528
12529     public _Fields fieldForId(int fieldId) {
12530       return _Fields.findByThriftId(fieldId);
12531     }
12532
12533     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12534       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12535     }
12536
12537     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12538       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12539       }
12540
12541     @Override
12542     public String toString() {
12543       StringBuilder sb = new StringBuilder("unsetUpdateSource_result(");
12544       boolean first = true;
12545
12546       sb.append("success:");
12547       sb.append(this.success);
12548       first = false;
12549       sb.append(")");
12550       return sb.toString();
12551     }
12552
12553     public void validate() throws org.apache.thrift.TException {
12554       // check for required fields
12555       // check for sub-struct validity
12556     }
12557
12558     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12559       try {
12560         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12561       } catch (org.apache.thrift.TException te) {
12562         throw new java.io.IOException(te);
12563       }
12564     }
12565
12566     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12567       try {
12568         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12569         __isset_bitfield = 0;
12570         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12571       } catch (org.apache.thrift.TException te) {
12572         throw new java.io.IOException(te);
12573       }
12574     }
12575
12576     private static class unsetUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
12577       public unsetUpdateSource_resultStandardScheme getScheme() {
12578         return new unsetUpdateSource_resultStandardScheme();
12579       }
12580     }
12581
12582     private static class unsetUpdateSource_resultStandardScheme extends StandardScheme<unsetUpdateSource_result> {
12583
12584       public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
12585         org.apache.thrift.protocol.TField schemeField;
12586         iprot.readStructBegin();
12587         while (true)
12588         {
12589           schemeField = iprot.readFieldBegin();
12590           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
12591             break;
12592           }
12593           switch (schemeField.id) {
12594             case 0: // SUCCESS
12595               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12596                 struct.success = iprot.readI32();
12597                 struct.setSuccessIsSet(true);
12598               } else { 
12599                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12600               }
12601               break;
12602             default:
12603               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12604           }
12605           iprot.readFieldEnd();
12606         }
12607         iprot.readStructEnd();
12608
12609         // check for required fields of primitive type, which can't be checked in the validate method
12610         struct.validate();
12611       }
12612
12613       public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
12614         struct.validate();
12615
12616         oprot.writeStructBegin(STRUCT_DESC);
12617         if (struct.isSetSuccess()) {
12618           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12619           oprot.writeI32(struct.success);
12620           oprot.writeFieldEnd();
12621         }
12622         oprot.writeFieldStop();
12623         oprot.writeStructEnd();
12624       }
12625
12626     }
12627
12628     private static class unsetUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
12629       public unsetUpdateSource_resultTupleScheme getScheme() {
12630         return new unsetUpdateSource_resultTupleScheme();
12631       }
12632     }
12633
12634     private static class unsetUpdateSource_resultTupleScheme extends TupleScheme<unsetUpdateSource_result> {
12635
12636       @Override
12637       public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
12638         TTupleProtocol oprot = (TTupleProtocol) prot;
12639         BitSet optionals = new BitSet();
12640         if (struct.isSetSuccess()) {
12641           optionals.set(0);
12642         }
12643         oprot.writeBitSet(optionals, 1);
12644         if (struct.isSetSuccess()) {
12645           oprot.writeI32(struct.success);
12646         }
12647       }
12648
12649       @Override
12650       public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
12651         TTupleProtocol iprot = (TTupleProtocol) prot;
12652         BitSet incoming = iprot.readBitSet(1);
12653         if (incoming.get(0)) {
12654           struct.success = iprot.readI32();
12655           struct.setSuccessIsSet(true);
12656         }
12657       }
12658     }
12659
12660   }
12661
12662   public static class enableAddressFamily_args implements org.apache.thrift.TBase<enableAddressFamily_args, enableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_args>   {
12663     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_args");
12664
12665     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);
12666     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);
12667     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);
12668
12669     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12670     static {
12671       schemes.put(StandardScheme.class, new enableAddressFamily_argsStandardSchemeFactory());
12672       schemes.put(TupleScheme.class, new enableAddressFamily_argsTupleSchemeFactory());
12673     }
12674
12675     public String peerIp; // required
12676     /**
12677      * 
12678      * @see af_afi
12679      */
12680     public af_afi afi; // required
12681     /**
12682      * 
12683      * @see af_safi
12684      */
12685     public af_safi safi; // required
12686
12687     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12688     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12689       PEER_IP((short)1, "peerIp"),
12690       /**
12691        * 
12692        * @see af_afi
12693        */
12694       AFI((short)2, "afi"),
12695       /**
12696        * 
12697        * @see af_safi
12698        */
12699       SAFI((short)3, "safi");
12700
12701       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12702
12703       static {
12704         for (_Fields field : EnumSet.allOf(_Fields.class)) {
12705           byName.put(field.getFieldName(), field);
12706         }
12707       }
12708
12709       /**
12710        * Find the _Fields constant that matches fieldId, or null if its not found.
12711        */
12712       public static _Fields findByThriftId(int fieldId) {
12713         switch(fieldId) {
12714           case 1: // PEER_IP
12715             return PEER_IP;
12716           case 2: // AFI
12717             return AFI;
12718           case 3: // SAFI
12719             return SAFI;
12720           default:
12721             return null;
12722         }
12723       }
12724
12725       /**
12726        * Find the _Fields constant that matches fieldId, throwing an exception
12727        * if it is not found.
12728        */
12729       public static _Fields findByThriftIdOrThrow(int fieldId) {
12730         _Fields fields = findByThriftId(fieldId);
12731         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12732         return fields;
12733       }
12734
12735       /**
12736        * Find the _Fields constant that matches name, or null if its not found.
12737        */
12738       public static _Fields findByName(String name) {
12739         return byName.get(name);
12740       }
12741
12742       private final short _thriftId;
12743       private final String _fieldName;
12744
12745       _Fields(short thriftId, String fieldName) {
12746         _thriftId = thriftId;
12747         _fieldName = fieldName;
12748       }
12749
12750       public short getThriftFieldId() {
12751         return _thriftId;
12752       }
12753
12754       public String getFieldName() {
12755         return _fieldName;
12756       }
12757     }
12758
12759     // isset id assignments
12760     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12761     static {
12762       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12763       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12764           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12765       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12766           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
12767       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12768           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
12769       metaDataMap = Collections.unmodifiableMap(tmpMap);
12770       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_args.class, metaDataMap);
12771     }
12772
12773     public enableAddressFamily_args() {
12774     }
12775
12776     public enableAddressFamily_args(
12777       String peerIp,
12778       af_afi afi,
12779       af_safi safi)
12780     {
12781       this();
12782       this.peerIp = peerIp;
12783       this.afi = afi;
12784       this.safi = safi;
12785     }
12786
12787     /**
12788      * Performs a deep copy on <i>other</i>.
12789      */
12790     public enableAddressFamily_args(enableAddressFamily_args other) {
12791       if (other.isSetPeerIp()) {
12792         this.peerIp = other.peerIp;
12793       }
12794       if (other.isSetAfi()) {
12795         this.afi = other.afi;
12796       }
12797       if (other.isSetSafi()) {
12798         this.safi = other.safi;
12799       }
12800     }
12801
12802     public enableAddressFamily_args deepCopy() {
12803       return new enableAddressFamily_args(this);
12804     }
12805
12806     @Override
12807     public void clear() {
12808       this.peerIp = null;
12809       this.afi = null;
12810       this.safi = null;
12811     }
12812
12813     public String getPeerIp() {
12814       return this.peerIp;
12815     }
12816
12817     public enableAddressFamily_args setPeerIp(String peerIp) {
12818       this.peerIp = peerIp;
12819       return this;
12820     }
12821
12822     public void unsetPeerIp() {
12823       this.peerIp = null;
12824     }
12825
12826     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
12827     public boolean isSetPeerIp() {
12828       return this.peerIp != null;
12829     }
12830
12831     public void setPeerIpIsSet(boolean value) {
12832       if (!value) {
12833         this.peerIp = null;
12834       }
12835     }
12836
12837     /**
12838      * 
12839      * @see af_afi
12840      */
12841     public af_afi getAfi() {
12842       return this.afi;
12843     }
12844
12845     /**
12846      * 
12847      * @see af_afi
12848      */
12849     public enableAddressFamily_args setAfi(af_afi afi) {
12850       this.afi = afi;
12851       return this;
12852     }
12853
12854     public void unsetAfi() {
12855       this.afi = null;
12856     }
12857
12858     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
12859     public boolean isSetAfi() {
12860       return this.afi != null;
12861     }
12862
12863     public void setAfiIsSet(boolean value) {
12864       if (!value) {
12865         this.afi = null;
12866       }
12867     }
12868
12869     /**
12870      * 
12871      * @see af_safi
12872      */
12873     public af_safi getSafi() {
12874       return this.safi;
12875     }
12876
12877     /**
12878      * 
12879      * @see af_safi
12880      */
12881     public enableAddressFamily_args setSafi(af_safi safi) {
12882       this.safi = safi;
12883       return this;
12884     }
12885
12886     public void unsetSafi() {
12887       this.safi = null;
12888     }
12889
12890     /** Returns true if field safi is set (has been assigned a value) and false otherwise */
12891     public boolean isSetSafi() {
12892       return this.safi != null;
12893     }
12894
12895     public void setSafiIsSet(boolean value) {
12896       if (!value) {
12897         this.safi = null;
12898       }
12899     }
12900
12901     public void setFieldValue(_Fields field, Object value) {
12902       switch (field) {
12903       case PEER_IP:
12904         if (value == null) {
12905           unsetPeerIp();
12906         } else {
12907           setPeerIp((String)value);
12908         }
12909         break;
12910
12911       case AFI:
12912         if (value == null) {
12913           unsetAfi();
12914         } else {
12915           setAfi((af_afi)value);
12916         }
12917         break;
12918
12919       case SAFI:
12920         if (value == null) {
12921           unsetSafi();
12922         } else {
12923           setSafi((af_safi)value);
12924         }
12925         break;
12926
12927       }
12928     }
12929
12930     public Object getFieldValue(_Fields field) {
12931       switch (field) {
12932       case PEER_IP:
12933         return getPeerIp();
12934
12935       case AFI:
12936         return getAfi();
12937
12938       case SAFI:
12939         return getSafi();
12940
12941       }
12942       throw new IllegalStateException();
12943     }
12944
12945     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12946     public boolean isSet(_Fields field) {
12947       if (field == null) {
12948         throw new IllegalArgumentException();
12949       }
12950
12951       switch (field) {
12952       case PEER_IP:
12953         return isSetPeerIp();
12954       case AFI:
12955         return isSetAfi();
12956       case SAFI:
12957         return isSetSafi();
12958       }
12959       throw new IllegalStateException();
12960     }
12961
12962     @Override
12963     public boolean equals(Object that) {
12964       if (that == null)
12965         return false;
12966       if (that instanceof enableAddressFamily_args)
12967         return this.equals((enableAddressFamily_args)that);
12968       return false;
12969     }
12970
12971     public boolean equals(enableAddressFamily_args that) {
12972       if (that == null)
12973         return false;
12974
12975       boolean this_present_peerIp = true && this.isSetPeerIp();
12976       boolean that_present_peerIp = true && that.isSetPeerIp();
12977       if (this_present_peerIp || that_present_peerIp) {
12978         if (!(this_present_peerIp && that_present_peerIp))
12979           return false;
12980         if (!this.peerIp.equals(that.peerIp))
12981           return false;
12982       }
12983
12984       boolean this_present_afi = true && this.isSetAfi();
12985       boolean that_present_afi = true && that.isSetAfi();
12986       if (this_present_afi || that_present_afi) {
12987         if (!(this_present_afi && that_present_afi))
12988           return false;
12989         if (!this.afi.equals(that.afi))
12990           return false;
12991       }
12992
12993       boolean this_present_safi = true && this.isSetSafi();
12994       boolean that_present_safi = true && that.isSetSafi();
12995       if (this_present_safi || that_present_safi) {
12996         if (!(this_present_safi && that_present_safi))
12997           return false;
12998         if (!this.safi.equals(that.safi))
12999           return false;
13000       }
13001
13002       return true;
13003     }
13004
13005     @Override
13006     public int hashCode() {
13007       return 0;
13008     }
13009
13010     @Override
13011     public int compareTo(enableAddressFamily_args other) {
13012       if (!getClass().equals(other.getClass())) {
13013         return getClass().getName().compareTo(other.getClass().getName());
13014       }
13015
13016       int lastComparison = 0;
13017
13018       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
13019       if (lastComparison != 0) {
13020         return lastComparison;
13021       }
13022       if (isSetPeerIp()) {
13023         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
13024         if (lastComparison != 0) {
13025           return lastComparison;
13026         }
13027       }
13028       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
13029       if (lastComparison != 0) {
13030         return lastComparison;
13031       }
13032       if (isSetAfi()) {
13033         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
13034         if (lastComparison != 0) {
13035           return lastComparison;
13036         }
13037       }
13038       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
13039       if (lastComparison != 0) {
13040         return lastComparison;
13041       }
13042       if (isSetSafi()) {
13043         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
13044         if (lastComparison != 0) {
13045           return lastComparison;
13046         }
13047       }
13048       return 0;
13049     }
13050
13051     public _Fields fieldForId(int fieldId) {
13052       return _Fields.findByThriftId(fieldId);
13053     }
13054
13055     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13056       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13057     }
13058
13059     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13060       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13061     }
13062
13063     @Override
13064     public String toString() {
13065       StringBuilder sb = new StringBuilder("enableAddressFamily_args(");
13066       boolean first = true;
13067
13068       sb.append("peerIp:");
13069       if (this.peerIp == null) {
13070         sb.append("null");
13071       } else {
13072         sb.append(this.peerIp);
13073       }
13074       first = false;
13075       if (!first) sb.append(", ");
13076       sb.append("afi:");
13077       if (this.afi == null) {
13078         sb.append("null");
13079       } else {
13080         sb.append(this.afi);
13081       }
13082       first = false;
13083       if (!first) sb.append(", ");
13084       sb.append("safi:");
13085       if (this.safi == null) {
13086         sb.append("null");
13087       } else {
13088         sb.append(this.safi);
13089       }
13090       first = false;
13091       sb.append(")");
13092       return sb.toString();
13093     }
13094
13095     public void validate() throws org.apache.thrift.TException {
13096       // check for required fields
13097       // check for sub-struct validity
13098     }
13099
13100     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13101       try {
13102         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13103       } catch (org.apache.thrift.TException te) {
13104         throw new java.io.IOException(te);
13105       }
13106     }
13107
13108     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13109       try {
13110         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13111       } catch (org.apache.thrift.TException te) {
13112         throw new java.io.IOException(te);
13113       }
13114     }
13115
13116     private static class enableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
13117       public enableAddressFamily_argsStandardScheme getScheme() {
13118         return new enableAddressFamily_argsStandardScheme();
13119       }
13120     }
13121
13122     private static class enableAddressFamily_argsStandardScheme extends StandardScheme<enableAddressFamily_args> {
13123
13124       public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
13125         org.apache.thrift.protocol.TField schemeField;
13126         iprot.readStructBegin();
13127         while (true)
13128         {
13129           schemeField = iprot.readFieldBegin();
13130           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
13131             break;
13132           }
13133           switch (schemeField.id) {
13134             case 1: // PEER_IP
13135               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13136                 struct.peerIp = iprot.readString();
13137                 struct.setPeerIpIsSet(true);
13138               } else { 
13139                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13140               }
13141               break;
13142             case 2: // AFI
13143               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13144                 struct.afi = af_afi.findByValue(iprot.readI32());
13145                 struct.setAfiIsSet(true);
13146               } else { 
13147                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13148               }
13149               break;
13150             case 3: // SAFI
13151               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13152                 struct.safi = af_safi.findByValue(iprot.readI32());
13153                 struct.setSafiIsSet(true);
13154               } else { 
13155                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13156               }
13157               break;
13158             default:
13159               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13160           }
13161           iprot.readFieldEnd();
13162         }
13163         iprot.readStructEnd();
13164
13165         // check for required fields of primitive type, which can't be checked in the validate method
13166         struct.validate();
13167       }
13168
13169       public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
13170         struct.validate();
13171
13172         oprot.writeStructBegin(STRUCT_DESC);
13173         if (struct.peerIp != null) {
13174           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
13175           oprot.writeString(struct.peerIp);
13176           oprot.writeFieldEnd();
13177         }
13178         if (struct.afi != null) {
13179           oprot.writeFieldBegin(AFI_FIELD_DESC);
13180           oprot.writeI32(struct.afi.getValue());
13181           oprot.writeFieldEnd();
13182         }
13183         if (struct.safi != null) {
13184           oprot.writeFieldBegin(SAFI_FIELD_DESC);
13185           oprot.writeI32(struct.safi.getValue());
13186           oprot.writeFieldEnd();
13187         }
13188         oprot.writeFieldStop();
13189         oprot.writeStructEnd();
13190       }
13191
13192     }
13193
13194     private static class enableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
13195       public enableAddressFamily_argsTupleScheme getScheme() {
13196         return new enableAddressFamily_argsTupleScheme();
13197       }
13198     }
13199
13200     private static class enableAddressFamily_argsTupleScheme extends TupleScheme<enableAddressFamily_args> {
13201
13202       @Override
13203       public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
13204         TTupleProtocol oprot = (TTupleProtocol) prot;
13205         BitSet optionals = new BitSet();
13206         if (struct.isSetPeerIp()) {
13207           optionals.set(0);
13208         }
13209         if (struct.isSetAfi()) {
13210           optionals.set(1);
13211         }
13212         if (struct.isSetSafi()) {
13213           optionals.set(2);
13214         }
13215         oprot.writeBitSet(optionals, 3);
13216         if (struct.isSetPeerIp()) {
13217           oprot.writeString(struct.peerIp);
13218         }
13219         if (struct.isSetAfi()) {
13220           oprot.writeI32(struct.afi.getValue());
13221         }
13222         if (struct.isSetSafi()) {
13223           oprot.writeI32(struct.safi.getValue());
13224         }
13225       }
13226
13227       @Override
13228       public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
13229         TTupleProtocol iprot = (TTupleProtocol) prot;
13230         BitSet incoming = iprot.readBitSet(3);
13231         if (incoming.get(0)) {
13232           struct.peerIp = iprot.readString();
13233           struct.setPeerIpIsSet(true);
13234         }
13235         if (incoming.get(1)) {
13236           struct.afi = af_afi.findByValue(iprot.readI32());
13237           struct.setAfiIsSet(true);
13238         }
13239         if (incoming.get(2)) {
13240           struct.safi = af_safi.findByValue(iprot.readI32());
13241           struct.setSafiIsSet(true);
13242         }
13243       }
13244     }
13245
13246   }
13247
13248   public static class enableAddressFamily_result implements org.apache.thrift.TBase<enableAddressFamily_result, enableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_result>   {
13249     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_result");
13250
13251     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);
13252
13253     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13254     static {
13255       schemes.put(StandardScheme.class, new enableAddressFamily_resultStandardSchemeFactory());
13256       schemes.put(TupleScheme.class, new enableAddressFamily_resultTupleSchemeFactory());
13257     }
13258
13259     public int success; // required
13260
13261     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13262     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13263       SUCCESS((short)0, "success");
13264
13265       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13266
13267       static {
13268         for (_Fields field : EnumSet.allOf(_Fields.class)) {
13269           byName.put(field.getFieldName(), field);
13270         }
13271       }
13272
13273       /**
13274        * Find the _Fields constant that matches fieldId, or null if its not found.
13275        */
13276       public static _Fields findByThriftId(int fieldId) {
13277         switch(fieldId) {
13278           case 0: // SUCCESS
13279             return SUCCESS;
13280           default:
13281             return null;
13282         }
13283       }
13284
13285       /**
13286        * Find the _Fields constant that matches fieldId, throwing an exception
13287        * if it is not found.
13288        */
13289       public static _Fields findByThriftIdOrThrow(int fieldId) {
13290         _Fields fields = findByThriftId(fieldId);
13291         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13292         return fields;
13293       }
13294
13295       /**
13296        * Find the _Fields constant that matches name, or null if its not found.
13297        */
13298       public static _Fields findByName(String name) {
13299         return byName.get(name);
13300       }
13301
13302       private final short _thriftId;
13303       private final String _fieldName;
13304
13305       _Fields(short thriftId, String fieldName) {
13306         _thriftId = thriftId;
13307         _fieldName = fieldName;
13308       }
13309
13310       public short getThriftFieldId() {
13311         return _thriftId;
13312       }
13313
13314       public String getFieldName() {
13315         return _fieldName;
13316       }
13317     }
13318
13319     // isset id assignments
13320     private static final int __SUCCESS_ISSET_ID = 0;
13321     private byte __isset_bitfield = 0;
13322     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13323     static {
13324       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13325       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13326           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
13327       metaDataMap = Collections.unmodifiableMap(tmpMap);
13328       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_result.class, metaDataMap);
13329     }
13330
13331     public enableAddressFamily_result() {
13332     }
13333
13334     public enableAddressFamily_result(
13335       int success)
13336     {
13337       this();
13338       this.success = success;
13339       setSuccessIsSet(true);
13340     }
13341
13342     /**
13343      * Performs a deep copy on <i>other</i>.
13344      */
13345     public enableAddressFamily_result(enableAddressFamily_result other) {
13346       __isset_bitfield = other.__isset_bitfield;
13347       this.success = other.success;
13348     }
13349
13350     public enableAddressFamily_result deepCopy() {
13351       return new enableAddressFamily_result(this);
13352     }
13353
13354     @Override
13355     public void clear() {
13356       setSuccessIsSet(false);
13357       this.success = 0;
13358     }
13359
13360     public int getSuccess() {
13361       return this.success;
13362     }
13363
13364     public enableAddressFamily_result setSuccess(int success) {
13365       this.success = success;
13366       setSuccessIsSet(true);
13367       return this;
13368     }
13369
13370     public void unsetSuccess() {
13371       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13372     }
13373
13374     /** Returns true if field success is set (has been assigned a value) and false otherwise */
13375     public boolean isSetSuccess() {
13376       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13377     }
13378
13379     public void setSuccessIsSet(boolean value) {
13380       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
13381     }
13382
13383     public void setFieldValue(_Fields field, Object value) {
13384       switch (field) {
13385       case SUCCESS:
13386         if (value == null) {
13387           unsetSuccess();
13388         } else {
13389           setSuccess((Integer)value);
13390         }
13391         break;
13392
13393       }
13394     }
13395
13396     public Object getFieldValue(_Fields field) {
13397       switch (field) {
13398       case SUCCESS:
13399         return Integer.valueOf(getSuccess());
13400
13401       }
13402       throw new IllegalStateException();
13403     }
13404
13405     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13406     public boolean isSet(_Fields field) {
13407       if (field == null) {
13408         throw new IllegalArgumentException();
13409       }
13410
13411       switch (field) {
13412       case SUCCESS:
13413         return isSetSuccess();
13414       }
13415       throw new IllegalStateException();
13416     }
13417
13418     @Override
13419     public boolean equals(Object that) {
13420       if (that == null)
13421         return false;
13422       if (that instanceof enableAddressFamily_result)
13423         return this.equals((enableAddressFamily_result)that);
13424       return false;
13425     }
13426
13427     public boolean equals(enableAddressFamily_result that) {
13428       if (that == null)
13429         return false;
13430
13431       boolean this_present_success = true;
13432       boolean that_present_success = true;
13433       if (this_present_success || that_present_success) {
13434         if (!(this_present_success && that_present_success))
13435           return false;
13436         if (this.success != that.success)
13437           return false;
13438       }
13439
13440       return true;
13441     }
13442
13443     @Override
13444     public int hashCode() {
13445       return 0;
13446     }
13447
13448     @Override
13449     public int compareTo(enableAddressFamily_result other) {
13450       if (!getClass().equals(other.getClass())) {
13451         return getClass().getName().compareTo(other.getClass().getName());
13452       }
13453
13454       int lastComparison = 0;
13455
13456       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
13457       if (lastComparison != 0) {
13458         return lastComparison;
13459       }
13460       if (isSetSuccess()) {
13461         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
13462         if (lastComparison != 0) {
13463           return lastComparison;
13464         }
13465       }
13466       return 0;
13467     }
13468
13469     public _Fields fieldForId(int fieldId) {
13470       return _Fields.findByThriftId(fieldId);
13471     }
13472
13473     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13474       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13475     }
13476
13477     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13478       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13479       }
13480
13481     @Override
13482     public String toString() {
13483       StringBuilder sb = new StringBuilder("enableAddressFamily_result(");
13484       boolean first = true;
13485
13486       sb.append("success:");
13487       sb.append(this.success);
13488       first = false;
13489       sb.append(")");
13490       return sb.toString();
13491     }
13492
13493     public void validate() throws org.apache.thrift.TException {
13494       // check for required fields
13495       // check for sub-struct validity
13496     }
13497
13498     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13499       try {
13500         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13501       } catch (org.apache.thrift.TException te) {
13502         throw new java.io.IOException(te);
13503       }
13504     }
13505
13506     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13507       try {
13508         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13509         __isset_bitfield = 0;
13510         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13511       } catch (org.apache.thrift.TException te) {
13512         throw new java.io.IOException(te);
13513       }
13514     }
13515
13516     private static class enableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
13517       public enableAddressFamily_resultStandardScheme getScheme() {
13518         return new enableAddressFamily_resultStandardScheme();
13519       }
13520     }
13521
13522     private static class enableAddressFamily_resultStandardScheme extends StandardScheme<enableAddressFamily_result> {
13523
13524       public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
13525         org.apache.thrift.protocol.TField schemeField;
13526         iprot.readStructBegin();
13527         while (true)
13528         {
13529           schemeField = iprot.readFieldBegin();
13530           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
13531             break;
13532           }
13533           switch (schemeField.id) {
13534             case 0: // SUCCESS
13535               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13536                 struct.success = iprot.readI32();
13537                 struct.setSuccessIsSet(true);
13538               } else { 
13539                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13540               }
13541               break;
13542             default:
13543               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13544           }
13545           iprot.readFieldEnd();
13546         }
13547         iprot.readStructEnd();
13548
13549         // check for required fields of primitive type, which can't be checked in the validate method
13550         struct.validate();
13551       }
13552
13553       public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
13554         struct.validate();
13555
13556         oprot.writeStructBegin(STRUCT_DESC);
13557         if (struct.isSetSuccess()) {
13558           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13559           oprot.writeI32(struct.success);
13560           oprot.writeFieldEnd();
13561         }
13562         oprot.writeFieldStop();
13563         oprot.writeStructEnd();
13564       }
13565
13566     }
13567
13568     private static class enableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
13569       public enableAddressFamily_resultTupleScheme getScheme() {
13570         return new enableAddressFamily_resultTupleScheme();
13571       }
13572     }
13573
13574     private static class enableAddressFamily_resultTupleScheme extends TupleScheme<enableAddressFamily_result> {
13575
13576       @Override
13577       public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
13578         TTupleProtocol oprot = (TTupleProtocol) prot;
13579         BitSet optionals = new BitSet();
13580         if (struct.isSetSuccess()) {
13581           optionals.set(0);
13582         }
13583         oprot.writeBitSet(optionals, 1);
13584         if (struct.isSetSuccess()) {
13585           oprot.writeI32(struct.success);
13586         }
13587       }
13588
13589       @Override
13590       public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
13591         TTupleProtocol iprot = (TTupleProtocol) prot;
13592         BitSet incoming = iprot.readBitSet(1);
13593         if (incoming.get(0)) {
13594           struct.success = iprot.readI32();
13595           struct.setSuccessIsSet(true);
13596         }
13597       }
13598     }
13599
13600   }
13601
13602   public static class disableAddressFamily_args implements org.apache.thrift.TBase<disableAddressFamily_args, disableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_args>   {
13603     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_args");
13604
13605     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);
13606     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);
13607     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);
13608
13609     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13610     static {
13611       schemes.put(StandardScheme.class, new disableAddressFamily_argsStandardSchemeFactory());
13612       schemes.put(TupleScheme.class, new disableAddressFamily_argsTupleSchemeFactory());
13613     }
13614
13615     public String peerIp; // required
13616     /**
13617      * 
13618      * @see af_afi
13619      */
13620     public af_afi afi; // required
13621     /**
13622      * 
13623      * @see af_safi
13624      */
13625     public af_safi safi; // required
13626
13627     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13628     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13629       PEER_IP((short)1, "peerIp"),
13630       /**
13631        * 
13632        * @see af_afi
13633        */
13634       AFI((short)2, "afi"),
13635       /**
13636        * 
13637        * @see af_safi
13638        */
13639       SAFI((short)3, "safi");
13640
13641       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13642
13643       static {
13644         for (_Fields field : EnumSet.allOf(_Fields.class)) {
13645           byName.put(field.getFieldName(), field);
13646         }
13647       }
13648
13649       /**
13650        * Find the _Fields constant that matches fieldId, or null if its not found.
13651        */
13652       public static _Fields findByThriftId(int fieldId) {
13653         switch(fieldId) {
13654           case 1: // PEER_IP
13655             return PEER_IP;
13656           case 2: // AFI
13657             return AFI;
13658           case 3: // SAFI
13659             return SAFI;
13660           default:
13661             return null;
13662         }
13663       }
13664
13665       /**
13666        * Find the _Fields constant that matches fieldId, throwing an exception
13667        * if it is not found.
13668        */
13669       public static _Fields findByThriftIdOrThrow(int fieldId) {
13670         _Fields fields = findByThriftId(fieldId);
13671         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13672         return fields;
13673       }
13674
13675       /**
13676        * Find the _Fields constant that matches name, or null if its not found.
13677        */
13678       public static _Fields findByName(String name) {
13679         return byName.get(name);
13680       }
13681
13682       private final short _thriftId;
13683       private final String _fieldName;
13684
13685       _Fields(short thriftId, String fieldName) {
13686         _thriftId = thriftId;
13687         _fieldName = fieldName;
13688       }
13689
13690       public short getThriftFieldId() {
13691         return _thriftId;
13692       }
13693
13694       public String getFieldName() {
13695         return _fieldName;
13696       }
13697     }
13698
13699     // isset id assignments
13700     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13701     static {
13702       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13703       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13704           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13705       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13706           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
13707       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13708           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
13709       metaDataMap = Collections.unmodifiableMap(tmpMap);
13710       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_args.class, metaDataMap);
13711     }
13712
13713     public disableAddressFamily_args() {
13714     }
13715
13716     public disableAddressFamily_args(
13717       String peerIp,
13718       af_afi afi,
13719       af_safi safi)
13720     {
13721       this();
13722       this.peerIp = peerIp;
13723       this.afi = afi;
13724       this.safi = safi;
13725     }
13726
13727     /**
13728      * Performs a deep copy on <i>other</i>.
13729      */
13730     public disableAddressFamily_args(disableAddressFamily_args other) {
13731       if (other.isSetPeerIp()) {
13732         this.peerIp = other.peerIp;
13733       }
13734       if (other.isSetAfi()) {
13735         this.afi = other.afi;
13736       }
13737       if (other.isSetSafi()) {
13738         this.safi = other.safi;
13739       }
13740     }
13741
13742     public disableAddressFamily_args deepCopy() {
13743       return new disableAddressFamily_args(this);
13744     }
13745
13746     @Override
13747     public void clear() {
13748       this.peerIp = null;
13749       this.afi = null;
13750       this.safi = null;
13751     }
13752
13753     public String getPeerIp() {
13754       return this.peerIp;
13755     }
13756
13757     public disableAddressFamily_args setPeerIp(String peerIp) {
13758       this.peerIp = peerIp;
13759       return this;
13760     }
13761
13762     public void unsetPeerIp() {
13763       this.peerIp = null;
13764     }
13765
13766     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
13767     public boolean isSetPeerIp() {
13768       return this.peerIp != null;
13769     }
13770
13771     public void setPeerIpIsSet(boolean value) {
13772       if (!value) {
13773         this.peerIp = null;
13774       }
13775     }
13776
13777     /**
13778      * 
13779      * @see af_afi
13780      */
13781     public af_afi getAfi() {
13782       return this.afi;
13783     }
13784
13785     /**
13786      * 
13787      * @see af_afi
13788      */
13789     public disableAddressFamily_args setAfi(af_afi afi) {
13790       this.afi = afi;
13791       return this;
13792     }
13793
13794     public void unsetAfi() {
13795       this.afi = null;
13796     }
13797
13798     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
13799     public boolean isSetAfi() {
13800       return this.afi != null;
13801     }
13802
13803     public void setAfiIsSet(boolean value) {
13804       if (!value) {
13805         this.afi = null;
13806       }
13807     }
13808
13809     /**
13810      * 
13811      * @see af_safi
13812      */
13813     public af_safi getSafi() {
13814       return this.safi;
13815     }
13816
13817     /**
13818      * 
13819      * @see af_safi
13820      */
13821     public disableAddressFamily_args setSafi(af_safi safi) {
13822       this.safi = safi;
13823       return this;
13824     }
13825
13826     public void unsetSafi() {
13827       this.safi = null;
13828     }
13829
13830     /** Returns true if field safi is set (has been assigned a value) and false otherwise */
13831     public boolean isSetSafi() {
13832       return this.safi != null;
13833     }
13834
13835     public void setSafiIsSet(boolean value) {
13836       if (!value) {
13837         this.safi = null;
13838       }
13839     }
13840
13841     public void setFieldValue(_Fields field, Object value) {
13842       switch (field) {
13843       case PEER_IP:
13844         if (value == null) {
13845           unsetPeerIp();
13846         } else {
13847           setPeerIp((String)value);
13848         }
13849         break;
13850
13851       case AFI:
13852         if (value == null) {
13853           unsetAfi();
13854         } else {
13855           setAfi((af_afi)value);
13856         }
13857         break;
13858
13859       case SAFI:
13860         if (value == null) {
13861           unsetSafi();
13862         } else {
13863           setSafi((af_safi)value);
13864         }
13865         break;
13866
13867       }
13868     }
13869
13870     public Object getFieldValue(_Fields field) {
13871       switch (field) {
13872       case PEER_IP:
13873         return getPeerIp();
13874
13875       case AFI:
13876         return getAfi();
13877
13878       case SAFI:
13879         return getSafi();
13880
13881       }
13882       throw new IllegalStateException();
13883     }
13884
13885     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13886     public boolean isSet(_Fields field) {
13887       if (field == null) {
13888         throw new IllegalArgumentException();
13889       }
13890
13891       switch (field) {
13892       case PEER_IP:
13893         return isSetPeerIp();
13894       case AFI:
13895         return isSetAfi();
13896       case SAFI:
13897         return isSetSafi();
13898       }
13899       throw new IllegalStateException();
13900     }
13901
13902     @Override
13903     public boolean equals(Object that) {
13904       if (that == null)
13905         return false;
13906       if (that instanceof disableAddressFamily_args)
13907         return this.equals((disableAddressFamily_args)that);
13908       return false;
13909     }
13910
13911     public boolean equals(disableAddressFamily_args that) {
13912       if (that == null)
13913         return false;
13914
13915       boolean this_present_peerIp = true && this.isSetPeerIp();
13916       boolean that_present_peerIp = true && that.isSetPeerIp();
13917       if (this_present_peerIp || that_present_peerIp) {
13918         if (!(this_present_peerIp && that_present_peerIp))
13919           return false;
13920         if (!this.peerIp.equals(that.peerIp))
13921           return false;
13922       }
13923
13924       boolean this_present_afi = true && this.isSetAfi();
13925       boolean that_present_afi = true && that.isSetAfi();
13926       if (this_present_afi || that_present_afi) {
13927         if (!(this_present_afi && that_present_afi))
13928           return false;
13929         if (!this.afi.equals(that.afi))
13930           return false;
13931       }
13932
13933       boolean this_present_safi = true && this.isSetSafi();
13934       boolean that_present_safi = true && that.isSetSafi();
13935       if (this_present_safi || that_present_safi) {
13936         if (!(this_present_safi && that_present_safi))
13937           return false;
13938         if (!this.safi.equals(that.safi))
13939           return false;
13940       }
13941
13942       return true;
13943     }
13944
13945     @Override
13946     public int hashCode() {
13947       return 0;
13948     }
13949
13950     @Override
13951     public int compareTo(disableAddressFamily_args other) {
13952       if (!getClass().equals(other.getClass())) {
13953         return getClass().getName().compareTo(other.getClass().getName());
13954       }
13955
13956       int lastComparison = 0;
13957
13958       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
13959       if (lastComparison != 0) {
13960         return lastComparison;
13961       }
13962       if (isSetPeerIp()) {
13963         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
13964         if (lastComparison != 0) {
13965           return lastComparison;
13966         }
13967       }
13968       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
13969       if (lastComparison != 0) {
13970         return lastComparison;
13971       }
13972       if (isSetAfi()) {
13973         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
13974         if (lastComparison != 0) {
13975           return lastComparison;
13976         }
13977       }
13978       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
13979       if (lastComparison != 0) {
13980         return lastComparison;
13981       }
13982       if (isSetSafi()) {
13983         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
13984         if (lastComparison != 0) {
13985           return lastComparison;
13986         }
13987       }
13988       return 0;
13989     }
13990
13991     public _Fields fieldForId(int fieldId) {
13992       return _Fields.findByThriftId(fieldId);
13993     }
13994
13995     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13996       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13997     }
13998
13999     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14000       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14001     }
14002
14003     @Override
14004     public String toString() {
14005       StringBuilder sb = new StringBuilder("disableAddressFamily_args(");
14006       boolean first = true;
14007
14008       sb.append("peerIp:");
14009       if (this.peerIp == null) {
14010         sb.append("null");
14011       } else {
14012         sb.append(this.peerIp);
14013       }
14014       first = false;
14015       if (!first) sb.append(", ");
14016       sb.append("afi:");
14017       if (this.afi == null) {
14018         sb.append("null");
14019       } else {
14020         sb.append(this.afi);
14021       }
14022       first = false;
14023       if (!first) sb.append(", ");
14024       sb.append("safi:");
14025       if (this.safi == null) {
14026         sb.append("null");
14027       } else {
14028         sb.append(this.safi);
14029       }
14030       first = false;
14031       sb.append(")");
14032       return sb.toString();
14033     }
14034
14035     public void validate() throws org.apache.thrift.TException {
14036       // check for required fields
14037       // check for sub-struct validity
14038     }
14039
14040     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14041       try {
14042         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14043       } catch (org.apache.thrift.TException te) {
14044         throw new java.io.IOException(te);
14045       }
14046     }
14047
14048     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14049       try {
14050         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14051       } catch (org.apache.thrift.TException te) {
14052         throw new java.io.IOException(te);
14053       }
14054     }
14055
14056     private static class disableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
14057       public disableAddressFamily_argsStandardScheme getScheme() {
14058         return new disableAddressFamily_argsStandardScheme();
14059       }
14060     }
14061
14062     private static class disableAddressFamily_argsStandardScheme extends StandardScheme<disableAddressFamily_args> {
14063
14064       public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
14065         org.apache.thrift.protocol.TField schemeField;
14066         iprot.readStructBegin();
14067         while (true)
14068         {
14069           schemeField = iprot.readFieldBegin();
14070           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
14071             break;
14072           }
14073           switch (schemeField.id) {
14074             case 1: // PEER_IP
14075               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14076                 struct.peerIp = iprot.readString();
14077                 struct.setPeerIpIsSet(true);
14078               } else { 
14079                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14080               }
14081               break;
14082             case 2: // AFI
14083               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14084                 struct.afi = af_afi.findByValue(iprot.readI32());
14085                 struct.setAfiIsSet(true);
14086               } else { 
14087                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14088               }
14089               break;
14090             case 3: // SAFI
14091               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14092                 struct.safi = af_safi.findByValue(iprot.readI32());
14093                 struct.setSafiIsSet(true);
14094               } else { 
14095                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14096               }
14097               break;
14098             default:
14099               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14100           }
14101           iprot.readFieldEnd();
14102         }
14103         iprot.readStructEnd();
14104
14105         // check for required fields of primitive type, which can't be checked in the validate method
14106         struct.validate();
14107       }
14108
14109       public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
14110         struct.validate();
14111
14112         oprot.writeStructBegin(STRUCT_DESC);
14113         if (struct.peerIp != null) {
14114           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
14115           oprot.writeString(struct.peerIp);
14116           oprot.writeFieldEnd();
14117         }
14118         if (struct.afi != null) {
14119           oprot.writeFieldBegin(AFI_FIELD_DESC);
14120           oprot.writeI32(struct.afi.getValue());
14121           oprot.writeFieldEnd();
14122         }
14123         if (struct.safi != null) {
14124           oprot.writeFieldBegin(SAFI_FIELD_DESC);
14125           oprot.writeI32(struct.safi.getValue());
14126           oprot.writeFieldEnd();
14127         }
14128         oprot.writeFieldStop();
14129         oprot.writeStructEnd();
14130       }
14131
14132     }
14133
14134     private static class disableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
14135       public disableAddressFamily_argsTupleScheme getScheme() {
14136         return new disableAddressFamily_argsTupleScheme();
14137       }
14138     }
14139
14140     private static class disableAddressFamily_argsTupleScheme extends TupleScheme<disableAddressFamily_args> {
14141
14142       @Override
14143       public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
14144         TTupleProtocol oprot = (TTupleProtocol) prot;
14145         BitSet optionals = new BitSet();
14146         if (struct.isSetPeerIp()) {
14147           optionals.set(0);
14148         }
14149         if (struct.isSetAfi()) {
14150           optionals.set(1);
14151         }
14152         if (struct.isSetSafi()) {
14153           optionals.set(2);
14154         }
14155         oprot.writeBitSet(optionals, 3);
14156         if (struct.isSetPeerIp()) {
14157           oprot.writeString(struct.peerIp);
14158         }
14159         if (struct.isSetAfi()) {
14160           oprot.writeI32(struct.afi.getValue());
14161         }
14162         if (struct.isSetSafi()) {
14163           oprot.writeI32(struct.safi.getValue());
14164         }
14165       }
14166
14167       @Override
14168       public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
14169         TTupleProtocol iprot = (TTupleProtocol) prot;
14170         BitSet incoming = iprot.readBitSet(3);
14171         if (incoming.get(0)) {
14172           struct.peerIp = iprot.readString();
14173           struct.setPeerIpIsSet(true);
14174         }
14175         if (incoming.get(1)) {
14176           struct.afi = af_afi.findByValue(iprot.readI32());
14177           struct.setAfiIsSet(true);
14178         }
14179         if (incoming.get(2)) {
14180           struct.safi = af_safi.findByValue(iprot.readI32());
14181           struct.setSafiIsSet(true);
14182         }
14183       }
14184     }
14185
14186   }
14187
14188   public static class disableAddressFamily_result implements org.apache.thrift.TBase<disableAddressFamily_result, disableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_result>   {
14189     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_result");
14190
14191     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);
14192
14193     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14194     static {
14195       schemes.put(StandardScheme.class, new disableAddressFamily_resultStandardSchemeFactory());
14196       schemes.put(TupleScheme.class, new disableAddressFamily_resultTupleSchemeFactory());
14197     }
14198
14199     public int success; // required
14200
14201     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14202     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14203       SUCCESS((short)0, "success");
14204
14205       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14206
14207       static {
14208         for (_Fields field : EnumSet.allOf(_Fields.class)) {
14209           byName.put(field.getFieldName(), field);
14210         }
14211       }
14212
14213       /**
14214        * Find the _Fields constant that matches fieldId, or null if its not found.
14215        */
14216       public static _Fields findByThriftId(int fieldId) {
14217         switch(fieldId) {
14218           case 0: // SUCCESS
14219             return SUCCESS;
14220           default:
14221             return null;
14222         }
14223       }
14224
14225       /**
14226        * Find the _Fields constant that matches fieldId, throwing an exception
14227        * if it is not found.
14228        */
14229       public static _Fields findByThriftIdOrThrow(int fieldId) {
14230         _Fields fields = findByThriftId(fieldId);
14231         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14232         return fields;
14233       }
14234
14235       /**
14236        * Find the _Fields constant that matches name, or null if its not found.
14237        */
14238       public static _Fields findByName(String name) {
14239         return byName.get(name);
14240       }
14241
14242       private final short _thriftId;
14243       private final String _fieldName;
14244
14245       _Fields(short thriftId, String fieldName) {
14246         _thriftId = thriftId;
14247         _fieldName = fieldName;
14248       }
14249
14250       public short getThriftFieldId() {
14251         return _thriftId;
14252       }
14253
14254       public String getFieldName() {
14255         return _fieldName;
14256       }
14257     }
14258
14259     // isset id assignments
14260     private static final int __SUCCESS_ISSET_ID = 0;
14261     private byte __isset_bitfield = 0;
14262     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14263     static {
14264       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14265       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14266           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
14267       metaDataMap = Collections.unmodifiableMap(tmpMap);
14268       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_result.class, metaDataMap);
14269     }
14270
14271     public disableAddressFamily_result() {
14272     }
14273
14274     public disableAddressFamily_result(
14275       int success)
14276     {
14277       this();
14278       this.success = success;
14279       setSuccessIsSet(true);
14280     }
14281
14282     /**
14283      * Performs a deep copy on <i>other</i>.
14284      */
14285     public disableAddressFamily_result(disableAddressFamily_result other) {
14286       __isset_bitfield = other.__isset_bitfield;
14287       this.success = other.success;
14288     }
14289
14290     public disableAddressFamily_result deepCopy() {
14291       return new disableAddressFamily_result(this);
14292     }
14293
14294     @Override
14295     public void clear() {
14296       setSuccessIsSet(false);
14297       this.success = 0;
14298     }
14299
14300     public int getSuccess() {
14301       return this.success;
14302     }
14303
14304     public disableAddressFamily_result setSuccess(int success) {
14305       this.success = success;
14306       setSuccessIsSet(true);
14307       return this;
14308     }
14309
14310     public void unsetSuccess() {
14311       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14312     }
14313
14314     /** Returns true if field success is set (has been assigned a value) and false otherwise */
14315     public boolean isSetSuccess() {
14316       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14317     }
14318
14319     public void setSuccessIsSet(boolean value) {
14320       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
14321     }
14322
14323     public void setFieldValue(_Fields field, Object value) {
14324       switch (field) {
14325       case SUCCESS:
14326         if (value == null) {
14327           unsetSuccess();
14328         } else {
14329           setSuccess((Integer)value);
14330         }
14331         break;
14332
14333       }
14334     }
14335
14336     public Object getFieldValue(_Fields field) {
14337       switch (field) {
14338       case SUCCESS:
14339         return Integer.valueOf(getSuccess());
14340
14341       }
14342       throw new IllegalStateException();
14343     }
14344
14345     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14346     public boolean isSet(_Fields field) {
14347       if (field == null) {
14348         throw new IllegalArgumentException();
14349       }
14350
14351       switch (field) {
14352       case SUCCESS:
14353         return isSetSuccess();
14354       }
14355       throw new IllegalStateException();
14356     }
14357
14358     @Override
14359     public boolean equals(Object that) {
14360       if (that == null)
14361         return false;
14362       if (that instanceof disableAddressFamily_result)
14363         return this.equals((disableAddressFamily_result)that);
14364       return false;
14365     }
14366
14367     public boolean equals(disableAddressFamily_result that) {
14368       if (that == null)
14369         return false;
14370
14371       boolean this_present_success = true;
14372       boolean that_present_success = true;
14373       if (this_present_success || that_present_success) {
14374         if (!(this_present_success && that_present_success))
14375           return false;
14376         if (this.success != that.success)
14377           return false;
14378       }
14379
14380       return true;
14381     }
14382
14383     @Override
14384     public int hashCode() {
14385       return 0;
14386     }
14387
14388     @Override
14389     public int compareTo(disableAddressFamily_result other) {
14390       if (!getClass().equals(other.getClass())) {
14391         return getClass().getName().compareTo(other.getClass().getName());
14392       }
14393
14394       int lastComparison = 0;
14395
14396       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
14397       if (lastComparison != 0) {
14398         return lastComparison;
14399       }
14400       if (isSetSuccess()) {
14401         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
14402         if (lastComparison != 0) {
14403           return lastComparison;
14404         }
14405       }
14406       return 0;
14407     }
14408
14409     public _Fields fieldForId(int fieldId) {
14410       return _Fields.findByThriftId(fieldId);
14411     }
14412
14413     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14414       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14415     }
14416
14417     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14418       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14419       }
14420
14421     @Override
14422     public String toString() {
14423       StringBuilder sb = new StringBuilder("disableAddressFamily_result(");
14424       boolean first = true;
14425
14426       sb.append("success:");
14427       sb.append(this.success);
14428       first = false;
14429       sb.append(")");
14430       return sb.toString();
14431     }
14432
14433     public void validate() throws org.apache.thrift.TException {
14434       // check for required fields
14435       // check for sub-struct validity
14436     }
14437
14438     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14439       try {
14440         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14441       } catch (org.apache.thrift.TException te) {
14442         throw new java.io.IOException(te);
14443       }
14444     }
14445
14446     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14447       try {
14448         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14449         __isset_bitfield = 0;
14450         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14451       } catch (org.apache.thrift.TException te) {
14452         throw new java.io.IOException(te);
14453       }
14454     }
14455
14456     private static class disableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
14457       public disableAddressFamily_resultStandardScheme getScheme() {
14458         return new disableAddressFamily_resultStandardScheme();
14459       }
14460     }
14461
14462     private static class disableAddressFamily_resultStandardScheme extends StandardScheme<disableAddressFamily_result> {
14463
14464       public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
14465         org.apache.thrift.protocol.TField schemeField;
14466         iprot.readStructBegin();
14467         while (true)
14468         {
14469           schemeField = iprot.readFieldBegin();
14470           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
14471             break;
14472           }
14473           switch (schemeField.id) {
14474             case 0: // SUCCESS
14475               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14476                 struct.success = iprot.readI32();
14477                 struct.setSuccessIsSet(true);
14478               } else { 
14479                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14480               }
14481               break;
14482             default:
14483               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14484           }
14485           iprot.readFieldEnd();
14486         }
14487         iprot.readStructEnd();
14488
14489         // check for required fields of primitive type, which can't be checked in the validate method
14490         struct.validate();
14491       }
14492
14493       public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
14494         struct.validate();
14495
14496         oprot.writeStructBegin(STRUCT_DESC);
14497         if (struct.isSetSuccess()) {
14498           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14499           oprot.writeI32(struct.success);
14500           oprot.writeFieldEnd();
14501         }
14502         oprot.writeFieldStop();
14503         oprot.writeStructEnd();
14504       }
14505
14506     }
14507
14508     private static class disableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
14509       public disableAddressFamily_resultTupleScheme getScheme() {
14510         return new disableAddressFamily_resultTupleScheme();
14511       }
14512     }
14513
14514     private static class disableAddressFamily_resultTupleScheme extends TupleScheme<disableAddressFamily_result> {
14515
14516       @Override
14517       public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
14518         TTupleProtocol oprot = (TTupleProtocol) prot;
14519         BitSet optionals = new BitSet();
14520         if (struct.isSetSuccess()) {
14521           optionals.set(0);
14522         }
14523         oprot.writeBitSet(optionals, 1);
14524         if (struct.isSetSuccess()) {
14525           oprot.writeI32(struct.success);
14526         }
14527       }
14528
14529       @Override
14530       public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
14531         TTupleProtocol iprot = (TTupleProtocol) prot;
14532         BitSet incoming = iprot.readBitSet(1);
14533         if (incoming.get(0)) {
14534           struct.success = iprot.readI32();
14535           struct.setSuccessIsSet(true);
14536         }
14537       }
14538     }
14539
14540   }
14541
14542   public static class setLogConfig_args implements org.apache.thrift.TBase<setLogConfig_args, setLogConfig_args._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_args>   {
14543     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_args");
14544
14545     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);
14546     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);
14547
14548     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14549     static {
14550       schemes.put(StandardScheme.class, new setLogConfig_argsStandardSchemeFactory());
14551       schemes.put(TupleScheme.class, new setLogConfig_argsTupleSchemeFactory());
14552     }
14553
14554     public String logFileName; // required
14555     public String logLevel; // required
14556
14557     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14558     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14559       LOG_FILE_NAME((short)1, "logFileName"),
14560       LOG_LEVEL((short)2, "logLevel");
14561
14562       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14563
14564       static {
14565         for (_Fields field : EnumSet.allOf(_Fields.class)) {
14566           byName.put(field.getFieldName(), field);
14567         }
14568       }
14569
14570       /**
14571        * Find the _Fields constant that matches fieldId, or null if its not found.
14572        */
14573       public static _Fields findByThriftId(int fieldId) {
14574         switch(fieldId) {
14575           case 1: // LOG_FILE_NAME
14576             return LOG_FILE_NAME;
14577           case 2: // LOG_LEVEL
14578             return LOG_LEVEL;
14579           default:
14580             return null;
14581         }
14582       }
14583
14584       /**
14585        * Find the _Fields constant that matches fieldId, throwing an exception
14586        * if it is not found.
14587        */
14588       public static _Fields findByThriftIdOrThrow(int fieldId) {
14589         _Fields fields = findByThriftId(fieldId);
14590         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14591         return fields;
14592       }
14593
14594       /**
14595        * Find the _Fields constant that matches name, or null if its not found.
14596        */
14597       public static _Fields findByName(String name) {
14598         return byName.get(name);
14599       }
14600
14601       private final short _thriftId;
14602       private final String _fieldName;
14603
14604       _Fields(short thriftId, String fieldName) {
14605         _thriftId = thriftId;
14606         _fieldName = fieldName;
14607       }
14608
14609       public short getThriftFieldId() {
14610         return _thriftId;
14611       }
14612
14613       public String getFieldName() {
14614         return _fieldName;
14615       }
14616     }
14617
14618     // isset id assignments
14619     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14620     static {
14621       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14622       tmpMap.put(_Fields.LOG_FILE_NAME, new org.apache.thrift.meta_data.FieldMetaData("logFileName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14623           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14624       tmpMap.put(_Fields.LOG_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("logLevel", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14625           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14626       metaDataMap = Collections.unmodifiableMap(tmpMap);
14627       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_args.class, metaDataMap);
14628     }
14629
14630     public setLogConfig_args() {
14631     }
14632
14633     public setLogConfig_args(
14634       String logFileName,
14635       String logLevel)
14636     {
14637       this();
14638       this.logFileName = logFileName;
14639       this.logLevel = logLevel;
14640     }
14641
14642     /**
14643      * Performs a deep copy on <i>other</i>.
14644      */
14645     public setLogConfig_args(setLogConfig_args other) {
14646       if (other.isSetLogFileName()) {
14647         this.logFileName = other.logFileName;
14648       }
14649       if (other.isSetLogLevel()) {
14650         this.logLevel = other.logLevel;
14651       }
14652     }
14653
14654     public setLogConfig_args deepCopy() {
14655       return new setLogConfig_args(this);
14656     }
14657
14658     @Override
14659     public void clear() {
14660       this.logFileName = null;
14661       this.logLevel = null;
14662     }
14663
14664     public String getLogFileName() {
14665       return this.logFileName;
14666     }
14667
14668     public setLogConfig_args setLogFileName(String logFileName) {
14669       this.logFileName = logFileName;
14670       return this;
14671     }
14672
14673     public void unsetLogFileName() {
14674       this.logFileName = null;
14675     }
14676
14677     /** Returns true if field logFileName is set (has been assigned a value) and false otherwise */
14678     public boolean isSetLogFileName() {
14679       return this.logFileName != null;
14680     }
14681
14682     public void setLogFileNameIsSet(boolean value) {
14683       if (!value) {
14684         this.logFileName = null;
14685       }
14686     }
14687
14688     public String getLogLevel() {
14689       return this.logLevel;
14690     }
14691
14692     public setLogConfig_args setLogLevel(String logLevel) {
14693       this.logLevel = logLevel;
14694       return this;
14695     }
14696
14697     public void unsetLogLevel() {
14698       this.logLevel = null;
14699     }
14700
14701     /** Returns true if field logLevel is set (has been assigned a value) and false otherwise */
14702     public boolean isSetLogLevel() {
14703       return this.logLevel != null;
14704     }
14705
14706     public void setLogLevelIsSet(boolean value) {
14707       if (!value) {
14708         this.logLevel = null;
14709       }
14710     }
14711
14712     public void setFieldValue(_Fields field, Object value) {
14713       switch (field) {
14714       case LOG_FILE_NAME:
14715         if (value == null) {
14716           unsetLogFileName();
14717         } else {
14718           setLogFileName((String)value);
14719         }
14720         break;
14721
14722       case LOG_LEVEL:
14723         if (value == null) {
14724           unsetLogLevel();
14725         } else {
14726           setLogLevel((String)value);
14727         }
14728         break;
14729
14730       }
14731     }
14732
14733     public Object getFieldValue(_Fields field) {
14734       switch (field) {
14735       case LOG_FILE_NAME:
14736         return getLogFileName();
14737
14738       case LOG_LEVEL:
14739         return getLogLevel();
14740
14741       }
14742       throw new IllegalStateException();
14743     }
14744
14745     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14746     public boolean isSet(_Fields field) {
14747       if (field == null) {
14748         throw new IllegalArgumentException();
14749       }
14750
14751       switch (field) {
14752       case LOG_FILE_NAME:
14753         return isSetLogFileName();
14754       case LOG_LEVEL:
14755         return isSetLogLevel();
14756       }
14757       throw new IllegalStateException();
14758     }
14759
14760     @Override
14761     public boolean equals(Object that) {
14762       if (that == null)
14763         return false;
14764       if (that instanceof setLogConfig_args)
14765         return this.equals((setLogConfig_args)that);
14766       return false;
14767     }
14768
14769     public boolean equals(setLogConfig_args that) {
14770       if (that == null)
14771         return false;
14772
14773       boolean this_present_logFileName = true && this.isSetLogFileName();
14774       boolean that_present_logFileName = true && that.isSetLogFileName();
14775       if (this_present_logFileName || that_present_logFileName) {
14776         if (!(this_present_logFileName && that_present_logFileName))
14777           return false;
14778         if (!this.logFileName.equals(that.logFileName))
14779           return false;
14780       }
14781
14782       boolean this_present_logLevel = true && this.isSetLogLevel();
14783       boolean that_present_logLevel = true && that.isSetLogLevel();
14784       if (this_present_logLevel || that_present_logLevel) {
14785         if (!(this_present_logLevel && that_present_logLevel))
14786           return false;
14787         if (!this.logLevel.equals(that.logLevel))
14788           return false;
14789       }
14790
14791       return true;
14792     }
14793
14794     @Override
14795     public int hashCode() {
14796       return 0;
14797     }
14798
14799     @Override
14800     public int compareTo(setLogConfig_args other) {
14801       if (!getClass().equals(other.getClass())) {
14802         return getClass().getName().compareTo(other.getClass().getName());
14803       }
14804
14805       int lastComparison = 0;
14806
14807       lastComparison = Boolean.valueOf(isSetLogFileName()).compareTo(other.isSetLogFileName());
14808       if (lastComparison != 0) {
14809         return lastComparison;
14810       }
14811       if (isSetLogFileName()) {
14812         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logFileName, other.logFileName);
14813         if (lastComparison != 0) {
14814           return lastComparison;
14815         }
14816       }
14817       lastComparison = Boolean.valueOf(isSetLogLevel()).compareTo(other.isSetLogLevel());
14818       if (lastComparison != 0) {
14819         return lastComparison;
14820       }
14821       if (isSetLogLevel()) {
14822         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logLevel, other.logLevel);
14823         if (lastComparison != 0) {
14824           return lastComparison;
14825         }
14826       }
14827       return 0;
14828     }
14829
14830     public _Fields fieldForId(int fieldId) {
14831       return _Fields.findByThriftId(fieldId);
14832     }
14833
14834     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14835       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14836     }
14837
14838     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14839       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14840     }
14841
14842     @Override
14843     public String toString() {
14844       StringBuilder sb = new StringBuilder("setLogConfig_args(");
14845       boolean first = true;
14846
14847       sb.append("logFileName:");
14848       if (this.logFileName == null) {
14849         sb.append("null");
14850       } else {
14851         sb.append(this.logFileName);
14852       }
14853       first = false;
14854       if (!first) sb.append(", ");
14855       sb.append("logLevel:");
14856       if (this.logLevel == null) {
14857         sb.append("null");
14858       } else {
14859         sb.append(this.logLevel);
14860       }
14861       first = false;
14862       sb.append(")");
14863       return sb.toString();
14864     }
14865
14866     public void validate() throws org.apache.thrift.TException {
14867       // check for required fields
14868       // check for sub-struct validity
14869     }
14870
14871     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14872       try {
14873         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14874       } catch (org.apache.thrift.TException te) {
14875         throw new java.io.IOException(te);
14876       }
14877     }
14878
14879     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14880       try {
14881         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14882       } catch (org.apache.thrift.TException te) {
14883         throw new java.io.IOException(te);
14884       }
14885     }
14886
14887     private static class setLogConfig_argsStandardSchemeFactory implements SchemeFactory {
14888       public setLogConfig_argsStandardScheme getScheme() {
14889         return new setLogConfig_argsStandardScheme();
14890       }
14891     }
14892
14893     private static class setLogConfig_argsStandardScheme extends StandardScheme<setLogConfig_args> {
14894
14895       public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_args struct) throws org.apache.thrift.TException {
14896         org.apache.thrift.protocol.TField schemeField;
14897         iprot.readStructBegin();
14898         while (true)
14899         {
14900           schemeField = iprot.readFieldBegin();
14901           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
14902             break;
14903           }
14904           switch (schemeField.id) {
14905             case 1: // LOG_FILE_NAME
14906               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14907                 struct.logFileName = iprot.readString();
14908                 struct.setLogFileNameIsSet(true);
14909               } else { 
14910                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14911               }
14912               break;
14913             case 2: // LOG_LEVEL
14914               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14915                 struct.logLevel = iprot.readString();
14916                 struct.setLogLevelIsSet(true);
14917               } else { 
14918                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14919               }
14920               break;
14921             default:
14922               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14923           }
14924           iprot.readFieldEnd();
14925         }
14926         iprot.readStructEnd();
14927
14928         // check for required fields of primitive type, which can't be checked in the validate method
14929         struct.validate();
14930       }
14931
14932       public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_args struct) throws org.apache.thrift.TException {
14933         struct.validate();
14934
14935         oprot.writeStructBegin(STRUCT_DESC);
14936         if (struct.logFileName != null) {
14937           oprot.writeFieldBegin(LOG_FILE_NAME_FIELD_DESC);
14938           oprot.writeString(struct.logFileName);
14939           oprot.writeFieldEnd();
14940         }
14941         if (struct.logLevel != null) {
14942           oprot.writeFieldBegin(LOG_LEVEL_FIELD_DESC);
14943           oprot.writeString(struct.logLevel);
14944           oprot.writeFieldEnd();
14945         }
14946         oprot.writeFieldStop();
14947         oprot.writeStructEnd();
14948       }
14949
14950     }
14951
14952     private static class setLogConfig_argsTupleSchemeFactory implements SchemeFactory {
14953       public setLogConfig_argsTupleScheme getScheme() {
14954         return new setLogConfig_argsTupleScheme();
14955       }
14956     }
14957
14958     private static class setLogConfig_argsTupleScheme extends TupleScheme<setLogConfig_args> {
14959
14960       @Override
14961       public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
14962         TTupleProtocol oprot = (TTupleProtocol) prot;
14963         BitSet optionals = new BitSet();
14964         if (struct.isSetLogFileName()) {
14965           optionals.set(0);
14966         }
14967         if (struct.isSetLogLevel()) {
14968           optionals.set(1);
14969         }
14970         oprot.writeBitSet(optionals, 2);
14971         if (struct.isSetLogFileName()) {
14972           oprot.writeString(struct.logFileName);
14973         }
14974         if (struct.isSetLogLevel()) {
14975           oprot.writeString(struct.logLevel);
14976         }
14977       }
14978
14979       @Override
14980       public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
14981         TTupleProtocol iprot = (TTupleProtocol) prot;
14982         BitSet incoming = iprot.readBitSet(2);
14983         if (incoming.get(0)) {
14984           struct.logFileName = iprot.readString();
14985           struct.setLogFileNameIsSet(true);
14986         }
14987         if (incoming.get(1)) {
14988           struct.logLevel = iprot.readString();
14989           struct.setLogLevelIsSet(true);
14990         }
14991       }
14992     }
14993
14994   }
14995
14996   public static class setLogConfig_result implements org.apache.thrift.TBase<setLogConfig_result, setLogConfig_result._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_result>   {
14997     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_result");
14998
14999     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);
15000
15001     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15002     static {
15003       schemes.put(StandardScheme.class, new setLogConfig_resultStandardSchemeFactory());
15004       schemes.put(TupleScheme.class, new setLogConfig_resultTupleSchemeFactory());
15005     }
15006
15007     public int success; // required
15008
15009     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15010     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15011       SUCCESS((short)0, "success");
15012
15013       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15014
15015       static {
15016         for (_Fields field : EnumSet.allOf(_Fields.class)) {
15017           byName.put(field.getFieldName(), field);
15018         }
15019       }
15020
15021       /**
15022        * Find the _Fields constant that matches fieldId, or null if its not found.
15023        */
15024       public static _Fields findByThriftId(int fieldId) {
15025         switch(fieldId) {
15026           case 0: // SUCCESS
15027             return SUCCESS;
15028           default:
15029             return null;
15030         }
15031       }
15032
15033       /**
15034        * Find the _Fields constant that matches fieldId, throwing an exception
15035        * if it is not found.
15036        */
15037       public static _Fields findByThriftIdOrThrow(int fieldId) {
15038         _Fields fields = findByThriftId(fieldId);
15039         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15040         return fields;
15041       }
15042
15043       /**
15044        * Find the _Fields constant that matches name, or null if its not found.
15045        */
15046       public static _Fields findByName(String name) {
15047         return byName.get(name);
15048       }
15049
15050       private final short _thriftId;
15051       private final String _fieldName;
15052
15053       _Fields(short thriftId, String fieldName) {
15054         _thriftId = thriftId;
15055         _fieldName = fieldName;
15056       }
15057
15058       public short getThriftFieldId() {
15059         return _thriftId;
15060       }
15061
15062       public String getFieldName() {
15063         return _fieldName;
15064       }
15065     }
15066
15067     // isset id assignments
15068     private static final int __SUCCESS_ISSET_ID = 0;
15069     private byte __isset_bitfield = 0;
15070     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15071     static {
15072       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15073       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15074           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15075       metaDataMap = Collections.unmodifiableMap(tmpMap);
15076       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_result.class, metaDataMap);
15077     }
15078
15079     public setLogConfig_result() {
15080     }
15081
15082     public setLogConfig_result(
15083       int success)
15084     {
15085       this();
15086       this.success = success;
15087       setSuccessIsSet(true);
15088     }
15089
15090     /**
15091      * Performs a deep copy on <i>other</i>.
15092      */
15093     public setLogConfig_result(setLogConfig_result other) {
15094       __isset_bitfield = other.__isset_bitfield;
15095       this.success = other.success;
15096     }
15097
15098     public setLogConfig_result deepCopy() {
15099       return new setLogConfig_result(this);
15100     }
15101
15102     @Override
15103     public void clear() {
15104       setSuccessIsSet(false);
15105       this.success = 0;
15106     }
15107
15108     public int getSuccess() {
15109       return this.success;
15110     }
15111
15112     public setLogConfig_result setSuccess(int success) {
15113       this.success = success;
15114       setSuccessIsSet(true);
15115       return this;
15116     }
15117
15118     public void unsetSuccess() {
15119       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15120     }
15121
15122     /** Returns true if field success is set (has been assigned a value) and false otherwise */
15123     public boolean isSetSuccess() {
15124       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15125     }
15126
15127     public void setSuccessIsSet(boolean value) {
15128       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
15129     }
15130
15131     public void setFieldValue(_Fields field, Object value) {
15132       switch (field) {
15133       case SUCCESS:
15134         if (value == null) {
15135           unsetSuccess();
15136         } else {
15137           setSuccess((Integer)value);
15138         }
15139         break;
15140
15141       }
15142     }
15143
15144     public Object getFieldValue(_Fields field) {
15145       switch (field) {
15146       case SUCCESS:
15147         return Integer.valueOf(getSuccess());
15148
15149       }
15150       throw new IllegalStateException();
15151     }
15152
15153     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15154     public boolean isSet(_Fields field) {
15155       if (field == null) {
15156         throw new IllegalArgumentException();
15157       }
15158
15159       switch (field) {
15160       case SUCCESS:
15161         return isSetSuccess();
15162       }
15163       throw new IllegalStateException();
15164     }
15165
15166     @Override
15167     public boolean equals(Object that) {
15168       if (that == null)
15169         return false;
15170       if (that instanceof setLogConfig_result)
15171         return this.equals((setLogConfig_result)that);
15172       return false;
15173     }
15174
15175     public boolean equals(setLogConfig_result that) {
15176       if (that == null)
15177         return false;
15178
15179       boolean this_present_success = true;
15180       boolean that_present_success = true;
15181       if (this_present_success || that_present_success) {
15182         if (!(this_present_success && that_present_success))
15183           return false;
15184         if (this.success != that.success)
15185           return false;
15186       }
15187
15188       return true;
15189     }
15190
15191     @Override
15192     public int hashCode() {
15193       return 0;
15194     }
15195
15196     @Override
15197     public int compareTo(setLogConfig_result other) {
15198       if (!getClass().equals(other.getClass())) {
15199         return getClass().getName().compareTo(other.getClass().getName());
15200       }
15201
15202       int lastComparison = 0;
15203
15204       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15205       if (lastComparison != 0) {
15206         return lastComparison;
15207       }
15208       if (isSetSuccess()) {
15209         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15210         if (lastComparison != 0) {
15211           return lastComparison;
15212         }
15213       }
15214       return 0;
15215     }
15216
15217     public _Fields fieldForId(int fieldId) {
15218       return _Fields.findByThriftId(fieldId);
15219     }
15220
15221     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15222       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15223     }
15224
15225     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15226       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15227       }
15228
15229     @Override
15230     public String toString() {
15231       StringBuilder sb = new StringBuilder("setLogConfig_result(");
15232       boolean first = true;
15233
15234       sb.append("success:");
15235       sb.append(this.success);
15236       first = false;
15237       sb.append(")");
15238       return sb.toString();
15239     }
15240
15241     public void validate() throws org.apache.thrift.TException {
15242       // check for required fields
15243       // check for sub-struct validity
15244     }
15245
15246     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15247       try {
15248         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15249       } catch (org.apache.thrift.TException te) {
15250         throw new java.io.IOException(te);
15251       }
15252     }
15253
15254     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15255       try {
15256         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15257         __isset_bitfield = 0;
15258         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15259       } catch (org.apache.thrift.TException te) {
15260         throw new java.io.IOException(te);
15261       }
15262     }
15263
15264     private static class setLogConfig_resultStandardSchemeFactory implements SchemeFactory {
15265       public setLogConfig_resultStandardScheme getScheme() {
15266         return new setLogConfig_resultStandardScheme();
15267       }
15268     }
15269
15270     private static class setLogConfig_resultStandardScheme extends StandardScheme<setLogConfig_result> {
15271
15272       public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_result struct) throws org.apache.thrift.TException {
15273         org.apache.thrift.protocol.TField schemeField;
15274         iprot.readStructBegin();
15275         while (true)
15276         {
15277           schemeField = iprot.readFieldBegin();
15278           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
15279             break;
15280           }
15281           switch (schemeField.id) {
15282             case 0: // SUCCESS
15283               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15284                 struct.success = iprot.readI32();
15285                 struct.setSuccessIsSet(true);
15286               } else { 
15287                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15288               }
15289               break;
15290             default:
15291               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15292           }
15293           iprot.readFieldEnd();
15294         }
15295         iprot.readStructEnd();
15296
15297         // check for required fields of primitive type, which can't be checked in the validate method
15298         struct.validate();
15299       }
15300
15301       public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_result struct) throws org.apache.thrift.TException {
15302         struct.validate();
15303
15304         oprot.writeStructBegin(STRUCT_DESC);
15305         if (struct.isSetSuccess()) {
15306           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15307           oprot.writeI32(struct.success);
15308           oprot.writeFieldEnd();
15309         }
15310         oprot.writeFieldStop();
15311         oprot.writeStructEnd();
15312       }
15313
15314     }
15315
15316     private static class setLogConfig_resultTupleSchemeFactory implements SchemeFactory {
15317       public setLogConfig_resultTupleScheme getScheme() {
15318         return new setLogConfig_resultTupleScheme();
15319       }
15320     }
15321
15322     private static class setLogConfig_resultTupleScheme extends TupleScheme<setLogConfig_result> {
15323
15324       @Override
15325       public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
15326         TTupleProtocol oprot = (TTupleProtocol) prot;
15327         BitSet optionals = new BitSet();
15328         if (struct.isSetSuccess()) {
15329           optionals.set(0);
15330         }
15331         oprot.writeBitSet(optionals, 1);
15332         if (struct.isSetSuccess()) {
15333           oprot.writeI32(struct.success);
15334         }
15335       }
15336
15337       @Override
15338       public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
15339         TTupleProtocol iprot = (TTupleProtocol) prot;
15340         BitSet incoming = iprot.readBitSet(1);
15341         if (incoming.get(0)) {
15342           struct.success = iprot.readI32();
15343           struct.setSuccessIsSet(true);
15344         }
15345       }
15346     }
15347
15348   }
15349
15350   public static class enableGracefulRestart_args implements org.apache.thrift.TBase<enableGracefulRestart_args, enableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_args>   {
15351     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_args");
15352
15353     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);
15354
15355     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15356     static {
15357       schemes.put(StandardScheme.class, new enableGracefulRestart_argsStandardSchemeFactory());
15358       schemes.put(TupleScheme.class, new enableGracefulRestart_argsTupleSchemeFactory());
15359     }
15360
15361     public int stalepathTime; // required
15362
15363     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15364     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15365       STALEPATH_TIME((short)1, "stalepathTime");
15366
15367       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15368
15369       static {
15370         for (_Fields field : EnumSet.allOf(_Fields.class)) {
15371           byName.put(field.getFieldName(), field);
15372         }
15373       }
15374
15375       /**
15376        * Find the _Fields constant that matches fieldId, or null if its not found.
15377        */
15378       public static _Fields findByThriftId(int fieldId) {
15379         switch(fieldId) {
15380           case 1: // STALEPATH_TIME
15381             return STALEPATH_TIME;
15382           default:
15383             return null;
15384         }
15385       }
15386
15387       /**
15388        * Find the _Fields constant that matches fieldId, throwing an exception
15389        * if it is not found.
15390        */
15391       public static _Fields findByThriftIdOrThrow(int fieldId) {
15392         _Fields fields = findByThriftId(fieldId);
15393         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15394         return fields;
15395       }
15396
15397       /**
15398        * Find the _Fields constant that matches name, or null if its not found.
15399        */
15400       public static _Fields findByName(String name) {
15401         return byName.get(name);
15402       }
15403
15404       private final short _thriftId;
15405       private final String _fieldName;
15406
15407       _Fields(short thriftId, String fieldName) {
15408         _thriftId = thriftId;
15409         _fieldName = fieldName;
15410       }
15411
15412       public short getThriftFieldId() {
15413         return _thriftId;
15414       }
15415
15416       public String getFieldName() {
15417         return _fieldName;
15418       }
15419     }
15420
15421     // isset id assignments
15422     private static final int __STALEPATHTIME_ISSET_ID = 0;
15423     private byte __isset_bitfield = 0;
15424     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15425     static {
15426       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15427       tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15428           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15429       metaDataMap = Collections.unmodifiableMap(tmpMap);
15430       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_args.class, metaDataMap);
15431     }
15432
15433     public enableGracefulRestart_args() {
15434     }
15435
15436     public enableGracefulRestart_args(
15437       int stalepathTime)
15438     {
15439       this();
15440       this.stalepathTime = stalepathTime;
15441       setStalepathTimeIsSet(true);
15442     }
15443
15444     /**
15445      * Performs a deep copy on <i>other</i>.
15446      */
15447     public enableGracefulRestart_args(enableGracefulRestart_args other) {
15448       __isset_bitfield = other.__isset_bitfield;
15449       this.stalepathTime = other.stalepathTime;
15450     }
15451
15452     public enableGracefulRestart_args deepCopy() {
15453       return new enableGracefulRestart_args(this);
15454     }
15455
15456     @Override
15457     public void clear() {
15458       setStalepathTimeIsSet(false);
15459       this.stalepathTime = 0;
15460     }
15461
15462     public int getStalepathTime() {
15463       return this.stalepathTime;
15464     }
15465
15466     public enableGracefulRestart_args setStalepathTime(int stalepathTime) {
15467       this.stalepathTime = stalepathTime;
15468       setStalepathTimeIsSet(true);
15469       return this;
15470     }
15471
15472     public void unsetStalepathTime() {
15473       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
15474     }
15475
15476     /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
15477     public boolean isSetStalepathTime() {
15478       return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
15479     }
15480
15481     public void setStalepathTimeIsSet(boolean value) {
15482       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
15483     }
15484
15485     public void setFieldValue(_Fields field, Object value) {
15486       switch (field) {
15487       case STALEPATH_TIME:
15488         if (value == null) {
15489           unsetStalepathTime();
15490         } else {
15491           setStalepathTime((Integer)value);
15492         }
15493         break;
15494
15495       }
15496     }
15497
15498     public Object getFieldValue(_Fields field) {
15499       switch (field) {
15500       case STALEPATH_TIME:
15501         return Integer.valueOf(getStalepathTime());
15502
15503       }
15504       throw new IllegalStateException();
15505     }
15506
15507     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15508     public boolean isSet(_Fields field) {
15509       if (field == null) {
15510         throw new IllegalArgumentException();
15511       }
15512
15513       switch (field) {
15514       case STALEPATH_TIME:
15515         return isSetStalepathTime();
15516       }
15517       throw new IllegalStateException();
15518     }
15519
15520     @Override
15521     public boolean equals(Object that) {
15522       if (that == null)
15523         return false;
15524       if (that instanceof enableGracefulRestart_args)
15525         return this.equals((enableGracefulRestart_args)that);
15526       return false;
15527     }
15528
15529     public boolean equals(enableGracefulRestart_args that) {
15530       if (that == null)
15531         return false;
15532
15533       boolean this_present_stalepathTime = true;
15534       boolean that_present_stalepathTime = true;
15535       if (this_present_stalepathTime || that_present_stalepathTime) {
15536         if (!(this_present_stalepathTime && that_present_stalepathTime))
15537           return false;
15538         if (this.stalepathTime != that.stalepathTime)
15539           return false;
15540       }
15541
15542       return true;
15543     }
15544
15545     @Override
15546     public int hashCode() {
15547       return 0;
15548     }
15549
15550     @Override
15551     public int compareTo(enableGracefulRestart_args other) {
15552       if (!getClass().equals(other.getClass())) {
15553         return getClass().getName().compareTo(other.getClass().getName());
15554       }
15555
15556       int lastComparison = 0;
15557
15558       lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
15559       if (lastComparison != 0) {
15560         return lastComparison;
15561       }
15562       if (isSetStalepathTime()) {
15563         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
15564         if (lastComparison != 0) {
15565           return lastComparison;
15566         }
15567       }
15568       return 0;
15569     }
15570
15571     public _Fields fieldForId(int fieldId) {
15572       return _Fields.findByThriftId(fieldId);
15573     }
15574
15575     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15576       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15577     }
15578
15579     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15580       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15581     }
15582
15583     @Override
15584     public String toString() {
15585       StringBuilder sb = new StringBuilder("enableGracefulRestart_args(");
15586       boolean first = true;
15587
15588       sb.append("stalepathTime:");
15589       sb.append(this.stalepathTime);
15590       first = false;
15591       sb.append(")");
15592       return sb.toString();
15593     }
15594
15595     public void validate() throws org.apache.thrift.TException {
15596       // check for required fields
15597       // check for sub-struct validity
15598     }
15599
15600     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15601       try {
15602         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15603       } catch (org.apache.thrift.TException te) {
15604         throw new java.io.IOException(te);
15605       }
15606     }
15607
15608     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15609       try {
15610         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15611         __isset_bitfield = 0;
15612         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15613       } catch (org.apache.thrift.TException te) {
15614         throw new java.io.IOException(te);
15615       }
15616     }
15617
15618     private static class enableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
15619       public enableGracefulRestart_argsStandardScheme getScheme() {
15620         return new enableGracefulRestart_argsStandardScheme();
15621       }
15622     }
15623
15624     private static class enableGracefulRestart_argsStandardScheme extends StandardScheme<enableGracefulRestart_args> {
15625
15626       public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
15627         org.apache.thrift.protocol.TField schemeField;
15628         iprot.readStructBegin();
15629         while (true)
15630         {
15631           schemeField = iprot.readFieldBegin();
15632           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
15633             break;
15634           }
15635           switch (schemeField.id) {
15636             case 1: // STALEPATH_TIME
15637               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15638                 struct.stalepathTime = iprot.readI32();
15639                 struct.setStalepathTimeIsSet(true);
15640               } else { 
15641                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15642               }
15643               break;
15644             default:
15645               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15646           }
15647           iprot.readFieldEnd();
15648         }
15649         iprot.readStructEnd();
15650
15651         // check for required fields of primitive type, which can't be checked in the validate method
15652         struct.validate();
15653       }
15654
15655       public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
15656         struct.validate();
15657
15658         oprot.writeStructBegin(STRUCT_DESC);
15659         oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
15660         oprot.writeI32(struct.stalepathTime);
15661         oprot.writeFieldEnd();
15662         oprot.writeFieldStop();
15663         oprot.writeStructEnd();
15664       }
15665
15666     }
15667
15668     private static class enableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
15669       public enableGracefulRestart_argsTupleScheme getScheme() {
15670         return new enableGracefulRestart_argsTupleScheme();
15671       }
15672     }
15673
15674     private static class enableGracefulRestart_argsTupleScheme extends TupleScheme<enableGracefulRestart_args> {
15675
15676       @Override
15677       public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
15678         TTupleProtocol oprot = (TTupleProtocol) prot;
15679         BitSet optionals = new BitSet();
15680         if (struct.isSetStalepathTime()) {
15681           optionals.set(0);
15682         }
15683         oprot.writeBitSet(optionals, 1);
15684         if (struct.isSetStalepathTime()) {
15685           oprot.writeI32(struct.stalepathTime);
15686         }
15687       }
15688
15689       @Override
15690       public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
15691         TTupleProtocol iprot = (TTupleProtocol) prot;
15692         BitSet incoming = iprot.readBitSet(1);
15693         if (incoming.get(0)) {
15694           struct.stalepathTime = iprot.readI32();
15695           struct.setStalepathTimeIsSet(true);
15696         }
15697       }
15698     }
15699
15700   }
15701
15702   public static class enableGracefulRestart_result implements org.apache.thrift.TBase<enableGracefulRestart_result, enableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_result>   {
15703     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_result");
15704
15705     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);
15706
15707     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15708     static {
15709       schemes.put(StandardScheme.class, new enableGracefulRestart_resultStandardSchemeFactory());
15710       schemes.put(TupleScheme.class, new enableGracefulRestart_resultTupleSchemeFactory());
15711     }
15712
15713     public int success; // required
15714
15715     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15716     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15717       SUCCESS((short)0, "success");
15718
15719       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15720
15721       static {
15722         for (_Fields field : EnumSet.allOf(_Fields.class)) {
15723           byName.put(field.getFieldName(), field);
15724         }
15725       }
15726
15727       /**
15728        * Find the _Fields constant that matches fieldId, or null if its not found.
15729        */
15730       public static _Fields findByThriftId(int fieldId) {
15731         switch(fieldId) {
15732           case 0: // SUCCESS
15733             return SUCCESS;
15734           default:
15735             return null;
15736         }
15737       }
15738
15739       /**
15740        * Find the _Fields constant that matches fieldId, throwing an exception
15741        * if it is not found.
15742        */
15743       public static _Fields findByThriftIdOrThrow(int fieldId) {
15744         _Fields fields = findByThriftId(fieldId);
15745         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15746         return fields;
15747       }
15748
15749       /**
15750        * Find the _Fields constant that matches name, or null if its not found.
15751        */
15752       public static _Fields findByName(String name) {
15753         return byName.get(name);
15754       }
15755
15756       private final short _thriftId;
15757       private final String _fieldName;
15758
15759       _Fields(short thriftId, String fieldName) {
15760         _thriftId = thriftId;
15761         _fieldName = fieldName;
15762       }
15763
15764       public short getThriftFieldId() {
15765         return _thriftId;
15766       }
15767
15768       public String getFieldName() {
15769         return _fieldName;
15770       }
15771     }
15772
15773     // isset id assignments
15774     private static final int __SUCCESS_ISSET_ID = 0;
15775     private byte __isset_bitfield = 0;
15776     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15777     static {
15778       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15779       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15780           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15781       metaDataMap = Collections.unmodifiableMap(tmpMap);
15782       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_result.class, metaDataMap);
15783     }
15784
15785     public enableGracefulRestart_result() {
15786     }
15787
15788     public enableGracefulRestart_result(
15789       int success)
15790     {
15791       this();
15792       this.success = success;
15793       setSuccessIsSet(true);
15794     }
15795
15796     /**
15797      * Performs a deep copy on <i>other</i>.
15798      */
15799     public enableGracefulRestart_result(enableGracefulRestart_result other) {
15800       __isset_bitfield = other.__isset_bitfield;
15801       this.success = other.success;
15802     }
15803
15804     public enableGracefulRestart_result deepCopy() {
15805       return new enableGracefulRestart_result(this);
15806     }
15807
15808     @Override
15809     public void clear() {
15810       setSuccessIsSet(false);
15811       this.success = 0;
15812     }
15813
15814     public int getSuccess() {
15815       return this.success;
15816     }
15817
15818     public enableGracefulRestart_result setSuccess(int success) {
15819       this.success = success;
15820       setSuccessIsSet(true);
15821       return this;
15822     }
15823
15824     public void unsetSuccess() {
15825       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15826     }
15827
15828     /** Returns true if field success is set (has been assigned a value) and false otherwise */
15829     public boolean isSetSuccess() {
15830       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15831     }
15832
15833     public void setSuccessIsSet(boolean value) {
15834       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
15835     }
15836
15837     public void setFieldValue(_Fields field, Object value) {
15838       switch (field) {
15839       case SUCCESS:
15840         if (value == null) {
15841           unsetSuccess();
15842         } else {
15843           setSuccess((Integer)value);
15844         }
15845         break;
15846
15847       }
15848     }
15849
15850     public Object getFieldValue(_Fields field) {
15851       switch (field) {
15852       case SUCCESS:
15853         return Integer.valueOf(getSuccess());
15854
15855       }
15856       throw new IllegalStateException();
15857     }
15858
15859     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15860     public boolean isSet(_Fields field) {
15861       if (field == null) {
15862         throw new IllegalArgumentException();
15863       }
15864
15865       switch (field) {
15866       case SUCCESS:
15867         return isSetSuccess();
15868       }
15869       throw new IllegalStateException();
15870     }
15871
15872     @Override
15873     public boolean equals(Object that) {
15874       if (that == null)
15875         return false;
15876       if (that instanceof enableGracefulRestart_result)
15877         return this.equals((enableGracefulRestart_result)that);
15878       return false;
15879     }
15880
15881     public boolean equals(enableGracefulRestart_result that) {
15882       if (that == null)
15883         return false;
15884
15885       boolean this_present_success = true;
15886       boolean that_present_success = true;
15887       if (this_present_success || that_present_success) {
15888         if (!(this_present_success && that_present_success))
15889           return false;
15890         if (this.success != that.success)
15891           return false;
15892       }
15893
15894       return true;
15895     }
15896
15897     @Override
15898     public int hashCode() {
15899       return 0;
15900     }
15901
15902     @Override
15903     public int compareTo(enableGracefulRestart_result other) {
15904       if (!getClass().equals(other.getClass())) {
15905         return getClass().getName().compareTo(other.getClass().getName());
15906       }
15907
15908       int lastComparison = 0;
15909
15910       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15911       if (lastComparison != 0) {
15912         return lastComparison;
15913       }
15914       if (isSetSuccess()) {
15915         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15916         if (lastComparison != 0) {
15917           return lastComparison;
15918         }
15919       }
15920       return 0;
15921     }
15922
15923     public _Fields fieldForId(int fieldId) {
15924       return _Fields.findByThriftId(fieldId);
15925     }
15926
15927     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15928       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15929     }
15930
15931     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15932       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15933       }
15934
15935     @Override
15936     public String toString() {
15937       StringBuilder sb = new StringBuilder("enableGracefulRestart_result(");
15938       boolean first = true;
15939
15940       sb.append("success:");
15941       sb.append(this.success);
15942       first = false;
15943       sb.append(")");
15944       return sb.toString();
15945     }
15946
15947     public void validate() throws org.apache.thrift.TException {
15948       // check for required fields
15949       // check for sub-struct validity
15950     }
15951
15952     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15953       try {
15954         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15955       } catch (org.apache.thrift.TException te) {
15956         throw new java.io.IOException(te);
15957       }
15958     }
15959
15960     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15961       try {
15962         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15963         __isset_bitfield = 0;
15964         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15965       } catch (org.apache.thrift.TException te) {
15966         throw new java.io.IOException(te);
15967       }
15968     }
15969
15970     private static class enableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
15971       public enableGracefulRestart_resultStandardScheme getScheme() {
15972         return new enableGracefulRestart_resultStandardScheme();
15973       }
15974     }
15975
15976     private static class enableGracefulRestart_resultStandardScheme extends StandardScheme<enableGracefulRestart_result> {
15977
15978       public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
15979         org.apache.thrift.protocol.TField schemeField;
15980         iprot.readStructBegin();
15981         while (true)
15982         {
15983           schemeField = iprot.readFieldBegin();
15984           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
15985             break;
15986           }
15987           switch (schemeField.id) {
15988             case 0: // SUCCESS
15989               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15990                 struct.success = iprot.readI32();
15991                 struct.setSuccessIsSet(true);
15992               } else { 
15993                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15994               }
15995               break;
15996             default:
15997               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15998           }
15999           iprot.readFieldEnd();
16000         }
16001         iprot.readStructEnd();
16002
16003         // check for required fields of primitive type, which can't be checked in the validate method
16004         struct.validate();
16005       }
16006
16007       public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
16008         struct.validate();
16009
16010         oprot.writeStructBegin(STRUCT_DESC);
16011         if (struct.isSetSuccess()) {
16012           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16013           oprot.writeI32(struct.success);
16014           oprot.writeFieldEnd();
16015         }
16016         oprot.writeFieldStop();
16017         oprot.writeStructEnd();
16018       }
16019
16020     }
16021
16022     private static class enableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
16023       public enableGracefulRestart_resultTupleScheme getScheme() {
16024         return new enableGracefulRestart_resultTupleScheme();
16025       }
16026     }
16027
16028     private static class enableGracefulRestart_resultTupleScheme extends TupleScheme<enableGracefulRestart_result> {
16029
16030       @Override
16031       public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
16032         TTupleProtocol oprot = (TTupleProtocol) prot;
16033         BitSet optionals = new BitSet();
16034         if (struct.isSetSuccess()) {
16035           optionals.set(0);
16036         }
16037         oprot.writeBitSet(optionals, 1);
16038         if (struct.isSetSuccess()) {
16039           oprot.writeI32(struct.success);
16040         }
16041       }
16042
16043       @Override
16044       public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
16045         TTupleProtocol iprot = (TTupleProtocol) prot;
16046         BitSet incoming = iprot.readBitSet(1);
16047         if (incoming.get(0)) {
16048           struct.success = iprot.readI32();
16049           struct.setSuccessIsSet(true);
16050         }
16051       }
16052     }
16053
16054   }
16055
16056   public static class disableGracefulRestart_args implements org.apache.thrift.TBase<disableGracefulRestart_args, disableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_args>   {
16057     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_args");
16058
16059
16060     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16061     static {
16062       schemes.put(StandardScheme.class, new disableGracefulRestart_argsStandardSchemeFactory());
16063       schemes.put(TupleScheme.class, new disableGracefulRestart_argsTupleSchemeFactory());
16064     }
16065
16066
16067     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16068     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16069 ;
16070
16071       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16072
16073       static {
16074         for (_Fields field : EnumSet.allOf(_Fields.class)) {
16075           byName.put(field.getFieldName(), field);
16076         }
16077       }
16078
16079       /**
16080        * Find the _Fields constant that matches fieldId, or null if its not found.
16081        */
16082       public static _Fields findByThriftId(int fieldId) {
16083         switch(fieldId) {
16084           default:
16085             return null;
16086         }
16087       }
16088
16089       /**
16090        * Find the _Fields constant that matches fieldId, throwing an exception
16091        * if it is not found.
16092        */
16093       public static _Fields findByThriftIdOrThrow(int fieldId) {
16094         _Fields fields = findByThriftId(fieldId);
16095         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16096         return fields;
16097       }
16098
16099       /**
16100        * Find the _Fields constant that matches name, or null if its not found.
16101        */
16102       public static _Fields findByName(String name) {
16103         return byName.get(name);
16104       }
16105
16106       private final short _thriftId;
16107       private final String _fieldName;
16108
16109       _Fields(short thriftId, String fieldName) {
16110         _thriftId = thriftId;
16111         _fieldName = fieldName;
16112       }
16113
16114       public short getThriftFieldId() {
16115         return _thriftId;
16116       }
16117
16118       public String getFieldName() {
16119         return _fieldName;
16120       }
16121     }
16122     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16123     static {
16124       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16125       metaDataMap = Collections.unmodifiableMap(tmpMap);
16126       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_args.class, metaDataMap);
16127     }
16128
16129     public disableGracefulRestart_args() {
16130     }
16131
16132     /**
16133      * Performs a deep copy on <i>other</i>.
16134      */
16135     public disableGracefulRestart_args(disableGracefulRestart_args other) {
16136     }
16137
16138     public disableGracefulRestart_args deepCopy() {
16139       return new disableGracefulRestart_args(this);
16140     }
16141
16142     @Override
16143     public void clear() {
16144     }
16145
16146     public void setFieldValue(_Fields field, Object value) {
16147       switch (field) {
16148       }
16149     }
16150
16151     public Object getFieldValue(_Fields field) {
16152       switch (field) {
16153       }
16154       throw new IllegalStateException();
16155     }
16156
16157     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16158     public boolean isSet(_Fields field) {
16159       if (field == null) {
16160         throw new IllegalArgumentException();
16161       }
16162
16163       switch (field) {
16164       }
16165       throw new IllegalStateException();
16166     }
16167
16168     @Override
16169     public boolean equals(Object that) {
16170       if (that == null)
16171         return false;
16172       if (that instanceof disableGracefulRestart_args)
16173         return this.equals((disableGracefulRestart_args)that);
16174       return false;
16175     }
16176
16177     public boolean equals(disableGracefulRestart_args that) {
16178       if (that == null)
16179         return false;
16180
16181       return true;
16182     }
16183
16184     @Override
16185     public int hashCode() {
16186       return 0;
16187     }
16188
16189     @Override
16190     public int compareTo(disableGracefulRestart_args other) {
16191       if (!getClass().equals(other.getClass())) {
16192         return getClass().getName().compareTo(other.getClass().getName());
16193       }
16194
16195       int lastComparison = 0;
16196
16197       return 0;
16198     }
16199
16200     public _Fields fieldForId(int fieldId) {
16201       return _Fields.findByThriftId(fieldId);
16202     }
16203
16204     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16205       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16206     }
16207
16208     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16209       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16210     }
16211
16212     @Override
16213     public String toString() {
16214       StringBuilder sb = new StringBuilder("disableGracefulRestart_args(");
16215       boolean first = true;
16216
16217       sb.append(")");
16218       return sb.toString();
16219     }
16220
16221     public void validate() throws org.apache.thrift.TException {
16222       // check for required fields
16223       // check for sub-struct validity
16224     }
16225
16226     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16227       try {
16228         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16229       } catch (org.apache.thrift.TException te) {
16230         throw new java.io.IOException(te);
16231       }
16232     }
16233
16234     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16235       try {
16236         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16237       } catch (org.apache.thrift.TException te) {
16238         throw new java.io.IOException(te);
16239       }
16240     }
16241
16242     private static class disableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
16243       public disableGracefulRestart_argsStandardScheme getScheme() {
16244         return new disableGracefulRestart_argsStandardScheme();
16245       }
16246     }
16247
16248     private static class disableGracefulRestart_argsStandardScheme extends StandardScheme<disableGracefulRestart_args> {
16249
16250       public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
16251         org.apache.thrift.protocol.TField schemeField;
16252         iprot.readStructBegin();
16253         while (true)
16254         {
16255           schemeField = iprot.readFieldBegin();
16256           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
16257             break;
16258           }
16259           switch (schemeField.id) {
16260             default:
16261               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16262           }
16263           iprot.readFieldEnd();
16264         }
16265         iprot.readStructEnd();
16266
16267         // check for required fields of primitive type, which can't be checked in the validate method
16268         struct.validate();
16269       }
16270
16271       public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
16272         struct.validate();
16273
16274         oprot.writeStructBegin(STRUCT_DESC);
16275         oprot.writeFieldStop();
16276         oprot.writeStructEnd();
16277       }
16278
16279     }
16280
16281     private static class disableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
16282       public disableGracefulRestart_argsTupleScheme getScheme() {
16283         return new disableGracefulRestart_argsTupleScheme();
16284       }
16285     }
16286
16287     private static class disableGracefulRestart_argsTupleScheme extends TupleScheme<disableGracefulRestart_args> {
16288
16289       @Override
16290       public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
16291         TTupleProtocol oprot = (TTupleProtocol) prot;
16292       }
16293
16294       @Override
16295       public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
16296         TTupleProtocol iprot = (TTupleProtocol) prot;
16297       }
16298     }
16299
16300   }
16301
16302   public static class disableGracefulRestart_result implements org.apache.thrift.TBase<disableGracefulRestart_result, disableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_result>   {
16303     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_result");
16304
16305     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);
16306
16307     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16308     static {
16309       schemes.put(StandardScheme.class, new disableGracefulRestart_resultStandardSchemeFactory());
16310       schemes.put(TupleScheme.class, new disableGracefulRestart_resultTupleSchemeFactory());
16311     }
16312
16313     public int success; // required
16314
16315     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16316     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16317       SUCCESS((short)0, "success");
16318
16319       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16320
16321       static {
16322         for (_Fields field : EnumSet.allOf(_Fields.class)) {
16323           byName.put(field.getFieldName(), field);
16324         }
16325       }
16326
16327       /**
16328        * Find the _Fields constant that matches fieldId, or null if its not found.
16329        */
16330       public static _Fields findByThriftId(int fieldId) {
16331         switch(fieldId) {
16332           case 0: // SUCCESS
16333             return SUCCESS;
16334           default:
16335             return null;
16336         }
16337       }
16338
16339       /**
16340        * Find the _Fields constant that matches fieldId, throwing an exception
16341        * if it is not found.
16342        */
16343       public static _Fields findByThriftIdOrThrow(int fieldId) {
16344         _Fields fields = findByThriftId(fieldId);
16345         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16346         return fields;
16347       }
16348
16349       /**
16350        * Find the _Fields constant that matches name, or null if its not found.
16351        */
16352       public static _Fields findByName(String name) {
16353         return byName.get(name);
16354       }
16355
16356       private final short _thriftId;
16357       private final String _fieldName;
16358
16359       _Fields(short thriftId, String fieldName) {
16360         _thriftId = thriftId;
16361         _fieldName = fieldName;
16362       }
16363
16364       public short getThriftFieldId() {
16365         return _thriftId;
16366       }
16367
16368       public String getFieldName() {
16369         return _fieldName;
16370       }
16371     }
16372
16373     // isset id assignments
16374     private static final int __SUCCESS_ISSET_ID = 0;
16375     private byte __isset_bitfield = 0;
16376     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16377     static {
16378       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16379       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16380           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16381       metaDataMap = Collections.unmodifiableMap(tmpMap);
16382       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_result.class, metaDataMap);
16383     }
16384
16385     public disableGracefulRestart_result() {
16386     }
16387
16388     public disableGracefulRestart_result(
16389       int success)
16390     {
16391       this();
16392       this.success = success;
16393       setSuccessIsSet(true);
16394     }
16395
16396     /**
16397      * Performs a deep copy on <i>other</i>.
16398      */
16399     public disableGracefulRestart_result(disableGracefulRestart_result other) {
16400       __isset_bitfield = other.__isset_bitfield;
16401       this.success = other.success;
16402     }
16403
16404     public disableGracefulRestart_result deepCopy() {
16405       return new disableGracefulRestart_result(this);
16406     }
16407
16408     @Override
16409     public void clear() {
16410       setSuccessIsSet(false);
16411       this.success = 0;
16412     }
16413
16414     public int getSuccess() {
16415       return this.success;
16416     }
16417
16418     public disableGracefulRestart_result setSuccess(int success) {
16419       this.success = success;
16420       setSuccessIsSet(true);
16421       return this;
16422     }
16423
16424     public void unsetSuccess() {
16425       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16426     }
16427
16428     /** Returns true if field success is set (has been assigned a value) and false otherwise */
16429     public boolean isSetSuccess() {
16430       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16431     }
16432
16433     public void setSuccessIsSet(boolean value) {
16434       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
16435     }
16436
16437     public void setFieldValue(_Fields field, Object value) {
16438       switch (field) {
16439       case SUCCESS:
16440         if (value == null) {
16441           unsetSuccess();
16442         } else {
16443           setSuccess((Integer)value);
16444         }
16445         break;
16446
16447       }
16448     }
16449
16450     public Object getFieldValue(_Fields field) {
16451       switch (field) {
16452       case SUCCESS:
16453         return Integer.valueOf(getSuccess());
16454
16455       }
16456       throw new IllegalStateException();
16457     }
16458
16459     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16460     public boolean isSet(_Fields field) {
16461       if (field == null) {
16462         throw new IllegalArgumentException();
16463       }
16464
16465       switch (field) {
16466       case SUCCESS:
16467         return isSetSuccess();
16468       }
16469       throw new IllegalStateException();
16470     }
16471
16472     @Override
16473     public boolean equals(Object that) {
16474       if (that == null)
16475         return false;
16476       if (that instanceof disableGracefulRestart_result)
16477         return this.equals((disableGracefulRestart_result)that);
16478       return false;
16479     }
16480
16481     public boolean equals(disableGracefulRestart_result that) {
16482       if (that == null)
16483         return false;
16484
16485       boolean this_present_success = true;
16486       boolean that_present_success = true;
16487       if (this_present_success || that_present_success) {
16488         if (!(this_present_success && that_present_success))
16489           return false;
16490         if (this.success != that.success)
16491           return false;
16492       }
16493
16494       return true;
16495     }
16496
16497     @Override
16498     public int hashCode() {
16499       return 0;
16500     }
16501
16502     @Override
16503     public int compareTo(disableGracefulRestart_result other) {
16504       if (!getClass().equals(other.getClass())) {
16505         return getClass().getName().compareTo(other.getClass().getName());
16506       }
16507
16508       int lastComparison = 0;
16509
16510       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
16511       if (lastComparison != 0) {
16512         return lastComparison;
16513       }
16514       if (isSetSuccess()) {
16515         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
16516         if (lastComparison != 0) {
16517           return lastComparison;
16518         }
16519       }
16520       return 0;
16521     }
16522
16523     public _Fields fieldForId(int fieldId) {
16524       return _Fields.findByThriftId(fieldId);
16525     }
16526
16527     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16528       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16529     }
16530
16531     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16532       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16533       }
16534
16535     @Override
16536     public String toString() {
16537       StringBuilder sb = new StringBuilder("disableGracefulRestart_result(");
16538       boolean first = true;
16539
16540       sb.append("success:");
16541       sb.append(this.success);
16542       first = false;
16543       sb.append(")");
16544       return sb.toString();
16545     }
16546
16547     public void validate() throws org.apache.thrift.TException {
16548       // check for required fields
16549       // check for sub-struct validity
16550     }
16551
16552     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16553       try {
16554         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16555       } catch (org.apache.thrift.TException te) {
16556         throw new java.io.IOException(te);
16557       }
16558     }
16559
16560     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16561       try {
16562         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16563         __isset_bitfield = 0;
16564         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16565       } catch (org.apache.thrift.TException te) {
16566         throw new java.io.IOException(te);
16567       }
16568     }
16569
16570     private static class disableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
16571       public disableGracefulRestart_resultStandardScheme getScheme() {
16572         return new disableGracefulRestart_resultStandardScheme();
16573       }
16574     }
16575
16576     private static class disableGracefulRestart_resultStandardScheme extends StandardScheme<disableGracefulRestart_result> {
16577
16578       public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
16579         org.apache.thrift.protocol.TField schemeField;
16580         iprot.readStructBegin();
16581         while (true)
16582         {
16583           schemeField = iprot.readFieldBegin();
16584           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
16585             break;
16586           }
16587           switch (schemeField.id) {
16588             case 0: // SUCCESS
16589               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16590                 struct.success = iprot.readI32();
16591                 struct.setSuccessIsSet(true);
16592               } else { 
16593                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16594               }
16595               break;
16596             default:
16597               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16598           }
16599           iprot.readFieldEnd();
16600         }
16601         iprot.readStructEnd();
16602
16603         // check for required fields of primitive type, which can't be checked in the validate method
16604         struct.validate();
16605       }
16606
16607       public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
16608         struct.validate();
16609
16610         oprot.writeStructBegin(STRUCT_DESC);
16611         if (struct.isSetSuccess()) {
16612           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16613           oprot.writeI32(struct.success);
16614           oprot.writeFieldEnd();
16615         }
16616         oprot.writeFieldStop();
16617         oprot.writeStructEnd();
16618       }
16619
16620     }
16621
16622     private static class disableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
16623       public disableGracefulRestart_resultTupleScheme getScheme() {
16624         return new disableGracefulRestart_resultTupleScheme();
16625       }
16626     }
16627
16628     private static class disableGracefulRestart_resultTupleScheme extends TupleScheme<disableGracefulRestart_result> {
16629
16630       @Override
16631       public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
16632         TTupleProtocol oprot = (TTupleProtocol) prot;
16633         BitSet optionals = new BitSet();
16634         if (struct.isSetSuccess()) {
16635           optionals.set(0);
16636         }
16637         oprot.writeBitSet(optionals, 1);
16638         if (struct.isSetSuccess()) {
16639           oprot.writeI32(struct.success);
16640         }
16641       }
16642
16643       @Override
16644       public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
16645         TTupleProtocol iprot = (TTupleProtocol) prot;
16646         BitSet incoming = iprot.readBitSet(1);
16647         if (incoming.get(0)) {
16648           struct.success = iprot.readI32();
16649           struct.setSuccessIsSet(true);
16650         }
16651       }
16652     }
16653
16654   }
16655
16656   public static class getRoutes_args implements org.apache.thrift.TBase<getRoutes_args, getRoutes_args._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_args>   {
16657     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_args");
16658
16659     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);
16660     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);
16661
16662     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16663     static {
16664       schemes.put(StandardScheme.class, new getRoutes_argsStandardSchemeFactory());
16665       schemes.put(TupleScheme.class, new getRoutes_argsTupleSchemeFactory());
16666     }
16667
16668     public int optype; // required
16669     public int winSize; // required
16670
16671     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16672     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16673       OPTYPE((short)1, "optype"),
16674       WIN_SIZE((short)2, "winSize");
16675
16676       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16677
16678       static {
16679         for (_Fields field : EnumSet.allOf(_Fields.class)) {
16680           byName.put(field.getFieldName(), field);
16681         }
16682       }
16683
16684       /**
16685        * Find the _Fields constant that matches fieldId, or null if its not found.
16686        */
16687       public static _Fields findByThriftId(int fieldId) {
16688         switch(fieldId) {
16689           case 1: // OPTYPE
16690             return OPTYPE;
16691           case 2: // WIN_SIZE
16692             return WIN_SIZE;
16693           default:
16694             return null;
16695         }
16696       }
16697
16698       /**
16699        * Find the _Fields constant that matches fieldId, throwing an exception
16700        * if it is not found.
16701        */
16702       public static _Fields findByThriftIdOrThrow(int fieldId) {
16703         _Fields fields = findByThriftId(fieldId);
16704         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16705         return fields;
16706       }
16707
16708       /**
16709        * Find the _Fields constant that matches name, or null if its not found.
16710        */
16711       public static _Fields findByName(String name) {
16712         return byName.get(name);
16713       }
16714
16715       private final short _thriftId;
16716       private final String _fieldName;
16717
16718       _Fields(short thriftId, String fieldName) {
16719         _thriftId = thriftId;
16720         _fieldName = fieldName;
16721       }
16722
16723       public short getThriftFieldId() {
16724         return _thriftId;
16725       }
16726
16727       public String getFieldName() {
16728         return _fieldName;
16729       }
16730     }
16731
16732     // isset id assignments
16733     private static final int __OPTYPE_ISSET_ID = 0;
16734     private static final int __WINSIZE_ISSET_ID = 1;
16735     private byte __isset_bitfield = 0;
16736     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16737     static {
16738       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16739       tmpMap.put(_Fields.OPTYPE, new org.apache.thrift.meta_data.FieldMetaData("optype", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16740           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16741       tmpMap.put(_Fields.WIN_SIZE, new org.apache.thrift.meta_data.FieldMetaData("winSize", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16742           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16743       metaDataMap = Collections.unmodifiableMap(tmpMap);
16744       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_args.class, metaDataMap);
16745     }
16746
16747     public getRoutes_args() {
16748     }
16749
16750     public getRoutes_args(
16751       int optype,
16752       int winSize)
16753     {
16754       this();
16755       this.optype = optype;
16756       setOptypeIsSet(true);
16757       this.winSize = winSize;
16758       setWinSizeIsSet(true);
16759     }
16760
16761     /**
16762      * Performs a deep copy on <i>other</i>.
16763      */
16764     public getRoutes_args(getRoutes_args other) {
16765       __isset_bitfield = other.__isset_bitfield;
16766       this.optype = other.optype;
16767       this.winSize = other.winSize;
16768     }
16769
16770     public getRoutes_args deepCopy() {
16771       return new getRoutes_args(this);
16772     }
16773
16774     @Override
16775     public void clear() {
16776       setOptypeIsSet(false);
16777       this.optype = 0;
16778       setWinSizeIsSet(false);
16779       this.winSize = 0;
16780     }
16781
16782     public int getOptype() {
16783       return this.optype;
16784     }
16785
16786     public getRoutes_args setOptype(int optype) {
16787       this.optype = optype;
16788       setOptypeIsSet(true);
16789       return this;
16790     }
16791
16792     public void unsetOptype() {
16793       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OPTYPE_ISSET_ID);
16794     }
16795
16796     /** Returns true if field optype is set (has been assigned a value) and false otherwise */
16797     public boolean isSetOptype() {
16798       return EncodingUtils.testBit(__isset_bitfield, __OPTYPE_ISSET_ID);
16799     }
16800
16801     public void setOptypeIsSet(boolean value) {
16802       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OPTYPE_ISSET_ID, value);
16803     }
16804
16805     public int getWinSize() {
16806       return this.winSize;
16807     }
16808
16809     public getRoutes_args setWinSize(int winSize) {
16810       this.winSize = winSize;
16811       setWinSizeIsSet(true);
16812       return this;
16813     }
16814
16815     public void unsetWinSize() {
16816       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WINSIZE_ISSET_ID);
16817     }
16818
16819     /** Returns true if field winSize is set (has been assigned a value) and false otherwise */
16820     public boolean isSetWinSize() {
16821       return EncodingUtils.testBit(__isset_bitfield, __WINSIZE_ISSET_ID);
16822     }
16823
16824     public void setWinSizeIsSet(boolean value) {
16825       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WINSIZE_ISSET_ID, value);
16826     }
16827
16828     public void setFieldValue(_Fields field, Object value) {
16829       switch (field) {
16830       case OPTYPE:
16831         if (value == null) {
16832           unsetOptype();
16833         } else {
16834           setOptype((Integer)value);
16835         }
16836         break;
16837
16838       case WIN_SIZE:
16839         if (value == null) {
16840           unsetWinSize();
16841         } else {
16842           setWinSize((Integer)value);
16843         }
16844         break;
16845
16846       }
16847     }
16848
16849     public Object getFieldValue(_Fields field) {
16850       switch (field) {
16851       case OPTYPE:
16852         return Integer.valueOf(getOptype());
16853
16854       case WIN_SIZE:
16855         return Integer.valueOf(getWinSize());
16856
16857       }
16858       throw new IllegalStateException();
16859     }
16860
16861     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16862     public boolean isSet(_Fields field) {
16863       if (field == null) {
16864         throw new IllegalArgumentException();
16865       }
16866
16867       switch (field) {
16868       case OPTYPE:
16869         return isSetOptype();
16870       case WIN_SIZE:
16871         return isSetWinSize();
16872       }
16873       throw new IllegalStateException();
16874     }
16875
16876     @Override
16877     public boolean equals(Object that) {
16878       if (that == null)
16879         return false;
16880       if (that instanceof getRoutes_args)
16881         return this.equals((getRoutes_args)that);
16882       return false;
16883     }
16884
16885     public boolean equals(getRoutes_args that) {
16886       if (that == null)
16887         return false;
16888
16889       boolean this_present_optype = true;
16890       boolean that_present_optype = true;
16891       if (this_present_optype || that_present_optype) {
16892         if (!(this_present_optype && that_present_optype))
16893           return false;
16894         if (this.optype != that.optype)
16895           return false;
16896       }
16897
16898       boolean this_present_winSize = true;
16899       boolean that_present_winSize = true;
16900       if (this_present_winSize || that_present_winSize) {
16901         if (!(this_present_winSize && that_present_winSize))
16902           return false;
16903         if (this.winSize != that.winSize)
16904           return false;
16905       }
16906
16907       return true;
16908     }
16909
16910     @Override
16911     public int hashCode() {
16912       return 0;
16913     }
16914
16915     @Override
16916     public int compareTo(getRoutes_args other) {
16917       if (!getClass().equals(other.getClass())) {
16918         return getClass().getName().compareTo(other.getClass().getName());
16919       }
16920
16921       int lastComparison = 0;
16922
16923       lastComparison = Boolean.valueOf(isSetOptype()).compareTo(other.isSetOptype());
16924       if (lastComparison != 0) {
16925         return lastComparison;
16926       }
16927       if (isSetOptype()) {
16928         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.optype, other.optype);
16929         if (lastComparison != 0) {
16930           return lastComparison;
16931         }
16932       }
16933       lastComparison = Boolean.valueOf(isSetWinSize()).compareTo(other.isSetWinSize());
16934       if (lastComparison != 0) {
16935         return lastComparison;
16936       }
16937       if (isSetWinSize()) {
16938         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.winSize, other.winSize);
16939         if (lastComparison != 0) {
16940           return lastComparison;
16941         }
16942       }
16943       return 0;
16944     }
16945
16946     public _Fields fieldForId(int fieldId) {
16947       return _Fields.findByThriftId(fieldId);
16948     }
16949
16950     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16951       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16952     }
16953
16954     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16955       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16956     }
16957
16958     @Override
16959     public String toString() {
16960       StringBuilder sb = new StringBuilder("getRoutes_args(");
16961       boolean first = true;
16962
16963       sb.append("optype:");
16964       sb.append(this.optype);
16965       first = false;
16966       if (!first) sb.append(", ");
16967       sb.append("winSize:");
16968       sb.append(this.winSize);
16969       first = false;
16970       sb.append(")");
16971       return sb.toString();
16972     }
16973
16974     public void validate() throws org.apache.thrift.TException {
16975       // check for required fields
16976       // check for sub-struct validity
16977     }
16978
16979     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16980       try {
16981         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16982       } catch (org.apache.thrift.TException te) {
16983         throw new java.io.IOException(te);
16984       }
16985     }
16986
16987     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16988       try {
16989         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16990         __isset_bitfield = 0;
16991         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16992       } catch (org.apache.thrift.TException te) {
16993         throw new java.io.IOException(te);
16994       }
16995     }
16996
16997     private static class getRoutes_argsStandardSchemeFactory implements SchemeFactory {
16998       public getRoutes_argsStandardScheme getScheme() {
16999         return new getRoutes_argsStandardScheme();
17000       }
17001     }
17002
17003     private static class getRoutes_argsStandardScheme extends StandardScheme<getRoutes_args> {
17004
17005       public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_args struct) throws org.apache.thrift.TException {
17006         org.apache.thrift.protocol.TField schemeField;
17007         iprot.readStructBegin();
17008         while (true)
17009         {
17010           schemeField = iprot.readFieldBegin();
17011           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
17012             break;
17013           }
17014           switch (schemeField.id) {
17015             case 1: // OPTYPE
17016               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17017                 struct.optype = iprot.readI32();
17018                 struct.setOptypeIsSet(true);
17019               } else { 
17020                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17021               }
17022               break;
17023             case 2: // WIN_SIZE
17024               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17025                 struct.winSize = iprot.readI32();
17026                 struct.setWinSizeIsSet(true);
17027               } else { 
17028                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17029               }
17030               break;
17031             default:
17032               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17033           }
17034           iprot.readFieldEnd();
17035         }
17036         iprot.readStructEnd();
17037
17038         // check for required fields of primitive type, which can't be checked in the validate method
17039         struct.validate();
17040       }
17041
17042       public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_args struct) throws org.apache.thrift.TException {
17043         struct.validate();
17044
17045         oprot.writeStructBegin(STRUCT_DESC);
17046         oprot.writeFieldBegin(OPTYPE_FIELD_DESC);
17047         oprot.writeI32(struct.optype);
17048         oprot.writeFieldEnd();
17049         oprot.writeFieldBegin(WIN_SIZE_FIELD_DESC);
17050         oprot.writeI32(struct.winSize);
17051         oprot.writeFieldEnd();
17052         oprot.writeFieldStop();
17053         oprot.writeStructEnd();
17054       }
17055
17056     }
17057
17058     private static class getRoutes_argsTupleSchemeFactory implements SchemeFactory {
17059       public getRoutes_argsTupleScheme getScheme() {
17060         return new getRoutes_argsTupleScheme();
17061       }
17062     }
17063
17064     private static class getRoutes_argsTupleScheme extends TupleScheme<getRoutes_args> {
17065
17066       @Override
17067       public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
17068         TTupleProtocol oprot = (TTupleProtocol) prot;
17069         BitSet optionals = new BitSet();
17070         if (struct.isSetOptype()) {
17071           optionals.set(0);
17072         }
17073         if (struct.isSetWinSize()) {
17074           optionals.set(1);
17075         }
17076         oprot.writeBitSet(optionals, 2);
17077         if (struct.isSetOptype()) {
17078           oprot.writeI32(struct.optype);
17079         }
17080         if (struct.isSetWinSize()) {
17081           oprot.writeI32(struct.winSize);
17082         }
17083       }
17084
17085       @Override
17086       public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
17087         TTupleProtocol iprot = (TTupleProtocol) prot;
17088         BitSet incoming = iprot.readBitSet(2);
17089         if (incoming.get(0)) {
17090           struct.optype = iprot.readI32();
17091           struct.setOptypeIsSet(true);
17092         }
17093         if (incoming.get(1)) {
17094           struct.winSize = iprot.readI32();
17095           struct.setWinSizeIsSet(true);
17096         }
17097       }
17098     }
17099
17100   }
17101
17102   public static class getRoutes_result implements org.apache.thrift.TBase<getRoutes_result, getRoutes_result._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_result>   {
17103     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_result");
17104
17105     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);
17106
17107     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17108     static {
17109       schemes.put(StandardScheme.class, new getRoutes_resultStandardSchemeFactory());
17110       schemes.put(TupleScheme.class, new getRoutes_resultTupleSchemeFactory());
17111     }
17112
17113     public Routes success; // required
17114
17115     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17116     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17117       SUCCESS((short)0, "success");
17118
17119       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17120
17121       static {
17122         for (_Fields field : EnumSet.allOf(_Fields.class)) {
17123           byName.put(field.getFieldName(), field);
17124         }
17125       }
17126
17127       /**
17128        * Find the _Fields constant that matches fieldId, or null if its not found.
17129        */
17130       public static _Fields findByThriftId(int fieldId) {
17131         switch(fieldId) {
17132           case 0: // SUCCESS
17133             return SUCCESS;
17134           default:
17135             return null;
17136         }
17137       }
17138
17139       /**
17140        * Find the _Fields constant that matches fieldId, throwing an exception
17141        * if it is not found.
17142        */
17143       public static _Fields findByThriftIdOrThrow(int fieldId) {
17144         _Fields fields = findByThriftId(fieldId);
17145         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17146         return fields;
17147       }
17148
17149       /**
17150        * Find the _Fields constant that matches name, or null if its not found.
17151        */
17152       public static _Fields findByName(String name) {
17153         return byName.get(name);
17154       }
17155
17156       private final short _thriftId;
17157       private final String _fieldName;
17158
17159       _Fields(short thriftId, String fieldName) {
17160         _thriftId = thriftId;
17161         _fieldName = fieldName;
17162       }
17163
17164       public short getThriftFieldId() {
17165         return _thriftId;
17166       }
17167
17168       public String getFieldName() {
17169         return _fieldName;
17170       }
17171     }
17172
17173     // isset id assignments
17174     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17175     static {
17176       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17177       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17178           new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Routes.class)));
17179       metaDataMap = Collections.unmodifiableMap(tmpMap);
17180       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_result.class, metaDataMap);
17181     }
17182
17183     public getRoutes_result() {
17184     }
17185
17186     public getRoutes_result(
17187       Routes success)
17188     {
17189       this();
17190       this.success = success;
17191     }
17192
17193     /**
17194      * Performs a deep copy on <i>other</i>.
17195      */
17196     public getRoutes_result(getRoutes_result other) {
17197       if (other.isSetSuccess()) {
17198         this.success = new Routes(other.success);
17199       }
17200     }
17201
17202     public getRoutes_result deepCopy() {
17203       return new getRoutes_result(this);
17204     }
17205
17206     @Override
17207     public void clear() {
17208       this.success = null;
17209     }
17210
17211     public Routes getSuccess() {
17212       return this.success;
17213     }
17214
17215     public getRoutes_result setSuccess(Routes success) {
17216       this.success = success;
17217       return this;
17218     }
17219
17220     public void unsetSuccess() {
17221       this.success = null;
17222     }
17223
17224     /** Returns true if field success is set (has been assigned a value) and false otherwise */
17225     public boolean isSetSuccess() {
17226       return this.success != null;
17227     }
17228
17229     public void setSuccessIsSet(boolean value) {
17230       if (!value) {
17231         this.success = null;
17232       }
17233     }
17234
17235     public void setFieldValue(_Fields field, Object value) {
17236       switch (field) {
17237       case SUCCESS:
17238         if (value == null) {
17239           unsetSuccess();
17240         } else {
17241           setSuccess((Routes)value);
17242         }
17243         break;
17244
17245       }
17246     }
17247
17248     public Object getFieldValue(_Fields field) {
17249       switch (field) {
17250       case SUCCESS:
17251         return getSuccess();
17252
17253       }
17254       throw new IllegalStateException();
17255     }
17256
17257     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17258     public boolean isSet(_Fields field) {
17259       if (field == null) {
17260         throw new IllegalArgumentException();
17261       }
17262
17263       switch (field) {
17264       case SUCCESS:
17265         return isSetSuccess();
17266       }
17267       throw new IllegalStateException();
17268     }
17269
17270     @Override
17271     public boolean equals(Object that) {
17272       if (that == null)
17273         return false;
17274       if (that instanceof getRoutes_result)
17275         return this.equals((getRoutes_result)that);
17276       return false;
17277     }
17278
17279     public boolean equals(getRoutes_result that) {
17280       if (that == null)
17281         return false;
17282
17283       boolean this_present_success = true && this.isSetSuccess();
17284       boolean that_present_success = true && that.isSetSuccess();
17285       if (this_present_success || that_present_success) {
17286         if (!(this_present_success && that_present_success))
17287           return false;
17288         if (!this.success.equals(that.success))
17289           return false;
17290       }
17291
17292       return true;
17293     }
17294
17295     @Override
17296     public int hashCode() {
17297       return 0;
17298     }
17299
17300     @Override
17301     public int compareTo(getRoutes_result other) {
17302       if (!getClass().equals(other.getClass())) {
17303         return getClass().getName().compareTo(other.getClass().getName());
17304       }
17305
17306       int lastComparison = 0;
17307
17308       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
17309       if (lastComparison != 0) {
17310         return lastComparison;
17311       }
17312       if (isSetSuccess()) {
17313         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
17314         if (lastComparison != 0) {
17315           return lastComparison;
17316         }
17317       }
17318       return 0;
17319     }
17320
17321     public _Fields fieldForId(int fieldId) {
17322       return _Fields.findByThriftId(fieldId);
17323     }
17324
17325     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17326       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17327     }
17328
17329     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17330       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17331       }
17332
17333     @Override
17334     public String toString() {
17335       StringBuilder sb = new StringBuilder("getRoutes_result(");
17336       boolean first = true;
17337
17338       sb.append("success:");
17339       if (this.success == null) {
17340         sb.append("null");
17341       } else {
17342         sb.append(this.success);
17343       }
17344       first = false;
17345       sb.append(")");
17346       return sb.toString();
17347     }
17348
17349     public void validate() throws org.apache.thrift.TException {
17350       // check for required fields
17351       // check for sub-struct validity
17352       if (success != null) {
17353         success.validate();
17354       }
17355     }
17356
17357     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17358       try {
17359         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17360       } catch (org.apache.thrift.TException te) {
17361         throw new java.io.IOException(te);
17362       }
17363     }
17364
17365     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17366       try {
17367         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17368       } catch (org.apache.thrift.TException te) {
17369         throw new java.io.IOException(te);
17370       }
17371     }
17372
17373     private static class getRoutes_resultStandardSchemeFactory implements SchemeFactory {
17374       public getRoutes_resultStandardScheme getScheme() {
17375         return new getRoutes_resultStandardScheme();
17376       }
17377     }
17378
17379     private static class getRoutes_resultStandardScheme extends StandardScheme<getRoutes_result> {
17380
17381       public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_result struct) throws org.apache.thrift.TException {
17382         org.apache.thrift.protocol.TField schemeField;
17383         iprot.readStructBegin();
17384         while (true)
17385         {
17386           schemeField = iprot.readFieldBegin();
17387           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
17388             break;
17389           }
17390           switch (schemeField.id) {
17391             case 0: // SUCCESS
17392               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
17393                 struct.success = new Routes();
17394                 struct.success.read(iprot);
17395                 struct.setSuccessIsSet(true);
17396               } else { 
17397                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17398               }
17399               break;
17400             default:
17401               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17402           }
17403           iprot.readFieldEnd();
17404         }
17405         iprot.readStructEnd();
17406
17407         // check for required fields of primitive type, which can't be checked in the validate method
17408         struct.validate();
17409       }
17410
17411       public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_result struct) throws org.apache.thrift.TException {
17412         struct.validate();
17413
17414         oprot.writeStructBegin(STRUCT_DESC);
17415         if (struct.success != null) {
17416           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17417           struct.success.write(oprot);
17418           oprot.writeFieldEnd();
17419         }
17420         oprot.writeFieldStop();
17421         oprot.writeStructEnd();
17422       }
17423
17424     }
17425
17426     private static class getRoutes_resultTupleSchemeFactory implements SchemeFactory {
17427       public getRoutes_resultTupleScheme getScheme() {
17428         return new getRoutes_resultTupleScheme();
17429       }
17430     }
17431
17432     private static class getRoutes_resultTupleScheme extends TupleScheme<getRoutes_result> {
17433
17434       @Override
17435       public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
17436         TTupleProtocol oprot = (TTupleProtocol) prot;
17437         BitSet optionals = new BitSet();
17438         if (struct.isSetSuccess()) {
17439           optionals.set(0);
17440         }
17441         oprot.writeBitSet(optionals, 1);
17442         if (struct.isSetSuccess()) {
17443           struct.success.write(oprot);
17444         }
17445       }
17446
17447       @Override
17448       public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
17449         TTupleProtocol iprot = (TTupleProtocol) prot;
17450         BitSet incoming = iprot.readBitSet(1);
17451         if (incoming.get(0)) {
17452           struct.success = new Routes();
17453           struct.success.read(iprot);
17454           struct.setSuccessIsSet(true);
17455         }
17456       }
17457     }
17458
17459   }
17460
17461 }