b4dec891d87e42b2432c18bc2d0015963a2c043e
[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.*;
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(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush) throws org.apache.thrift.TException;
41
42     public int stopBgp(long asNumber) throws org.apache.thrift.TException;
43
44     public int createPeer(String ipAddress, long asNumber) throws org.apache.thrift.TException;
45
46     public int setPeerSecret(String ipAddress, String rfc2385_sharedSecret) throws org.apache.thrift.TException;
47
48     public int deletePeer(String ipAddress) throws org.apache.thrift.TException;
49
50     public int addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException;
51
52     public int delVrf(String rd) throws org.apache.thrift.TException;
53
54     public int pushRoute(protocol_type p_type, String prefix, String nexthop, String rd, int ethtag, String esi, String macaddress, int l3label, int l2label, encap_type enc_type, String routermac) throws org.apache.thrift.TException;
55
56     public int withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress) throws org.apache.thrift.TException;
57
58     public int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException;
59
60     public int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException;
61
62     public int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException;
63
64     public int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException;
65
66     public int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
67
68     public int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
69
70     public int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException;
71
72     public int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException;
73
74     public int disableGracefulRestart() throws org.apache.thrift.TException;
75
76     public Routes getRoutes(protocol_type p_type, int optype, int winSize) throws org.apache.thrift.TException;
77
78     public int enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException;
79
80     public int disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException;
81
82     public int multipaths(String rd, int maxPath) throws org.apache.thrift.TException;
83
84   }
85
86   public interface AsyncIface {
87
88     public void startBgp(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
89
90     public void stopBgp(long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
91
92     public void createPeer(String ipAddress, long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
93
94     public void setPeerSecret(String ipAddress, String rfc2385_sharedSecret, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
95
96     public void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
97
98     public void addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
99
100     public void delVrf(String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
101
102     public void pushRoute(protocol_type p_type, String prefix, String nexthop, String rd, int ethtag, String esi, String macaddress, int l3label, int l2label, encap_type enc_type, String routermac, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
103
104     public void withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
105
106     public void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
107
108     public void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
109
110     public void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
111
112     public void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
113
114     public void enableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
115
116     public void disableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
117
118     public void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
119
120     public void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
121
122     public void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
123
124     public void getRoutes(protocol_type p_type, int optype, int winSize, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
125
126     public void enableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
127
128     public void disableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
129
130     public void multipaths(String rd, int maxPath, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
131
132   }
133
134   public static class Client extends org.apache.thrift.TServiceClient implements Iface {
135     public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
136       public Factory() {}
137       public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
138         return new Client(prot);
139       }
140       public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
141         return new Client(iprot, oprot);
142       }
143     }
144
145     public Client(org.apache.thrift.protocol.TProtocol prot)
146     {
147       super(prot, prot);
148     }
149
150     public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
151       super(iprot, oprot);
152     }
153
154     public int startBgp(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush) throws org.apache.thrift.TException
155     {
156       send_startBgp(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFlush);
157       return recv_startBgp();
158     }
159
160     public void send_startBgp(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush) throws org.apache.thrift.TException
161     {
162       startBgp_args args = new startBgp_args();
163       args.setAsNumber(asNumber);
164       args.setRouterId(routerId);
165       args.setPort(port);
166       args.setHoldTime(holdTime);
167       args.setKeepAliveTime(keepAliveTime);
168       args.setStalepathTime(stalepathTime);
169       args.setAnnounceFlush(announceFlush);
170       sendBase("startBgp", args);
171     }
172
173     public int recv_startBgp() throws org.apache.thrift.TException
174     {
175       startBgp_result result = new startBgp_result();
176       receiveBase(result, "startBgp");
177       if (result.isSetSuccess()) {
178         return result.success;
179       }
180       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startBgp failed: unknown result");
181     }
182
183     public int stopBgp(long asNumber) throws org.apache.thrift.TException
184     {
185       send_stopBgp(asNumber);
186       return recv_stopBgp();
187     }
188
189     public void send_stopBgp(long asNumber) throws org.apache.thrift.TException
190     {
191       stopBgp_args args = new stopBgp_args();
192       args.setAsNumber(asNumber);
193       sendBase("stopBgp", args);
194     }
195
196     public int recv_stopBgp() throws org.apache.thrift.TException
197     {
198       stopBgp_result result = new stopBgp_result();
199       receiveBase(result, "stopBgp");
200       if (result.isSetSuccess()) {
201         return result.success;
202       }
203       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "stopBgp failed: unknown result");
204     }
205
206     public int createPeer(String ipAddress, long asNumber) throws org.apache.thrift.TException
207     {
208       send_createPeer(ipAddress, asNumber);
209       return recv_createPeer();
210     }
211
212     public void send_createPeer(String ipAddress, long asNumber) throws org.apache.thrift.TException
213     {
214       createPeer_args args = new createPeer_args();
215       args.setIpAddress(ipAddress);
216       args.setAsNumber(asNumber);
217       sendBase("createPeer", args);
218     }
219
220     public int recv_createPeer() throws org.apache.thrift.TException
221     {
222       createPeer_result result = new createPeer_result();
223       receiveBase(result, "createPeer");
224       if (result.isSetSuccess()) {
225         return result.success;
226       }
227       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPeer failed: unknown result");
228     }
229
230     public int setPeerSecret(String ipAddress, String rfc2385_sharedSecret) throws org.apache.thrift.TException
231     {
232       send_setPeerSecret(ipAddress, rfc2385_sharedSecret);
233       return recv_setPeerSecret();
234     }
235
236     public void send_setPeerSecret(String ipAddress, String rfc2385_sharedSecret) throws org.apache.thrift.TException
237     {
238       setPeerSecret_args args = new setPeerSecret_args();
239       args.setIpAddress(ipAddress);
240       args.setRfc2385_sharedSecret(rfc2385_sharedSecret);
241       sendBase("setPeerSecret", args);
242     }
243
244     public int recv_setPeerSecret() throws org.apache.thrift.TException
245     {
246       setPeerSecret_result result = new setPeerSecret_result();
247       receiveBase(result, "setPeerSecret");
248       if (result.isSetSuccess()) {
249         return result.success;
250       }
251       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setPeerSecret failed: unknown result");
252     }
253
254     public int deletePeer(String ipAddress) throws org.apache.thrift.TException
255     {
256       send_deletePeer(ipAddress);
257       return recv_deletePeer();
258     }
259
260     public void send_deletePeer(String ipAddress) throws org.apache.thrift.TException
261     {
262       deletePeer_args args = new deletePeer_args();
263       args.setIpAddress(ipAddress);
264       sendBase("deletePeer", args);
265     }
266
267     public int recv_deletePeer() throws org.apache.thrift.TException
268     {
269       deletePeer_result result = new deletePeer_result();
270       receiveBase(result, "deletePeer");
271       if (result.isSetSuccess()) {
272         return result.success;
273       }
274       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deletePeer failed: unknown result");
275     }
276
277     public int addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException
278     {
279       send_addVrf(l_type, rd, irts, erts);
280       return recv_addVrf();
281     }
282
283     public void send_addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException
284     {
285       addVrf_args args = new addVrf_args();
286       args.setL_type(l_type);
287       args.setRd(rd);
288       args.setIrts(irts);
289       args.setErts(erts);
290       sendBase("addVrf", args);
291     }
292
293     public int recv_addVrf() throws org.apache.thrift.TException
294     {
295       addVrf_result result = new addVrf_result();
296       receiveBase(result, "addVrf");
297       if (result.isSetSuccess()) {
298         return result.success;
299       }
300       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVrf failed: unknown result");
301     }
302
303     public int delVrf(String rd) throws org.apache.thrift.TException
304     {
305       send_delVrf(rd);
306       return recv_delVrf();
307     }
308
309     public void send_delVrf(String rd) throws org.apache.thrift.TException
310     {
311       delVrf_args args = new delVrf_args();
312       args.setRd(rd);
313       sendBase("delVrf", args);
314     }
315
316     public int recv_delVrf() throws org.apache.thrift.TException
317     {
318       delVrf_result result = new delVrf_result();
319       receiveBase(result, "delVrf");
320       if (result.isSetSuccess()) {
321         return result.success;
322       }
323       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "delVrf failed: unknown result");
324     }
325
326     public int pushRoute(protocol_type p_type, String prefix, String nexthop, String rd, int ethtag, String esi, String macaddress, int l3label, int l2label, encap_type enc_type, String routermac) throws org.apache.thrift.TException
327     {
328       send_pushRoute(p_type, prefix, nexthop, rd, ethtag, esi, macaddress, l3label, l2label, enc_type, routermac);
329       return recv_pushRoute();
330     }
331
332     public void send_pushRoute(protocol_type p_type, String prefix, String nexthop, String rd, int ethtag, String esi, String macaddress, int l3label, int l2label, encap_type enc_type, String routermac) throws org.apache.thrift.TException
333     {
334       pushRoute_args args = new pushRoute_args();
335       args.setP_type(p_type);
336       args.setPrefix(prefix);
337       args.setNexthop(nexthop);
338       args.setRd(rd);
339       args.setEthtag(ethtag);
340       args.setEsi(esi);
341       args.setMacaddress(macaddress);
342       args.setL3label(l3label);
343       args.setL2label(l2label);
344       args.setEnc_type(enc_type);
345       args.setRoutermac(routermac);
346       sendBase("pushRoute", args);
347     }
348
349     public int recv_pushRoute() throws org.apache.thrift.TException
350     {
351       pushRoute_result result = new pushRoute_result();
352       receiveBase(result, "pushRoute");
353       if (result.isSetSuccess()) {
354         return result.success;
355       }
356       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "pushRoute failed: unknown result");
357     }
358
359     public int withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress) throws org.apache.thrift.TException
360     {
361       send_withdrawRoute(p_type, prefix, rd, ethtag, esi, macaddress);
362       return recv_withdrawRoute();
363     }
364
365     public void send_withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress) throws org.apache.thrift.TException
366     {
367       withdrawRoute_args args = new withdrawRoute_args();
368       args.setP_type(p_type);
369       args.setPrefix(prefix);
370       args.setRd(rd);
371       args.setEthtag(ethtag);
372       args.setEsi(esi);
373       args.setMacaddress(macaddress);
374       sendBase("withdrawRoute", args);
375     }
376
377     public int recv_withdrawRoute() throws org.apache.thrift.TException
378     {
379       withdrawRoute_result result = new withdrawRoute_result();
380       receiveBase(result, "withdrawRoute");
381       if (result.isSetSuccess()) {
382         return result.success;
383       }
384       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "withdrawRoute failed: unknown result");
385     }
386
387     public int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
388     {
389       send_setEbgpMultihop(peerIp, nHops);
390       return recv_setEbgpMultihop();
391     }
392
393     public void send_setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
394     {
395       setEbgpMultihop_args args = new setEbgpMultihop_args();
396       args.setPeerIp(peerIp);
397       args.setNHops(nHops);
398       sendBase("setEbgpMultihop", args);
399     }
400
401     public int recv_setEbgpMultihop() throws org.apache.thrift.TException
402     {
403       setEbgpMultihop_result result = new setEbgpMultihop_result();
404       receiveBase(result, "setEbgpMultihop");
405       if (result.isSetSuccess()) {
406         return result.success;
407       }
408       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setEbgpMultihop failed: unknown result");
409     }
410
411     public int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
412     {
413       send_unsetEbgpMultihop(peerIp);
414       return recv_unsetEbgpMultihop();
415     }
416
417     public void send_unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
418     {
419       unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
420       args.setPeerIp(peerIp);
421       sendBase("unsetEbgpMultihop", args);
422     }
423
424     public int recv_unsetEbgpMultihop() throws org.apache.thrift.TException
425     {
426       unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
427       receiveBase(result, "unsetEbgpMultihop");
428       if (result.isSetSuccess()) {
429         return result.success;
430       }
431       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetEbgpMultihop failed: unknown result");
432     }
433
434     public int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
435     {
436       send_setUpdateSource(peerIp, srcIp);
437       return recv_setUpdateSource();
438     }
439
440     public void send_setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
441     {
442       setUpdateSource_args args = new setUpdateSource_args();
443       args.setPeerIp(peerIp);
444       args.setSrcIp(srcIp);
445       sendBase("setUpdateSource", args);
446     }
447
448     public int recv_setUpdateSource() throws org.apache.thrift.TException
449     {
450       setUpdateSource_result result = new setUpdateSource_result();
451       receiveBase(result, "setUpdateSource");
452       if (result.isSetSuccess()) {
453         return result.success;
454       }
455       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setUpdateSource failed: unknown result");
456     }
457
458     public int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
459     {
460       send_unsetUpdateSource(peerIp);
461       return recv_unsetUpdateSource();
462     }
463
464     public void send_unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
465     {
466       unsetUpdateSource_args args = new unsetUpdateSource_args();
467       args.setPeerIp(peerIp);
468       sendBase("unsetUpdateSource", args);
469     }
470
471     public int recv_unsetUpdateSource() throws org.apache.thrift.TException
472     {
473       unsetUpdateSource_result result = new unsetUpdateSource_result();
474       receiveBase(result, "unsetUpdateSource");
475       if (result.isSetSuccess()) {
476         return result.success;
477       }
478       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetUpdateSource failed: unknown result");
479     }
480
481     public int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
482     {
483       send_enableAddressFamily(peerIp, afi, safi);
484       return recv_enableAddressFamily();
485     }
486
487     public void send_enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
488     {
489       enableAddressFamily_args args = new enableAddressFamily_args();
490       args.setPeerIp(peerIp);
491       args.setAfi(afi);
492       args.setSafi(safi);
493       sendBase("enableAddressFamily", args);
494     }
495
496     public int recv_enableAddressFamily() throws org.apache.thrift.TException
497     {
498       enableAddressFamily_result result = new enableAddressFamily_result();
499       receiveBase(result, "enableAddressFamily");
500       if (result.isSetSuccess()) {
501         return result.success;
502       }
503       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableAddressFamily failed: unknown result");
504     }
505
506     public int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
507     {
508       send_disableAddressFamily(peerIp, afi, safi);
509       return recv_disableAddressFamily();
510     }
511
512     public void send_disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
513     {
514       disableAddressFamily_args args = new disableAddressFamily_args();
515       args.setPeerIp(peerIp);
516       args.setAfi(afi);
517       args.setSafi(safi);
518       sendBase("disableAddressFamily", args);
519     }
520
521     public int recv_disableAddressFamily() throws org.apache.thrift.TException
522     {
523       disableAddressFamily_result result = new disableAddressFamily_result();
524       receiveBase(result, "disableAddressFamily");
525       if (result.isSetSuccess()) {
526         return result.success;
527       }
528       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableAddressFamily failed: unknown result");
529     }
530
531     public int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
532     {
533       send_setLogConfig(logFileName, logLevel);
534       return recv_setLogConfig();
535     }
536
537     public void send_setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
538     {
539       setLogConfig_args args = new setLogConfig_args();
540       args.setLogFileName(logFileName);
541       args.setLogLevel(logLevel);
542       sendBase("setLogConfig", args);
543     }
544
545     public int recv_setLogConfig() throws org.apache.thrift.TException
546     {
547       setLogConfig_result result = new setLogConfig_result();
548       receiveBase(result, "setLogConfig");
549       if (result.isSetSuccess()) {
550         return result.success;
551       }
552       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setLogConfig failed: unknown result");
553     }
554
555     public int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
556     {
557       send_enableGracefulRestart(stalepathTime);
558       return recv_enableGracefulRestart();
559     }
560
561     public void send_enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
562     {
563       enableGracefulRestart_args args = new enableGracefulRestart_args();
564       args.setStalepathTime(stalepathTime);
565       sendBase("enableGracefulRestart", args);
566     }
567
568     public int recv_enableGracefulRestart() throws org.apache.thrift.TException
569     {
570       enableGracefulRestart_result result = new enableGracefulRestart_result();
571       receiveBase(result, "enableGracefulRestart");
572       if (result.isSetSuccess()) {
573         return result.success;
574       }
575       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableGracefulRestart failed: unknown result");
576     }
577
578     public int disableGracefulRestart() throws org.apache.thrift.TException
579     {
580       send_disableGracefulRestart();
581       return recv_disableGracefulRestart();
582     }
583
584     public void send_disableGracefulRestart() throws org.apache.thrift.TException
585     {
586       disableGracefulRestart_args args = new disableGracefulRestart_args();
587       sendBase("disableGracefulRestart", args);
588     }
589
590     public int recv_disableGracefulRestart() throws org.apache.thrift.TException
591     {
592       disableGracefulRestart_result result = new disableGracefulRestart_result();
593       receiveBase(result, "disableGracefulRestart");
594       if (result.isSetSuccess()) {
595         return result.success;
596       }
597       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableGracefulRestart failed: unknown result");
598     }
599
600     public Routes getRoutes(protocol_type p_type, int optype, int winSize) throws org.apache.thrift.TException
601     {
602       send_getRoutes(p_type, optype, winSize);
603       return recv_getRoutes();
604     }
605
606     public void send_getRoutes(protocol_type p_type, int optype, int winSize) throws org.apache.thrift.TException
607     {
608       getRoutes_args args = new getRoutes_args();
609       args.setP_type(p_type);
610       args.setOptype(optype);
611       args.setWinSize(winSize);
612       sendBase("getRoutes", args);
613     }
614
615     public Routes recv_getRoutes() throws org.apache.thrift.TException
616     {
617       getRoutes_result result = new getRoutes_result();
618       receiveBase(result, "getRoutes");
619       if (result.isSetSuccess()) {
620         return result.success;
621       }
622       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoutes failed: unknown result");
623     }
624
625     public int enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
626     {
627       send_enableMultipath(afi, safi);
628       return recv_enableMultipath();
629     }
630
631     public void send_enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
632     {
633       enableMultipath_args args = new enableMultipath_args();
634       args.setAfi(afi);
635       args.setSafi(safi);
636       sendBase("enableMultipath", args);
637     }
638
639     public int recv_enableMultipath() throws org.apache.thrift.TException
640     {
641       enableMultipath_result result = new enableMultipath_result();
642       receiveBase(result, "enableMultipath");
643       if (result.isSetSuccess()) {
644         return result.success;
645       }
646       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableMultipath failed: unknown result");
647     }
648
649     public int disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
650     {
651       send_disableMultipath(afi, safi);
652       return recv_disableMultipath();
653     }
654
655     public void send_disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
656     {
657       disableMultipath_args args = new disableMultipath_args();
658       args.setAfi(afi);
659       args.setSafi(safi);
660       sendBase("disableMultipath", args);
661     }
662
663     public int recv_disableMultipath() throws org.apache.thrift.TException
664     {
665       disableMultipath_result result = new disableMultipath_result();
666       receiveBase(result, "disableMultipath");
667       if (result.isSetSuccess()) {
668         return result.success;
669       }
670       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableMultipath failed: unknown result");
671     }
672
673     public int multipaths(String rd, int maxPath) throws org.apache.thrift.TException
674     {
675       send_multipaths(rd, maxPath);
676       return recv_multipaths();
677     }
678
679     public void send_multipaths(String rd, int maxPath) throws org.apache.thrift.TException
680     {
681       multipaths_args args = new multipaths_args();
682       args.setRd(rd);
683       args.setMaxPath(maxPath);
684       sendBase("multipaths", args);
685     }
686
687     public int recv_multipaths() throws org.apache.thrift.TException
688     {
689       multipaths_result result = new multipaths_result();
690       receiveBase(result, "multipaths");
691       if (result.isSetSuccess()) {
692         return result.success;
693       }
694       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "multipaths failed: unknown result");
695     }
696
697   }
698   public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
699     public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
700       private org.apache.thrift.async.TAsyncClientManager clientManager;
701       private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
702       public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
703         this.clientManager = clientManager;
704         this.protocolFactory = protocolFactory;
705       }
706       public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
707         return new AsyncClient(protocolFactory, clientManager, transport);
708       }
709     }
710
711     public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
712       super(protocolFactory, clientManager, transport);
713     }
714
715     public void startBgp(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
716       checkReady();
717       startBgp_call method_call = new startBgp_call(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFlush, resultHandler, this, ___protocolFactory, ___transport);
718       this.___currentMethod = method_call;
719       ___manager.call(method_call);
720     }
721
722     public static class startBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
723       private long asNumber;
724       private String routerId;
725       private int port;
726       private int holdTime;
727       private int keepAliveTime;
728       private int stalepathTime;
729       private boolean announceFlush;
730       public startBgp_call(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush, 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 {
731         super(client, protocolFactory, transport, resultHandler, false);
732         this.asNumber = asNumber;
733         this.routerId = routerId;
734         this.port = port;
735         this.holdTime = holdTime;
736         this.keepAliveTime = keepAliveTime;
737         this.stalepathTime = stalepathTime;
738         this.announceFlush = announceFlush;
739       }
740
741       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
742         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
743         startBgp_args args = new startBgp_args();
744         args.setAsNumber(asNumber);
745         args.setRouterId(routerId);
746         args.setPort(port);
747         args.setHoldTime(holdTime);
748         args.setKeepAliveTime(keepAliveTime);
749         args.setStalepathTime(stalepathTime);
750         args.setAnnounceFlush(announceFlush);
751         args.write(prot);
752         prot.writeMessageEnd();
753       }
754
755       public int getResult() throws org.apache.thrift.TException {
756         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
757           throw new IllegalStateException("Method call not finished!");
758         }
759         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
760         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
761         return (new Client(prot)).recv_startBgp();
762       }
763     }
764
765     public void stopBgp(long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
766       checkReady();
767       stopBgp_call method_call = new stopBgp_call(asNumber, resultHandler, this, ___protocolFactory, ___transport);
768       this.___currentMethod = method_call;
769       ___manager.call(method_call);
770     }
771
772     public static class stopBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
773       private long asNumber;
774       public stopBgp_call(long 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 {
775         super(client, protocolFactory, transport, resultHandler, false);
776         this.asNumber = asNumber;
777       }
778
779       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
780         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("stopBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
781         stopBgp_args args = new stopBgp_args();
782         args.setAsNumber(asNumber);
783         args.write(prot);
784         prot.writeMessageEnd();
785       }
786
787       public int getResult() throws org.apache.thrift.TException {
788         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
789           throw new IllegalStateException("Method call not finished!");
790         }
791         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
792         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
793         return (new Client(prot)).recv_stopBgp();
794       }
795     }
796
797     public void createPeer(String ipAddress, long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
798       checkReady();
799       createPeer_call method_call = new createPeer_call(ipAddress, asNumber, resultHandler, this, ___protocolFactory, ___transport);
800       this.___currentMethod = method_call;
801       ___manager.call(method_call);
802     }
803
804     public static class createPeer_call extends org.apache.thrift.async.TAsyncMethodCall {
805       private String ipAddress;
806       private long asNumber;
807       public createPeer_call(String ipAddress, long 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 {
808         super(client, protocolFactory, transport, resultHandler, false);
809         this.ipAddress = ipAddress;
810         this.asNumber = asNumber;
811       }
812
813       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
814         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
815         createPeer_args args = new createPeer_args();
816         args.setIpAddress(ipAddress);
817         args.setAsNumber(asNumber);
818         args.write(prot);
819         prot.writeMessageEnd();
820       }
821
822       public int getResult() throws org.apache.thrift.TException {
823         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
824           throw new IllegalStateException("Method call not finished!");
825         }
826         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
827         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
828         return (new Client(prot)).recv_createPeer();
829       }
830     }
831
832     public void setPeerSecret(String ipAddress, String rfc2385_sharedSecret, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
833       checkReady();
834       setPeerSecret_call method_call = new setPeerSecret_call(ipAddress, rfc2385_sharedSecret, resultHandler, this, ___protocolFactory, ___transport);
835       this.___currentMethod = method_call;
836       ___manager.call(method_call);
837     }
838
839     public static class setPeerSecret_call extends org.apache.thrift.async.TAsyncMethodCall {
840       private String ipAddress;
841       private String rfc2385_sharedSecret;
842       public setPeerSecret_call(String ipAddress, String rfc2385_sharedSecret, 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 {
843         super(client, protocolFactory, transport, resultHandler, false);
844         this.ipAddress = ipAddress;
845         this.rfc2385_sharedSecret = rfc2385_sharedSecret;
846       }
847
848       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
849         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setPeerSecret", org.apache.thrift.protocol.TMessageType.CALL, 0));
850         setPeerSecret_args args = new setPeerSecret_args();
851         args.setIpAddress(ipAddress);
852         args.setRfc2385_sharedSecret(rfc2385_sharedSecret);
853         args.write(prot);
854         prot.writeMessageEnd();
855       }
856
857       public int getResult() throws org.apache.thrift.TException {
858         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
859           throw new IllegalStateException("Method call not finished!");
860         }
861         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
862         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
863         return (new Client(prot)).recv_setPeerSecret();
864       }
865     }
866
867     public void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
868       checkReady();
869       deletePeer_call method_call = new deletePeer_call(ipAddress, resultHandler, this, ___protocolFactory, ___transport);
870       this.___currentMethod = method_call;
871       ___manager.call(method_call);
872     }
873
874     public static class deletePeer_call extends org.apache.thrift.async.TAsyncMethodCall {
875       private String ipAddress;
876       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 {
877         super(client, protocolFactory, transport, resultHandler, false);
878         this.ipAddress = ipAddress;
879       }
880
881       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
882         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deletePeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
883         deletePeer_args args = new deletePeer_args();
884         args.setIpAddress(ipAddress);
885         args.write(prot);
886         prot.writeMessageEnd();
887       }
888
889       public int getResult() throws org.apache.thrift.TException {
890         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
891           throw new IllegalStateException("Method call not finished!");
892         }
893         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
894         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
895         return (new Client(prot)).recv_deletePeer();
896       }
897     }
898
899     public void addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
900       checkReady();
901       addVrf_call method_call = new addVrf_call(l_type, rd, irts, erts, resultHandler, this, ___protocolFactory, ___transport);
902       this.___currentMethod = method_call;
903       ___manager.call(method_call);
904     }
905
906     public static class addVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
907       private layer_type l_type;
908       private String rd;
909       private List<String> irts;
910       private List<String> erts;
911       public addVrf_call(layer_type l_type, 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 {
912         super(client, protocolFactory, transport, resultHandler, false);
913         this.l_type = l_type;
914         this.rd = rd;
915         this.irts = irts;
916         this.erts = erts;
917       }
918
919       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
920         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
921         addVrf_args args = new addVrf_args();
922         args.setL_type(l_type);
923         args.setRd(rd);
924         args.setIrts(irts);
925         args.setErts(erts);
926         args.write(prot);
927         prot.writeMessageEnd();
928       }
929
930       public int getResult() throws org.apache.thrift.TException {
931         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
932           throw new IllegalStateException("Method call not finished!");
933         }
934         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
935         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
936         return (new Client(prot)).recv_addVrf();
937       }
938     }
939
940     public void delVrf(String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
941       checkReady();
942       delVrf_call method_call = new delVrf_call(rd, resultHandler, this, ___protocolFactory, ___transport);
943       this.___currentMethod = method_call;
944       ___manager.call(method_call);
945     }
946
947     public static class delVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
948       private String rd;
949       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 {
950         super(client, protocolFactory, transport, resultHandler, false);
951         this.rd = rd;
952       }
953
954       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
955         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("delVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
956         delVrf_args args = new delVrf_args();
957         args.setRd(rd);
958         args.write(prot);
959         prot.writeMessageEnd();
960       }
961
962       public int getResult() throws org.apache.thrift.TException {
963         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
964           throw new IllegalStateException("Method call not finished!");
965         }
966         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
967         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
968         return (new Client(prot)).recv_delVrf();
969       }
970     }
971
972     public void pushRoute(protocol_type p_type, String prefix, String nexthop, String rd, int ethtag, String esi, String macaddress, int l3label, int l2label, encap_type enc_type, String routermac, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
973       checkReady();
974       pushRoute_call method_call = new pushRoute_call(p_type, prefix, nexthop, rd, ethtag, esi, macaddress, l3label, l2label, enc_type, routermac, resultHandler, this, ___protocolFactory, ___transport);
975       this.___currentMethod = method_call;
976       ___manager.call(method_call);
977     }
978
979     public static class pushRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
980       private protocol_type p_type;
981       private String prefix;
982       private String nexthop;
983       private String rd;
984       private int ethtag;
985       private String esi;
986       private String macaddress;
987       private int l3label;
988       private int l2label;
989       private encap_type enc_type;
990       private String routermac;
991       public pushRoute_call(protocol_type p_type, String prefix, String nexthop, String rd, int ethtag, String esi, String macaddress, int l3label, int l2label, encap_type enc_type, String routermac, 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 {
992         super(client, protocolFactory, transport, resultHandler, false);
993         this.p_type = p_type;
994         this.prefix = prefix;
995         this.nexthop = nexthop;
996         this.rd = rd;
997         this.ethtag = ethtag;
998         this.esi = esi;
999         this.macaddress = macaddress;
1000         this.l3label = l3label;
1001         this.l2label = l2label;
1002         this.enc_type = enc_type;
1003         this.routermac = routermac;
1004       }
1005
1006       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1007         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("pushRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
1008         pushRoute_args args = new pushRoute_args();
1009         args.setP_type(p_type);
1010         args.setPrefix(prefix);
1011         args.setNexthop(nexthop);
1012         args.setRd(rd);
1013         args.setEthtag(ethtag);
1014         args.setEsi(esi);
1015         args.setMacaddress(macaddress);
1016         args.setL3label(l3label);
1017         args.setL2label(l2label);
1018         args.setEnc_type(enc_type);
1019         args.setRoutermac(routermac);
1020         args.write(prot);
1021         prot.writeMessageEnd();
1022       }
1023
1024       public int getResult() throws org.apache.thrift.TException {
1025         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1026           throw new IllegalStateException("Method call not finished!");
1027         }
1028         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1029         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1030         return (new Client(prot)).recv_pushRoute();
1031       }
1032     }
1033
1034     public void withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1035       checkReady();
1036       withdrawRoute_call method_call = new withdrawRoute_call(p_type, prefix, rd, ethtag, esi, macaddress, resultHandler, this, ___protocolFactory, ___transport);
1037       this.___currentMethod = method_call;
1038       ___manager.call(method_call);
1039     }
1040
1041     public static class withdrawRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
1042       private protocol_type p_type;
1043       private String prefix;
1044       private String rd;
1045       private int ethtag;
1046       private String esi;
1047       private String macaddress;
1048       public withdrawRoute_call(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, 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 {
1049         super(client, protocolFactory, transport, resultHandler, false);
1050         this.p_type = p_type;
1051         this.prefix = prefix;
1052         this.rd = rd;
1053         this.ethtag = ethtag;
1054         this.esi = esi;
1055         this.macaddress = macaddress;
1056       }
1057
1058       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1059         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("withdrawRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
1060         withdrawRoute_args args = new withdrawRoute_args();
1061         args.setP_type(p_type);
1062         args.setPrefix(prefix);
1063         args.setRd(rd);
1064         args.setEthtag(ethtag);
1065         args.setEsi(esi);
1066         args.setMacaddress(macaddress);
1067         args.write(prot);
1068         prot.writeMessageEnd();
1069       }
1070
1071       public int getResult() throws org.apache.thrift.TException {
1072         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1073           throw new IllegalStateException("Method call not finished!");
1074         }
1075         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1076         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1077         return (new Client(prot)).recv_withdrawRoute();
1078       }
1079     }
1080
1081     public void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1082       checkReady();
1083       setEbgpMultihop_call method_call = new setEbgpMultihop_call(peerIp, nHops, resultHandler, this, ___protocolFactory, ___transport);
1084       this.___currentMethod = method_call;
1085       ___manager.call(method_call);
1086     }
1087
1088     public static class setEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
1089       private String peerIp;
1090       private int nHops;
1091       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 {
1092         super(client, protocolFactory, transport, resultHandler, false);
1093         this.peerIp = peerIp;
1094         this.nHops = nHops;
1095       }
1096
1097       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1098         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
1099         setEbgpMultihop_args args = new setEbgpMultihop_args();
1100         args.setPeerIp(peerIp);
1101         args.setNHops(nHops);
1102         args.write(prot);
1103         prot.writeMessageEnd();
1104       }
1105
1106       public int getResult() throws org.apache.thrift.TException {
1107         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1108           throw new IllegalStateException("Method call not finished!");
1109         }
1110         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1111         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1112         return (new Client(prot)).recv_setEbgpMultihop();
1113       }
1114     }
1115
1116     public void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1117       checkReady();
1118       unsetEbgpMultihop_call method_call = new unsetEbgpMultihop_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
1119       this.___currentMethod = method_call;
1120       ___manager.call(method_call);
1121     }
1122
1123     public static class unsetEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
1124       private String peerIp;
1125       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 {
1126         super(client, protocolFactory, transport, resultHandler, false);
1127         this.peerIp = peerIp;
1128       }
1129
1130       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1131         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
1132         unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
1133         args.setPeerIp(peerIp);
1134         args.write(prot);
1135         prot.writeMessageEnd();
1136       }
1137
1138       public int getResult() throws org.apache.thrift.TException {
1139         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1140           throw new IllegalStateException("Method call not finished!");
1141         }
1142         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1143         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1144         return (new Client(prot)).recv_unsetEbgpMultihop();
1145       }
1146     }
1147
1148     public void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1149       checkReady();
1150       setUpdateSource_call method_call = new setUpdateSource_call(peerIp, srcIp, resultHandler, this, ___protocolFactory, ___transport);
1151       this.___currentMethod = method_call;
1152       ___manager.call(method_call);
1153     }
1154
1155     public static class setUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
1156       private String peerIp;
1157       private String srcIp;
1158       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 {
1159         super(client, protocolFactory, transport, resultHandler, false);
1160         this.peerIp = peerIp;
1161         this.srcIp = srcIp;
1162       }
1163
1164       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1165         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
1166         setUpdateSource_args args = new setUpdateSource_args();
1167         args.setPeerIp(peerIp);
1168         args.setSrcIp(srcIp);
1169         args.write(prot);
1170         prot.writeMessageEnd();
1171       }
1172
1173       public int getResult() throws org.apache.thrift.TException {
1174         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1175           throw new IllegalStateException("Method call not finished!");
1176         }
1177         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1178         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1179         return (new Client(prot)).recv_setUpdateSource();
1180       }
1181     }
1182
1183     public void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1184       checkReady();
1185       unsetUpdateSource_call method_call = new unsetUpdateSource_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
1186       this.___currentMethod = method_call;
1187       ___manager.call(method_call);
1188     }
1189
1190     public static class unsetUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
1191       private String peerIp;
1192       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 {
1193         super(client, protocolFactory, transport, resultHandler, false);
1194         this.peerIp = peerIp;
1195       }
1196
1197       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1198         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
1199         unsetUpdateSource_args args = new unsetUpdateSource_args();
1200         args.setPeerIp(peerIp);
1201         args.write(prot);
1202         prot.writeMessageEnd();
1203       }
1204
1205       public int getResult() throws org.apache.thrift.TException {
1206         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1207           throw new IllegalStateException("Method call not finished!");
1208         }
1209         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1210         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1211         return (new Client(prot)).recv_unsetUpdateSource();
1212       }
1213     }
1214
1215     public void enableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1216       checkReady();
1217       enableAddressFamily_call method_call = new enableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1218       this.___currentMethod = method_call;
1219       ___manager.call(method_call);
1220     }
1221
1222     public static class enableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1223       private String peerIp;
1224       private af_afi afi;
1225       private af_safi safi;
1226       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 {
1227         super(client, protocolFactory, transport, resultHandler, false);
1228         this.peerIp = peerIp;
1229         this.afi = afi;
1230         this.safi = safi;
1231       }
1232
1233       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1234         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1235         enableAddressFamily_args args = new enableAddressFamily_args();
1236         args.setPeerIp(peerIp);
1237         args.setAfi(afi);
1238         args.setSafi(safi);
1239         args.write(prot);
1240         prot.writeMessageEnd();
1241       }
1242
1243       public int getResult() throws org.apache.thrift.TException {
1244         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1245           throw new IllegalStateException("Method call not finished!");
1246         }
1247         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1248         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1249         return (new Client(prot)).recv_enableAddressFamily();
1250       }
1251     }
1252
1253     public void disableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1254       checkReady();
1255       disableAddressFamily_call method_call = new disableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1256       this.___currentMethod = method_call;
1257       ___manager.call(method_call);
1258     }
1259
1260     public static class disableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1261       private String peerIp;
1262       private af_afi afi;
1263       private af_safi safi;
1264       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 {
1265         super(client, protocolFactory, transport, resultHandler, false);
1266         this.peerIp = peerIp;
1267         this.afi = afi;
1268         this.safi = safi;
1269       }
1270
1271       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1272         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1273         disableAddressFamily_args args = new disableAddressFamily_args();
1274         args.setPeerIp(peerIp);
1275         args.setAfi(afi);
1276         args.setSafi(safi);
1277         args.write(prot);
1278         prot.writeMessageEnd();
1279       }
1280
1281       public int getResult() throws org.apache.thrift.TException {
1282         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1283           throw new IllegalStateException("Method call not finished!");
1284         }
1285         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1286         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1287         return (new Client(prot)).recv_disableAddressFamily();
1288       }
1289     }
1290
1291     public void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1292       checkReady();
1293       setLogConfig_call method_call = new setLogConfig_call(logFileName, logLevel, resultHandler, this, ___protocolFactory, ___transport);
1294       this.___currentMethod = method_call;
1295       ___manager.call(method_call);
1296     }
1297
1298     public static class setLogConfig_call extends org.apache.thrift.async.TAsyncMethodCall {
1299       private String logFileName;
1300       private String logLevel;
1301       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 {
1302         super(client, protocolFactory, transport, resultHandler, false);
1303         this.logFileName = logFileName;
1304         this.logLevel = logLevel;
1305       }
1306
1307       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1308         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setLogConfig", org.apache.thrift.protocol.TMessageType.CALL, 0));
1309         setLogConfig_args args = new setLogConfig_args();
1310         args.setLogFileName(logFileName);
1311         args.setLogLevel(logLevel);
1312         args.write(prot);
1313         prot.writeMessageEnd();
1314       }
1315
1316       public int getResult() throws org.apache.thrift.TException {
1317         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1318           throw new IllegalStateException("Method call not finished!");
1319         }
1320         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1321         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1322         return (new Client(prot)).recv_setLogConfig();
1323       }
1324     }
1325
1326     public void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1327       checkReady();
1328       enableGracefulRestart_call method_call = new enableGracefulRestart_call(stalepathTime, resultHandler, this, ___protocolFactory, ___transport);
1329       this.___currentMethod = method_call;
1330       ___manager.call(method_call);
1331     }
1332
1333     public static class enableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1334       private int stalepathTime;
1335       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 {
1336         super(client, protocolFactory, transport, resultHandler, false);
1337         this.stalepathTime = stalepathTime;
1338       }
1339
1340       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1341         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1342         enableGracefulRestart_args args = new enableGracefulRestart_args();
1343         args.setStalepathTime(stalepathTime);
1344         args.write(prot);
1345         prot.writeMessageEnd();
1346       }
1347
1348       public int getResult() throws org.apache.thrift.TException {
1349         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1350           throw new IllegalStateException("Method call not finished!");
1351         }
1352         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1353         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1354         return (new Client(prot)).recv_enableGracefulRestart();
1355       }
1356     }
1357
1358     public void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1359       checkReady();
1360       disableGracefulRestart_call method_call = new disableGracefulRestart_call(resultHandler, this, ___protocolFactory, ___transport);
1361       this.___currentMethod = method_call;
1362       ___manager.call(method_call);
1363     }
1364
1365     public static class disableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1366       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 {
1367         super(client, protocolFactory, transport, resultHandler, false);
1368       }
1369
1370       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1371         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1372         disableGracefulRestart_args args = new disableGracefulRestart_args();
1373         args.write(prot);
1374         prot.writeMessageEnd();
1375       }
1376
1377       public int getResult() throws org.apache.thrift.TException {
1378         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1379           throw new IllegalStateException("Method call not finished!");
1380         }
1381         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1382         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1383         return (new Client(prot)).recv_disableGracefulRestart();
1384       }
1385     }
1386
1387     public void getRoutes(protocol_type p_type, int optype, int winSize, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1388       checkReady();
1389       getRoutes_call method_call = new getRoutes_call(p_type, optype, winSize, resultHandler, this, ___protocolFactory, ___transport);
1390       this.___currentMethod = method_call;
1391       ___manager.call(method_call);
1392     }
1393
1394     public static class getRoutes_call extends org.apache.thrift.async.TAsyncMethodCall {
1395       private protocol_type p_type;
1396       private int optype;
1397       private int winSize;
1398       public getRoutes_call(protocol_type p_type, 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 {
1399         super(client, protocolFactory, transport, resultHandler, false);
1400         this.p_type = p_type;
1401         this.optype = optype;
1402         this.winSize = winSize;
1403       }
1404
1405       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1406         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoutes", org.apache.thrift.protocol.TMessageType.CALL, 0));
1407         getRoutes_args args = new getRoutes_args();
1408         args.setP_type(p_type);
1409         args.setOptype(optype);
1410         args.setWinSize(winSize);
1411         args.write(prot);
1412         prot.writeMessageEnd();
1413       }
1414
1415       public Routes getResult() throws org.apache.thrift.TException {
1416         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1417           throw new IllegalStateException("Method call not finished!");
1418         }
1419         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1420         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1421         return (new Client(prot)).recv_getRoutes();
1422       }
1423     }
1424
1425     public void enableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1426       checkReady();
1427       enableMultipath_call method_call = new enableMultipath_call(afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1428       this.___currentMethod = method_call;
1429       ___manager.call(method_call);
1430     }
1431
1432     public static class enableMultipath_call extends org.apache.thrift.async.TAsyncMethodCall {
1433       private af_afi afi;
1434       private af_safi safi;
1435       public enableMultipath_call(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 {
1436         super(client, protocolFactory, transport, resultHandler, false);
1437         this.afi = afi;
1438         this.safi = safi;
1439       }
1440
1441       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1442         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableMultipath", org.apache.thrift.protocol.TMessageType.CALL, 0));
1443         enableMultipath_args args = new enableMultipath_args();
1444         args.setAfi(afi);
1445         args.setSafi(safi);
1446         args.write(prot);
1447         prot.writeMessageEnd();
1448       }
1449
1450       public int getResult() throws org.apache.thrift.TException {
1451         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1452           throw new IllegalStateException("Method call not finished!");
1453         }
1454         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1455         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1456         return (new Client(prot)).recv_enableMultipath();
1457       }
1458     }
1459
1460     public void disableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1461       checkReady();
1462       disableMultipath_call method_call = new disableMultipath_call(afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1463       this.___currentMethod = method_call;
1464       ___manager.call(method_call);
1465     }
1466
1467     public static class disableMultipath_call extends org.apache.thrift.async.TAsyncMethodCall {
1468       private af_afi afi;
1469       private af_safi safi;
1470       public disableMultipath_call(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 {
1471         super(client, protocolFactory, transport, resultHandler, false);
1472         this.afi = afi;
1473         this.safi = safi;
1474       }
1475
1476       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1477         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableMultipath", org.apache.thrift.protocol.TMessageType.CALL, 0));
1478         disableMultipath_args args = new disableMultipath_args();
1479         args.setAfi(afi);
1480         args.setSafi(safi);
1481         args.write(prot);
1482         prot.writeMessageEnd();
1483       }
1484
1485       public int getResult() throws org.apache.thrift.TException {
1486         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1487           throw new IllegalStateException("Method call not finished!");
1488         }
1489         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1490         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1491         return (new Client(prot)).recv_disableMultipath();
1492       }
1493     }
1494
1495     public void multipaths(String rd, int maxPath, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1496       checkReady();
1497       multipaths_call method_call = new multipaths_call(rd, maxPath, resultHandler, this, ___protocolFactory, ___transport);
1498       this.___currentMethod = method_call;
1499       ___manager.call(method_call);
1500     }
1501
1502     public static class multipaths_call extends org.apache.thrift.async.TAsyncMethodCall {
1503       private String rd;
1504       private int maxPath;
1505       public multipaths_call(String rd, int maxPath, 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 {
1506         super(client, protocolFactory, transport, resultHandler, false);
1507         this.rd = rd;
1508         this.maxPath = maxPath;
1509       }
1510
1511       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1512         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("multipaths", org.apache.thrift.protocol.TMessageType.CALL, 0));
1513         multipaths_args args = new multipaths_args();
1514         args.setRd(rd);
1515         args.setMaxPath(maxPath);
1516         args.write(prot);
1517         prot.writeMessageEnd();
1518       }
1519
1520       public int getResult() throws org.apache.thrift.TException {
1521         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1522           throw new IllegalStateException("Method call not finished!");
1523         }
1524         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1525         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1526         return (new Client(prot)).recv_multipaths();
1527       }
1528     }
1529
1530   }
1531
1532   public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
1533     private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1534     public Processor(I iface) {
1535       super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1536     }
1537
1538     protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1539       super(iface, getProcessMap(processMap));
1540     }
1541
1542     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) {
1543       processMap.put("startBgp", new startBgp());
1544       processMap.put("stopBgp", new stopBgp());
1545       processMap.put("createPeer", new createPeer());
1546       processMap.put("setPeerSecret", new setPeerSecret());
1547       processMap.put("deletePeer", new deletePeer());
1548       processMap.put("addVrf", new addVrf());
1549       processMap.put("delVrf", new delVrf());
1550       processMap.put("pushRoute", new pushRoute());
1551       processMap.put("withdrawRoute", new withdrawRoute());
1552       processMap.put("setEbgpMultihop", new setEbgpMultihop());
1553       processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
1554       processMap.put("setUpdateSource", new setUpdateSource());
1555       processMap.put("unsetUpdateSource", new unsetUpdateSource());
1556       processMap.put("enableAddressFamily", new enableAddressFamily());
1557       processMap.put("disableAddressFamily", new disableAddressFamily());
1558       processMap.put("setLogConfig", new setLogConfig());
1559       processMap.put("enableGracefulRestart", new enableGracefulRestart());
1560       processMap.put("disableGracefulRestart", new disableGracefulRestart());
1561       processMap.put("getRoutes", new getRoutes());
1562       processMap.put("enableMultipath", new enableMultipath());
1563       processMap.put("disableMultipath", new disableMultipath());
1564       processMap.put("multipaths", new multipaths());
1565       return processMap;
1566     }
1567
1568     public static class startBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, startBgp_args> {
1569       public startBgp() {
1570         super("startBgp");
1571       }
1572
1573       public startBgp_args getEmptyArgsInstance() {
1574         return new startBgp_args();
1575       }
1576
1577       protected boolean isOneway() {
1578         return false;
1579       }
1580
1581       public startBgp_result getResult(I iface, startBgp_args args) throws org.apache.thrift.TException {
1582         startBgp_result result = new startBgp_result();
1583         result.success = iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFlush);
1584         result.setSuccessIsSet(true);
1585         return result;
1586       }
1587     }
1588
1589     public static class stopBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, stopBgp_args> {
1590       public stopBgp() {
1591         super("stopBgp");
1592       }
1593
1594       public stopBgp_args getEmptyArgsInstance() {
1595         return new stopBgp_args();
1596       }
1597
1598       protected boolean isOneway() {
1599         return false;
1600       }
1601
1602       public stopBgp_result getResult(I iface, stopBgp_args args) throws org.apache.thrift.TException {
1603         stopBgp_result result = new stopBgp_result();
1604         result.success = iface.stopBgp(args.asNumber);
1605         result.setSuccessIsSet(true);
1606         return result;
1607       }
1608     }
1609
1610     public static class createPeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPeer_args> {
1611       public createPeer() {
1612         super("createPeer");
1613       }
1614
1615       public createPeer_args getEmptyArgsInstance() {
1616         return new createPeer_args();
1617       }
1618
1619       protected boolean isOneway() {
1620         return false;
1621       }
1622
1623       public createPeer_result getResult(I iface, createPeer_args args) throws org.apache.thrift.TException {
1624         createPeer_result result = new createPeer_result();
1625         result.success = iface.createPeer(args.ipAddress, args.asNumber);
1626         result.setSuccessIsSet(true);
1627         return result;
1628       }
1629     }
1630
1631     public static class setPeerSecret<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setPeerSecret_args> {
1632       public setPeerSecret() {
1633         super("setPeerSecret");
1634       }
1635
1636       public setPeerSecret_args getEmptyArgsInstance() {
1637         return new setPeerSecret_args();
1638       }
1639
1640       protected boolean isOneway() {
1641         return false;
1642       }
1643
1644       public setPeerSecret_result getResult(I iface, setPeerSecret_args args) throws org.apache.thrift.TException {
1645         setPeerSecret_result result = new setPeerSecret_result();
1646         result.success = iface.setPeerSecret(args.ipAddress, args.rfc2385_sharedSecret);
1647         result.setSuccessIsSet(true);
1648         return result;
1649       }
1650     }
1651
1652     public static class deletePeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deletePeer_args> {
1653       public deletePeer() {
1654         super("deletePeer");
1655       }
1656
1657       public deletePeer_args getEmptyArgsInstance() {
1658         return new deletePeer_args();
1659       }
1660
1661       protected boolean isOneway() {
1662         return false;
1663       }
1664
1665       public deletePeer_result getResult(I iface, deletePeer_args args) throws org.apache.thrift.TException {
1666         deletePeer_result result = new deletePeer_result();
1667         result.success = iface.deletePeer(args.ipAddress);
1668         result.setSuccessIsSet(true);
1669         return result;
1670       }
1671     }
1672
1673     public static class addVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVrf_args> {
1674       public addVrf() {
1675         super("addVrf");
1676       }
1677
1678       public addVrf_args getEmptyArgsInstance() {
1679         return new addVrf_args();
1680       }
1681
1682       protected boolean isOneway() {
1683         return false;
1684       }
1685
1686       public addVrf_result getResult(I iface, addVrf_args args) throws org.apache.thrift.TException {
1687         addVrf_result result = new addVrf_result();
1688         result.success = iface.addVrf(args.l_type, args.rd, args.irts, args.erts);
1689         result.setSuccessIsSet(true);
1690         return result;
1691       }
1692     }
1693
1694     public static class delVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, delVrf_args> {
1695       public delVrf() {
1696         super("delVrf");
1697       }
1698
1699       public delVrf_args getEmptyArgsInstance() {
1700         return new delVrf_args();
1701       }
1702
1703       protected boolean isOneway() {
1704         return false;
1705       }
1706
1707       public delVrf_result getResult(I iface, delVrf_args args) throws org.apache.thrift.TException {
1708         delVrf_result result = new delVrf_result();
1709         result.success = iface.delVrf(args.rd);
1710         result.setSuccessIsSet(true);
1711         return result;
1712       }
1713     }
1714
1715     public static class pushRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, pushRoute_args> {
1716       public pushRoute() {
1717         super("pushRoute");
1718       }
1719
1720       public pushRoute_args getEmptyArgsInstance() {
1721         return new pushRoute_args();
1722       }
1723
1724       protected boolean isOneway() {
1725         return false;
1726       }
1727
1728       public pushRoute_result getResult(I iface, pushRoute_args args) throws org.apache.thrift.TException {
1729         pushRoute_result result = new pushRoute_result();
1730         result.success = iface.pushRoute(args.p_type, args.prefix, args.nexthop, args.rd, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label, args.enc_type, args.routermac);
1731         result.setSuccessIsSet(true);
1732         return result;
1733       }
1734     }
1735
1736     public static class withdrawRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, withdrawRoute_args> {
1737       public withdrawRoute() {
1738         super("withdrawRoute");
1739       }
1740
1741       public withdrawRoute_args getEmptyArgsInstance() {
1742         return new withdrawRoute_args();
1743       }
1744
1745       protected boolean isOneway() {
1746         return false;
1747       }
1748
1749       public withdrawRoute_result getResult(I iface, withdrawRoute_args args) throws org.apache.thrift.TException {
1750         withdrawRoute_result result = new withdrawRoute_result();
1751         result.success = iface.withdrawRoute(args.p_type, args.prefix, args.rd, args.ethtag, args.esi, args.macaddress);
1752         result.setSuccessIsSet(true);
1753         return result;
1754       }
1755     }
1756
1757     public static class setEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setEbgpMultihop_args> {
1758       public setEbgpMultihop() {
1759         super("setEbgpMultihop");
1760       }
1761
1762       public setEbgpMultihop_args getEmptyArgsInstance() {
1763         return new setEbgpMultihop_args();
1764       }
1765
1766       protected boolean isOneway() {
1767         return false;
1768       }
1769
1770       public setEbgpMultihop_result getResult(I iface, setEbgpMultihop_args args) throws org.apache.thrift.TException {
1771         setEbgpMultihop_result result = new setEbgpMultihop_result();
1772         result.success = iface.setEbgpMultihop(args.peerIp, args.nHops);
1773         result.setSuccessIsSet(true);
1774         return result;
1775       }
1776     }
1777
1778     public static class unsetEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetEbgpMultihop_args> {
1779       public unsetEbgpMultihop() {
1780         super("unsetEbgpMultihop");
1781       }
1782
1783       public unsetEbgpMultihop_args getEmptyArgsInstance() {
1784         return new unsetEbgpMultihop_args();
1785       }
1786
1787       protected boolean isOneway() {
1788         return false;
1789       }
1790
1791       public unsetEbgpMultihop_result getResult(I iface, unsetEbgpMultihop_args args) throws org.apache.thrift.TException {
1792         unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
1793         result.success = iface.unsetEbgpMultihop(args.peerIp);
1794         result.setSuccessIsSet(true);
1795         return result;
1796       }
1797     }
1798
1799     public static class setUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setUpdateSource_args> {
1800       public setUpdateSource() {
1801         super("setUpdateSource");
1802       }
1803
1804       public setUpdateSource_args getEmptyArgsInstance() {
1805         return new setUpdateSource_args();
1806       }
1807
1808       protected boolean isOneway() {
1809         return false;
1810       }
1811
1812       public setUpdateSource_result getResult(I iface, setUpdateSource_args args) throws org.apache.thrift.TException {
1813         setUpdateSource_result result = new setUpdateSource_result();
1814         result.success = iface.setUpdateSource(args.peerIp, args.srcIp);
1815         result.setSuccessIsSet(true);
1816         return result;
1817       }
1818     }
1819
1820     public static class unsetUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetUpdateSource_args> {
1821       public unsetUpdateSource() {
1822         super("unsetUpdateSource");
1823       }
1824
1825       public unsetUpdateSource_args getEmptyArgsInstance() {
1826         return new unsetUpdateSource_args();
1827       }
1828
1829       protected boolean isOneway() {
1830         return false;
1831       }
1832
1833       public unsetUpdateSource_result getResult(I iface, unsetUpdateSource_args args) throws org.apache.thrift.TException {
1834         unsetUpdateSource_result result = new unsetUpdateSource_result();
1835         result.success = iface.unsetUpdateSource(args.peerIp);
1836         result.setSuccessIsSet(true);
1837         return result;
1838       }
1839     }
1840
1841     public static class enableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableAddressFamily_args> {
1842       public enableAddressFamily() {
1843         super("enableAddressFamily");
1844       }
1845
1846       public enableAddressFamily_args getEmptyArgsInstance() {
1847         return new enableAddressFamily_args();
1848       }
1849
1850       protected boolean isOneway() {
1851         return false;
1852       }
1853
1854       public enableAddressFamily_result getResult(I iface, enableAddressFamily_args args) throws org.apache.thrift.TException {
1855         enableAddressFamily_result result = new enableAddressFamily_result();
1856         result.success = iface.enableAddressFamily(args.peerIp, args.afi, args.safi);
1857         result.setSuccessIsSet(true);
1858         return result;
1859       }
1860     }
1861
1862     public static class disableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableAddressFamily_args> {
1863       public disableAddressFamily() {
1864         super("disableAddressFamily");
1865       }
1866
1867       public disableAddressFamily_args getEmptyArgsInstance() {
1868         return new disableAddressFamily_args();
1869       }
1870
1871       protected boolean isOneway() {
1872         return false;
1873       }
1874
1875       public disableAddressFamily_result getResult(I iface, disableAddressFamily_args args) throws org.apache.thrift.TException {
1876         disableAddressFamily_result result = new disableAddressFamily_result();
1877         result.success = iface.disableAddressFamily(args.peerIp, args.afi, args.safi);
1878         result.setSuccessIsSet(true);
1879         return result;
1880       }
1881     }
1882
1883     public static class setLogConfig<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setLogConfig_args> {
1884       public setLogConfig() {
1885         super("setLogConfig");
1886       }
1887
1888       public setLogConfig_args getEmptyArgsInstance() {
1889         return new setLogConfig_args();
1890       }
1891
1892       protected boolean isOneway() {
1893         return false;
1894       }
1895
1896       public setLogConfig_result getResult(I iface, setLogConfig_args args) throws org.apache.thrift.TException {
1897         setLogConfig_result result = new setLogConfig_result();
1898         result.success = iface.setLogConfig(args.logFileName, args.logLevel);
1899         result.setSuccessIsSet(true);
1900         return result;
1901       }
1902     }
1903
1904     public static class enableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableGracefulRestart_args> {
1905       public enableGracefulRestart() {
1906         super("enableGracefulRestart");
1907       }
1908
1909       public enableGracefulRestart_args getEmptyArgsInstance() {
1910         return new enableGracefulRestart_args();
1911       }
1912
1913       protected boolean isOneway() {
1914         return false;
1915       }
1916
1917       public enableGracefulRestart_result getResult(I iface, enableGracefulRestart_args args) throws org.apache.thrift.TException {
1918         enableGracefulRestart_result result = new enableGracefulRestart_result();
1919         result.success = iface.enableGracefulRestart(args.stalepathTime);
1920         result.setSuccessIsSet(true);
1921         return result;
1922       }
1923     }
1924
1925     public static class disableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableGracefulRestart_args> {
1926       public disableGracefulRestart() {
1927         super("disableGracefulRestart");
1928       }
1929
1930       public disableGracefulRestart_args getEmptyArgsInstance() {
1931         return new disableGracefulRestart_args();
1932       }
1933
1934       protected boolean isOneway() {
1935         return false;
1936       }
1937
1938       public disableGracefulRestart_result getResult(I iface, disableGracefulRestart_args args) throws org.apache.thrift.TException {
1939         disableGracefulRestart_result result = new disableGracefulRestart_result();
1940         result.success = iface.disableGracefulRestart();
1941         result.setSuccessIsSet(true);
1942         return result;
1943       }
1944     }
1945
1946     public static class getRoutes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoutes_args> {
1947       public getRoutes() {
1948         super("getRoutes");
1949       }
1950
1951       public getRoutes_args getEmptyArgsInstance() {
1952         return new getRoutes_args();
1953       }
1954
1955       protected boolean isOneway() {
1956         return false;
1957       }
1958
1959       public getRoutes_result getResult(I iface, getRoutes_args args) throws org.apache.thrift.TException {
1960         getRoutes_result result = new getRoutes_result();
1961         result.success = iface.getRoutes(args.p_type, args.optype, args.winSize);
1962         return result;
1963       }
1964     }
1965
1966     public static class enableMultipath<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableMultipath_args> {
1967       public enableMultipath() {
1968         super("enableMultipath");
1969       }
1970
1971       public enableMultipath_args getEmptyArgsInstance() {
1972         return new enableMultipath_args();
1973       }
1974
1975       protected boolean isOneway() {
1976         return false;
1977       }
1978
1979       public enableMultipath_result getResult(I iface, enableMultipath_args args) throws org.apache.thrift.TException {
1980         enableMultipath_result result = new enableMultipath_result();
1981         result.success = iface.enableMultipath(args.afi, args.safi);
1982         result.setSuccessIsSet(true);
1983         return result;
1984       }
1985     }
1986
1987     public static class disableMultipath<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableMultipath_args> {
1988       public disableMultipath() {
1989         super("disableMultipath");
1990       }
1991
1992       public disableMultipath_args getEmptyArgsInstance() {
1993         return new disableMultipath_args();
1994       }
1995
1996       protected boolean isOneway() {
1997         return false;
1998       }
1999
2000       public disableMultipath_result getResult(I iface, disableMultipath_args args) throws org.apache.thrift.TException {
2001         disableMultipath_result result = new disableMultipath_result();
2002         result.success = iface.disableMultipath(args.afi, args.safi);
2003         result.setSuccessIsSet(true);
2004         return result;
2005       }
2006     }
2007
2008     public static class multipaths<I extends Iface> extends org.apache.thrift.ProcessFunction<I, multipaths_args> {
2009       public multipaths() {
2010         super("multipaths");
2011       }
2012
2013       public multipaths_args getEmptyArgsInstance() {
2014         return new multipaths_args();
2015       }
2016
2017       protected boolean isOneway() {
2018         return false;
2019       }
2020
2021       public multipaths_result getResult(I iface, multipaths_args args) throws org.apache.thrift.TException {
2022         multipaths_result result = new multipaths_result();
2023         result.success = iface.multipaths(args.rd, args.maxPath);
2024         result.setSuccessIsSet(true);
2025         return result;
2026       }
2027     }
2028
2029   }
2030
2031   public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
2032     private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
2033     public AsyncProcessor(I iface) {
2034       super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
2035     }
2036
2037     protected AsyncProcessor(I iface, Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
2038       super(iface, getProcessMap(processMap));
2039     }
2040
2041     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) {
2042       processMap.put("startBgp", new startBgp());
2043       processMap.put("stopBgp", new stopBgp());
2044       processMap.put("createPeer", new createPeer());
2045       processMap.put("setPeerSecret", new setPeerSecret());
2046       processMap.put("deletePeer", new deletePeer());
2047       processMap.put("addVrf", new addVrf());
2048       processMap.put("delVrf", new delVrf());
2049       processMap.put("pushRoute", new pushRoute());
2050       processMap.put("withdrawRoute", new withdrawRoute());
2051       processMap.put("setEbgpMultihop", new setEbgpMultihop());
2052       processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
2053       processMap.put("setUpdateSource", new setUpdateSource());
2054       processMap.put("unsetUpdateSource", new unsetUpdateSource());
2055       processMap.put("enableAddressFamily", new enableAddressFamily());
2056       processMap.put("disableAddressFamily", new disableAddressFamily());
2057       processMap.put("setLogConfig", new setLogConfig());
2058       processMap.put("enableGracefulRestart", new enableGracefulRestart());
2059       processMap.put("disableGracefulRestart", new disableGracefulRestart());
2060       processMap.put("getRoutes", new getRoutes());
2061       processMap.put("enableMultipath", new enableMultipath());
2062       processMap.put("disableMultipath", new disableMultipath());
2063       processMap.put("multipaths", new multipaths());
2064       return processMap;
2065     }
2066
2067     public static class startBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, startBgp_args, Integer> {
2068       public startBgp() {
2069         super("startBgp");
2070       }
2071
2072       public startBgp_args getEmptyArgsInstance() {
2073         return new startBgp_args();
2074       }
2075
2076       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2077         final org.apache.thrift.AsyncProcessFunction fcall = this;
2078         return new AsyncMethodCallback<Integer>() {
2079           public void onComplete(Integer o) {
2080             startBgp_result result = new startBgp_result();
2081             result.success = o;
2082             result.setSuccessIsSet(true);
2083             try {
2084               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2085               return;
2086             } catch (Exception e) {
2087               LOGGER.error("Exception writing to internal frame buffer", e);
2088             }
2089             fb.close();
2090           }
2091           public void onError(Exception e) {
2092             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2093             org.apache.thrift.TBase msg;
2094             startBgp_result result = new startBgp_result();
2095             {
2096               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2097               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2098             }
2099             try {
2100               fcall.sendResponse(fb,msg,msgType,seqid);
2101               return;
2102             } catch (Exception ex) {
2103               LOGGER.error("Exception writing to internal frame buffer", ex);
2104             }
2105             fb.close();
2106           }
2107         };
2108       }
2109
2110       protected boolean isOneway() {
2111         return false;
2112       }
2113
2114       public void start(I iface, startBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2115         iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFlush,resultHandler);
2116       }
2117     }
2118
2119     public static class stopBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, stopBgp_args, Integer> {
2120       public stopBgp() {
2121         super("stopBgp");
2122       }
2123
2124       public stopBgp_args getEmptyArgsInstance() {
2125         return new stopBgp_args();
2126       }
2127
2128       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2129         final org.apache.thrift.AsyncProcessFunction fcall = this;
2130         return new AsyncMethodCallback<Integer>() { 
2131           public void onComplete(Integer o) {
2132             stopBgp_result result = new stopBgp_result();
2133             result.success = o;
2134             result.setSuccessIsSet(true);
2135             try {
2136               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2137               return;
2138             } catch (Exception e) {
2139               LOGGER.error("Exception writing to internal frame buffer", e);
2140             }
2141             fb.close();
2142           }
2143           public void onError(Exception e) {
2144             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2145             org.apache.thrift.TBase msg;
2146             stopBgp_result result = new stopBgp_result();
2147             {
2148               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2149               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2150             }
2151             try {
2152               fcall.sendResponse(fb,msg,msgType,seqid);
2153               return;
2154             } catch (Exception ex) {
2155               LOGGER.error("Exception writing to internal frame buffer", ex);
2156             }
2157             fb.close();
2158           }
2159         };
2160       }
2161
2162       protected boolean isOneway() {
2163         return false;
2164       }
2165
2166       public void start(I iface, stopBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2167         iface.stopBgp(args.asNumber,resultHandler);
2168       }
2169     }
2170
2171     public static class createPeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createPeer_args, Integer> {
2172       public createPeer() {
2173         super("createPeer");
2174       }
2175
2176       public createPeer_args getEmptyArgsInstance() {
2177         return new createPeer_args();
2178       }
2179
2180       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2181         final org.apache.thrift.AsyncProcessFunction fcall = this;
2182         return new AsyncMethodCallback<Integer>() { 
2183           public void onComplete(Integer o) {
2184             createPeer_result result = new createPeer_result();
2185             result.success = o;
2186             result.setSuccessIsSet(true);
2187             try {
2188               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2189               return;
2190             } catch (Exception e) {
2191               LOGGER.error("Exception writing to internal frame buffer", e);
2192             }
2193             fb.close();
2194           }
2195           public void onError(Exception e) {
2196             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2197             org.apache.thrift.TBase msg;
2198             createPeer_result result = new createPeer_result();
2199             {
2200               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2201               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2202             }
2203             try {
2204               fcall.sendResponse(fb,msg,msgType,seqid);
2205               return;
2206             } catch (Exception ex) {
2207               LOGGER.error("Exception writing to internal frame buffer", ex);
2208             }
2209             fb.close();
2210           }
2211         };
2212       }
2213
2214       protected boolean isOneway() {
2215         return false;
2216       }
2217
2218       public void start(I iface, createPeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2219         iface.createPeer(args.ipAddress, args.asNumber,resultHandler);
2220       }
2221     }
2222
2223     public static class setPeerSecret<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setPeerSecret_args, Integer> {
2224       public setPeerSecret() {
2225         super("setPeerSecret");
2226       }
2227
2228       public setPeerSecret_args getEmptyArgsInstance() {
2229         return new setPeerSecret_args();
2230       }
2231
2232       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2233         final org.apache.thrift.AsyncProcessFunction fcall = this;
2234         return new AsyncMethodCallback<Integer>() {
2235           public void onComplete(Integer o) {
2236             setPeerSecret_result result = new setPeerSecret_result();
2237             result.success = o;
2238             result.setSuccessIsSet(true);
2239             try {
2240               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2241               return;
2242             } catch (Exception e) {
2243               LOGGER.error("Exception writing to internal frame buffer", e);
2244             }
2245             fb.close();
2246           }
2247           public void onError(Exception e) {
2248             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2249             org.apache.thrift.TBase msg;
2250             setPeerSecret_result result = new setPeerSecret_result();
2251             {
2252               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2253               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2254             }
2255             try {
2256               fcall.sendResponse(fb,msg,msgType,seqid);
2257               return;
2258             } catch (Exception ex) {
2259               LOGGER.error("Exception writing to internal frame buffer", ex);
2260             }
2261             fb.close();
2262           }
2263         };
2264       }
2265
2266       protected boolean isOneway() {
2267         return false;
2268       }
2269
2270       public void start(I iface, setPeerSecret_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2271         iface.setPeerSecret(args.ipAddress, args.rfc2385_sharedSecret,resultHandler);
2272       }
2273     }
2274
2275     public static class deletePeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, deletePeer_args, Integer> {
2276       public deletePeer() {
2277         super("deletePeer");
2278       }
2279
2280       public deletePeer_args getEmptyArgsInstance() {
2281         return new deletePeer_args();
2282       }
2283
2284       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2285         final org.apache.thrift.AsyncProcessFunction fcall = this;
2286         return new AsyncMethodCallback<Integer>() { 
2287           public void onComplete(Integer o) {
2288             deletePeer_result result = new deletePeer_result();
2289             result.success = o;
2290             result.setSuccessIsSet(true);
2291             try {
2292               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2293               return;
2294             } catch (Exception e) {
2295               LOGGER.error("Exception writing to internal frame buffer", e);
2296             }
2297             fb.close();
2298           }
2299           public void onError(Exception e) {
2300             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2301             org.apache.thrift.TBase msg;
2302             deletePeer_result result = new deletePeer_result();
2303             {
2304               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2305               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2306             }
2307             try {
2308               fcall.sendResponse(fb,msg,msgType,seqid);
2309               return;
2310             } catch (Exception ex) {
2311               LOGGER.error("Exception writing to internal frame buffer", ex);
2312             }
2313             fb.close();
2314           }
2315         };
2316       }
2317
2318       protected boolean isOneway() {
2319         return false;
2320       }
2321
2322       public void start(I iface, deletePeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2323         iface.deletePeer(args.ipAddress,resultHandler);
2324       }
2325     }
2326
2327     public static class addVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, addVrf_args, Integer> {
2328       public addVrf() {
2329         super("addVrf");
2330       }
2331
2332       public addVrf_args getEmptyArgsInstance() {
2333         return new addVrf_args();
2334       }
2335
2336       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2337         final org.apache.thrift.AsyncProcessFunction fcall = this;
2338         return new AsyncMethodCallback<Integer>() { 
2339           public void onComplete(Integer o) {
2340             addVrf_result result = new addVrf_result();
2341             result.success = o;
2342             result.setSuccessIsSet(true);
2343             try {
2344               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2345               return;
2346             } catch (Exception e) {
2347               LOGGER.error("Exception writing to internal frame buffer", e);
2348             }
2349             fb.close();
2350           }
2351           public void onError(Exception e) {
2352             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2353             org.apache.thrift.TBase msg;
2354             addVrf_result result = new addVrf_result();
2355             {
2356               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2357               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2358             }
2359             try {
2360               fcall.sendResponse(fb,msg,msgType,seqid);
2361               return;
2362             } catch (Exception ex) {
2363               LOGGER.error("Exception writing to internal frame buffer", ex);
2364             }
2365             fb.close();
2366           }
2367         };
2368       }
2369
2370       protected boolean isOneway() {
2371         return false;
2372       }
2373
2374       public void start(I iface, addVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2375         iface.addVrf(args.l_type, args.rd, args.irts, args.erts,resultHandler);
2376       }
2377     }
2378
2379     public static class delVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, delVrf_args, Integer> {
2380       public delVrf() {
2381         super("delVrf");
2382       }
2383
2384       public delVrf_args getEmptyArgsInstance() {
2385         return new delVrf_args();
2386       }
2387
2388       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2389         final org.apache.thrift.AsyncProcessFunction fcall = this;
2390         return new AsyncMethodCallback<Integer>() { 
2391           public void onComplete(Integer o) {
2392             delVrf_result result = new delVrf_result();
2393             result.success = o;
2394             result.setSuccessIsSet(true);
2395             try {
2396               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2397               return;
2398             } catch (Exception e) {
2399               LOGGER.error("Exception writing to internal frame buffer", e);
2400             }
2401             fb.close();
2402           }
2403           public void onError(Exception e) {
2404             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2405             org.apache.thrift.TBase msg;
2406             delVrf_result result = new delVrf_result();
2407             {
2408               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2409               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2410             }
2411             try {
2412               fcall.sendResponse(fb,msg,msgType,seqid);
2413               return;
2414             } catch (Exception ex) {
2415               LOGGER.error("Exception writing to internal frame buffer", ex);
2416             }
2417             fb.close();
2418           }
2419         };
2420       }
2421
2422       protected boolean isOneway() {
2423         return false;
2424       }
2425
2426       public void start(I iface, delVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2427         iface.delVrf(args.rd,resultHandler);
2428       }
2429     }
2430
2431     public static class pushRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, pushRoute_args, Integer> {
2432       public pushRoute() {
2433         super("pushRoute");
2434       }
2435
2436       public pushRoute_args getEmptyArgsInstance() {
2437         return new pushRoute_args();
2438       }
2439
2440       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2441         final org.apache.thrift.AsyncProcessFunction fcall = this;
2442         return new AsyncMethodCallback<Integer>() { 
2443           public void onComplete(Integer o) {
2444             pushRoute_result result = new pushRoute_result();
2445             result.success = o;
2446             result.setSuccessIsSet(true);
2447             try {
2448               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2449               return;
2450             } catch (Exception e) {
2451               LOGGER.error("Exception writing to internal frame buffer", e);
2452             }
2453             fb.close();
2454           }
2455           public void onError(Exception e) {
2456             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2457             org.apache.thrift.TBase msg;
2458             pushRoute_result result = new pushRoute_result();
2459             {
2460               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2461               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2462             }
2463             try {
2464               fcall.sendResponse(fb,msg,msgType,seqid);
2465               return;
2466             } catch (Exception ex) {
2467               LOGGER.error("Exception writing to internal frame buffer", ex);
2468             }
2469             fb.close();
2470           }
2471         };
2472       }
2473
2474       protected boolean isOneway() {
2475         return false;
2476       }
2477
2478       public void start(I iface, pushRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2479         iface.pushRoute(args.p_type, args.prefix, args.nexthop, args.rd, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label, args.enc_type, args.routermac,resultHandler);
2480       }
2481     }
2482
2483     public static class withdrawRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, withdrawRoute_args, Integer> {
2484       public withdrawRoute() {
2485         super("withdrawRoute");
2486       }
2487
2488       public withdrawRoute_args getEmptyArgsInstance() {
2489         return new withdrawRoute_args();
2490       }
2491
2492       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2493         final org.apache.thrift.AsyncProcessFunction fcall = this;
2494         return new AsyncMethodCallback<Integer>() { 
2495           public void onComplete(Integer o) {
2496             withdrawRoute_result result = new withdrawRoute_result();
2497             result.success = o;
2498             result.setSuccessIsSet(true);
2499             try {
2500               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2501               return;
2502             } catch (Exception e) {
2503               LOGGER.error("Exception writing to internal frame buffer", e);
2504             }
2505             fb.close();
2506           }
2507           public void onError(Exception e) {
2508             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2509             org.apache.thrift.TBase msg;
2510             withdrawRoute_result result = new withdrawRoute_result();
2511             {
2512               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2513               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2514             }
2515             try {
2516               fcall.sendResponse(fb,msg,msgType,seqid);
2517               return;
2518             } catch (Exception ex) {
2519               LOGGER.error("Exception writing to internal frame buffer", ex);
2520             }
2521             fb.close();
2522           }
2523         };
2524       }
2525
2526       protected boolean isOneway() {
2527         return false;
2528       }
2529
2530       public void start(I iface, withdrawRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2531         iface.withdrawRoute(args.p_type, args.prefix, args.rd, args.ethtag, args.esi, args.macaddress,resultHandler);
2532       }
2533     }
2534
2535     public static class setEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setEbgpMultihop_args, Integer> {
2536       public setEbgpMultihop() {
2537         super("setEbgpMultihop");
2538       }
2539
2540       public setEbgpMultihop_args getEmptyArgsInstance() {
2541         return new setEbgpMultihop_args();
2542       }
2543
2544       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2545         final org.apache.thrift.AsyncProcessFunction fcall = this;
2546         return new AsyncMethodCallback<Integer>() { 
2547           public void onComplete(Integer o) {
2548             setEbgpMultihop_result result = new setEbgpMultihop_result();
2549             result.success = o;
2550             result.setSuccessIsSet(true);
2551             try {
2552               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2553               return;
2554             } catch (Exception e) {
2555               LOGGER.error("Exception writing to internal frame buffer", e);
2556             }
2557             fb.close();
2558           }
2559           public void onError(Exception e) {
2560             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2561             org.apache.thrift.TBase msg;
2562             setEbgpMultihop_result result = new setEbgpMultihop_result();
2563             {
2564               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2565               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2566             }
2567             try {
2568               fcall.sendResponse(fb,msg,msgType,seqid);
2569               return;
2570             } catch (Exception ex) {
2571               LOGGER.error("Exception writing to internal frame buffer", ex);
2572             }
2573             fb.close();
2574           }
2575         };
2576       }
2577
2578       protected boolean isOneway() {
2579         return false;
2580       }
2581
2582       public void start(I iface, setEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2583         iface.setEbgpMultihop(args.peerIp, args.nHops,resultHandler);
2584       }
2585     }
2586
2587     public static class unsetEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetEbgpMultihop_args, Integer> {
2588       public unsetEbgpMultihop() {
2589         super("unsetEbgpMultihop");
2590       }
2591
2592       public unsetEbgpMultihop_args getEmptyArgsInstance() {
2593         return new unsetEbgpMultihop_args();
2594       }
2595
2596       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2597         final org.apache.thrift.AsyncProcessFunction fcall = this;
2598         return new AsyncMethodCallback<Integer>() { 
2599           public void onComplete(Integer o) {
2600             unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2601             result.success = o;
2602             result.setSuccessIsSet(true);
2603             try {
2604               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2605               return;
2606             } catch (Exception e) {
2607               LOGGER.error("Exception writing to internal frame buffer", e);
2608             }
2609             fb.close();
2610           }
2611           public void onError(Exception e) {
2612             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2613             org.apache.thrift.TBase msg;
2614             unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2615             {
2616               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2617               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2618             }
2619             try {
2620               fcall.sendResponse(fb,msg,msgType,seqid);
2621               return;
2622             } catch (Exception ex) {
2623               LOGGER.error("Exception writing to internal frame buffer", ex);
2624             }
2625             fb.close();
2626           }
2627         };
2628       }
2629
2630       protected boolean isOneway() {
2631         return false;
2632       }
2633
2634       public void start(I iface, unsetEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2635         iface.unsetEbgpMultihop(args.peerIp,resultHandler);
2636       }
2637     }
2638
2639     public static class setUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setUpdateSource_args, Integer> {
2640       public setUpdateSource() {
2641         super("setUpdateSource");
2642       }
2643
2644       public setUpdateSource_args getEmptyArgsInstance() {
2645         return new setUpdateSource_args();
2646       }
2647
2648       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2649         final org.apache.thrift.AsyncProcessFunction fcall = this;
2650         return new AsyncMethodCallback<Integer>() { 
2651           public void onComplete(Integer o) {
2652             setUpdateSource_result result = new setUpdateSource_result();
2653             result.success = o;
2654             result.setSuccessIsSet(true);
2655             try {
2656               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2657               return;
2658             } catch (Exception e) {
2659               LOGGER.error("Exception writing to internal frame buffer", e);
2660             }
2661             fb.close();
2662           }
2663           public void onError(Exception e) {
2664             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2665             org.apache.thrift.TBase msg;
2666             setUpdateSource_result result = new setUpdateSource_result();
2667             {
2668               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2669               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2670             }
2671             try {
2672               fcall.sendResponse(fb,msg,msgType,seqid);
2673               return;
2674             } catch (Exception ex) {
2675               LOGGER.error("Exception writing to internal frame buffer", ex);
2676             }
2677             fb.close();
2678           }
2679         };
2680       }
2681
2682       protected boolean isOneway() {
2683         return false;
2684       }
2685
2686       public void start(I iface, setUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2687         iface.setUpdateSource(args.peerIp, args.srcIp,resultHandler);
2688       }
2689     }
2690
2691     public static class unsetUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetUpdateSource_args, Integer> {
2692       public unsetUpdateSource() {
2693         super("unsetUpdateSource");
2694       }
2695
2696       public unsetUpdateSource_args getEmptyArgsInstance() {
2697         return new unsetUpdateSource_args();
2698       }
2699
2700       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2701         final org.apache.thrift.AsyncProcessFunction fcall = this;
2702         return new AsyncMethodCallback<Integer>() { 
2703           public void onComplete(Integer o) {
2704             unsetUpdateSource_result result = new unsetUpdateSource_result();
2705             result.success = o;
2706             result.setSuccessIsSet(true);
2707             try {
2708               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2709               return;
2710             } catch (Exception e) {
2711               LOGGER.error("Exception writing to internal frame buffer", e);
2712             }
2713             fb.close();
2714           }
2715           public void onError(Exception e) {
2716             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2717             org.apache.thrift.TBase msg;
2718             unsetUpdateSource_result result = new unsetUpdateSource_result();
2719             {
2720               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2721               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2722             }
2723             try {
2724               fcall.sendResponse(fb,msg,msgType,seqid);
2725               return;
2726             } catch (Exception ex) {
2727               LOGGER.error("Exception writing to internal frame buffer", ex);
2728             }
2729             fb.close();
2730           }
2731         };
2732       }
2733
2734       protected boolean isOneway() {
2735         return false;
2736       }
2737
2738       public void start(I iface, unsetUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2739         iface.unsetUpdateSource(args.peerIp,resultHandler);
2740       }
2741     }
2742
2743     public static class enableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableAddressFamily_args, Integer> {
2744       public enableAddressFamily() {
2745         super("enableAddressFamily");
2746       }
2747
2748       public enableAddressFamily_args getEmptyArgsInstance() {
2749         return new enableAddressFamily_args();
2750       }
2751
2752       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2753         final org.apache.thrift.AsyncProcessFunction fcall = this;
2754         return new AsyncMethodCallback<Integer>() { 
2755           public void onComplete(Integer o) {
2756             enableAddressFamily_result result = new enableAddressFamily_result();
2757             result.success = o;
2758             result.setSuccessIsSet(true);
2759             try {
2760               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2761               return;
2762             } catch (Exception e) {
2763               LOGGER.error("Exception writing to internal frame buffer", e);
2764             }
2765             fb.close();
2766           }
2767           public void onError(Exception e) {
2768             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2769             org.apache.thrift.TBase msg;
2770             enableAddressFamily_result result = new enableAddressFamily_result();
2771             {
2772               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2773               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2774             }
2775             try {
2776               fcall.sendResponse(fb,msg,msgType,seqid);
2777               return;
2778             } catch (Exception ex) {
2779               LOGGER.error("Exception writing to internal frame buffer", ex);
2780             }
2781             fb.close();
2782           }
2783         };
2784       }
2785
2786       protected boolean isOneway() {
2787         return false;
2788       }
2789
2790       public void start(I iface, enableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2791         iface.enableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
2792       }
2793     }
2794
2795     public static class disableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableAddressFamily_args, Integer> {
2796       public disableAddressFamily() {
2797         super("disableAddressFamily");
2798       }
2799
2800       public disableAddressFamily_args getEmptyArgsInstance() {
2801         return new disableAddressFamily_args();
2802       }
2803
2804       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2805         final org.apache.thrift.AsyncProcessFunction fcall = this;
2806         return new AsyncMethodCallback<Integer>() { 
2807           public void onComplete(Integer o) {
2808             disableAddressFamily_result result = new disableAddressFamily_result();
2809             result.success = o;
2810             result.setSuccessIsSet(true);
2811             try {
2812               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2813               return;
2814             } catch (Exception e) {
2815               LOGGER.error("Exception writing to internal frame buffer", e);
2816             }
2817             fb.close();
2818           }
2819           public void onError(Exception e) {
2820             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2821             org.apache.thrift.TBase msg;
2822             disableAddressFamily_result result = new disableAddressFamily_result();
2823             {
2824               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2825               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2826             }
2827             try {
2828               fcall.sendResponse(fb,msg,msgType,seqid);
2829               return;
2830             } catch (Exception ex) {
2831               LOGGER.error("Exception writing to internal frame buffer", ex);
2832             }
2833             fb.close();
2834           }
2835         };
2836       }
2837
2838       protected boolean isOneway() {
2839         return false;
2840       }
2841
2842       public void start(I iface, disableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2843         iface.disableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
2844       }
2845     }
2846
2847     public static class setLogConfig<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setLogConfig_args, Integer> {
2848       public setLogConfig() {
2849         super("setLogConfig");
2850       }
2851
2852       public setLogConfig_args getEmptyArgsInstance() {
2853         return new setLogConfig_args();
2854       }
2855
2856       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2857         final org.apache.thrift.AsyncProcessFunction fcall = this;
2858         return new AsyncMethodCallback<Integer>() { 
2859           public void onComplete(Integer o) {
2860             setLogConfig_result result = new setLogConfig_result();
2861             result.success = o;
2862             result.setSuccessIsSet(true);
2863             try {
2864               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2865               return;
2866             } catch (Exception e) {
2867               LOGGER.error("Exception writing to internal frame buffer", e);
2868             }
2869             fb.close();
2870           }
2871           public void onError(Exception e) {
2872             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2873             org.apache.thrift.TBase msg;
2874             setLogConfig_result result = new setLogConfig_result();
2875             {
2876               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2877               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2878             }
2879             try {
2880               fcall.sendResponse(fb,msg,msgType,seqid);
2881               return;
2882             } catch (Exception ex) {
2883               LOGGER.error("Exception writing to internal frame buffer", ex);
2884             }
2885             fb.close();
2886           }
2887         };
2888       }
2889
2890       protected boolean isOneway() {
2891         return false;
2892       }
2893
2894       public void start(I iface, setLogConfig_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2895         iface.setLogConfig(args.logFileName, args.logLevel,resultHandler);
2896       }
2897     }
2898
2899     public static class enableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableGracefulRestart_args, Integer> {
2900       public enableGracefulRestart() {
2901         super("enableGracefulRestart");
2902       }
2903
2904       public enableGracefulRestart_args getEmptyArgsInstance() {
2905         return new enableGracefulRestart_args();
2906       }
2907
2908       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2909         final org.apache.thrift.AsyncProcessFunction fcall = this;
2910         return new AsyncMethodCallback<Integer>() { 
2911           public void onComplete(Integer o) {
2912             enableGracefulRestart_result result = new enableGracefulRestart_result();
2913             result.success = o;
2914             result.setSuccessIsSet(true);
2915             try {
2916               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2917               return;
2918             } catch (Exception e) {
2919               LOGGER.error("Exception writing to internal frame buffer", e);
2920             }
2921             fb.close();
2922           }
2923           public void onError(Exception e) {
2924             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2925             org.apache.thrift.TBase msg;
2926             enableGracefulRestart_result result = new enableGracefulRestart_result();
2927             {
2928               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2929               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2930             }
2931             try {
2932               fcall.sendResponse(fb,msg,msgType,seqid);
2933               return;
2934             } catch (Exception ex) {
2935               LOGGER.error("Exception writing to internal frame buffer", ex);
2936             }
2937             fb.close();
2938           }
2939         };
2940       }
2941
2942       protected boolean isOneway() {
2943         return false;
2944       }
2945
2946       public void start(I iface, enableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2947         iface.enableGracefulRestart(args.stalepathTime,resultHandler);
2948       }
2949     }
2950
2951     public static class disableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableGracefulRestart_args, Integer> {
2952       public disableGracefulRestart() {
2953         super("disableGracefulRestart");
2954       }
2955
2956       public disableGracefulRestart_args getEmptyArgsInstance() {
2957         return new disableGracefulRestart_args();
2958       }
2959
2960       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2961         final org.apache.thrift.AsyncProcessFunction fcall = this;
2962         return new AsyncMethodCallback<Integer>() { 
2963           public void onComplete(Integer o) {
2964             disableGracefulRestart_result result = new disableGracefulRestart_result();
2965             result.success = o;
2966             result.setSuccessIsSet(true);
2967             try {
2968               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2969               return;
2970             } catch (Exception e) {
2971               LOGGER.error("Exception writing to internal frame buffer", e);
2972             }
2973             fb.close();
2974           }
2975           public void onError(Exception e) {
2976             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2977             org.apache.thrift.TBase msg;
2978             disableGracefulRestart_result result = new disableGracefulRestart_result();
2979             {
2980               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2981               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2982             }
2983             try {
2984               fcall.sendResponse(fb,msg,msgType,seqid);
2985               return;
2986             } catch (Exception ex) {
2987               LOGGER.error("Exception writing to internal frame buffer", ex);
2988             }
2989             fb.close();
2990           }
2991         };
2992       }
2993
2994       protected boolean isOneway() {
2995         return false;
2996       }
2997
2998       public void start(I iface, disableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2999         iface.disableGracefulRestart(resultHandler);
3000       }
3001     }
3002
3003     public static class getRoutes<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getRoutes_args, Routes> {
3004       public getRoutes() {
3005         super("getRoutes");
3006       }
3007
3008       public getRoutes_args getEmptyArgsInstance() {
3009         return new getRoutes_args();
3010       }
3011
3012       public AsyncMethodCallback<Routes> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3013         final org.apache.thrift.AsyncProcessFunction fcall = this;
3014         return new AsyncMethodCallback<Routes>() { 
3015           public void onComplete(Routes o) {
3016             getRoutes_result result = new getRoutes_result();
3017             result.success = o;
3018             try {
3019               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3020               return;
3021             } catch (Exception e) {
3022               LOGGER.error("Exception writing to internal frame buffer", e);
3023             }
3024             fb.close();
3025           }
3026           public void onError(Exception e) {
3027             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3028             org.apache.thrift.TBase msg;
3029             getRoutes_result result = new getRoutes_result();
3030             {
3031               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3032               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3033             }
3034             try {
3035               fcall.sendResponse(fb,msg,msgType,seqid);
3036               return;
3037             } catch (Exception ex) {
3038               LOGGER.error("Exception writing to internal frame buffer", ex);
3039             }
3040             fb.close();
3041           }
3042         };
3043       }
3044
3045       protected boolean isOneway() {
3046         return false;
3047       }
3048
3049       public void start(I iface, getRoutes_args args, org.apache.thrift.async.AsyncMethodCallback<Routes> resultHandler) throws TException {
3050         iface.getRoutes(args.p_type, args.optype, args.winSize,resultHandler);
3051       }
3052     }
3053
3054     public static class enableMultipath<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableMultipath_args, Integer> {
3055       public enableMultipath() {
3056         super("enableMultipath");
3057       }
3058
3059       public enableMultipath_args getEmptyArgsInstance() {
3060         return new enableMultipath_args();
3061       }
3062
3063       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3064         final org.apache.thrift.AsyncProcessFunction fcall = this;
3065         return new AsyncMethodCallback<Integer>() { 
3066           public void onComplete(Integer o) {
3067             enableMultipath_result result = new enableMultipath_result();
3068             result.success = o;
3069             result.setSuccessIsSet(true);
3070             try {
3071               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3072               return;
3073             } catch (Exception e) {
3074               LOGGER.error("Exception writing to internal frame buffer", e);
3075             }
3076             fb.close();
3077           }
3078           public void onError(Exception e) {
3079             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3080             org.apache.thrift.TBase msg;
3081             enableMultipath_result result = new enableMultipath_result();
3082             {
3083               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3084               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3085             }
3086             try {
3087               fcall.sendResponse(fb,msg,msgType,seqid);
3088               return;
3089             } catch (Exception ex) {
3090               LOGGER.error("Exception writing to internal frame buffer", ex);
3091             }
3092             fb.close();
3093           }
3094         };
3095       }
3096
3097       protected boolean isOneway() {
3098         return false;
3099       }
3100
3101       public void start(I iface, enableMultipath_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3102         iface.enableMultipath(args.afi, args.safi,resultHandler);
3103       }
3104     }
3105
3106     public static class disableMultipath<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableMultipath_args, Integer> {
3107       public disableMultipath() {
3108         super("disableMultipath");
3109       }
3110
3111       public disableMultipath_args getEmptyArgsInstance() {
3112         return new disableMultipath_args();
3113       }
3114
3115       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3116         final org.apache.thrift.AsyncProcessFunction fcall = this;
3117         return new AsyncMethodCallback<Integer>() { 
3118           public void onComplete(Integer o) {
3119             disableMultipath_result result = new disableMultipath_result();
3120             result.success = o;
3121             result.setSuccessIsSet(true);
3122             try {
3123               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3124               return;
3125             } catch (Exception e) {
3126               LOGGER.error("Exception writing to internal frame buffer", e);
3127             }
3128             fb.close();
3129           }
3130           public void onError(Exception e) {
3131             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3132             org.apache.thrift.TBase msg;
3133             disableMultipath_result result = new disableMultipath_result();
3134             {
3135               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3136               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3137             }
3138             try {
3139               fcall.sendResponse(fb,msg,msgType,seqid);
3140               return;
3141             } catch (Exception ex) {
3142               LOGGER.error("Exception writing to internal frame buffer", ex);
3143             }
3144             fb.close();
3145           }
3146         };
3147       }
3148
3149       protected boolean isOneway() {
3150         return false;
3151       }
3152
3153       public void start(I iface, disableMultipath_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3154         iface.disableMultipath(args.afi, args.safi,resultHandler);
3155       }
3156     }
3157
3158     public static class multipaths<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, multipaths_args, Integer> {
3159       public multipaths() {
3160         super("multipaths");
3161       }
3162
3163       public multipaths_args getEmptyArgsInstance() {
3164         return new multipaths_args();
3165       }
3166
3167       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3168         final org.apache.thrift.AsyncProcessFunction fcall = this;
3169         return new AsyncMethodCallback<Integer>() { 
3170           public void onComplete(Integer o) {
3171             multipaths_result result = new multipaths_result();
3172             result.success = o;
3173             result.setSuccessIsSet(true);
3174             try {
3175               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3176               return;
3177             } catch (Exception e) {
3178               LOGGER.error("Exception writing to internal frame buffer", e);
3179             }
3180             fb.close();
3181           }
3182           public void onError(Exception e) {
3183             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3184             org.apache.thrift.TBase msg;
3185             multipaths_result result = new multipaths_result();
3186             {
3187               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3188               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3189             }
3190             try {
3191               fcall.sendResponse(fb,msg,msgType,seqid);
3192               return;
3193             } catch (Exception ex) {
3194               LOGGER.error("Exception writing to internal frame buffer", ex);
3195             }
3196             fb.close();
3197           }
3198         };
3199       }
3200
3201       protected boolean isOneway() {
3202         return false;
3203       }
3204
3205       public void start(I iface, multipaths_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3206         iface.multipaths(args.rd, args.maxPath,resultHandler);
3207       }
3208     }
3209
3210   }
3211
3212   public static class startBgp_args implements org.apache.thrift.TBase<startBgp_args, startBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_args>   {
3213     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_args");
3214
3215     private static final org.apache.thrift.protocol.TField AS_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("asNumber", org.apache.thrift.protocol.TType.I64, (short)1);
3216     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);
3217     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);
3218     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);
3219     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);
3220     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);
3221     private static final org.apache.thrift.protocol.TField ANNOUNCE_FLUSH_FIELD_DESC = new org.apache.thrift.protocol.TField("announceFlush", org.apache.thrift.protocol.TType.BOOL, (short)7);
3222
3223     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3224     static {
3225       schemes.put(StandardScheme.class, new startBgp_argsStandardSchemeFactory());
3226       schemes.put(TupleScheme.class, new startBgp_argsTupleSchemeFactory());
3227     }
3228
3229     public long asNumber; // required
3230     public String routerId; // required
3231     public int port; // required
3232     public int holdTime; // required
3233     public int keepAliveTime; // required
3234     public int stalepathTime; // required
3235     public boolean announceFlush; // required
3236
3237     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3238     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3239       AS_NUMBER((short)1, "asNumber"),
3240       ROUTER_ID((short)2, "routerId"),
3241       PORT((short)3, "port"),
3242       HOLD_TIME((short)4, "holdTime"),
3243       KEEP_ALIVE_TIME((short)5, "keepAliveTime"),
3244       STALEPATH_TIME((short)6, "stalepathTime"),
3245       ANNOUNCE_FLUSH((short)7, "announceFlush");
3246
3247       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3248
3249       static {
3250         for (_Fields field : EnumSet.allOf(_Fields.class)) {
3251           byName.put(field.getFieldName(), field);
3252         }
3253       }
3254
3255       /**
3256        * Find the _Fields constant that matches fieldId, or null if its not found.
3257        */
3258       public static _Fields findByThriftId(int fieldId) {
3259         switch(fieldId) {
3260           case 1: // AS_NUMBER
3261             return AS_NUMBER;
3262           case 2: // ROUTER_ID
3263             return ROUTER_ID;
3264           case 3: // PORT
3265             return PORT;
3266           case 4: // HOLD_TIME
3267             return HOLD_TIME;
3268           case 5: // KEEP_ALIVE_TIME
3269             return KEEP_ALIVE_TIME;
3270           case 6: // STALEPATH_TIME
3271             return STALEPATH_TIME;
3272           case 7: // ANNOUNCE_FLUSH
3273             return ANNOUNCE_FLUSH;
3274           default:
3275             return null;
3276         }
3277       }
3278
3279       /**
3280        * Find the _Fields constant that matches fieldId, throwing an exception
3281        * if it is not found.
3282        */
3283       public static _Fields findByThriftIdOrThrow(int fieldId) {
3284         _Fields fields = findByThriftId(fieldId);
3285         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3286         return fields;
3287       }
3288
3289       /**
3290        * Find the _Fields constant that matches name, or null if its not found.
3291        */
3292       public static _Fields findByName(String name) {
3293         return byName.get(name);
3294       }
3295
3296       private final short _thriftId;
3297       private final String _fieldName;
3298
3299       _Fields(short thriftId, String fieldName) {
3300         _thriftId = thriftId;
3301         _fieldName = fieldName;
3302       }
3303
3304       public short getThriftFieldId() {
3305         return _thriftId;
3306       }
3307
3308       public String getFieldName() {
3309         return _fieldName;
3310       }
3311     }
3312
3313     // isset id assignments
3314     private static final int __ASNUMBER_ISSET_ID = 0;
3315     private static final int __PORT_ISSET_ID = 1;
3316     private static final int __HOLDTIME_ISSET_ID = 2;
3317     private static final int __KEEPALIVETIME_ISSET_ID = 3;
3318     private static final int __STALEPATHTIME_ISSET_ID = 4;
3319     private static final int __ANNOUNCEFLUSH_ISSET_ID = 5;
3320     private byte __isset_bitfield = 0;
3321     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3322     static {
3323       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3324       tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3325           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3326       tmpMap.put(_Fields.ROUTER_ID, new org.apache.thrift.meta_data.FieldMetaData("routerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3327           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3328       tmpMap.put(_Fields.PORT, new org.apache.thrift.meta_data.FieldMetaData("port", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3329           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3330       tmpMap.put(_Fields.HOLD_TIME, new org.apache.thrift.meta_data.FieldMetaData("holdTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3331           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3332       tmpMap.put(_Fields.KEEP_ALIVE_TIME, new org.apache.thrift.meta_data.FieldMetaData("keepAliveTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3333           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3334       tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3335           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3336       tmpMap.put(_Fields.ANNOUNCE_FLUSH, new org.apache.thrift.meta_data.FieldMetaData("announceFlush", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3337           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3338       metaDataMap = Collections.unmodifiableMap(tmpMap);
3339       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_args.class, metaDataMap);
3340     }
3341
3342     public startBgp_args() {
3343     }
3344
3345     public startBgp_args(
3346       long asNumber,
3347       String routerId,
3348       int port,
3349       int holdTime,
3350       int keepAliveTime,
3351       int stalepathTime,
3352       boolean announceFlush)
3353     {
3354       this();
3355       this.asNumber = asNumber;
3356       setAsNumberIsSet(true);
3357       this.routerId = routerId;
3358       this.port = port;
3359       setPortIsSet(true);
3360       this.holdTime = holdTime;
3361       setHoldTimeIsSet(true);
3362       this.keepAliveTime = keepAliveTime;
3363       setKeepAliveTimeIsSet(true);
3364       this.stalepathTime = stalepathTime;
3365       setStalepathTimeIsSet(true);
3366       this.announceFlush = announceFlush;
3367       setAnnounceFlushIsSet(true);
3368     }
3369
3370     /**
3371      * Performs a deep copy on <i>other</i>.
3372      */
3373     public startBgp_args(startBgp_args other) {
3374       __isset_bitfield = other.__isset_bitfield;
3375       this.asNumber = other.asNumber;
3376       if (other.isSetRouterId()) {
3377         this.routerId = other.routerId;
3378       }
3379       this.port = other.port;
3380       this.holdTime = other.holdTime;
3381       this.keepAliveTime = other.keepAliveTime;
3382       this.stalepathTime = other.stalepathTime;
3383       this.announceFlush = other.announceFlush;
3384     }
3385
3386     public startBgp_args deepCopy() {
3387       return new startBgp_args(this);
3388     }
3389
3390     @Override
3391     public void clear() {
3392       setAsNumberIsSet(false);
3393       this.asNumber = 0;
3394       this.routerId = null;
3395       setPortIsSet(false);
3396       this.port = 0;
3397       setHoldTimeIsSet(false);
3398       this.holdTime = 0;
3399       setKeepAliveTimeIsSet(false);
3400       this.keepAliveTime = 0;
3401       setStalepathTimeIsSet(false);
3402       this.stalepathTime = 0;
3403       setAnnounceFlushIsSet(false);
3404       this.announceFlush = false;
3405     }
3406
3407     public long getAsNumber() {
3408       return this.asNumber;
3409     }
3410
3411     public startBgp_args setAsNumber(long asNumber) {
3412       this.asNumber = asNumber;
3413       setAsNumberIsSet(true);
3414       return this;
3415     }
3416
3417     public void unsetAsNumber() {
3418       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
3419     }
3420
3421     /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
3422     public boolean isSetAsNumber() {
3423       return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
3424     }
3425
3426     public void setAsNumberIsSet(boolean value) {
3427       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
3428     }
3429
3430     public String getRouterId() {
3431       return this.routerId;
3432     }
3433
3434     public startBgp_args setRouterId(String routerId) {
3435       this.routerId = routerId;
3436       return this;
3437     }
3438
3439     public void unsetRouterId() {
3440       this.routerId = null;
3441     }
3442
3443     /** Returns true if field routerId is set (has been assigned a value) and false otherwise */
3444     public boolean isSetRouterId() {
3445       return this.routerId != null;
3446     }
3447
3448     public void setRouterIdIsSet(boolean value) {
3449       if (!value) {
3450         this.routerId = null;
3451       }
3452     }
3453
3454     public int getPort() {
3455       return this.port;
3456     }
3457
3458     public startBgp_args setPort(int port) {
3459       this.port = port;
3460       setPortIsSet(true);
3461       return this;
3462     }
3463
3464     public void unsetPort() {
3465       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PORT_ISSET_ID);
3466     }
3467
3468     /** Returns true if field port is set (has been assigned a value) and false otherwise */
3469     public boolean isSetPort() {
3470       return EncodingUtils.testBit(__isset_bitfield, __PORT_ISSET_ID);
3471     }
3472
3473     public void setPortIsSet(boolean value) {
3474       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PORT_ISSET_ID, value);
3475     }
3476
3477     public int getHoldTime() {
3478       return this.holdTime;
3479     }
3480
3481     public startBgp_args setHoldTime(int holdTime) {
3482       this.holdTime = holdTime;
3483       setHoldTimeIsSet(true);
3484       return this;
3485     }
3486
3487     public void unsetHoldTime() {
3488       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
3489     }
3490
3491     /** Returns true if field holdTime is set (has been assigned a value) and false otherwise */
3492     public boolean isSetHoldTime() {
3493       return EncodingUtils.testBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
3494     }
3495
3496     public void setHoldTimeIsSet(boolean value) {
3497       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HOLDTIME_ISSET_ID, value);
3498     }
3499
3500     public int getKeepAliveTime() {
3501       return this.keepAliveTime;
3502     }
3503
3504     public startBgp_args setKeepAliveTime(int keepAliveTime) {
3505       this.keepAliveTime = keepAliveTime;
3506       setKeepAliveTimeIsSet(true);
3507       return this;
3508     }
3509
3510     public void unsetKeepAliveTime() {
3511       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
3512     }
3513
3514     /** Returns true if field keepAliveTime is set (has been assigned a value) and false otherwise */
3515     public boolean isSetKeepAliveTime() {
3516       return EncodingUtils.testBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
3517     }
3518
3519     public void setKeepAliveTimeIsSet(boolean value) {
3520       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID, value);
3521     }
3522
3523     public int getStalepathTime() {
3524       return this.stalepathTime;
3525     }
3526
3527     public startBgp_args setStalepathTime(int stalepathTime) {
3528       this.stalepathTime = stalepathTime;
3529       setStalepathTimeIsSet(true);
3530       return this;
3531     }
3532
3533     public void unsetStalepathTime() {
3534       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
3535     }
3536
3537     /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
3538     public boolean isSetStalepathTime() {
3539       return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
3540     }
3541
3542     public void setStalepathTimeIsSet(boolean value) {
3543       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
3544     }
3545
3546     public boolean isAnnounceFlush() {
3547       return this.announceFlush;
3548     }
3549
3550     public startBgp_args setAnnounceFlush(boolean announceFlush) {
3551       this.announceFlush = announceFlush;
3552       setAnnounceFlushIsSet(true);
3553       return this;
3554     }
3555
3556     public void unsetAnnounceFlush() {
3557       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID);
3558     }
3559
3560     /** Returns true if field announceFlush is set (has been assigned a value) and false otherwise */
3561     public boolean isSetAnnounceFlush() {
3562       return EncodingUtils.testBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID);
3563     }
3564
3565     public void setAnnounceFlushIsSet(boolean value) {
3566       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID, value);
3567     }
3568
3569     public void setFieldValue(_Fields field, Object value) {
3570       switch (field) {
3571       case AS_NUMBER:
3572         if (value == null) {
3573           unsetAsNumber();
3574         } else {
3575           setAsNumber((Long)value);
3576         }
3577         break;
3578
3579       case ROUTER_ID:
3580         if (value == null) {
3581           unsetRouterId();
3582         } else {
3583           setRouterId((String)value);
3584         }
3585         break;
3586
3587       case PORT:
3588         if (value == null) {
3589           unsetPort();
3590         } else {
3591           setPort((Integer)value);
3592         }
3593         break;
3594
3595       case HOLD_TIME:
3596         if (value == null) {
3597           unsetHoldTime();
3598         } else {
3599           setHoldTime((Integer)value);
3600         }
3601         break;
3602
3603       case KEEP_ALIVE_TIME:
3604         if (value == null) {
3605           unsetKeepAliveTime();
3606         } else {
3607           setKeepAliveTime((Integer)value);
3608         }
3609         break;
3610
3611       case STALEPATH_TIME:
3612         if (value == null) {
3613           unsetStalepathTime();
3614         } else {
3615           setStalepathTime((Integer)value);
3616         }
3617         break;
3618
3619       case ANNOUNCE_FLUSH:
3620         if (value == null) {
3621           unsetAnnounceFlush();
3622         } else {
3623           setAnnounceFlush((Boolean)value);
3624         }
3625         break;
3626
3627       }
3628     }
3629
3630     public Object getFieldValue(_Fields field) {
3631       switch (field) {
3632       case AS_NUMBER:
3633         return Long.valueOf(getAsNumber());
3634
3635       case ROUTER_ID:
3636         return getRouterId();
3637
3638       case PORT:
3639         return Integer.valueOf(getPort());
3640
3641       case HOLD_TIME:
3642         return Integer.valueOf(getHoldTime());
3643
3644       case KEEP_ALIVE_TIME:
3645         return Integer.valueOf(getKeepAliveTime());
3646
3647       case STALEPATH_TIME:
3648         return Integer.valueOf(getStalepathTime());
3649
3650       case ANNOUNCE_FLUSH:
3651         return Boolean.valueOf(isAnnounceFlush());
3652
3653       }
3654       throw new IllegalStateException();
3655     }
3656
3657     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3658     public boolean isSet(_Fields field) {
3659       if (field == null) {
3660         throw new IllegalArgumentException();
3661       }
3662
3663       switch (field) {
3664       case AS_NUMBER:
3665         return isSetAsNumber();
3666       case ROUTER_ID:
3667         return isSetRouterId();
3668       case PORT:
3669         return isSetPort();
3670       case HOLD_TIME:
3671         return isSetHoldTime();
3672       case KEEP_ALIVE_TIME:
3673         return isSetKeepAliveTime();
3674       case STALEPATH_TIME:
3675         return isSetStalepathTime();
3676       case ANNOUNCE_FLUSH:
3677         return isSetAnnounceFlush();
3678       }
3679       throw new IllegalStateException();
3680     }
3681
3682     @Override
3683     public boolean equals(Object that) {
3684       if (that == null)
3685         return false;
3686       if (that instanceof startBgp_args)
3687         return this.equals((startBgp_args)that);
3688       return false;
3689     }
3690
3691     public boolean equals(startBgp_args that) {
3692       if (that == null)
3693         return false;
3694
3695       boolean this_present_asNumber = true;
3696       boolean that_present_asNumber = true;
3697       if (this_present_asNumber || that_present_asNumber) {
3698         if (!(this_present_asNumber && that_present_asNumber))
3699           return false;
3700         if (this.asNumber != that.asNumber)
3701           return false;
3702       }
3703
3704       boolean this_present_routerId = true && this.isSetRouterId();
3705       boolean that_present_routerId = true && that.isSetRouterId();
3706       if (this_present_routerId || that_present_routerId) {
3707         if (!(this_present_routerId && that_present_routerId))
3708           return false;
3709         if (!this.routerId.equals(that.routerId))
3710           return false;
3711       }
3712
3713       boolean this_present_port = true;
3714       boolean that_present_port = true;
3715       if (this_present_port || that_present_port) {
3716         if (!(this_present_port && that_present_port))
3717           return false;
3718         if (this.port != that.port)
3719           return false;
3720       }
3721
3722       boolean this_present_holdTime = true;
3723       boolean that_present_holdTime = true;
3724       if (this_present_holdTime || that_present_holdTime) {
3725         if (!(this_present_holdTime && that_present_holdTime))
3726           return false;
3727         if (this.holdTime != that.holdTime)
3728           return false;
3729       }
3730
3731       boolean this_present_keepAliveTime = true;
3732       boolean that_present_keepAliveTime = true;
3733       if (this_present_keepAliveTime || that_present_keepAliveTime) {
3734         if (!(this_present_keepAliveTime && that_present_keepAliveTime))
3735           return false;
3736         if (this.keepAliveTime != that.keepAliveTime)
3737           return false;
3738       }
3739
3740       boolean this_present_stalepathTime = true;
3741       boolean that_present_stalepathTime = true;
3742       if (this_present_stalepathTime || that_present_stalepathTime) {
3743         if (!(this_present_stalepathTime && that_present_stalepathTime))
3744           return false;
3745         if (this.stalepathTime != that.stalepathTime)
3746           return false;
3747       }
3748
3749       boolean this_present_announceFlush = true;
3750       boolean that_present_announceFlush = true;
3751       if (this_present_announceFlush || that_present_announceFlush) {
3752         if (!(this_present_announceFlush && that_present_announceFlush))
3753           return false;
3754         if (this.announceFlush != that.announceFlush)
3755           return false;
3756       }
3757
3758       return true;
3759     }
3760
3761     @Override
3762     public int hashCode() {
3763       return 0;
3764     }
3765
3766     @Override
3767     public int compareTo(startBgp_args other) {
3768       if (!getClass().equals(other.getClass())) {
3769         return getClass().getName().compareTo(other.getClass().getName());
3770       }
3771
3772       int lastComparison = 0;
3773
3774       lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
3775       if (lastComparison != 0) {
3776         return lastComparison;
3777       }
3778       if (isSetAsNumber()) {
3779         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
3780         if (lastComparison != 0) {
3781           return lastComparison;
3782         }
3783       }
3784       lastComparison = Boolean.valueOf(isSetRouterId()).compareTo(other.isSetRouterId());
3785       if (lastComparison != 0) {
3786         return lastComparison;
3787       }
3788       if (isSetRouterId()) {
3789         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routerId, other.routerId);
3790         if (lastComparison != 0) {
3791           return lastComparison;
3792         }
3793       }
3794       lastComparison = Boolean.valueOf(isSetPort()).compareTo(other.isSetPort());
3795       if (lastComparison != 0) {
3796         return lastComparison;
3797       }
3798       if (isSetPort()) {
3799         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, other.port);
3800         if (lastComparison != 0) {
3801           return lastComparison;
3802         }
3803       }
3804       lastComparison = Boolean.valueOf(isSetHoldTime()).compareTo(other.isSetHoldTime());
3805       if (lastComparison != 0) {
3806         return lastComparison;
3807       }
3808       if (isSetHoldTime()) {
3809         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdTime, other.holdTime);
3810         if (lastComparison != 0) {
3811           return lastComparison;
3812         }
3813       }
3814       lastComparison = Boolean.valueOf(isSetKeepAliveTime()).compareTo(other.isSetKeepAliveTime());
3815       if (lastComparison != 0) {
3816         return lastComparison;
3817       }
3818       if (isSetKeepAliveTime()) {
3819         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keepAliveTime, other.keepAliveTime);
3820         if (lastComparison != 0) {
3821           return lastComparison;
3822         }
3823       }
3824       lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
3825       if (lastComparison != 0) {
3826         return lastComparison;
3827       }
3828       if (isSetStalepathTime()) {
3829         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
3830         if (lastComparison != 0) {
3831           return lastComparison;
3832         }
3833       }
3834       lastComparison = Boolean.valueOf(isSetAnnounceFlush()).compareTo(other.isSetAnnounceFlush());
3835       if (lastComparison != 0) {
3836         return lastComparison;
3837       }
3838       if (isSetAnnounceFlush()) {
3839         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.announceFlush, other.announceFlush);
3840         if (lastComparison != 0) {
3841           return lastComparison;
3842         }
3843       }
3844       return 0;
3845     }
3846
3847     public _Fields fieldForId(int fieldId) {
3848       return _Fields.findByThriftId(fieldId);
3849     }
3850
3851     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3852       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3853     }
3854
3855     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3856       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3857     }
3858
3859     @Override
3860     public String toString() {
3861       StringBuilder sb = new StringBuilder("startBgp_args(");
3862       boolean first = true;
3863
3864       sb.append("asNumber:");
3865       sb.append(this.asNumber);
3866       first = false;
3867       if (!first) sb.append(", ");
3868       sb.append("routerId:");
3869       if (this.routerId == null) {
3870         sb.append("null");
3871       } else {
3872         sb.append(this.routerId);
3873       }
3874       first = false;
3875       if (!first) sb.append(", ");
3876       sb.append("port:");
3877       sb.append(this.port);
3878       first = false;
3879       if (!first) sb.append(", ");
3880       sb.append("holdTime:");
3881       sb.append(this.holdTime);
3882       first = false;
3883       if (!first) sb.append(", ");
3884       sb.append("keepAliveTime:");
3885       sb.append(this.keepAliveTime);
3886       first = false;
3887       if (!first) sb.append(", ");
3888       sb.append("stalepathTime:");
3889       sb.append(this.stalepathTime);
3890       first = false;
3891       if (!first) sb.append(", ");
3892       sb.append("announceFlush:");
3893       sb.append(this.announceFlush);
3894       first = false;
3895       sb.append(")");
3896       return sb.toString();
3897     }
3898
3899     public void validate() throws org.apache.thrift.TException {
3900       // check for required fields
3901       // check for sub-struct validity
3902     }
3903
3904     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3905       try {
3906         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3907       } catch (org.apache.thrift.TException te) {
3908         throw new java.io.IOException(te);
3909       }
3910     }
3911
3912     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3913       try {
3914         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3915         __isset_bitfield = 0;
3916         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3917       } catch (org.apache.thrift.TException te) {
3918         throw new java.io.IOException(te);
3919       }
3920     }
3921
3922     private static class startBgp_argsStandardSchemeFactory implements SchemeFactory {
3923       public startBgp_argsStandardScheme getScheme() {
3924         return new startBgp_argsStandardScheme();
3925       }
3926     }
3927
3928     private static class startBgp_argsStandardScheme extends StandardScheme<startBgp_args> {
3929
3930       public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_args struct) throws org.apache.thrift.TException {
3931         org.apache.thrift.protocol.TField schemeField;
3932         iprot.readStructBegin();
3933         while (true)
3934         {
3935           schemeField = iprot.readFieldBegin();
3936           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
3937             break;
3938           }
3939           switch (schemeField.id) {
3940             case 1: // AS_NUMBER
3941               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
3942                 struct.asNumber = iprot.readI64();
3943                 struct.setAsNumberIsSet(true);
3944               } else { 
3945                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3946               }
3947               break;
3948             case 2: // ROUTER_ID
3949               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
3950                 struct.routerId = iprot.readString();
3951                 struct.setRouterIdIsSet(true);
3952               } else { 
3953                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3954               }
3955               break;
3956             case 3: // PORT
3957               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3958                 struct.port = iprot.readI32();
3959                 struct.setPortIsSet(true);
3960               } else { 
3961                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3962               }
3963               break;
3964             case 4: // HOLD_TIME
3965               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3966                 struct.holdTime = iprot.readI32();
3967                 struct.setHoldTimeIsSet(true);
3968               } else { 
3969                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3970               }
3971               break;
3972             case 5: // KEEP_ALIVE_TIME
3973               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3974                 struct.keepAliveTime = iprot.readI32();
3975                 struct.setKeepAliveTimeIsSet(true);
3976               } else { 
3977                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3978               }
3979               break;
3980             case 6: // STALEPATH_TIME
3981               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3982                 struct.stalepathTime = iprot.readI32();
3983                 struct.setStalepathTimeIsSet(true);
3984               } else { 
3985                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3986               }
3987               break;
3988             case 7: // ANNOUNCE_FLUSH
3989               if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
3990                 struct.announceFlush = iprot.readBool();
3991                 struct.setAnnounceFlushIsSet(true);
3992               } else { 
3993                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3994               }
3995               break;
3996             default:
3997               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3998           }
3999           iprot.readFieldEnd();
4000         }
4001         iprot.readStructEnd();
4002
4003         // check for required fields of primitive type, which can't be checked in the validate method
4004         struct.validate();
4005       }
4006
4007       public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_args struct) throws org.apache.thrift.TException {
4008         struct.validate();
4009
4010         oprot.writeStructBegin(STRUCT_DESC);
4011         oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
4012         oprot.writeI64(struct.asNumber);
4013         oprot.writeFieldEnd();
4014         if (struct.routerId != null) {
4015           oprot.writeFieldBegin(ROUTER_ID_FIELD_DESC);
4016           oprot.writeString(struct.routerId);
4017           oprot.writeFieldEnd();
4018         }
4019         oprot.writeFieldBegin(PORT_FIELD_DESC);
4020         oprot.writeI32(struct.port);
4021         oprot.writeFieldEnd();
4022         oprot.writeFieldBegin(HOLD_TIME_FIELD_DESC);
4023         oprot.writeI32(struct.holdTime);
4024         oprot.writeFieldEnd();
4025         oprot.writeFieldBegin(KEEP_ALIVE_TIME_FIELD_DESC);
4026         oprot.writeI32(struct.keepAliveTime);
4027         oprot.writeFieldEnd();
4028         oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
4029         oprot.writeI32(struct.stalepathTime);
4030         oprot.writeFieldEnd();
4031         oprot.writeFieldBegin(ANNOUNCE_FLUSH_FIELD_DESC);
4032         oprot.writeBool(struct.announceFlush);
4033         oprot.writeFieldEnd();
4034         oprot.writeFieldStop();
4035         oprot.writeStructEnd();
4036       }
4037
4038     }
4039
4040     private static class startBgp_argsTupleSchemeFactory implements SchemeFactory {
4041       public startBgp_argsTupleScheme getScheme() {
4042         return new startBgp_argsTupleScheme();
4043       }
4044     }
4045
4046     private static class startBgp_argsTupleScheme extends TupleScheme<startBgp_args> {
4047
4048       @Override
4049       public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
4050         TTupleProtocol oprot = (TTupleProtocol) prot;
4051         BitSet optionals = new BitSet();
4052         if (struct.isSetAsNumber()) {
4053           optionals.set(0);
4054         }
4055         if (struct.isSetRouterId()) {
4056           optionals.set(1);
4057         }
4058         if (struct.isSetPort()) {
4059           optionals.set(2);
4060         }
4061         if (struct.isSetHoldTime()) {
4062           optionals.set(3);
4063         }
4064         if (struct.isSetKeepAliveTime()) {
4065           optionals.set(4);
4066         }
4067         if (struct.isSetStalepathTime()) {
4068           optionals.set(5);
4069         }
4070         if (struct.isSetAnnounceFlush()) {
4071           optionals.set(6);
4072         }
4073         oprot.writeBitSet(optionals, 7);
4074         if (struct.isSetAsNumber()) {
4075           oprot.writeI64(struct.asNumber);
4076         }
4077         if (struct.isSetRouterId()) {
4078           oprot.writeString(struct.routerId);
4079         }
4080         if (struct.isSetPort()) {
4081           oprot.writeI32(struct.port);
4082         }
4083         if (struct.isSetHoldTime()) {
4084           oprot.writeI32(struct.holdTime);
4085         }
4086         if (struct.isSetKeepAliveTime()) {
4087           oprot.writeI32(struct.keepAliveTime);
4088         }
4089         if (struct.isSetStalepathTime()) {
4090           oprot.writeI32(struct.stalepathTime);
4091         }
4092         if (struct.isSetAnnounceFlush()) {
4093           oprot.writeBool(struct.announceFlush);
4094         }
4095       }
4096
4097       @Override
4098       public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
4099         TTupleProtocol iprot = (TTupleProtocol) prot;
4100         BitSet incoming = iprot.readBitSet(7);
4101         if (incoming.get(0)) {
4102           struct.asNumber = iprot.readI64();
4103           struct.setAsNumberIsSet(true);
4104         }
4105         if (incoming.get(1)) {
4106           struct.routerId = iprot.readString();
4107           struct.setRouterIdIsSet(true);
4108         }
4109         if (incoming.get(2)) {
4110           struct.port = iprot.readI32();
4111           struct.setPortIsSet(true);
4112         }
4113         if (incoming.get(3)) {
4114           struct.holdTime = iprot.readI32();
4115           struct.setHoldTimeIsSet(true);
4116         }
4117         if (incoming.get(4)) {
4118           struct.keepAliveTime = iprot.readI32();
4119           struct.setKeepAliveTimeIsSet(true);
4120         }
4121         if (incoming.get(5)) {
4122           struct.stalepathTime = iprot.readI32();
4123           struct.setStalepathTimeIsSet(true);
4124         }
4125         if (incoming.get(6)) {
4126           struct.announceFlush = iprot.readBool();
4127           struct.setAnnounceFlushIsSet(true);
4128         }
4129       }
4130     }
4131
4132   }
4133
4134   public static class startBgp_result implements org.apache.thrift.TBase<startBgp_result, startBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_result>   {
4135     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_result");
4136
4137     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);
4138
4139     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4140     static {
4141       schemes.put(StandardScheme.class, new startBgp_resultStandardSchemeFactory());
4142       schemes.put(TupleScheme.class, new startBgp_resultTupleSchemeFactory());
4143     }
4144
4145     public int success; // required
4146
4147     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4148     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4149       SUCCESS((short)0, "success");
4150
4151       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4152
4153       static {
4154         for (_Fields field : EnumSet.allOf(_Fields.class)) {
4155           byName.put(field.getFieldName(), field);
4156         }
4157       }
4158
4159       /**
4160        * Find the _Fields constant that matches fieldId, or null if its not found.
4161        */
4162       public static _Fields findByThriftId(int fieldId) {
4163         switch(fieldId) {
4164           case 0: // SUCCESS
4165             return SUCCESS;
4166           default:
4167             return null;
4168         }
4169       }
4170
4171       /**
4172        * Find the _Fields constant that matches fieldId, throwing an exception
4173        * if it is not found.
4174        */
4175       public static _Fields findByThriftIdOrThrow(int fieldId) {
4176         _Fields fields = findByThriftId(fieldId);
4177         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4178         return fields;
4179       }
4180
4181       /**
4182        * Find the _Fields constant that matches name, or null if its not found.
4183        */
4184       public static _Fields findByName(String name) {
4185         return byName.get(name);
4186       }
4187
4188       private final short _thriftId;
4189       private final String _fieldName;
4190
4191       _Fields(short thriftId, String fieldName) {
4192         _thriftId = thriftId;
4193         _fieldName = fieldName;
4194       }
4195
4196       public short getThriftFieldId() {
4197         return _thriftId;
4198       }
4199
4200       public String getFieldName() {
4201         return _fieldName;
4202       }
4203     }
4204
4205     // isset id assignments
4206     private static final int __SUCCESS_ISSET_ID = 0;
4207     private byte __isset_bitfield = 0;
4208     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4209     static {
4210       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4211       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4212           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4213       metaDataMap = Collections.unmodifiableMap(tmpMap);
4214       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_result.class, metaDataMap);
4215     }
4216
4217     public startBgp_result() {
4218     }
4219
4220     public startBgp_result(
4221       int success)
4222     {
4223       this();
4224       this.success = success;
4225       setSuccessIsSet(true);
4226     }
4227
4228     /**
4229      * Performs a deep copy on <i>other</i>.
4230      */
4231     public startBgp_result(startBgp_result other) {
4232       __isset_bitfield = other.__isset_bitfield;
4233       this.success = other.success;
4234     }
4235
4236     public startBgp_result deepCopy() {
4237       return new startBgp_result(this);
4238     }
4239
4240     @Override
4241     public void clear() {
4242       setSuccessIsSet(false);
4243       this.success = 0;
4244     }
4245
4246     public int getSuccess() {
4247       return this.success;
4248     }
4249
4250     public startBgp_result setSuccess(int success) {
4251       this.success = success;
4252       setSuccessIsSet(true);
4253       return this;
4254     }
4255
4256     public void unsetSuccess() {
4257       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4258     }
4259
4260     /** Returns true if field success is set (has been assigned a value) and false otherwise */
4261     public boolean isSetSuccess() {
4262       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4263     }
4264
4265     public void setSuccessIsSet(boolean value) {
4266       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
4267     }
4268
4269     public void setFieldValue(_Fields field, Object value) {
4270       switch (field) {
4271       case SUCCESS:
4272         if (value == null) {
4273           unsetSuccess();
4274         } else {
4275           setSuccess((Integer)value);
4276         }
4277         break;
4278
4279       }
4280     }
4281
4282     public Object getFieldValue(_Fields field) {
4283       switch (field) {
4284       case SUCCESS:
4285         return Integer.valueOf(getSuccess());
4286
4287       }
4288       throw new IllegalStateException();
4289     }
4290
4291     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4292     public boolean isSet(_Fields field) {
4293       if (field == null) {
4294         throw new IllegalArgumentException();
4295       }
4296
4297       switch (field) {
4298       case SUCCESS:
4299         return isSetSuccess();
4300       }
4301       throw new IllegalStateException();
4302     }
4303
4304     @Override
4305     public boolean equals(Object that) {
4306       if (that == null)
4307         return false;
4308       if (that instanceof startBgp_result)
4309         return this.equals((startBgp_result)that);
4310       return false;
4311     }
4312
4313     public boolean equals(startBgp_result that) {
4314       if (that == null)
4315         return false;
4316
4317       boolean this_present_success = true;
4318       boolean that_present_success = true;
4319       if (this_present_success || that_present_success) {
4320         if (!(this_present_success && that_present_success))
4321           return false;
4322         if (this.success != that.success)
4323           return false;
4324       }
4325
4326       return true;
4327     }
4328
4329     @Override
4330     public int hashCode() {
4331       return 0;
4332     }
4333
4334     @Override
4335     public int compareTo(startBgp_result other) {
4336       if (!getClass().equals(other.getClass())) {
4337         return getClass().getName().compareTo(other.getClass().getName());
4338       }
4339
4340       int lastComparison = 0;
4341
4342       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
4343       if (lastComparison != 0) {
4344         return lastComparison;
4345       }
4346       if (isSetSuccess()) {
4347         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
4348         if (lastComparison != 0) {
4349           return lastComparison;
4350         }
4351       }
4352       return 0;
4353     }
4354
4355     public _Fields fieldForId(int fieldId) {
4356       return _Fields.findByThriftId(fieldId);
4357     }
4358
4359     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4360       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4361     }
4362
4363     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4364       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4365       }
4366
4367     @Override
4368     public String toString() {
4369       StringBuilder sb = new StringBuilder("startBgp_result(");
4370       boolean first = true;
4371
4372       sb.append("success:");
4373       sb.append(this.success);
4374       first = false;
4375       sb.append(")");
4376       return sb.toString();
4377     }
4378
4379     public void validate() throws org.apache.thrift.TException {
4380       // check for required fields
4381       // check for sub-struct validity
4382     }
4383
4384     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4385       try {
4386         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4387       } catch (org.apache.thrift.TException te) {
4388         throw new java.io.IOException(te);
4389       }
4390     }
4391
4392     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4393       try {
4394         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4395         __isset_bitfield = 0;
4396         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4397       } catch (org.apache.thrift.TException te) {
4398         throw new java.io.IOException(te);
4399       }
4400     }
4401
4402     private static class startBgp_resultStandardSchemeFactory implements SchemeFactory {
4403       public startBgp_resultStandardScheme getScheme() {
4404         return new startBgp_resultStandardScheme();
4405       }
4406     }
4407
4408     private static class startBgp_resultStandardScheme extends StandardScheme<startBgp_result> {
4409
4410       public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_result struct) throws org.apache.thrift.TException {
4411         org.apache.thrift.protocol.TField schemeField;
4412         iprot.readStructBegin();
4413         while (true)
4414         {
4415           schemeField = iprot.readFieldBegin();
4416           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
4417             break;
4418           }
4419           switch (schemeField.id) {
4420             case 0: // SUCCESS
4421               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4422                 struct.success = iprot.readI32();
4423                 struct.setSuccessIsSet(true);
4424               } else { 
4425                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4426               }
4427               break;
4428             default:
4429               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4430           }
4431           iprot.readFieldEnd();
4432         }
4433         iprot.readStructEnd();
4434
4435         // check for required fields of primitive type, which can't be checked in the validate method
4436         struct.validate();
4437       }
4438
4439       public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_result struct) throws org.apache.thrift.TException {
4440         struct.validate();
4441
4442         oprot.writeStructBegin(STRUCT_DESC);
4443         if (struct.isSetSuccess()) {
4444           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4445           oprot.writeI32(struct.success);
4446           oprot.writeFieldEnd();
4447         }
4448         oprot.writeFieldStop();
4449         oprot.writeStructEnd();
4450       }
4451
4452     }
4453
4454     private static class startBgp_resultTupleSchemeFactory implements SchemeFactory {
4455       public startBgp_resultTupleScheme getScheme() {
4456         return new startBgp_resultTupleScheme();
4457       }
4458     }
4459
4460     private static class startBgp_resultTupleScheme extends TupleScheme<startBgp_result> {
4461
4462       @Override
4463       public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
4464         TTupleProtocol oprot = (TTupleProtocol) prot;
4465         BitSet optionals = new BitSet();
4466         if (struct.isSetSuccess()) {
4467           optionals.set(0);
4468         }
4469         oprot.writeBitSet(optionals, 1);
4470         if (struct.isSetSuccess()) {
4471           oprot.writeI32(struct.success);
4472         }
4473       }
4474
4475       @Override
4476       public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
4477         TTupleProtocol iprot = (TTupleProtocol) prot;
4478         BitSet incoming = iprot.readBitSet(1);
4479         if (incoming.get(0)) {
4480           struct.success = iprot.readI32();
4481           struct.setSuccessIsSet(true);
4482         }
4483       }
4484     }
4485
4486   }
4487
4488   public static class stopBgp_args implements org.apache.thrift.TBase<stopBgp_args, stopBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_args>   {
4489     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_args");
4490
4491     private static final org.apache.thrift.protocol.TField AS_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("asNumber", org.apache.thrift.protocol.TType.I64, (short)1);
4492
4493     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4494     static {
4495       schemes.put(StandardScheme.class, new stopBgp_argsStandardSchemeFactory());
4496       schemes.put(TupleScheme.class, new stopBgp_argsTupleSchemeFactory());
4497     }
4498
4499     public long asNumber; // required
4500
4501     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4502     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4503       AS_NUMBER((short)1, "asNumber");
4504
4505       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4506
4507       static {
4508         for (_Fields field : EnumSet.allOf(_Fields.class)) {
4509           byName.put(field.getFieldName(), field);
4510         }
4511       }
4512
4513       /**
4514        * Find the _Fields constant that matches fieldId, or null if its not found.
4515        */
4516       public static _Fields findByThriftId(int fieldId) {
4517         switch(fieldId) {
4518           case 1: // AS_NUMBER
4519             return AS_NUMBER;
4520           default:
4521             return null;
4522         }
4523       }
4524
4525       /**
4526        * Find the _Fields constant that matches fieldId, throwing an exception
4527        * if it is not found.
4528        */
4529       public static _Fields findByThriftIdOrThrow(int fieldId) {
4530         _Fields fields = findByThriftId(fieldId);
4531         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4532         return fields;
4533       }
4534
4535       /**
4536        * Find the _Fields constant that matches name, or null if its not found.
4537        */
4538       public static _Fields findByName(String name) {
4539         return byName.get(name);
4540       }
4541
4542       private final short _thriftId;
4543       private final String _fieldName;
4544
4545       _Fields(short thriftId, String fieldName) {
4546         _thriftId = thriftId;
4547         _fieldName = fieldName;
4548       }
4549
4550       public short getThriftFieldId() {
4551         return _thriftId;
4552       }
4553
4554       public String getFieldName() {
4555         return _fieldName;
4556       }
4557     }
4558
4559     // isset id assignments
4560     private static final int __ASNUMBER_ISSET_ID = 0;
4561     private byte __isset_bitfield = 0;
4562     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4563     static {
4564       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4565       tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4566           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4567       metaDataMap = Collections.unmodifiableMap(tmpMap);
4568       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_args.class, metaDataMap);
4569     }
4570
4571     public stopBgp_args() {
4572     }
4573
4574     public stopBgp_args(
4575       long asNumber)
4576     {
4577       this();
4578       this.asNumber = asNumber;
4579       setAsNumberIsSet(true);
4580     }
4581
4582     /**
4583      * Performs a deep copy on <i>other</i>.
4584      */
4585     public stopBgp_args(stopBgp_args other) {
4586       __isset_bitfield = other.__isset_bitfield;
4587       this.asNumber = other.asNumber;
4588     }
4589
4590     public stopBgp_args deepCopy() {
4591       return new stopBgp_args(this);
4592     }
4593
4594     @Override
4595     public void clear() {
4596       setAsNumberIsSet(false);
4597       this.asNumber = 0;
4598     }
4599
4600     public long getAsNumber() {
4601       return this.asNumber;
4602     }
4603
4604     public stopBgp_args setAsNumber(long asNumber) {
4605       this.asNumber = asNumber;
4606       setAsNumberIsSet(true);
4607       return this;
4608     }
4609
4610     public void unsetAsNumber() {
4611       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4612     }
4613
4614     /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
4615     public boolean isSetAsNumber() {
4616       return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4617     }
4618
4619     public void setAsNumberIsSet(boolean value) {
4620       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
4621     }
4622
4623     public void setFieldValue(_Fields field, Object value) {
4624       switch (field) {
4625       case AS_NUMBER:
4626         if (value == null) {
4627           unsetAsNumber();
4628         } else {
4629           setAsNumber((Long)value);
4630         }
4631         break;
4632
4633       }
4634     }
4635
4636     public Object getFieldValue(_Fields field) {
4637       switch (field) {
4638       case AS_NUMBER:
4639         return Long.valueOf(getAsNumber());
4640
4641       }
4642       throw new IllegalStateException();
4643     }
4644
4645     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4646     public boolean isSet(_Fields field) {
4647       if (field == null) {
4648         throw new IllegalArgumentException();
4649       }
4650
4651       switch (field) {
4652       case AS_NUMBER:
4653         return isSetAsNumber();
4654       }
4655       throw new IllegalStateException();
4656     }
4657
4658     @Override
4659     public boolean equals(Object that) {
4660       if (that == null)
4661         return false;
4662       if (that instanceof stopBgp_args)
4663         return this.equals((stopBgp_args)that);
4664       return false;
4665     }
4666
4667     public boolean equals(stopBgp_args that) {
4668       if (that == null)
4669         return false;
4670
4671       boolean this_present_asNumber = true;
4672       boolean that_present_asNumber = true;
4673       if (this_present_asNumber || that_present_asNumber) {
4674         if (!(this_present_asNumber && that_present_asNumber))
4675           return false;
4676         if (this.asNumber != that.asNumber)
4677           return false;
4678       }
4679
4680       return true;
4681     }
4682
4683     @Override
4684     public int hashCode() {
4685       return 0;
4686     }
4687
4688     @Override
4689     public int compareTo(stopBgp_args other) {
4690       if (!getClass().equals(other.getClass())) {
4691         return getClass().getName().compareTo(other.getClass().getName());
4692       }
4693
4694       int lastComparison = 0;
4695
4696       lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
4697       if (lastComparison != 0) {
4698         return lastComparison;
4699       }
4700       if (isSetAsNumber()) {
4701         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
4702         if (lastComparison != 0) {
4703           return lastComparison;
4704         }
4705       }
4706       return 0;
4707     }
4708
4709     public _Fields fieldForId(int fieldId) {
4710       return _Fields.findByThriftId(fieldId);
4711     }
4712
4713     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4714       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4715     }
4716
4717     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4718       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4719     }
4720
4721     @Override
4722     public String toString() {
4723       StringBuilder sb = new StringBuilder("stopBgp_args(");
4724       boolean first = true;
4725
4726       sb.append("asNumber:");
4727       sb.append(this.asNumber);
4728       first = false;
4729       sb.append(")");
4730       return sb.toString();
4731     }
4732
4733     public void validate() throws org.apache.thrift.TException {
4734       // check for required fields
4735       // check for sub-struct validity
4736     }
4737
4738     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4739       try {
4740         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4741       } catch (org.apache.thrift.TException te) {
4742         throw new java.io.IOException(te);
4743       }
4744     }
4745
4746     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4747       try {
4748         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4749         __isset_bitfield = 0;
4750         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4751       } catch (org.apache.thrift.TException te) {
4752         throw new java.io.IOException(te);
4753       }
4754     }
4755
4756     private static class stopBgp_argsStandardSchemeFactory implements SchemeFactory {
4757       public stopBgp_argsStandardScheme getScheme() {
4758         return new stopBgp_argsStandardScheme();
4759       }
4760     }
4761
4762     private static class stopBgp_argsStandardScheme extends StandardScheme<stopBgp_args> {
4763
4764       public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_args struct) throws org.apache.thrift.TException {
4765         org.apache.thrift.protocol.TField schemeField;
4766         iprot.readStructBegin();
4767         while (true)
4768         {
4769           schemeField = iprot.readFieldBegin();
4770           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
4771             break;
4772           }
4773           switch (schemeField.id) {
4774             case 1: // AS_NUMBER
4775               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
4776                 struct.asNumber = iprot.readI64();
4777                 struct.setAsNumberIsSet(true);
4778               } else { 
4779                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4780               }
4781               break;
4782             default:
4783               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4784           }
4785           iprot.readFieldEnd();
4786         }
4787         iprot.readStructEnd();
4788
4789         // check for required fields of primitive type, which can't be checked in the validate method
4790         struct.validate();
4791       }
4792
4793       public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_args struct) throws org.apache.thrift.TException {
4794         struct.validate();
4795
4796         oprot.writeStructBegin(STRUCT_DESC);
4797         oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
4798         oprot.writeI64(struct.asNumber);
4799         oprot.writeFieldEnd();
4800         oprot.writeFieldStop();
4801         oprot.writeStructEnd();
4802       }
4803
4804     }
4805
4806     private static class stopBgp_argsTupleSchemeFactory implements SchemeFactory {
4807       public stopBgp_argsTupleScheme getScheme() {
4808         return new stopBgp_argsTupleScheme();
4809       }
4810     }
4811
4812     private static class stopBgp_argsTupleScheme extends TupleScheme<stopBgp_args> {
4813
4814       @Override
4815       public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
4816         TTupleProtocol oprot = (TTupleProtocol) prot;
4817         BitSet optionals = new BitSet();
4818         if (struct.isSetAsNumber()) {
4819           optionals.set(0);
4820         }
4821         oprot.writeBitSet(optionals, 1);
4822         if (struct.isSetAsNumber()) {
4823           oprot.writeI64(struct.asNumber);
4824         }
4825       }
4826
4827       @Override
4828       public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
4829         TTupleProtocol iprot = (TTupleProtocol) prot;
4830         BitSet incoming = iprot.readBitSet(1);
4831         if (incoming.get(0)) {
4832           struct.asNumber = iprot.readI64();
4833           struct.setAsNumberIsSet(true);
4834         }
4835       }
4836     }
4837
4838   }
4839
4840   public static class stopBgp_result implements org.apache.thrift.TBase<stopBgp_result, stopBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_result>   {
4841     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_result");
4842
4843     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);
4844
4845     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4846     static {
4847       schemes.put(StandardScheme.class, new stopBgp_resultStandardSchemeFactory());
4848       schemes.put(TupleScheme.class, new stopBgp_resultTupleSchemeFactory());
4849     }
4850
4851     public int success; // required
4852
4853     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4854     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4855       SUCCESS((short)0, "success");
4856
4857       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4858
4859       static {
4860         for (_Fields field : EnumSet.allOf(_Fields.class)) {
4861           byName.put(field.getFieldName(), field);
4862         }
4863       }
4864
4865       /**
4866        * Find the _Fields constant that matches fieldId, or null if its not found.
4867        */
4868       public static _Fields findByThriftId(int fieldId) {
4869         switch(fieldId) {
4870           case 0: // SUCCESS
4871             return SUCCESS;
4872           default:
4873             return null;
4874         }
4875       }
4876
4877       /**
4878        * Find the _Fields constant that matches fieldId, throwing an exception
4879        * if it is not found.
4880        */
4881       public static _Fields findByThriftIdOrThrow(int fieldId) {
4882         _Fields fields = findByThriftId(fieldId);
4883         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4884         return fields;
4885       }
4886
4887       /**
4888        * Find the _Fields constant that matches name, or null if its not found.
4889        */
4890       public static _Fields findByName(String name) {
4891         return byName.get(name);
4892       }
4893
4894       private final short _thriftId;
4895       private final String _fieldName;
4896
4897       _Fields(short thriftId, String fieldName) {
4898         _thriftId = thriftId;
4899         _fieldName = fieldName;
4900       }
4901
4902       public short getThriftFieldId() {
4903         return _thriftId;
4904       }
4905
4906       public String getFieldName() {
4907         return _fieldName;
4908       }
4909     }
4910
4911     // isset id assignments
4912     private static final int __SUCCESS_ISSET_ID = 0;
4913     private byte __isset_bitfield = 0;
4914     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4915     static {
4916       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4917       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4918           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4919       metaDataMap = Collections.unmodifiableMap(tmpMap);
4920       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_result.class, metaDataMap);
4921     }
4922
4923     public stopBgp_result() {
4924     }
4925
4926     public stopBgp_result(
4927       int success)
4928     {
4929       this();
4930       this.success = success;
4931       setSuccessIsSet(true);
4932     }
4933
4934     /**
4935      * Performs a deep copy on <i>other</i>.
4936      */
4937     public stopBgp_result(stopBgp_result other) {
4938       __isset_bitfield = other.__isset_bitfield;
4939       this.success = other.success;
4940     }
4941
4942     public stopBgp_result deepCopy() {
4943       return new stopBgp_result(this);
4944     }
4945
4946     @Override
4947     public void clear() {
4948       setSuccessIsSet(false);
4949       this.success = 0;
4950     }
4951
4952     public int getSuccess() {
4953       return this.success;
4954     }
4955
4956     public stopBgp_result setSuccess(int success) {
4957       this.success = success;
4958       setSuccessIsSet(true);
4959       return this;
4960     }
4961
4962     public void unsetSuccess() {
4963       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4964     }
4965
4966     /** Returns true if field success is set (has been assigned a value) and false otherwise */
4967     public boolean isSetSuccess() {
4968       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4969     }
4970
4971     public void setSuccessIsSet(boolean value) {
4972       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
4973     }
4974
4975     public void setFieldValue(_Fields field, Object value) {
4976       switch (field) {
4977       case SUCCESS:
4978         if (value == null) {
4979           unsetSuccess();
4980         } else {
4981           setSuccess((Integer)value);
4982         }
4983         break;
4984
4985       }
4986     }
4987
4988     public Object getFieldValue(_Fields field) {
4989       switch (field) {
4990       case SUCCESS:
4991         return Integer.valueOf(getSuccess());
4992
4993       }
4994       throw new IllegalStateException();
4995     }
4996
4997     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4998     public boolean isSet(_Fields field) {
4999       if (field == null) {
5000         throw new IllegalArgumentException();
5001       }
5002
5003       switch (field) {
5004       case SUCCESS:
5005         return isSetSuccess();
5006       }
5007       throw new IllegalStateException();
5008     }
5009
5010     @Override
5011     public boolean equals(Object that) {
5012       if (that == null)
5013         return false;
5014       if (that instanceof stopBgp_result)
5015         return this.equals((stopBgp_result)that);
5016       return false;
5017     }
5018
5019     public boolean equals(stopBgp_result that) {
5020       if (that == null)
5021         return false;
5022
5023       boolean this_present_success = true;
5024       boolean that_present_success = true;
5025       if (this_present_success || that_present_success) {
5026         if (!(this_present_success && that_present_success))
5027           return false;
5028         if (this.success != that.success)
5029           return false;
5030       }
5031
5032       return true;
5033     }
5034
5035     @Override
5036     public int hashCode() {
5037       return 0;
5038     }
5039
5040     @Override
5041     public int compareTo(stopBgp_result other) {
5042       if (!getClass().equals(other.getClass())) {
5043         return getClass().getName().compareTo(other.getClass().getName());
5044       }
5045
5046       int lastComparison = 0;
5047
5048       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5049       if (lastComparison != 0) {
5050         return lastComparison;
5051       }
5052       if (isSetSuccess()) {
5053         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5054         if (lastComparison != 0) {
5055           return lastComparison;
5056         }
5057       }
5058       return 0;
5059     }
5060
5061     public _Fields fieldForId(int fieldId) {
5062       return _Fields.findByThriftId(fieldId);
5063     }
5064
5065     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5066       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5067     }
5068
5069     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5070       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5071       }
5072
5073     @Override
5074     public String toString() {
5075       StringBuilder sb = new StringBuilder("stopBgp_result(");
5076       boolean first = true;
5077
5078       sb.append("success:");
5079       sb.append(this.success);
5080       first = false;
5081       sb.append(")");
5082       return sb.toString();
5083     }
5084
5085     public void validate() throws org.apache.thrift.TException {
5086       // check for required fields
5087       // check for sub-struct validity
5088     }
5089
5090     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5091       try {
5092         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5093       } catch (org.apache.thrift.TException te) {
5094         throw new java.io.IOException(te);
5095       }
5096     }
5097
5098     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5099       try {
5100         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5101         __isset_bitfield = 0;
5102         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5103       } catch (org.apache.thrift.TException te) {
5104         throw new java.io.IOException(te);
5105       }
5106     }
5107
5108     private static class stopBgp_resultStandardSchemeFactory implements SchemeFactory {
5109       public stopBgp_resultStandardScheme getScheme() {
5110         return new stopBgp_resultStandardScheme();
5111       }
5112     }
5113
5114     private static class stopBgp_resultStandardScheme extends StandardScheme<stopBgp_result> {
5115
5116       public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_result struct) throws org.apache.thrift.TException {
5117         org.apache.thrift.protocol.TField schemeField;
5118         iprot.readStructBegin();
5119         while (true)
5120         {
5121           schemeField = iprot.readFieldBegin();
5122           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
5123             break;
5124           }
5125           switch (schemeField.id) {
5126             case 0: // SUCCESS
5127               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
5128                 struct.success = iprot.readI32();
5129                 struct.setSuccessIsSet(true);
5130               } else { 
5131                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5132               }
5133               break;
5134             default:
5135               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5136           }
5137           iprot.readFieldEnd();
5138         }
5139         iprot.readStructEnd();
5140
5141         // check for required fields of primitive type, which can't be checked in the validate method
5142         struct.validate();
5143       }
5144
5145       public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_result struct) throws org.apache.thrift.TException {
5146         struct.validate();
5147
5148         oprot.writeStructBegin(STRUCT_DESC);
5149         if (struct.isSetSuccess()) {
5150           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5151           oprot.writeI32(struct.success);
5152           oprot.writeFieldEnd();
5153         }
5154         oprot.writeFieldStop();
5155         oprot.writeStructEnd();
5156       }
5157
5158     }
5159
5160     private static class stopBgp_resultTupleSchemeFactory implements SchemeFactory {
5161       public stopBgp_resultTupleScheme getScheme() {
5162         return new stopBgp_resultTupleScheme();
5163       }
5164     }
5165
5166     private static class stopBgp_resultTupleScheme extends TupleScheme<stopBgp_result> {
5167
5168       @Override
5169       public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
5170         TTupleProtocol oprot = (TTupleProtocol) prot;
5171         BitSet optionals = new BitSet();
5172         if (struct.isSetSuccess()) {
5173           optionals.set(0);
5174         }
5175         oprot.writeBitSet(optionals, 1);
5176         if (struct.isSetSuccess()) {
5177           oprot.writeI32(struct.success);
5178         }
5179       }
5180
5181       @Override
5182       public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
5183         TTupleProtocol iprot = (TTupleProtocol) prot;
5184         BitSet incoming = iprot.readBitSet(1);
5185         if (incoming.get(0)) {
5186           struct.success = iprot.readI32();
5187           struct.setSuccessIsSet(true);
5188         }
5189       }
5190     }
5191
5192   }
5193
5194   public static class createPeer_args implements org.apache.thrift.TBase<createPeer_args, createPeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_args>   {
5195     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_args");
5196
5197     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);
5198     private static final org.apache.thrift.protocol.TField AS_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("asNumber", org.apache.thrift.protocol.TType.I64, (short)2);
5199
5200     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5201     static {
5202       schemes.put(StandardScheme.class, new createPeer_argsStandardSchemeFactory());
5203       schemes.put(TupleScheme.class, new createPeer_argsTupleSchemeFactory());
5204     }
5205
5206     public String ipAddress; // required
5207     public long asNumber; // required
5208
5209     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5210     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5211       IP_ADDRESS((short)1, "ipAddress"),
5212       AS_NUMBER((short)2, "asNumber");
5213
5214       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5215
5216       static {
5217         for (_Fields field : EnumSet.allOf(_Fields.class)) {
5218           byName.put(field.getFieldName(), field);
5219         }
5220       }
5221
5222       /**
5223        * Find the _Fields constant that matches fieldId, or null if its not found.
5224        */
5225       public static _Fields findByThriftId(int fieldId) {
5226         switch(fieldId) {
5227           case 1: // IP_ADDRESS
5228             return IP_ADDRESS;
5229           case 2: // AS_NUMBER
5230             return AS_NUMBER;
5231           default:
5232             return null;
5233         }
5234       }
5235
5236       /**
5237        * Find the _Fields constant that matches fieldId, throwing an exception
5238        * if it is not found.
5239        */
5240       public static _Fields findByThriftIdOrThrow(int fieldId) {
5241         _Fields fields = findByThriftId(fieldId);
5242         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5243         return fields;
5244       }
5245
5246       /**
5247        * Find the _Fields constant that matches name, or null if its not found.
5248        */
5249       public static _Fields findByName(String name) {
5250         return byName.get(name);
5251       }
5252
5253       private final short _thriftId;
5254       private final String _fieldName;
5255
5256       _Fields(short thriftId, String fieldName) {
5257         _thriftId = thriftId;
5258         _fieldName = fieldName;
5259       }
5260
5261       public short getThriftFieldId() {
5262         return _thriftId;
5263       }
5264
5265       public String getFieldName() {
5266         return _fieldName;
5267       }
5268     }
5269
5270     // isset id assignments
5271     private static final int __ASNUMBER_ISSET_ID = 0;
5272     private byte __isset_bitfield = 0;
5273     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5274     static {
5275       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5276       tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5277           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5278       tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5279           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5280       metaDataMap = Collections.unmodifiableMap(tmpMap);
5281       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_args.class, metaDataMap);
5282     }
5283
5284     public createPeer_args() {
5285     }
5286
5287     public createPeer_args(
5288       String ipAddress,
5289       long asNumber)
5290     {
5291       this();
5292       this.ipAddress = ipAddress;
5293       this.asNumber = asNumber;
5294       setAsNumberIsSet(true);
5295     }
5296
5297     /**
5298      * Performs a deep copy on <i>other</i>.
5299      */
5300     public createPeer_args(createPeer_args other) {
5301       __isset_bitfield = other.__isset_bitfield;
5302       if (other.isSetIpAddress()) {
5303         this.ipAddress = other.ipAddress;
5304       }
5305       this.asNumber = other.asNumber;
5306     }
5307
5308     public createPeer_args deepCopy() {
5309       return new createPeer_args(this);
5310     }
5311
5312     @Override
5313     public void clear() {
5314       this.ipAddress = null;
5315       setAsNumberIsSet(false);
5316       this.asNumber = 0;
5317     }
5318
5319     public String getIpAddress() {
5320       return this.ipAddress;
5321     }
5322
5323     public createPeer_args setIpAddress(String ipAddress) {
5324       this.ipAddress = ipAddress;
5325       return this;
5326     }
5327
5328     public void unsetIpAddress() {
5329       this.ipAddress = null;
5330     }
5331
5332     /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
5333     public boolean isSetIpAddress() {
5334       return this.ipAddress != null;
5335     }
5336
5337     public void setIpAddressIsSet(boolean value) {
5338       if (!value) {
5339         this.ipAddress = null;
5340       }
5341     }
5342
5343     public long getAsNumber() {
5344       return this.asNumber;
5345     }
5346
5347     public createPeer_args setAsNumber(long asNumber) {
5348       this.asNumber = asNumber;
5349       setAsNumberIsSet(true);
5350       return this;
5351     }
5352
5353     public void unsetAsNumber() {
5354       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
5355     }
5356
5357     /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
5358     public boolean isSetAsNumber() {
5359       return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
5360     }
5361
5362     public void setAsNumberIsSet(boolean value) {
5363       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
5364     }
5365
5366     public void setFieldValue(_Fields field, Object value) {
5367       switch (field) {
5368       case IP_ADDRESS:
5369         if (value == null) {
5370           unsetIpAddress();
5371         } else {
5372           setIpAddress((String)value);
5373         }
5374         break;
5375
5376       case AS_NUMBER:
5377         if (value == null) {
5378           unsetAsNumber();
5379         } else {
5380           setAsNumber((Long)value);
5381         }
5382         break;
5383
5384       }
5385     }
5386
5387     public Object getFieldValue(_Fields field) {
5388       switch (field) {
5389       case IP_ADDRESS:
5390         return getIpAddress();
5391
5392       case AS_NUMBER:
5393         return Long.valueOf(getAsNumber());
5394
5395       }
5396       throw new IllegalStateException();
5397     }
5398
5399     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5400     public boolean isSet(_Fields field) {
5401       if (field == null) {
5402         throw new IllegalArgumentException();
5403       }
5404
5405       switch (field) {
5406       case IP_ADDRESS:
5407         return isSetIpAddress();
5408       case AS_NUMBER:
5409         return isSetAsNumber();
5410       }
5411       throw new IllegalStateException();
5412     }
5413
5414     @Override
5415     public boolean equals(Object that) {
5416       if (that == null)
5417         return false;
5418       if (that instanceof createPeer_args)
5419         return this.equals((createPeer_args)that);
5420       return false;
5421     }
5422
5423     public boolean equals(createPeer_args that) {
5424       if (that == null)
5425         return false;
5426
5427       boolean this_present_ipAddress = true && this.isSetIpAddress();
5428       boolean that_present_ipAddress = true && that.isSetIpAddress();
5429       if (this_present_ipAddress || that_present_ipAddress) {
5430         if (!(this_present_ipAddress && that_present_ipAddress))
5431           return false;
5432         if (!this.ipAddress.equals(that.ipAddress))
5433           return false;
5434       }
5435
5436       boolean this_present_asNumber = true;
5437       boolean that_present_asNumber = true;
5438       if (this_present_asNumber || that_present_asNumber) {
5439         if (!(this_present_asNumber && that_present_asNumber))
5440           return false;
5441         if (this.asNumber != that.asNumber)
5442           return false;
5443       }
5444
5445       return true;
5446     }
5447
5448     @Override
5449     public int hashCode() {
5450       return 0;
5451     }
5452
5453     @Override
5454     public int compareTo(createPeer_args other) {
5455       if (!getClass().equals(other.getClass())) {
5456         return getClass().getName().compareTo(other.getClass().getName());
5457       }
5458
5459       int lastComparison = 0;
5460
5461       lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
5462       if (lastComparison != 0) {
5463         return lastComparison;
5464       }
5465       if (isSetIpAddress()) {
5466         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
5467         if (lastComparison != 0) {
5468           return lastComparison;
5469         }
5470       }
5471       lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
5472       if (lastComparison != 0) {
5473         return lastComparison;
5474       }
5475       if (isSetAsNumber()) {
5476         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
5477         if (lastComparison != 0) {
5478           return lastComparison;
5479         }
5480       }
5481       return 0;
5482     }
5483
5484     public _Fields fieldForId(int fieldId) {
5485       return _Fields.findByThriftId(fieldId);
5486     }
5487
5488     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5489       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5490     }
5491
5492     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5493       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5494     }
5495
5496     @Override
5497     public String toString() {
5498       StringBuilder sb = new StringBuilder("createPeer_args(");
5499       boolean first = true;
5500
5501       sb.append("ipAddress:");
5502       if (this.ipAddress == null) {
5503         sb.append("null");
5504       } else {
5505         sb.append(this.ipAddress);
5506       }
5507       first = false;
5508       if (!first) sb.append(", ");
5509       sb.append("asNumber:");
5510       sb.append(this.asNumber);
5511       first = false;
5512       sb.append(")");
5513       return sb.toString();
5514     }
5515
5516     public void validate() throws org.apache.thrift.TException {
5517       // check for required fields
5518       // check for sub-struct validity
5519     }
5520
5521     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5522       try {
5523         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5524       } catch (org.apache.thrift.TException te) {
5525         throw new java.io.IOException(te);
5526       }
5527     }
5528
5529     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5530       try {
5531         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5532         __isset_bitfield = 0;
5533         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5534       } catch (org.apache.thrift.TException te) {
5535         throw new java.io.IOException(te);
5536       }
5537     }
5538
5539     private static class createPeer_argsStandardSchemeFactory implements SchemeFactory {
5540       public createPeer_argsStandardScheme getScheme() {
5541         return new createPeer_argsStandardScheme();
5542       }
5543     }
5544
5545     private static class createPeer_argsStandardScheme extends StandardScheme<createPeer_args> {
5546
5547       public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_args struct) throws org.apache.thrift.TException {
5548         org.apache.thrift.protocol.TField schemeField;
5549         iprot.readStructBegin();
5550         while (true)
5551         {
5552           schemeField = iprot.readFieldBegin();
5553           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
5554             break;
5555           }
5556           switch (schemeField.id) {
5557             case 1: // IP_ADDRESS
5558               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
5559                 struct.ipAddress = iprot.readString();
5560                 struct.setIpAddressIsSet(true);
5561               } else { 
5562                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5563               }
5564               break;
5565             case 2: // AS_NUMBER
5566               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
5567                 struct.asNumber = iprot.readI64();
5568                 struct.setAsNumberIsSet(true);
5569               } else { 
5570                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5571               }
5572               break;
5573             default:
5574               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5575           }
5576           iprot.readFieldEnd();
5577         }
5578         iprot.readStructEnd();
5579
5580         // check for required fields of primitive type, which can't be checked in the validate method
5581         struct.validate();
5582       }
5583
5584       public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_args struct) throws org.apache.thrift.TException {
5585         struct.validate();
5586
5587         oprot.writeStructBegin(STRUCT_DESC);
5588         if (struct.ipAddress != null) {
5589           oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
5590           oprot.writeString(struct.ipAddress);
5591           oprot.writeFieldEnd();
5592         }
5593         oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
5594         oprot.writeI64(struct.asNumber);
5595         oprot.writeFieldEnd();
5596         oprot.writeFieldStop();
5597         oprot.writeStructEnd();
5598       }
5599
5600     }
5601
5602     private static class createPeer_argsTupleSchemeFactory implements SchemeFactory {
5603       public createPeer_argsTupleScheme getScheme() {
5604         return new createPeer_argsTupleScheme();
5605       }
5606     }
5607
5608     private static class createPeer_argsTupleScheme extends TupleScheme<createPeer_args> {
5609
5610       @Override
5611       public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
5612         TTupleProtocol oprot = (TTupleProtocol) prot;
5613         BitSet optionals = new BitSet();
5614         if (struct.isSetIpAddress()) {
5615           optionals.set(0);
5616         }
5617         if (struct.isSetAsNumber()) {
5618           optionals.set(1);
5619         }
5620         oprot.writeBitSet(optionals, 2);
5621         if (struct.isSetIpAddress()) {
5622           oprot.writeString(struct.ipAddress);
5623         }
5624         if (struct.isSetAsNumber()) {
5625           oprot.writeI64(struct.asNumber);
5626         }
5627       }
5628
5629       @Override
5630       public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
5631         TTupleProtocol iprot = (TTupleProtocol) prot;
5632         BitSet incoming = iprot.readBitSet(2);
5633         if (incoming.get(0)) {
5634           struct.ipAddress = iprot.readString();
5635           struct.setIpAddressIsSet(true);
5636         }
5637         if (incoming.get(1)) {
5638           struct.asNumber = iprot.readI64();
5639           struct.setAsNumberIsSet(true);
5640         }
5641       }
5642     }
5643
5644   }
5645
5646   public static class createPeer_result implements org.apache.thrift.TBase<createPeer_result, createPeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_result>   {
5647     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_result");
5648
5649     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);
5650
5651     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5652     static {
5653       schemes.put(StandardScheme.class, new createPeer_resultStandardSchemeFactory());
5654       schemes.put(TupleScheme.class, new createPeer_resultTupleSchemeFactory());
5655     }
5656
5657     public int success; // required
5658
5659     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5660     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5661       SUCCESS((short)0, "success");
5662
5663       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5664
5665       static {
5666         for (_Fields field : EnumSet.allOf(_Fields.class)) {
5667           byName.put(field.getFieldName(), field);
5668         }
5669       }
5670
5671       /**
5672        * Find the _Fields constant that matches fieldId, or null if its not found.
5673        */
5674       public static _Fields findByThriftId(int fieldId) {
5675         switch(fieldId) {
5676           case 0: // SUCCESS
5677             return SUCCESS;
5678           default:
5679             return null;
5680         }
5681       }
5682
5683       /**
5684        * Find the _Fields constant that matches fieldId, throwing an exception
5685        * if it is not found.
5686        */
5687       public static _Fields findByThriftIdOrThrow(int fieldId) {
5688         _Fields fields = findByThriftId(fieldId);
5689         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5690         return fields;
5691       }
5692
5693       /**
5694        * Find the _Fields constant that matches name, or null if its not found.
5695        */
5696       public static _Fields findByName(String name) {
5697         return byName.get(name);
5698       }
5699
5700       private final short _thriftId;
5701       private final String _fieldName;
5702
5703       _Fields(short thriftId, String fieldName) {
5704         _thriftId = thriftId;
5705         _fieldName = fieldName;
5706       }
5707
5708       public short getThriftFieldId() {
5709         return _thriftId;
5710       }
5711
5712       public String getFieldName() {
5713         return _fieldName;
5714       }
5715     }
5716
5717     // isset id assignments
5718     private static final int __SUCCESS_ISSET_ID = 0;
5719     private byte __isset_bitfield = 0;
5720     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5721     static {
5722       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5723       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5724           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
5725       metaDataMap = Collections.unmodifiableMap(tmpMap);
5726       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_result.class, metaDataMap);
5727     }
5728
5729     public createPeer_result() {
5730     }
5731
5732     public createPeer_result(
5733       int success)
5734     {
5735       this();
5736       this.success = success;
5737       setSuccessIsSet(true);
5738     }
5739
5740     /**
5741      * Performs a deep copy on <i>other</i>.
5742      */
5743     public createPeer_result(createPeer_result other) {
5744       __isset_bitfield = other.__isset_bitfield;
5745       this.success = other.success;
5746     }
5747
5748     public createPeer_result deepCopy() {
5749       return new createPeer_result(this);
5750     }
5751
5752     @Override
5753     public void clear() {
5754       setSuccessIsSet(false);
5755       this.success = 0;
5756     }
5757
5758     public int getSuccess() {
5759       return this.success;
5760     }
5761
5762     public createPeer_result setSuccess(int success) {
5763       this.success = success;
5764       setSuccessIsSet(true);
5765       return this;
5766     }
5767
5768     public void unsetSuccess() {
5769       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5770     }
5771
5772     /** Returns true if field success is set (has been assigned a value) and false otherwise */
5773     public boolean isSetSuccess() {
5774       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5775     }
5776
5777     public void setSuccessIsSet(boolean value) {
5778       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
5779     }
5780
5781     public void setFieldValue(_Fields field, Object value) {
5782       switch (field) {
5783       case SUCCESS:
5784         if (value == null) {
5785           unsetSuccess();
5786         } else {
5787           setSuccess((Integer)value);
5788         }
5789         break;
5790
5791       }
5792     }
5793
5794     public Object getFieldValue(_Fields field) {
5795       switch (field) {
5796       case SUCCESS:
5797         return Integer.valueOf(getSuccess());
5798
5799       }
5800       throw new IllegalStateException();
5801     }
5802
5803     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5804     public boolean isSet(_Fields field) {
5805       if (field == null) {
5806         throw new IllegalArgumentException();
5807       }
5808
5809       switch (field) {
5810       case SUCCESS:
5811         return isSetSuccess();
5812       }
5813       throw new IllegalStateException();
5814     }
5815
5816     @Override
5817     public boolean equals(Object that) {
5818       if (that == null)
5819         return false;
5820       if (that instanceof createPeer_result)
5821         return this.equals((createPeer_result)that);
5822       return false;
5823     }
5824
5825     public boolean equals(createPeer_result that) {
5826       if (that == null)
5827         return false;
5828
5829       boolean this_present_success = true;
5830       boolean that_present_success = true;
5831       if (this_present_success || that_present_success) {
5832         if (!(this_present_success && that_present_success))
5833           return false;
5834         if (this.success != that.success)
5835           return false;
5836       }
5837
5838       return true;
5839     }
5840
5841     @Override
5842     public int hashCode() {
5843       return 0;
5844     }
5845
5846     @Override
5847     public int compareTo(createPeer_result other) {
5848       if (!getClass().equals(other.getClass())) {
5849         return getClass().getName().compareTo(other.getClass().getName());
5850       }
5851
5852       int lastComparison = 0;
5853
5854       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5855       if (lastComparison != 0) {
5856         return lastComparison;
5857       }
5858       if (isSetSuccess()) {
5859         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5860         if (lastComparison != 0) {
5861           return lastComparison;
5862         }
5863       }
5864       return 0;
5865     }
5866
5867     public _Fields fieldForId(int fieldId) {
5868       return _Fields.findByThriftId(fieldId);
5869     }
5870
5871     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5872       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5873     }
5874
5875     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5876       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5877       }
5878
5879     @Override
5880     public String toString() {
5881       StringBuilder sb = new StringBuilder("createPeer_result(");
5882       boolean first = true;
5883
5884       sb.append("success:");
5885       sb.append(this.success);
5886       first = false;
5887       sb.append(")");
5888       return sb.toString();
5889     }
5890
5891     public void validate() throws org.apache.thrift.TException {
5892       // check for required fields
5893       // check for sub-struct validity
5894     }
5895
5896     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5897       try {
5898         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5899       } catch (org.apache.thrift.TException te) {
5900         throw new java.io.IOException(te);
5901       }
5902     }
5903
5904     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5905       try {
5906         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5907         __isset_bitfield = 0;
5908         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5909       } catch (org.apache.thrift.TException te) {
5910         throw new java.io.IOException(te);
5911       }
5912     }
5913
5914     private static class createPeer_resultStandardSchemeFactory implements SchemeFactory {
5915       public createPeer_resultStandardScheme getScheme() {
5916         return new createPeer_resultStandardScheme();
5917       }
5918     }
5919
5920     private static class createPeer_resultStandardScheme extends StandardScheme<createPeer_result> {
5921
5922       public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_result struct) throws org.apache.thrift.TException {
5923         org.apache.thrift.protocol.TField schemeField;
5924         iprot.readStructBegin();
5925         while (true)
5926         {
5927           schemeField = iprot.readFieldBegin();
5928           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
5929             break;
5930           }
5931           switch (schemeField.id) {
5932             case 0: // SUCCESS
5933               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
5934                 struct.success = iprot.readI32();
5935                 struct.setSuccessIsSet(true);
5936               } else { 
5937                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5938               }
5939               break;
5940             default:
5941               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5942           }
5943           iprot.readFieldEnd();
5944         }
5945         iprot.readStructEnd();
5946
5947         // check for required fields of primitive type, which can't be checked in the validate method
5948         struct.validate();
5949       }
5950
5951       public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_result struct) throws org.apache.thrift.TException {
5952         struct.validate();
5953
5954         oprot.writeStructBegin(STRUCT_DESC);
5955         if (struct.isSetSuccess()) {
5956           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5957           oprot.writeI32(struct.success);
5958           oprot.writeFieldEnd();
5959         }
5960         oprot.writeFieldStop();
5961         oprot.writeStructEnd();
5962       }
5963
5964     }
5965
5966     private static class createPeer_resultTupleSchemeFactory implements SchemeFactory {
5967       public createPeer_resultTupleScheme getScheme() {
5968         return new createPeer_resultTupleScheme();
5969       }
5970     }
5971
5972     private static class createPeer_resultTupleScheme extends TupleScheme<createPeer_result> {
5973
5974       @Override
5975       public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
5976         TTupleProtocol oprot = (TTupleProtocol) prot;
5977         BitSet optionals = new BitSet();
5978         if (struct.isSetSuccess()) {
5979           optionals.set(0);
5980         }
5981         oprot.writeBitSet(optionals, 1);
5982         if (struct.isSetSuccess()) {
5983           oprot.writeI32(struct.success);
5984         }
5985       }
5986
5987       @Override
5988       public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
5989         TTupleProtocol iprot = (TTupleProtocol) prot;
5990         BitSet incoming = iprot.readBitSet(1);
5991         if (incoming.get(0)) {
5992           struct.success = iprot.readI32();
5993           struct.setSuccessIsSet(true);
5994         }
5995       }
5996     }
5997
5998   }
5999
6000   public static class setPeerSecret_args implements org.apache.thrift.TBase<setPeerSecret_args, setPeerSecret_args._Fields>, java.io.Serializable, Cloneable, Comparable<setPeerSecret_args>   {
6001     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setPeerSecret_args");
6002
6003     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);
6004     private static final org.apache.thrift.protocol.TField RFC2385_SHARED_SECRET_FIELD_DESC = new org.apache.thrift.protocol.TField("rfc2385_sharedSecret", org.apache.thrift.protocol.TType.STRING, (short)2);
6005
6006     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6007     static {
6008       schemes.put(StandardScheme.class, new setPeerSecret_argsStandardSchemeFactory());
6009       schemes.put(TupleScheme.class, new setPeerSecret_argsTupleSchemeFactory());
6010     }
6011
6012     public String ipAddress; // required
6013     public String rfc2385_sharedSecret; // required
6014
6015     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6016     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6017       IP_ADDRESS((short)1, "ipAddress"),
6018       RFC2385_SHARED_SECRET((short)2, "rfc2385_sharedSecret");
6019
6020       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6021
6022       static {
6023         for (_Fields field : EnumSet.allOf(_Fields.class)) {
6024           byName.put(field.getFieldName(), field);
6025         }
6026       }
6027
6028       /**
6029        * Find the _Fields constant that matches fieldId, or null if its not found.
6030        */
6031       public static _Fields findByThriftId(int fieldId) {
6032         switch(fieldId) {
6033           case 1: // IP_ADDRESS
6034             return IP_ADDRESS;
6035           case 2: // RFC2385_SHARED_SECRET
6036             return RFC2385_SHARED_SECRET;
6037           default:
6038             return null;
6039         }
6040       }
6041
6042       /**
6043        * Find the _Fields constant that matches fieldId, throwing an exception
6044        * if it is not found.
6045        */
6046       public static _Fields findByThriftIdOrThrow(int fieldId) {
6047         _Fields fields = findByThriftId(fieldId);
6048         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6049         return fields;
6050       }
6051
6052       /**
6053        * Find the _Fields constant that matches name, or null if its not found.
6054        */
6055       public static _Fields findByName(String name) {
6056         return byName.get(name);
6057       }
6058
6059       private final short _thriftId;
6060       private final String _fieldName;
6061
6062       _Fields(short thriftId, String fieldName) {
6063         _thriftId = thriftId;
6064         _fieldName = fieldName;
6065       }
6066
6067       public short getThriftFieldId() {
6068         return _thriftId;
6069       }
6070
6071       public String getFieldName() {
6072         return _fieldName;
6073       }
6074     }
6075
6076     // isset id assignments
6077     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6078     static {
6079       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6080       tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
6081           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6082       tmpMap.put(_Fields.RFC2385_SHARED_SECRET, new org.apache.thrift.meta_data.FieldMetaData("rfc2385_sharedSecret", org.apache.thrift.TFieldRequirementType.DEFAULT,
6083           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6084       metaDataMap = Collections.unmodifiableMap(tmpMap);
6085       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setPeerSecret_args.class, metaDataMap);
6086     }
6087
6088     public setPeerSecret_args() {
6089     }
6090
6091     public setPeerSecret_args(
6092       String ipAddress,
6093       String rfc2385_sharedSecret)
6094     {
6095       this();
6096       this.ipAddress = ipAddress;
6097       this.rfc2385_sharedSecret = rfc2385_sharedSecret;
6098     }
6099
6100     /**
6101      * Performs a deep copy on <i>other</i>.
6102      */
6103     public setPeerSecret_args(setPeerSecret_args other) {
6104       if (other.isSetIpAddress()) {
6105         this.ipAddress = other.ipAddress;
6106       }
6107       if (other.isSetRfc2385_sharedSecret()) {
6108         this.rfc2385_sharedSecret = other.rfc2385_sharedSecret;
6109       }
6110     }
6111
6112     public setPeerSecret_args deepCopy() {
6113       return new setPeerSecret_args(this);
6114     }
6115
6116     @Override
6117     public void clear() {
6118       this.ipAddress = null;
6119       this.rfc2385_sharedSecret = null;
6120     }
6121
6122     public String getIpAddress() {
6123       return this.ipAddress;
6124     }
6125
6126     public setPeerSecret_args setIpAddress(String ipAddress) {
6127       this.ipAddress = ipAddress;
6128       return this;
6129     }
6130
6131     public void unsetIpAddress() {
6132       this.ipAddress = null;
6133     }
6134
6135     /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
6136     public boolean isSetIpAddress() {
6137       return this.ipAddress != null;
6138     }
6139
6140     public void setIpAddressIsSet(boolean value) {
6141       if (!value) {
6142         this.ipAddress = null;
6143       }
6144     }
6145
6146     public String getRfc2385_sharedSecret() {
6147       return this.rfc2385_sharedSecret;
6148     }
6149
6150     public setPeerSecret_args setRfc2385_sharedSecret(String rfc2385_sharedSecret) {
6151       this.rfc2385_sharedSecret = rfc2385_sharedSecret;
6152       return this;
6153     }
6154
6155     public void unsetRfc2385_sharedSecret() {
6156       this.rfc2385_sharedSecret = null;
6157     }
6158
6159     /** Returns true if field rfc2385_sharedSecret is set (has been assigned a value) and false otherwise */
6160     public boolean isSetRfc2385_sharedSecret() {
6161       return this.rfc2385_sharedSecret != null;
6162     }
6163
6164     public void setRfc2385_sharedSecretIsSet(boolean value) {
6165       if (!value) {
6166         this.rfc2385_sharedSecret = null;
6167       }
6168     }
6169
6170     public void setFieldValue(_Fields field, Object value) {
6171       switch (field) {
6172       case IP_ADDRESS:
6173         if (value == null) {
6174           unsetIpAddress();
6175         } else {
6176           setIpAddress((String)value);
6177         }
6178         break;
6179
6180       case RFC2385_SHARED_SECRET:
6181         if (value == null) {
6182           unsetRfc2385_sharedSecret();
6183         } else {
6184           setRfc2385_sharedSecret((String)value);
6185         }
6186         break;
6187
6188       }
6189     }
6190
6191     public Object getFieldValue(_Fields field) {
6192       switch (field) {
6193       case IP_ADDRESS:
6194         return getIpAddress();
6195
6196       case RFC2385_SHARED_SECRET:
6197         return getRfc2385_sharedSecret();
6198
6199       }
6200       throw new IllegalStateException();
6201     }
6202
6203     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6204     public boolean isSet(_Fields field) {
6205       if (field == null) {
6206         throw new IllegalArgumentException();
6207       }
6208
6209       switch (field) {
6210       case IP_ADDRESS:
6211         return isSetIpAddress();
6212       case RFC2385_SHARED_SECRET:
6213         return isSetRfc2385_sharedSecret();
6214       }
6215       throw new IllegalStateException();
6216     }
6217
6218     @Override
6219     public boolean equals(Object that) {
6220       if (that == null)
6221         return false;
6222       if (that instanceof setPeerSecret_args)
6223         return this.equals((setPeerSecret_args)that);
6224       return false;
6225     }
6226
6227     public boolean equals(setPeerSecret_args that) {
6228       if (that == null)
6229         return false;
6230
6231       boolean this_present_ipAddress = true && this.isSetIpAddress();
6232       boolean that_present_ipAddress = true && that.isSetIpAddress();
6233       if (this_present_ipAddress || that_present_ipAddress) {
6234         if (!(this_present_ipAddress && that_present_ipAddress))
6235           return false;
6236         if (!this.ipAddress.equals(that.ipAddress))
6237           return false;
6238       }
6239
6240       boolean this_present_rfc2385_sharedSecret = true && this.isSetRfc2385_sharedSecret();
6241       boolean that_present_rfc2385_sharedSecret = true && that.isSetRfc2385_sharedSecret();
6242       if (this_present_rfc2385_sharedSecret || that_present_rfc2385_sharedSecret) {
6243         if (!(this_present_rfc2385_sharedSecret && that_present_rfc2385_sharedSecret))
6244           return false;
6245         if (!this.rfc2385_sharedSecret.equals(that.rfc2385_sharedSecret))
6246           return false;
6247       }
6248
6249       return true;
6250     }
6251
6252     @Override
6253     public int hashCode() {
6254       return 0;
6255     }
6256
6257     @Override
6258     public int compareTo(setPeerSecret_args other) {
6259       if (!getClass().equals(other.getClass())) {
6260         return getClass().getName().compareTo(other.getClass().getName());
6261       }
6262
6263       int lastComparison = 0;
6264
6265       lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
6266       if (lastComparison != 0) {
6267         return lastComparison;
6268       }
6269       if (isSetIpAddress()) {
6270         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
6271         if (lastComparison != 0) {
6272           return lastComparison;
6273         }
6274       }
6275       lastComparison = Boolean.valueOf(isSetRfc2385_sharedSecret()).compareTo(other.isSetRfc2385_sharedSecret());
6276       if (lastComparison != 0) {
6277         return lastComparison;
6278       }
6279       if (isSetRfc2385_sharedSecret()) {
6280         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rfc2385_sharedSecret, other.rfc2385_sharedSecret);
6281         if (lastComparison != 0) {
6282           return lastComparison;
6283         }
6284       }
6285       return 0;
6286     }
6287
6288     public _Fields fieldForId(int fieldId) {
6289       return _Fields.findByThriftId(fieldId);
6290     }
6291
6292     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6293       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6294     }
6295
6296     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6297       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6298     }
6299
6300     @Override
6301     public String toString() {
6302       StringBuilder sb = new StringBuilder("setPeerSecret_args(");
6303       boolean first = true;
6304
6305       sb.append("ipAddress:");
6306       if (this.ipAddress == null) {
6307         sb.append("null");
6308       } else {
6309         sb.append(this.ipAddress);
6310       }
6311       first = false;
6312       if (!first) sb.append(", ");
6313       sb.append("rfc2385_sharedSecret:");
6314       if (this.rfc2385_sharedSecret == null) {
6315         sb.append("null");
6316       } else {
6317         sb.append(this.rfc2385_sharedSecret);
6318       }
6319       first = false;
6320       sb.append(")");
6321       return sb.toString();
6322     }
6323
6324     public void validate() throws org.apache.thrift.TException {
6325       // check for required fields
6326       // check for sub-struct validity
6327     }
6328
6329     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6330       try {
6331         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6332       } catch (org.apache.thrift.TException te) {
6333         throw new java.io.IOException(te);
6334       }
6335     }
6336
6337     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6338       try {
6339         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6340       } catch (org.apache.thrift.TException te) {
6341         throw new java.io.IOException(te);
6342       }
6343     }
6344
6345     private static class setPeerSecret_argsStandardSchemeFactory implements SchemeFactory {
6346       public setPeerSecret_argsStandardScheme getScheme() {
6347         return new setPeerSecret_argsStandardScheme();
6348       }
6349     }
6350
6351     private static class setPeerSecret_argsStandardScheme extends StandardScheme<setPeerSecret_args> {
6352
6353       public void read(org.apache.thrift.protocol.TProtocol iprot, setPeerSecret_args struct) throws org.apache.thrift.TException {
6354         org.apache.thrift.protocol.TField schemeField;
6355         iprot.readStructBegin();
6356         while (true)
6357         {
6358           schemeField = iprot.readFieldBegin();
6359           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6360             break;
6361           }
6362           switch (schemeField.id) {
6363             case 1: // IP_ADDRESS
6364               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
6365                 struct.ipAddress = iprot.readString();
6366                 struct.setIpAddressIsSet(true);
6367               } else {
6368                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6369               }
6370               break;
6371             case 2: // RFC2385_SHARED_SECRET
6372               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
6373                 struct.rfc2385_sharedSecret = iprot.readString();
6374                 struct.setRfc2385_sharedSecretIsSet(true);
6375               } else {
6376                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6377               }
6378               break;
6379             default:
6380               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6381           }
6382           iprot.readFieldEnd();
6383         }
6384         iprot.readStructEnd();
6385
6386         // check for required fields of primitive type, which can't be checked in the validate method
6387         struct.validate();
6388       }
6389
6390       public void write(org.apache.thrift.protocol.TProtocol oprot, setPeerSecret_args struct) throws org.apache.thrift.TException {
6391         struct.validate();
6392
6393         oprot.writeStructBegin(STRUCT_DESC);
6394         if (struct.ipAddress != null) {
6395           oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
6396           oprot.writeString(struct.ipAddress);
6397           oprot.writeFieldEnd();
6398         }
6399         if (struct.rfc2385_sharedSecret != null) {
6400           oprot.writeFieldBegin(RFC2385_SHARED_SECRET_FIELD_DESC);
6401           oprot.writeString(struct.rfc2385_sharedSecret);
6402           oprot.writeFieldEnd();
6403         }
6404         oprot.writeFieldStop();
6405         oprot.writeStructEnd();
6406       }
6407
6408     }
6409
6410     private static class setPeerSecret_argsTupleSchemeFactory implements SchemeFactory {
6411       public setPeerSecret_argsTupleScheme getScheme() {
6412         return new setPeerSecret_argsTupleScheme();
6413       }
6414     }
6415
6416     private static class setPeerSecret_argsTupleScheme extends TupleScheme<setPeerSecret_args> {
6417
6418       @Override
6419       public void write(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_args struct) throws org.apache.thrift.TException {
6420         TTupleProtocol oprot = (TTupleProtocol) prot;
6421         BitSet optionals = new BitSet();
6422         if (struct.isSetIpAddress()) {
6423           optionals.set(0);
6424         }
6425         if (struct.isSetRfc2385_sharedSecret()) {
6426           optionals.set(1);
6427         }
6428         oprot.writeBitSet(optionals, 2);
6429         if (struct.isSetIpAddress()) {
6430           oprot.writeString(struct.ipAddress);
6431         }
6432         if (struct.isSetRfc2385_sharedSecret()) {
6433           oprot.writeString(struct.rfc2385_sharedSecret);
6434         }
6435       }
6436
6437       @Override
6438       public void read(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_args struct) throws org.apache.thrift.TException {
6439         TTupleProtocol iprot = (TTupleProtocol) prot;
6440         BitSet incoming = iprot.readBitSet(2);
6441         if (incoming.get(0)) {
6442           struct.ipAddress = iprot.readString();
6443           struct.setIpAddressIsSet(true);
6444         }
6445         if (incoming.get(1)) {
6446           struct.rfc2385_sharedSecret = iprot.readString();
6447           struct.setRfc2385_sharedSecretIsSet(true);
6448         }
6449       }
6450     }
6451
6452   }
6453
6454   public static class setPeerSecret_result implements org.apache.thrift.TBase<setPeerSecret_result, setPeerSecret_result._Fields>, java.io.Serializable, Cloneable, Comparable<setPeerSecret_result>   {
6455     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setPeerSecret_result");
6456
6457     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);
6458
6459     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6460     static {
6461       schemes.put(StandardScheme.class, new setPeerSecret_resultStandardSchemeFactory());
6462       schemes.put(TupleScheme.class, new setPeerSecret_resultTupleSchemeFactory());
6463     }
6464
6465     public int success; // required
6466
6467     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6468     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6469       SUCCESS((short)0, "success");
6470
6471       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6472
6473       static {
6474         for (_Fields field : EnumSet.allOf(_Fields.class)) {
6475           byName.put(field.getFieldName(), field);
6476         }
6477       }
6478
6479       /**
6480        * Find the _Fields constant that matches fieldId, or null if its not found.
6481        */
6482       public static _Fields findByThriftId(int fieldId) {
6483         switch(fieldId) {
6484           case 0: // SUCCESS
6485             return SUCCESS;
6486           default:
6487             return null;
6488         }
6489       }
6490
6491       /**
6492        * Find the _Fields constant that matches fieldId, throwing an exception
6493        * if it is not found.
6494        */
6495       public static _Fields findByThriftIdOrThrow(int fieldId) {
6496         _Fields fields = findByThriftId(fieldId);
6497         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6498         return fields;
6499       }
6500
6501       /**
6502        * Find the _Fields constant that matches name, or null if its not found.
6503        */
6504       public static _Fields findByName(String name) {
6505         return byName.get(name);
6506       }
6507
6508       private final short _thriftId;
6509       private final String _fieldName;
6510
6511       _Fields(short thriftId, String fieldName) {
6512         _thriftId = thriftId;
6513         _fieldName = fieldName;
6514       }
6515
6516       public short getThriftFieldId() {
6517         return _thriftId;
6518       }
6519
6520       public String getFieldName() {
6521         return _fieldName;
6522       }
6523     }
6524
6525     // isset id assignments
6526     private static final int __SUCCESS_ISSET_ID = 0;
6527     private byte __isset_bitfield = 0;
6528     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6529     static {
6530       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6531       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
6532           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6533       metaDataMap = Collections.unmodifiableMap(tmpMap);
6534       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setPeerSecret_result.class, metaDataMap);
6535     }
6536
6537     public setPeerSecret_result() {
6538     }
6539
6540     public setPeerSecret_result(
6541       int success)
6542     {
6543       this();
6544       this.success = success;
6545       setSuccessIsSet(true);
6546     }
6547
6548     /**
6549      * Performs a deep copy on <i>other</i>.
6550      */
6551     public setPeerSecret_result(setPeerSecret_result other) {
6552       __isset_bitfield = other.__isset_bitfield;
6553       this.success = other.success;
6554     }
6555
6556     public setPeerSecret_result deepCopy() {
6557       return new setPeerSecret_result(this);
6558     }
6559
6560     @Override
6561     public void clear() {
6562       setSuccessIsSet(false);
6563       this.success = 0;
6564     }
6565
6566     public int getSuccess() {
6567       return this.success;
6568     }
6569
6570     public setPeerSecret_result setSuccess(int success) {
6571       this.success = success;
6572       setSuccessIsSet(true);
6573       return this;
6574     }
6575
6576     public void unsetSuccess() {
6577       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6578     }
6579
6580     /** Returns true if field success is set (has been assigned a value) and false otherwise */
6581     public boolean isSetSuccess() {
6582       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6583     }
6584
6585     public void setSuccessIsSet(boolean value) {
6586       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
6587     }
6588
6589     public void setFieldValue(_Fields field, Object value) {
6590       switch (field) {
6591       case SUCCESS:
6592         if (value == null) {
6593           unsetSuccess();
6594         } else {
6595           setSuccess((Integer)value);
6596         }
6597         break;
6598
6599       }
6600     }
6601
6602     public Object getFieldValue(_Fields field) {
6603       switch (field) {
6604       case SUCCESS:
6605         return Integer.valueOf(getSuccess());
6606
6607       }
6608       throw new IllegalStateException();
6609     }
6610
6611     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6612     public boolean isSet(_Fields field) {
6613       if (field == null) {
6614         throw new IllegalArgumentException();
6615       }
6616
6617       switch (field) {
6618       case SUCCESS:
6619         return isSetSuccess();
6620       }
6621       throw new IllegalStateException();
6622     }
6623
6624     @Override
6625     public boolean equals(Object that) {
6626       if (that == null)
6627         return false;
6628       if (that instanceof setPeerSecret_result)
6629         return this.equals((setPeerSecret_result)that);
6630       return false;
6631     }
6632
6633     public boolean equals(setPeerSecret_result that) {
6634       if (that == null)
6635         return false;
6636
6637       boolean this_present_success = true;
6638       boolean that_present_success = true;
6639       if (this_present_success || that_present_success) {
6640         if (!(this_present_success && that_present_success))
6641           return false;
6642         if (this.success != that.success)
6643           return false;
6644       }
6645
6646       return true;
6647     }
6648
6649     @Override
6650     public int hashCode() {
6651       return 0;
6652     }
6653
6654     @Override
6655     public int compareTo(setPeerSecret_result other) {
6656       if (!getClass().equals(other.getClass())) {
6657         return getClass().getName().compareTo(other.getClass().getName());
6658       }
6659
6660       int lastComparison = 0;
6661
6662       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
6663       if (lastComparison != 0) {
6664         return lastComparison;
6665       }
6666       if (isSetSuccess()) {
6667         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
6668         if (lastComparison != 0) {
6669           return lastComparison;
6670         }
6671       }
6672       return 0;
6673     }
6674
6675     public _Fields fieldForId(int fieldId) {
6676       return _Fields.findByThriftId(fieldId);
6677     }
6678
6679     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6680       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6681     }
6682
6683     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6684       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6685       }
6686
6687     @Override
6688     public String toString() {
6689       StringBuilder sb = new StringBuilder("setPeerSecret_result(");
6690       boolean first = true;
6691
6692       sb.append("success:");
6693       sb.append(this.success);
6694       first = false;
6695       sb.append(")");
6696       return sb.toString();
6697     }
6698
6699     public void validate() throws org.apache.thrift.TException {
6700       // check for required fields
6701       // check for sub-struct validity
6702     }
6703
6704     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6705       try {
6706         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6707       } catch (org.apache.thrift.TException te) {
6708         throw new java.io.IOException(te);
6709       }
6710     }
6711
6712     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6713       try {
6714         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6715         __isset_bitfield = 0;
6716         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6717       } catch (org.apache.thrift.TException te) {
6718         throw new java.io.IOException(te);
6719       }
6720     }
6721
6722     private static class setPeerSecret_resultStandardSchemeFactory implements SchemeFactory {
6723       public setPeerSecret_resultStandardScheme getScheme() {
6724         return new setPeerSecret_resultStandardScheme();
6725       }
6726     }
6727
6728     private static class setPeerSecret_resultStandardScheme extends StandardScheme<setPeerSecret_result> {
6729
6730       public void read(org.apache.thrift.protocol.TProtocol iprot, setPeerSecret_result struct) throws org.apache.thrift.TException {
6731         org.apache.thrift.protocol.TField schemeField;
6732         iprot.readStructBegin();
6733         while (true)
6734         {
6735           schemeField = iprot.readFieldBegin();
6736           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6737             break;
6738           }
6739           switch (schemeField.id) {
6740             case 0: // SUCCESS
6741               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
6742                 struct.success = iprot.readI32();
6743                 struct.setSuccessIsSet(true);
6744               } else {
6745                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6746               }
6747               break;
6748             default:
6749               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6750           }
6751           iprot.readFieldEnd();
6752         }
6753         iprot.readStructEnd();
6754
6755         // check for required fields of primitive type, which can't be checked in the validate method
6756         struct.validate();
6757       }
6758
6759       public void write(org.apache.thrift.protocol.TProtocol oprot, setPeerSecret_result struct) throws org.apache.thrift.TException {
6760         struct.validate();
6761
6762         oprot.writeStructBegin(STRUCT_DESC);
6763         if (struct.isSetSuccess()) {
6764           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6765           oprot.writeI32(struct.success);
6766           oprot.writeFieldEnd();
6767         }
6768         oprot.writeFieldStop();
6769         oprot.writeStructEnd();
6770       }
6771
6772     }
6773
6774     private static class setPeerSecret_resultTupleSchemeFactory implements SchemeFactory {
6775       public setPeerSecret_resultTupleScheme getScheme() {
6776         return new setPeerSecret_resultTupleScheme();
6777       }
6778     }
6779
6780     private static class setPeerSecret_resultTupleScheme extends TupleScheme<setPeerSecret_result> {
6781
6782       @Override
6783       public void write(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_result struct) throws org.apache.thrift.TException {
6784         TTupleProtocol oprot = (TTupleProtocol) prot;
6785         BitSet optionals = new BitSet();
6786         if (struct.isSetSuccess()) {
6787           optionals.set(0);
6788         }
6789         oprot.writeBitSet(optionals, 1);
6790         if (struct.isSetSuccess()) {
6791           oprot.writeI32(struct.success);
6792         }
6793       }
6794
6795       @Override
6796       public void read(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_result struct) throws org.apache.thrift.TException {
6797         TTupleProtocol iprot = (TTupleProtocol) prot;
6798         BitSet incoming = iprot.readBitSet(1);
6799         if (incoming.get(0)) {
6800           struct.success = iprot.readI32();
6801           struct.setSuccessIsSet(true);
6802         }
6803       }
6804     }
6805
6806   }
6807
6808   public static class deletePeer_args implements org.apache.thrift.TBase<deletePeer_args, deletePeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_args>   {
6809     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_args");
6810
6811     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);
6812
6813     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6814     static {
6815       schemes.put(StandardScheme.class, new deletePeer_argsStandardSchemeFactory());
6816       schemes.put(TupleScheme.class, new deletePeer_argsTupleSchemeFactory());
6817     }
6818
6819     public String ipAddress; // required
6820
6821     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6822     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6823       IP_ADDRESS((short)1, "ipAddress");
6824
6825       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6826
6827       static {
6828         for (_Fields field : EnumSet.allOf(_Fields.class)) {
6829           byName.put(field.getFieldName(), field);
6830         }
6831       }
6832
6833       /**
6834        * Find the _Fields constant that matches fieldId, or null if its not found.
6835        */
6836       public static _Fields findByThriftId(int fieldId) {
6837         switch(fieldId) {
6838           case 1: // IP_ADDRESS
6839             return IP_ADDRESS;
6840           default:
6841             return null;
6842         }
6843       }
6844
6845       /**
6846        * Find the _Fields constant that matches fieldId, throwing an exception
6847        * if it is not found.
6848        */
6849       public static _Fields findByThriftIdOrThrow(int fieldId) {
6850         _Fields fields = findByThriftId(fieldId);
6851         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6852         return fields;
6853       }
6854
6855       /**
6856        * Find the _Fields constant that matches name, or null if its not found.
6857        */
6858       public static _Fields findByName(String name) {
6859         return byName.get(name);
6860       }
6861
6862       private final short _thriftId;
6863       private final String _fieldName;
6864
6865       _Fields(short thriftId, String fieldName) {
6866         _thriftId = thriftId;
6867         _fieldName = fieldName;
6868       }
6869
6870       public short getThriftFieldId() {
6871         return _thriftId;
6872       }
6873
6874       public String getFieldName() {
6875         return _fieldName;
6876       }
6877     }
6878
6879     // isset id assignments
6880     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6881     static {
6882       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6883       tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6884           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6885       metaDataMap = Collections.unmodifiableMap(tmpMap);
6886       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_args.class, metaDataMap);
6887     }
6888
6889     public deletePeer_args() {
6890     }
6891
6892     public deletePeer_args(
6893       String ipAddress)
6894     {
6895       this();
6896       this.ipAddress = ipAddress;
6897     }
6898
6899     /**
6900      * Performs a deep copy on <i>other</i>.
6901      */
6902     public deletePeer_args(deletePeer_args other) {
6903       if (other.isSetIpAddress()) {
6904         this.ipAddress = other.ipAddress;
6905       }
6906     }
6907
6908     public deletePeer_args deepCopy() {
6909       return new deletePeer_args(this);
6910     }
6911
6912     @Override
6913     public void clear() {
6914       this.ipAddress = null;
6915     }
6916
6917     public String getIpAddress() {
6918       return this.ipAddress;
6919     }
6920
6921     public deletePeer_args setIpAddress(String ipAddress) {
6922       this.ipAddress = ipAddress;
6923       return this;
6924     }
6925
6926     public void unsetIpAddress() {
6927       this.ipAddress = null;
6928     }
6929
6930     /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
6931     public boolean isSetIpAddress() {
6932       return this.ipAddress != null;
6933     }
6934
6935     public void setIpAddressIsSet(boolean value) {
6936       if (!value) {
6937         this.ipAddress = null;
6938       }
6939     }
6940
6941     public void setFieldValue(_Fields field, Object value) {
6942       switch (field) {
6943       case IP_ADDRESS:
6944         if (value == null) {
6945           unsetIpAddress();
6946         } else {
6947           setIpAddress((String)value);
6948         }
6949         break;
6950
6951       }
6952     }
6953
6954     public Object getFieldValue(_Fields field) {
6955       switch (field) {
6956       case IP_ADDRESS:
6957         return getIpAddress();
6958
6959       }
6960       throw new IllegalStateException();
6961     }
6962
6963     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6964     public boolean isSet(_Fields field) {
6965       if (field == null) {
6966         throw new IllegalArgumentException();
6967       }
6968
6969       switch (field) {
6970       case IP_ADDRESS:
6971         return isSetIpAddress();
6972       }
6973       throw new IllegalStateException();
6974     }
6975
6976     @Override
6977     public boolean equals(Object that) {
6978       if (that == null)
6979         return false;
6980       if (that instanceof deletePeer_args)
6981         return this.equals((deletePeer_args)that);
6982       return false;
6983     }
6984
6985     public boolean equals(deletePeer_args that) {
6986       if (that == null)
6987         return false;
6988
6989       boolean this_present_ipAddress = true && this.isSetIpAddress();
6990       boolean that_present_ipAddress = true && that.isSetIpAddress();
6991       if (this_present_ipAddress || that_present_ipAddress) {
6992         if (!(this_present_ipAddress && that_present_ipAddress))
6993           return false;
6994         if (!this.ipAddress.equals(that.ipAddress))
6995           return false;
6996       }
6997
6998       return true;
6999     }
7000
7001     @Override
7002     public int hashCode() {
7003       return 0;
7004     }
7005
7006     @Override
7007     public int compareTo(deletePeer_args other) {
7008       if (!getClass().equals(other.getClass())) {
7009         return getClass().getName().compareTo(other.getClass().getName());
7010       }
7011
7012       int lastComparison = 0;
7013
7014       lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
7015       if (lastComparison != 0) {
7016         return lastComparison;
7017       }
7018       if (isSetIpAddress()) {
7019         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
7020         if (lastComparison != 0) {
7021           return lastComparison;
7022         }
7023       }
7024       return 0;
7025     }
7026
7027     public _Fields fieldForId(int fieldId) {
7028       return _Fields.findByThriftId(fieldId);
7029     }
7030
7031     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7032       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7033     }
7034
7035     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7036       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7037     }
7038
7039     @Override
7040     public String toString() {
7041       StringBuilder sb = new StringBuilder("deletePeer_args(");
7042       boolean first = true;
7043
7044       sb.append("ipAddress:");
7045       if (this.ipAddress == null) {
7046         sb.append("null");
7047       } else {
7048         sb.append(this.ipAddress);
7049       }
7050       first = false;
7051       sb.append(")");
7052       return sb.toString();
7053     }
7054
7055     public void validate() throws org.apache.thrift.TException {
7056       // check for required fields
7057       // check for sub-struct validity
7058     }
7059
7060     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7061       try {
7062         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7063       } catch (org.apache.thrift.TException te) {
7064         throw new java.io.IOException(te);
7065       }
7066     }
7067
7068     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7069       try {
7070         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7071       } catch (org.apache.thrift.TException te) {
7072         throw new java.io.IOException(te);
7073       }
7074     }
7075
7076     private static class deletePeer_argsStandardSchemeFactory implements SchemeFactory {
7077       public deletePeer_argsStandardScheme getScheme() {
7078         return new deletePeer_argsStandardScheme();
7079       }
7080     }
7081
7082     private static class deletePeer_argsStandardScheme extends StandardScheme<deletePeer_args> {
7083
7084       public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_args struct) throws org.apache.thrift.TException {
7085         org.apache.thrift.protocol.TField schemeField;
7086         iprot.readStructBegin();
7087         while (true)
7088         {
7089           schemeField = iprot.readFieldBegin();
7090           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
7091             break;
7092           }
7093           switch (schemeField.id) {
7094             case 1: // IP_ADDRESS
7095               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7096                 struct.ipAddress = iprot.readString();
7097                 struct.setIpAddressIsSet(true);
7098               } else { 
7099                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7100               }
7101               break;
7102             default:
7103               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7104           }
7105           iprot.readFieldEnd();
7106         }
7107         iprot.readStructEnd();
7108
7109         // check for required fields of primitive type, which can't be checked in the validate method
7110         struct.validate();
7111       }
7112
7113       public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_args struct) throws org.apache.thrift.TException {
7114         struct.validate();
7115
7116         oprot.writeStructBegin(STRUCT_DESC);
7117         if (struct.ipAddress != null) {
7118           oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
7119           oprot.writeString(struct.ipAddress);
7120           oprot.writeFieldEnd();
7121         }
7122         oprot.writeFieldStop();
7123         oprot.writeStructEnd();
7124       }
7125
7126     }
7127
7128     private static class deletePeer_argsTupleSchemeFactory implements SchemeFactory {
7129       public deletePeer_argsTupleScheme getScheme() {
7130         return new deletePeer_argsTupleScheme();
7131       }
7132     }
7133
7134     private static class deletePeer_argsTupleScheme extends TupleScheme<deletePeer_args> {
7135
7136       @Override
7137       public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
7138         TTupleProtocol oprot = (TTupleProtocol) prot;
7139         BitSet optionals = new BitSet();
7140         if (struct.isSetIpAddress()) {
7141           optionals.set(0);
7142         }
7143         oprot.writeBitSet(optionals, 1);
7144         if (struct.isSetIpAddress()) {
7145           oprot.writeString(struct.ipAddress);
7146         }
7147       }
7148
7149       @Override
7150       public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
7151         TTupleProtocol iprot = (TTupleProtocol) prot;
7152         BitSet incoming = iprot.readBitSet(1);
7153         if (incoming.get(0)) {
7154           struct.ipAddress = iprot.readString();
7155           struct.setIpAddressIsSet(true);
7156         }
7157       }
7158     }
7159
7160   }
7161
7162   public static class deletePeer_result implements org.apache.thrift.TBase<deletePeer_result, deletePeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_result>   {
7163     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_result");
7164
7165     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);
7166
7167     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7168     static {
7169       schemes.put(StandardScheme.class, new deletePeer_resultStandardSchemeFactory());
7170       schemes.put(TupleScheme.class, new deletePeer_resultTupleSchemeFactory());
7171     }
7172
7173     public int success; // required
7174
7175     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7176     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7177       SUCCESS((short)0, "success");
7178
7179       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7180
7181       static {
7182         for (_Fields field : EnumSet.allOf(_Fields.class)) {
7183           byName.put(field.getFieldName(), field);
7184         }
7185       }
7186
7187       /**
7188        * Find the _Fields constant that matches fieldId, or null if its not found.
7189        */
7190       public static _Fields findByThriftId(int fieldId) {
7191         switch(fieldId) {
7192           case 0: // SUCCESS
7193             return SUCCESS;
7194           default:
7195             return null;
7196         }
7197       }
7198
7199       /**
7200        * Find the _Fields constant that matches fieldId, throwing an exception
7201        * if it is not found.
7202        */
7203       public static _Fields findByThriftIdOrThrow(int fieldId) {
7204         _Fields fields = findByThriftId(fieldId);
7205         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7206         return fields;
7207       }
7208
7209       /**
7210        * Find the _Fields constant that matches name, or null if its not found.
7211        */
7212       public static _Fields findByName(String name) {
7213         return byName.get(name);
7214       }
7215
7216       private final short _thriftId;
7217       private final String _fieldName;
7218
7219       _Fields(short thriftId, String fieldName) {
7220         _thriftId = thriftId;
7221         _fieldName = fieldName;
7222       }
7223
7224       public short getThriftFieldId() {
7225         return _thriftId;
7226       }
7227
7228       public String getFieldName() {
7229         return _fieldName;
7230       }
7231     }
7232
7233     // isset id assignments
7234     private static final int __SUCCESS_ISSET_ID = 0;
7235     private byte __isset_bitfield = 0;
7236     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7237     static {
7238       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7239       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7240           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
7241       metaDataMap = Collections.unmodifiableMap(tmpMap);
7242       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_result.class, metaDataMap);
7243     }
7244
7245     public deletePeer_result() {
7246     }
7247
7248     public deletePeer_result(
7249       int success)
7250     {
7251       this();
7252       this.success = success;
7253       setSuccessIsSet(true);
7254     }
7255
7256     /**
7257      * Performs a deep copy on <i>other</i>.
7258      */
7259     public deletePeer_result(deletePeer_result other) {
7260       __isset_bitfield = other.__isset_bitfield;
7261       this.success = other.success;
7262     }
7263
7264     public deletePeer_result deepCopy() {
7265       return new deletePeer_result(this);
7266     }
7267
7268     @Override
7269     public void clear() {
7270       setSuccessIsSet(false);
7271       this.success = 0;
7272     }
7273
7274     public int getSuccess() {
7275       return this.success;
7276     }
7277
7278     public deletePeer_result setSuccess(int success) {
7279       this.success = success;
7280       setSuccessIsSet(true);
7281       return this;
7282     }
7283
7284     public void unsetSuccess() {
7285       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7286     }
7287
7288     /** Returns true if field success is set (has been assigned a value) and false otherwise */
7289     public boolean isSetSuccess() {
7290       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7291     }
7292
7293     public void setSuccessIsSet(boolean value) {
7294       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
7295     }
7296
7297     public void setFieldValue(_Fields field, Object value) {
7298       switch (field) {
7299       case SUCCESS:
7300         if (value == null) {
7301           unsetSuccess();
7302         } else {
7303           setSuccess((Integer)value);
7304         }
7305         break;
7306
7307       }
7308     }
7309
7310     public Object getFieldValue(_Fields field) {
7311       switch (field) {
7312       case SUCCESS:
7313         return Integer.valueOf(getSuccess());
7314
7315       }
7316       throw new IllegalStateException();
7317     }
7318
7319     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7320     public boolean isSet(_Fields field) {
7321       if (field == null) {
7322         throw new IllegalArgumentException();
7323       }
7324
7325       switch (field) {
7326       case SUCCESS:
7327         return isSetSuccess();
7328       }
7329       throw new IllegalStateException();
7330     }
7331
7332     @Override
7333     public boolean equals(Object that) {
7334       if (that == null)
7335         return false;
7336       if (that instanceof deletePeer_result)
7337         return this.equals((deletePeer_result)that);
7338       return false;
7339     }
7340
7341     public boolean equals(deletePeer_result that) {
7342       if (that == null)
7343         return false;
7344
7345       boolean this_present_success = true;
7346       boolean that_present_success = true;
7347       if (this_present_success || that_present_success) {
7348         if (!(this_present_success && that_present_success))
7349           return false;
7350         if (this.success != that.success)
7351           return false;
7352       }
7353
7354       return true;
7355     }
7356
7357     @Override
7358     public int hashCode() {
7359       return 0;
7360     }
7361
7362     @Override
7363     public int compareTo(deletePeer_result other) {
7364       if (!getClass().equals(other.getClass())) {
7365         return getClass().getName().compareTo(other.getClass().getName());
7366       }
7367
7368       int lastComparison = 0;
7369
7370       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
7371       if (lastComparison != 0) {
7372         return lastComparison;
7373       }
7374       if (isSetSuccess()) {
7375         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
7376         if (lastComparison != 0) {
7377           return lastComparison;
7378         }
7379       }
7380       return 0;
7381     }
7382
7383     public _Fields fieldForId(int fieldId) {
7384       return _Fields.findByThriftId(fieldId);
7385     }
7386
7387     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7388       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7389     }
7390
7391     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7392       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7393       }
7394
7395     @Override
7396     public String toString() {
7397       StringBuilder sb = new StringBuilder("deletePeer_result(");
7398       boolean first = true;
7399
7400       sb.append("success:");
7401       sb.append(this.success);
7402       first = false;
7403       sb.append(")");
7404       return sb.toString();
7405     }
7406
7407     public void validate() throws org.apache.thrift.TException {
7408       // check for required fields
7409       // check for sub-struct validity
7410     }
7411
7412     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7413       try {
7414         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7415       } catch (org.apache.thrift.TException te) {
7416         throw new java.io.IOException(te);
7417       }
7418     }
7419
7420     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7421       try {
7422         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7423         __isset_bitfield = 0;
7424         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7425       } catch (org.apache.thrift.TException te) {
7426         throw new java.io.IOException(te);
7427       }
7428     }
7429
7430     private static class deletePeer_resultStandardSchemeFactory implements SchemeFactory {
7431       public deletePeer_resultStandardScheme getScheme() {
7432         return new deletePeer_resultStandardScheme();
7433       }
7434     }
7435
7436     private static class deletePeer_resultStandardScheme extends StandardScheme<deletePeer_result> {
7437
7438       public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_result struct) throws org.apache.thrift.TException {
7439         org.apache.thrift.protocol.TField schemeField;
7440         iprot.readStructBegin();
7441         while (true)
7442         {
7443           schemeField = iprot.readFieldBegin();
7444           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
7445             break;
7446           }
7447           switch (schemeField.id) {
7448             case 0: // SUCCESS
7449               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
7450                 struct.success = iprot.readI32();
7451                 struct.setSuccessIsSet(true);
7452               } else { 
7453                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7454               }
7455               break;
7456             default:
7457               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7458           }
7459           iprot.readFieldEnd();
7460         }
7461         iprot.readStructEnd();
7462
7463         // check for required fields of primitive type, which can't be checked in the validate method
7464         struct.validate();
7465       }
7466
7467       public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_result struct) throws org.apache.thrift.TException {
7468         struct.validate();
7469
7470         oprot.writeStructBegin(STRUCT_DESC);
7471         if (struct.isSetSuccess()) {
7472           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7473           oprot.writeI32(struct.success);
7474           oprot.writeFieldEnd();
7475         }
7476         oprot.writeFieldStop();
7477         oprot.writeStructEnd();
7478       }
7479
7480     }
7481
7482     private static class deletePeer_resultTupleSchemeFactory implements SchemeFactory {
7483       public deletePeer_resultTupleScheme getScheme() {
7484         return new deletePeer_resultTupleScheme();
7485       }
7486     }
7487
7488     private static class deletePeer_resultTupleScheme extends TupleScheme<deletePeer_result> {
7489
7490       @Override
7491       public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
7492         TTupleProtocol oprot = (TTupleProtocol) prot;
7493         BitSet optionals = new BitSet();
7494         if (struct.isSetSuccess()) {
7495           optionals.set(0);
7496         }
7497         oprot.writeBitSet(optionals, 1);
7498         if (struct.isSetSuccess()) {
7499           oprot.writeI32(struct.success);
7500         }
7501       }
7502
7503       @Override
7504       public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
7505         TTupleProtocol iprot = (TTupleProtocol) prot;
7506         BitSet incoming = iprot.readBitSet(1);
7507         if (incoming.get(0)) {
7508           struct.success = iprot.readI32();
7509           struct.setSuccessIsSet(true);
7510         }
7511       }
7512     }
7513
7514   }
7515
7516   public static class addVrf_args implements org.apache.thrift.TBase<addVrf_args, addVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_args>   {
7517     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_args");
7518
7519     private static final org.apache.thrift.protocol.TField L_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("l_type", org.apache.thrift.protocol.TType.I32, (short)1);
7520     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);
7521     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)3);
7522     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)4);
7523
7524     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7525     static {
7526       schemes.put(StandardScheme.class, new addVrf_argsStandardSchemeFactory());
7527       schemes.put(TupleScheme.class, new addVrf_argsTupleSchemeFactory());
7528     }
7529
7530     /**
7531      * 
7532      * @see layer_type
7533      */
7534     public layer_type l_type; // required
7535     public String rd; // required
7536     public List<String> irts; // required
7537     public List<String> erts; // required
7538
7539     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7540     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7541       /**
7542        * 
7543        * @see layer_type
7544        */
7545       L_TYPE((short)1, "l_type"),
7546       RD((short)2, "rd"),
7547       IRTS((short)3, "irts"),
7548       ERTS((short)4, "erts");
7549
7550       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7551
7552       static {
7553         for (_Fields field : EnumSet.allOf(_Fields.class)) {
7554           byName.put(field.getFieldName(), field);
7555         }
7556       }
7557
7558       /**
7559        * Find the _Fields constant that matches fieldId, or null if its not found.
7560        */
7561       public static _Fields findByThriftId(int fieldId) {
7562         switch(fieldId) {
7563           case 1: // L_TYPE
7564             return L_TYPE;
7565           case 2: // RD
7566             return RD;
7567           case 3: // IRTS
7568             return IRTS;
7569           case 4: // ERTS
7570             return ERTS;
7571           default:
7572             return null;
7573         }
7574       }
7575
7576       /**
7577        * Find the _Fields constant that matches fieldId, throwing an exception
7578        * if it is not found.
7579        */
7580       public static _Fields findByThriftIdOrThrow(int fieldId) {
7581         _Fields fields = findByThriftId(fieldId);
7582         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7583         return fields;
7584       }
7585
7586       /**
7587        * Find the _Fields constant that matches name, or null if its not found.
7588        */
7589       public static _Fields findByName(String name) {
7590         return byName.get(name);
7591       }
7592
7593       private final short _thriftId;
7594       private final String _fieldName;
7595
7596       _Fields(short thriftId, String fieldName) {
7597         _thriftId = thriftId;
7598         _fieldName = fieldName;
7599       }
7600
7601       public short getThriftFieldId() {
7602         return _thriftId;
7603       }
7604
7605       public String getFieldName() {
7606         return _fieldName;
7607       }
7608     }
7609
7610     // isset id assignments
7611     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7612     static {
7613       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7614       tmpMap.put(_Fields.L_TYPE, new org.apache.thrift.meta_data.FieldMetaData("l_type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7615           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, layer_type.class)));
7616       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7617           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7618       tmpMap.put(_Fields.IRTS, new org.apache.thrift.meta_data.FieldMetaData("irts", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7619           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7620               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
7621       tmpMap.put(_Fields.ERTS, new org.apache.thrift.meta_data.FieldMetaData("erts", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7622           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7623               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
7624       metaDataMap = Collections.unmodifiableMap(tmpMap);
7625       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_args.class, metaDataMap);
7626     }
7627
7628     public addVrf_args() {
7629     }
7630
7631     public addVrf_args(
7632       layer_type l_type,
7633       String rd,
7634       List<String> irts,
7635       List<String> erts)
7636     {
7637       this();
7638       this.l_type = l_type;
7639       this.rd = rd;
7640       this.irts = irts;
7641       this.erts = erts;
7642     }
7643
7644     /**
7645      * Performs a deep copy on <i>other</i>.
7646      */
7647     public addVrf_args(addVrf_args other) {
7648       if (other.isSetL_type()) {
7649         this.l_type = other.l_type;
7650       }
7651       if (other.isSetRd()) {
7652         this.rd = other.rd;
7653       }
7654       if (other.isSetIrts()) {
7655         List<String> __this__irts = new ArrayList<String>(other.irts);
7656         this.irts = __this__irts;
7657       }
7658       if (other.isSetErts()) {
7659         List<String> __this__erts = new ArrayList<String>(other.erts);
7660         this.erts = __this__erts;
7661       }
7662     }
7663
7664     public addVrf_args deepCopy() {
7665       return new addVrf_args(this);
7666     }
7667
7668     @Override
7669     public void clear() {
7670       this.l_type = null;
7671       this.rd = null;
7672       this.irts = null;
7673       this.erts = null;
7674     }
7675
7676     /**
7677      * 
7678      * @see layer_type
7679      */
7680     public layer_type getL_type() {
7681       return this.l_type;
7682     }
7683
7684     /**
7685      * 
7686      * @see layer_type
7687      */
7688     public addVrf_args setL_type(layer_type l_type) {
7689       this.l_type = l_type;
7690       return this;
7691     }
7692
7693     public void unsetL_type() {
7694       this.l_type = null;
7695     }
7696
7697     /** Returns true if field l_type is set (has been assigned a value) and false otherwise */
7698     public boolean isSetL_type() {
7699       return this.l_type != null;
7700     }
7701
7702     public void setL_typeIsSet(boolean value) {
7703       if (!value) {
7704         this.l_type = null;
7705       }
7706     }
7707
7708     public String getRd() {
7709       return this.rd;
7710     }
7711
7712     public addVrf_args setRd(String rd) {
7713       this.rd = rd;
7714       return this;
7715     }
7716
7717     public void unsetRd() {
7718       this.rd = null;
7719     }
7720
7721     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
7722     public boolean isSetRd() {
7723       return this.rd != null;
7724     }
7725
7726     public void setRdIsSet(boolean value) {
7727       if (!value) {
7728         this.rd = null;
7729       }
7730     }
7731
7732     public int getIrtsSize() {
7733       return (this.irts == null) ? 0 : this.irts.size();
7734     }
7735
7736     public java.util.Iterator<String> getIrtsIterator() {
7737       return (this.irts == null) ? null : this.irts.iterator();
7738     }
7739
7740     public void addToIrts(String elem) {
7741       if (this.irts == null) {
7742         this.irts = new ArrayList<String>();
7743       }
7744       this.irts.add(elem);
7745     }
7746
7747     public List<String> getIrts() {
7748       return this.irts;
7749     }
7750
7751     public addVrf_args setIrts(List<String> irts) {
7752       this.irts = irts;
7753       return this;
7754     }
7755
7756     public void unsetIrts() {
7757       this.irts = null;
7758     }
7759
7760     /** Returns true if field irts is set (has been assigned a value) and false otherwise */
7761     public boolean isSetIrts() {
7762       return this.irts != null;
7763     }
7764
7765     public void setIrtsIsSet(boolean value) {
7766       if (!value) {
7767         this.irts = null;
7768       }
7769     }
7770
7771     public int getErtsSize() {
7772       return (this.erts == null) ? 0 : this.erts.size();
7773     }
7774
7775     public java.util.Iterator<String> getErtsIterator() {
7776       return (this.erts == null) ? null : this.erts.iterator();
7777     }
7778
7779     public void addToErts(String elem) {
7780       if (this.erts == null) {
7781         this.erts = new ArrayList<String>();
7782       }
7783       this.erts.add(elem);
7784     }
7785
7786     public List<String> getErts() {
7787       return this.erts;
7788     }
7789
7790     public addVrf_args setErts(List<String> erts) {
7791       this.erts = erts;
7792       return this;
7793     }
7794
7795     public void unsetErts() {
7796       this.erts = null;
7797     }
7798
7799     /** Returns true if field erts is set (has been assigned a value) and false otherwise */
7800     public boolean isSetErts() {
7801       return this.erts != null;
7802     }
7803
7804     public void setErtsIsSet(boolean value) {
7805       if (!value) {
7806         this.erts = null;
7807       }
7808     }
7809
7810     public void setFieldValue(_Fields field, Object value) {
7811       switch (field) {
7812       case L_TYPE:
7813         if (value == null) {
7814           unsetL_type();
7815         } else {
7816           setL_type((layer_type)value);
7817         }
7818         break;
7819
7820       case RD:
7821         if (value == null) {
7822           unsetRd();
7823         } else {
7824           setRd((String)value);
7825         }
7826         break;
7827
7828       case IRTS:
7829         if (value == null) {
7830           unsetIrts();
7831         } else {
7832           setIrts((List<String>)value);
7833         }
7834         break;
7835
7836       case ERTS:
7837         if (value == null) {
7838           unsetErts();
7839         } else {
7840           setErts((List<String>)value);
7841         }
7842         break;
7843
7844       }
7845     }
7846
7847     public Object getFieldValue(_Fields field) {
7848       switch (field) {
7849       case L_TYPE:
7850         return getL_type();
7851
7852       case RD:
7853         return getRd();
7854
7855       case IRTS:
7856         return getIrts();
7857
7858       case ERTS:
7859         return getErts();
7860
7861       }
7862       throw new IllegalStateException();
7863     }
7864
7865     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7866     public boolean isSet(_Fields field) {
7867       if (field == null) {
7868         throw new IllegalArgumentException();
7869       }
7870
7871       switch (field) {
7872       case L_TYPE:
7873         return isSetL_type();
7874       case RD:
7875         return isSetRd();
7876       case IRTS:
7877         return isSetIrts();
7878       case ERTS:
7879         return isSetErts();
7880       }
7881       throw new IllegalStateException();
7882     }
7883
7884     @Override
7885     public boolean equals(Object that) {
7886       if (that == null)
7887         return false;
7888       if (that instanceof addVrf_args)
7889         return this.equals((addVrf_args)that);
7890       return false;
7891     }
7892
7893     public boolean equals(addVrf_args that) {
7894       if (that == null)
7895         return false;
7896
7897       boolean this_present_l_type = true && this.isSetL_type();
7898       boolean that_present_l_type = true && that.isSetL_type();
7899       if (this_present_l_type || that_present_l_type) {
7900         if (!(this_present_l_type && that_present_l_type))
7901           return false;
7902         if (!this.l_type.equals(that.l_type))
7903           return false;
7904       }
7905
7906       boolean this_present_rd = true && this.isSetRd();
7907       boolean that_present_rd = true && that.isSetRd();
7908       if (this_present_rd || that_present_rd) {
7909         if (!(this_present_rd && that_present_rd))
7910           return false;
7911         if (!this.rd.equals(that.rd))
7912           return false;
7913       }
7914
7915       boolean this_present_irts = true && this.isSetIrts();
7916       boolean that_present_irts = true && that.isSetIrts();
7917       if (this_present_irts || that_present_irts) {
7918         if (!(this_present_irts && that_present_irts))
7919           return false;
7920         if (!this.irts.equals(that.irts))
7921           return false;
7922       }
7923
7924       boolean this_present_erts = true && this.isSetErts();
7925       boolean that_present_erts = true && that.isSetErts();
7926       if (this_present_erts || that_present_erts) {
7927         if (!(this_present_erts && that_present_erts))
7928           return false;
7929         if (!this.erts.equals(that.erts))
7930           return false;
7931       }
7932
7933       return true;
7934     }
7935
7936     @Override
7937     public int hashCode() {
7938       return 0;
7939     }
7940
7941     @Override
7942     public int compareTo(addVrf_args other) {
7943       if (!getClass().equals(other.getClass())) {
7944         return getClass().getName().compareTo(other.getClass().getName());
7945       }
7946
7947       int lastComparison = 0;
7948
7949       lastComparison = Boolean.valueOf(isSetL_type()).compareTo(other.isSetL_type());
7950       if (lastComparison != 0) {
7951         return lastComparison;
7952       }
7953       if (isSetL_type()) {
7954         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l_type, other.l_type);
7955         if (lastComparison != 0) {
7956           return lastComparison;
7957         }
7958       }
7959       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
7960       if (lastComparison != 0) {
7961         return lastComparison;
7962       }
7963       if (isSetRd()) {
7964         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
7965         if (lastComparison != 0) {
7966           return lastComparison;
7967         }
7968       }
7969       lastComparison = Boolean.valueOf(isSetIrts()).compareTo(other.isSetIrts());
7970       if (lastComparison != 0) {
7971         return lastComparison;
7972       }
7973       if (isSetIrts()) {
7974         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.irts, other.irts);
7975         if (lastComparison != 0) {
7976           return lastComparison;
7977         }
7978       }
7979       lastComparison = Boolean.valueOf(isSetErts()).compareTo(other.isSetErts());
7980       if (lastComparison != 0) {
7981         return lastComparison;
7982       }
7983       if (isSetErts()) {
7984         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.erts, other.erts);
7985         if (lastComparison != 0) {
7986           return lastComparison;
7987         }
7988       }
7989       return 0;
7990     }
7991
7992     public _Fields fieldForId(int fieldId) {
7993       return _Fields.findByThriftId(fieldId);
7994     }
7995
7996     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7997       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7998     }
7999
8000     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8001       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8002     }
8003
8004     @Override
8005     public String toString() {
8006       StringBuilder sb = new StringBuilder("addVrf_args(");
8007       boolean first = true;
8008
8009       sb.append("l_type:");
8010       if (this.l_type == null) {
8011         sb.append("null");
8012       } else {
8013         sb.append(this.l_type);
8014       }
8015       first = false;
8016       if (!first) sb.append(", ");
8017       sb.append("rd:");
8018       if (this.rd == null) {
8019         sb.append("null");
8020       } else {
8021         sb.append(this.rd);
8022       }
8023       first = false;
8024       if (!first) sb.append(", ");
8025       sb.append("irts:");
8026       if (this.irts == null) {
8027         sb.append("null");
8028       } else {
8029         sb.append(this.irts);
8030       }
8031       first = false;
8032       if (!first) sb.append(", ");
8033       sb.append("erts:");
8034       if (this.erts == null) {
8035         sb.append("null");
8036       } else {
8037         sb.append(this.erts);
8038       }
8039       first = false;
8040       sb.append(")");
8041       return sb.toString();
8042     }
8043
8044     public void validate() throws org.apache.thrift.TException {
8045       // check for required fields
8046       // check for sub-struct validity
8047     }
8048
8049     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8050       try {
8051         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8052       } catch (org.apache.thrift.TException te) {
8053         throw new java.io.IOException(te);
8054       }
8055     }
8056
8057     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8058       try {
8059         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8060       } catch (org.apache.thrift.TException te) {
8061         throw new java.io.IOException(te);
8062       }
8063     }
8064
8065     private static class addVrf_argsStandardSchemeFactory implements SchemeFactory {
8066       public addVrf_argsStandardScheme getScheme() {
8067         return new addVrf_argsStandardScheme();
8068       }
8069     }
8070
8071     private static class addVrf_argsStandardScheme extends StandardScheme<addVrf_args> {
8072
8073       public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_args struct) throws org.apache.thrift.TException {
8074         org.apache.thrift.protocol.TField schemeField;
8075         iprot.readStructBegin();
8076         while (true)
8077         {
8078           schemeField = iprot.readFieldBegin();
8079           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
8080             break;
8081           }
8082           switch (schemeField.id) {
8083             case 1: // L_TYPE
8084               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
8085                 struct.l_type = layer_type.findByValue(iprot.readI32());
8086                 struct.setL_typeIsSet(true);
8087               } else { 
8088                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8089               }
8090               break;
8091             case 2: // RD
8092               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8093                 struct.rd = iprot.readString();
8094                 struct.setRdIsSet(true);
8095               } else { 
8096                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8097               }
8098               break;
8099             case 3: // IRTS
8100               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
8101                 {
8102                   org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
8103                   struct.irts = new ArrayList<String>(_list8.size);
8104                   for (int _i9 = 0; _i9 < _list8.size; ++_i9)
8105                   {
8106                     String _elem10;
8107                     _elem10 = iprot.readString();
8108                     struct.irts.add(_elem10);
8109                   }
8110                   iprot.readListEnd();
8111                 }
8112                 struct.setIrtsIsSet(true);
8113               } else { 
8114                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8115               }
8116               break;
8117             case 4: // ERTS
8118               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
8119                 {
8120                   org.apache.thrift.protocol.TList _list11 = iprot.readListBegin();
8121                   struct.erts = new ArrayList<String>(_list11.size);
8122                   for (int _i12 = 0; _i12 < _list11.size; ++_i12)
8123                   {
8124                     String _elem13;
8125                     _elem13 = iprot.readString();
8126                     struct.erts.add(_elem13);
8127                   }
8128                   iprot.readListEnd();
8129                 }
8130                 struct.setErtsIsSet(true);
8131               } else { 
8132                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8133               }
8134               break;
8135             default:
8136               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8137           }
8138           iprot.readFieldEnd();
8139         }
8140         iprot.readStructEnd();
8141
8142         // check for required fields of primitive type, which can't be checked in the validate method
8143         struct.validate();
8144       }
8145
8146       public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_args struct) throws org.apache.thrift.TException {
8147         struct.validate();
8148
8149         oprot.writeStructBegin(STRUCT_DESC);
8150         if (struct.l_type != null) {
8151           oprot.writeFieldBegin(L_TYPE_FIELD_DESC);
8152           oprot.writeI32(struct.l_type.getValue());
8153           oprot.writeFieldEnd();
8154         }
8155         if (struct.rd != null) {
8156           oprot.writeFieldBegin(RD_FIELD_DESC);
8157           oprot.writeString(struct.rd);
8158           oprot.writeFieldEnd();
8159         }
8160         if (struct.irts != null) {
8161           oprot.writeFieldBegin(IRTS_FIELD_DESC);
8162           {
8163             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.irts.size()));
8164             for (String _iter14 : struct.irts)
8165             {
8166               oprot.writeString(_iter14);
8167             }
8168             oprot.writeListEnd();
8169           }
8170           oprot.writeFieldEnd();
8171         }
8172         if (struct.erts != null) {
8173           oprot.writeFieldBegin(ERTS_FIELD_DESC);
8174           {
8175             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.erts.size()));
8176             for (String _iter15 : struct.erts)
8177             {
8178               oprot.writeString(_iter15);
8179             }
8180             oprot.writeListEnd();
8181           }
8182           oprot.writeFieldEnd();
8183         }
8184         oprot.writeFieldStop();
8185         oprot.writeStructEnd();
8186       }
8187
8188     }
8189
8190     private static class addVrf_argsTupleSchemeFactory implements SchemeFactory {
8191       public addVrf_argsTupleScheme getScheme() {
8192         return new addVrf_argsTupleScheme();
8193       }
8194     }
8195
8196     private static class addVrf_argsTupleScheme extends TupleScheme<addVrf_args> {
8197
8198       @Override
8199       public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
8200         TTupleProtocol oprot = (TTupleProtocol) prot;
8201         BitSet optionals = new BitSet();
8202         if (struct.isSetL_type()) {
8203           optionals.set(0);
8204         }
8205         if (struct.isSetRd()) {
8206           optionals.set(1);
8207         }
8208         if (struct.isSetIrts()) {
8209           optionals.set(2);
8210         }
8211         if (struct.isSetErts()) {
8212           optionals.set(3);
8213         }
8214         oprot.writeBitSet(optionals, 4);
8215         if (struct.isSetL_type()) {
8216           oprot.writeI32(struct.l_type.getValue());
8217         }
8218         if (struct.isSetRd()) {
8219           oprot.writeString(struct.rd);
8220         }
8221         if (struct.isSetIrts()) {
8222           {
8223             oprot.writeI32(struct.irts.size());
8224             for (String _iter16 : struct.irts)
8225             {
8226               oprot.writeString(_iter16);
8227             }
8228           }
8229         }
8230         if (struct.isSetErts()) {
8231           {
8232             oprot.writeI32(struct.erts.size());
8233             for (String _iter17 : struct.erts)
8234             {
8235               oprot.writeString(_iter17);
8236             }
8237           }
8238         }
8239       }
8240
8241       @Override
8242       public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
8243         TTupleProtocol iprot = (TTupleProtocol) prot;
8244         BitSet incoming = iprot.readBitSet(4);
8245         if (incoming.get(0)) {
8246           struct.l_type = layer_type.findByValue(iprot.readI32());
8247           struct.setL_typeIsSet(true);
8248         }
8249         if (incoming.get(1)) {
8250           struct.rd = iprot.readString();
8251           struct.setRdIsSet(true);
8252         }
8253         if (incoming.get(2)) {
8254           {
8255             org.apache.thrift.protocol.TList _list18 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
8256             struct.irts = new ArrayList<String>(_list18.size);
8257             for (int _i19 = 0; _i19 < _list18.size; ++_i19)
8258             {
8259               String _elem20;
8260               _elem20 = iprot.readString();
8261               struct.irts.add(_elem20);
8262             }
8263           }
8264           struct.setIrtsIsSet(true);
8265         }
8266         if (incoming.get(3)) {
8267           {
8268             org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
8269             struct.erts = new ArrayList<String>(_list21.size);
8270             for (int _i22 = 0; _i22 < _list21.size; ++_i22)
8271             {
8272               String _elem23;
8273               _elem23 = iprot.readString();
8274               struct.erts.add(_elem23);
8275             }
8276           }
8277           struct.setErtsIsSet(true);
8278         }
8279       }
8280     }
8281
8282   }
8283
8284   public static class addVrf_result implements org.apache.thrift.TBase<addVrf_result, addVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_result>   {
8285     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_result");
8286
8287     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);
8288
8289     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8290     static {
8291       schemes.put(StandardScheme.class, new addVrf_resultStandardSchemeFactory());
8292       schemes.put(TupleScheme.class, new addVrf_resultTupleSchemeFactory());
8293     }
8294
8295     public int success; // required
8296
8297     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8298     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8299       SUCCESS((short)0, "success");
8300
8301       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8302
8303       static {
8304         for (_Fields field : EnumSet.allOf(_Fields.class)) {
8305           byName.put(field.getFieldName(), field);
8306         }
8307       }
8308
8309       /**
8310        * Find the _Fields constant that matches fieldId, or null if its not found.
8311        */
8312       public static _Fields findByThriftId(int fieldId) {
8313         switch(fieldId) {
8314           case 0: // SUCCESS
8315             return SUCCESS;
8316           default:
8317             return null;
8318         }
8319       }
8320
8321       /**
8322        * Find the _Fields constant that matches fieldId, throwing an exception
8323        * if it is not found.
8324        */
8325       public static _Fields findByThriftIdOrThrow(int fieldId) {
8326         _Fields fields = findByThriftId(fieldId);
8327         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8328         return fields;
8329       }
8330
8331       /**
8332        * Find the _Fields constant that matches name, or null if its not found.
8333        */
8334       public static _Fields findByName(String name) {
8335         return byName.get(name);
8336       }
8337
8338       private final short _thriftId;
8339       private final String _fieldName;
8340
8341       _Fields(short thriftId, String fieldName) {
8342         _thriftId = thriftId;
8343         _fieldName = fieldName;
8344       }
8345
8346       public short getThriftFieldId() {
8347         return _thriftId;
8348       }
8349
8350       public String getFieldName() {
8351         return _fieldName;
8352       }
8353     }
8354
8355     // isset id assignments
8356     private static final int __SUCCESS_ISSET_ID = 0;
8357     private byte __isset_bitfield = 0;
8358     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8359     static {
8360       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8361       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8362           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
8363       metaDataMap = Collections.unmodifiableMap(tmpMap);
8364       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_result.class, metaDataMap);
8365     }
8366
8367     public addVrf_result() {
8368     }
8369
8370     public addVrf_result(
8371       int success)
8372     {
8373       this();
8374       this.success = success;
8375       setSuccessIsSet(true);
8376     }
8377
8378     /**
8379      * Performs a deep copy on <i>other</i>.
8380      */
8381     public addVrf_result(addVrf_result other) {
8382       __isset_bitfield = other.__isset_bitfield;
8383       this.success = other.success;
8384     }
8385
8386     public addVrf_result deepCopy() {
8387       return new addVrf_result(this);
8388     }
8389
8390     @Override
8391     public void clear() {
8392       setSuccessIsSet(false);
8393       this.success = 0;
8394     }
8395
8396     public int getSuccess() {
8397       return this.success;
8398     }
8399
8400     public addVrf_result setSuccess(int success) {
8401       this.success = success;
8402       setSuccessIsSet(true);
8403       return this;
8404     }
8405
8406     public void unsetSuccess() {
8407       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8408     }
8409
8410     /** Returns true if field success is set (has been assigned a value) and false otherwise */
8411     public boolean isSetSuccess() {
8412       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8413     }
8414
8415     public void setSuccessIsSet(boolean value) {
8416       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
8417     }
8418
8419     public void setFieldValue(_Fields field, Object value) {
8420       switch (field) {
8421       case SUCCESS:
8422         if (value == null) {
8423           unsetSuccess();
8424         } else {
8425           setSuccess((Integer)value);
8426         }
8427         break;
8428
8429       }
8430     }
8431
8432     public Object getFieldValue(_Fields field) {
8433       switch (field) {
8434       case SUCCESS:
8435         return Integer.valueOf(getSuccess());
8436
8437       }
8438       throw new IllegalStateException();
8439     }
8440
8441     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8442     public boolean isSet(_Fields field) {
8443       if (field == null) {
8444         throw new IllegalArgumentException();
8445       }
8446
8447       switch (field) {
8448       case SUCCESS:
8449         return isSetSuccess();
8450       }
8451       throw new IllegalStateException();
8452     }
8453
8454     @Override
8455     public boolean equals(Object that) {
8456       if (that == null)
8457         return false;
8458       if (that instanceof addVrf_result)
8459         return this.equals((addVrf_result)that);
8460       return false;
8461     }
8462
8463     public boolean equals(addVrf_result that) {
8464       if (that == null)
8465         return false;
8466
8467       boolean this_present_success = true;
8468       boolean that_present_success = true;
8469       if (this_present_success || that_present_success) {
8470         if (!(this_present_success && that_present_success))
8471           return false;
8472         if (this.success != that.success)
8473           return false;
8474       }
8475
8476       return true;
8477     }
8478
8479     @Override
8480     public int hashCode() {
8481       return 0;
8482     }
8483
8484     @Override
8485     public int compareTo(addVrf_result other) {
8486       if (!getClass().equals(other.getClass())) {
8487         return getClass().getName().compareTo(other.getClass().getName());
8488       }
8489
8490       int lastComparison = 0;
8491
8492       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
8493       if (lastComparison != 0) {
8494         return lastComparison;
8495       }
8496       if (isSetSuccess()) {
8497         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
8498         if (lastComparison != 0) {
8499           return lastComparison;
8500         }
8501       }
8502       return 0;
8503     }
8504
8505     public _Fields fieldForId(int fieldId) {
8506       return _Fields.findByThriftId(fieldId);
8507     }
8508
8509     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8510       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8511     }
8512
8513     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8514       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8515       }
8516
8517     @Override
8518     public String toString() {
8519       StringBuilder sb = new StringBuilder("addVrf_result(");
8520       boolean first = true;
8521
8522       sb.append("success:");
8523       sb.append(this.success);
8524       first = false;
8525       sb.append(")");
8526       return sb.toString();
8527     }
8528
8529     public void validate() throws org.apache.thrift.TException {
8530       // check for required fields
8531       // check for sub-struct validity
8532     }
8533
8534     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8535       try {
8536         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8537       } catch (org.apache.thrift.TException te) {
8538         throw new java.io.IOException(te);
8539       }
8540     }
8541
8542     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8543       try {
8544         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8545         __isset_bitfield = 0;
8546         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8547       } catch (org.apache.thrift.TException te) {
8548         throw new java.io.IOException(te);
8549       }
8550     }
8551
8552     private static class addVrf_resultStandardSchemeFactory implements SchemeFactory {
8553       public addVrf_resultStandardScheme getScheme() {
8554         return new addVrf_resultStandardScheme();
8555       }
8556     }
8557
8558     private static class addVrf_resultStandardScheme extends StandardScheme<addVrf_result> {
8559
8560       public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_result struct) throws org.apache.thrift.TException {
8561         org.apache.thrift.protocol.TField schemeField;
8562         iprot.readStructBegin();
8563         while (true)
8564         {
8565           schemeField = iprot.readFieldBegin();
8566           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
8567             break;
8568           }
8569           switch (schemeField.id) {
8570             case 0: // SUCCESS
8571               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
8572                 struct.success = iprot.readI32();
8573                 struct.setSuccessIsSet(true);
8574               } else { 
8575                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8576               }
8577               break;
8578             default:
8579               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8580           }
8581           iprot.readFieldEnd();
8582         }
8583         iprot.readStructEnd();
8584
8585         // check for required fields of primitive type, which can't be checked in the validate method
8586         struct.validate();
8587       }
8588
8589       public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_result struct) throws org.apache.thrift.TException {
8590         struct.validate();
8591
8592         oprot.writeStructBegin(STRUCT_DESC);
8593         if (struct.isSetSuccess()) {
8594           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8595           oprot.writeI32(struct.success);
8596           oprot.writeFieldEnd();
8597         }
8598         oprot.writeFieldStop();
8599         oprot.writeStructEnd();
8600       }
8601
8602     }
8603
8604     private static class addVrf_resultTupleSchemeFactory implements SchemeFactory {
8605       public addVrf_resultTupleScheme getScheme() {
8606         return new addVrf_resultTupleScheme();
8607       }
8608     }
8609
8610     private static class addVrf_resultTupleScheme extends TupleScheme<addVrf_result> {
8611
8612       @Override
8613       public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
8614         TTupleProtocol oprot = (TTupleProtocol) prot;
8615         BitSet optionals = new BitSet();
8616         if (struct.isSetSuccess()) {
8617           optionals.set(0);
8618         }
8619         oprot.writeBitSet(optionals, 1);
8620         if (struct.isSetSuccess()) {
8621           oprot.writeI32(struct.success);
8622         }
8623       }
8624
8625       @Override
8626       public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
8627         TTupleProtocol iprot = (TTupleProtocol) prot;
8628         BitSet incoming = iprot.readBitSet(1);
8629         if (incoming.get(0)) {
8630           struct.success = iprot.readI32();
8631           struct.setSuccessIsSet(true);
8632         }
8633       }
8634     }
8635
8636   }
8637
8638   public static class delVrf_args implements org.apache.thrift.TBase<delVrf_args, delVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_args>   {
8639     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_args");
8640
8641     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);
8642
8643     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8644     static {
8645       schemes.put(StandardScheme.class, new delVrf_argsStandardSchemeFactory());
8646       schemes.put(TupleScheme.class, new delVrf_argsTupleSchemeFactory());
8647     }
8648
8649     public String rd; // required
8650
8651     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8652     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8653       RD((short)1, "rd");
8654
8655       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8656
8657       static {
8658         for (_Fields field : EnumSet.allOf(_Fields.class)) {
8659           byName.put(field.getFieldName(), field);
8660         }
8661       }
8662
8663       /**
8664        * Find the _Fields constant that matches fieldId, or null if its not found.
8665        */
8666       public static _Fields findByThriftId(int fieldId) {
8667         switch(fieldId) {
8668           case 1: // RD
8669             return RD;
8670           default:
8671             return null;
8672         }
8673       }
8674
8675       /**
8676        * Find the _Fields constant that matches fieldId, throwing an exception
8677        * if it is not found.
8678        */
8679       public static _Fields findByThriftIdOrThrow(int fieldId) {
8680         _Fields fields = findByThriftId(fieldId);
8681         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8682         return fields;
8683       }
8684
8685       /**
8686        * Find the _Fields constant that matches name, or null if its not found.
8687        */
8688       public static _Fields findByName(String name) {
8689         return byName.get(name);
8690       }
8691
8692       private final short _thriftId;
8693       private final String _fieldName;
8694
8695       _Fields(short thriftId, String fieldName) {
8696         _thriftId = thriftId;
8697         _fieldName = fieldName;
8698       }
8699
8700       public short getThriftFieldId() {
8701         return _thriftId;
8702       }
8703
8704       public String getFieldName() {
8705         return _fieldName;
8706       }
8707     }
8708
8709     // isset id assignments
8710     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8711     static {
8712       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8713       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8714           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8715       metaDataMap = Collections.unmodifiableMap(tmpMap);
8716       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_args.class, metaDataMap);
8717     }
8718
8719     public delVrf_args() {
8720     }
8721
8722     public delVrf_args(
8723       String rd)
8724     {
8725       this();
8726       this.rd = rd;
8727     }
8728
8729     /**
8730      * Performs a deep copy on <i>other</i>.
8731      */
8732     public delVrf_args(delVrf_args other) {
8733       if (other.isSetRd()) {
8734         this.rd = other.rd;
8735       }
8736     }
8737
8738     public delVrf_args deepCopy() {
8739       return new delVrf_args(this);
8740     }
8741
8742     @Override
8743     public void clear() {
8744       this.rd = null;
8745     }
8746
8747     public String getRd() {
8748       return this.rd;
8749     }
8750
8751     public delVrf_args setRd(String rd) {
8752       this.rd = rd;
8753       return this;
8754     }
8755
8756     public void unsetRd() {
8757       this.rd = null;
8758     }
8759
8760     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
8761     public boolean isSetRd() {
8762       return this.rd != null;
8763     }
8764
8765     public void setRdIsSet(boolean value) {
8766       if (!value) {
8767         this.rd = null;
8768       }
8769     }
8770
8771     public void setFieldValue(_Fields field, Object value) {
8772       switch (field) {
8773       case RD:
8774         if (value == null) {
8775           unsetRd();
8776         } else {
8777           setRd((String)value);
8778         }
8779         break;
8780
8781       }
8782     }
8783
8784     public Object getFieldValue(_Fields field) {
8785       switch (field) {
8786       case RD:
8787         return getRd();
8788
8789       }
8790       throw new IllegalStateException();
8791     }
8792
8793     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8794     public boolean isSet(_Fields field) {
8795       if (field == null) {
8796         throw new IllegalArgumentException();
8797       }
8798
8799       switch (field) {
8800       case RD:
8801         return isSetRd();
8802       }
8803       throw new IllegalStateException();
8804     }
8805
8806     @Override
8807     public boolean equals(Object that) {
8808       if (that == null)
8809         return false;
8810       if (that instanceof delVrf_args)
8811         return this.equals((delVrf_args)that);
8812       return false;
8813     }
8814
8815     public boolean equals(delVrf_args that) {
8816       if (that == null)
8817         return false;
8818
8819       boolean this_present_rd = true && this.isSetRd();
8820       boolean that_present_rd = true && that.isSetRd();
8821       if (this_present_rd || that_present_rd) {
8822         if (!(this_present_rd && that_present_rd))
8823           return false;
8824         if (!this.rd.equals(that.rd))
8825           return false;
8826       }
8827
8828       return true;
8829     }
8830
8831     @Override
8832     public int hashCode() {
8833       return 0;
8834     }
8835
8836     @Override
8837     public int compareTo(delVrf_args other) {
8838       if (!getClass().equals(other.getClass())) {
8839         return getClass().getName().compareTo(other.getClass().getName());
8840       }
8841
8842       int lastComparison = 0;
8843
8844       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
8845       if (lastComparison != 0) {
8846         return lastComparison;
8847       }
8848       if (isSetRd()) {
8849         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
8850         if (lastComparison != 0) {
8851           return lastComparison;
8852         }
8853       }
8854       return 0;
8855     }
8856
8857     public _Fields fieldForId(int fieldId) {
8858       return _Fields.findByThriftId(fieldId);
8859     }
8860
8861     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8862       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8863     }
8864
8865     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8866       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8867     }
8868
8869     @Override
8870     public String toString() {
8871       StringBuilder sb = new StringBuilder("delVrf_args(");
8872       boolean first = true;
8873
8874       sb.append("rd:");
8875       if (this.rd == null) {
8876         sb.append("null");
8877       } else {
8878         sb.append(this.rd);
8879       }
8880       first = false;
8881       sb.append(")");
8882       return sb.toString();
8883     }
8884
8885     public void validate() throws org.apache.thrift.TException {
8886       // check for required fields
8887       // check for sub-struct validity
8888     }
8889
8890     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8891       try {
8892         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8893       } catch (org.apache.thrift.TException te) {
8894         throw new java.io.IOException(te);
8895       }
8896     }
8897
8898     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8899       try {
8900         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8901       } catch (org.apache.thrift.TException te) {
8902         throw new java.io.IOException(te);
8903       }
8904     }
8905
8906     private static class delVrf_argsStandardSchemeFactory implements SchemeFactory {
8907       public delVrf_argsStandardScheme getScheme() {
8908         return new delVrf_argsStandardScheme();
8909       }
8910     }
8911
8912     private static class delVrf_argsStandardScheme extends StandardScheme<delVrf_args> {
8913
8914       public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_args struct) throws org.apache.thrift.TException {
8915         org.apache.thrift.protocol.TField schemeField;
8916         iprot.readStructBegin();
8917         while (true)
8918         {
8919           schemeField = iprot.readFieldBegin();
8920           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
8921             break;
8922           }
8923           switch (schemeField.id) {
8924             case 1: // RD
8925               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8926                 struct.rd = iprot.readString();
8927                 struct.setRdIsSet(true);
8928               } else { 
8929                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8930               }
8931               break;
8932             default:
8933               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8934           }
8935           iprot.readFieldEnd();
8936         }
8937         iprot.readStructEnd();
8938
8939         // check for required fields of primitive type, which can't be checked in the validate method
8940         struct.validate();
8941       }
8942
8943       public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_args struct) throws org.apache.thrift.TException {
8944         struct.validate();
8945
8946         oprot.writeStructBegin(STRUCT_DESC);
8947         if (struct.rd != null) {
8948           oprot.writeFieldBegin(RD_FIELD_DESC);
8949           oprot.writeString(struct.rd);
8950           oprot.writeFieldEnd();
8951         }
8952         oprot.writeFieldStop();
8953         oprot.writeStructEnd();
8954       }
8955
8956     }
8957
8958     private static class delVrf_argsTupleSchemeFactory implements SchemeFactory {
8959       public delVrf_argsTupleScheme getScheme() {
8960         return new delVrf_argsTupleScheme();
8961       }
8962     }
8963
8964     private static class delVrf_argsTupleScheme extends TupleScheme<delVrf_args> {
8965
8966       @Override
8967       public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
8968         TTupleProtocol oprot = (TTupleProtocol) prot;
8969         BitSet optionals = new BitSet();
8970         if (struct.isSetRd()) {
8971           optionals.set(0);
8972         }
8973         oprot.writeBitSet(optionals, 1);
8974         if (struct.isSetRd()) {
8975           oprot.writeString(struct.rd);
8976         }
8977       }
8978
8979       @Override
8980       public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
8981         TTupleProtocol iprot = (TTupleProtocol) prot;
8982         BitSet incoming = iprot.readBitSet(1);
8983         if (incoming.get(0)) {
8984           struct.rd = iprot.readString();
8985           struct.setRdIsSet(true);
8986         }
8987       }
8988     }
8989
8990   }
8991
8992   public static class delVrf_result implements org.apache.thrift.TBase<delVrf_result, delVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_result>   {
8993     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_result");
8994
8995     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);
8996
8997     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8998     static {
8999       schemes.put(StandardScheme.class, new delVrf_resultStandardSchemeFactory());
9000       schemes.put(TupleScheme.class, new delVrf_resultTupleSchemeFactory());
9001     }
9002
9003     public int success; // required
9004
9005     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9006     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9007       SUCCESS((short)0, "success");
9008
9009       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9010
9011       static {
9012         for (_Fields field : EnumSet.allOf(_Fields.class)) {
9013           byName.put(field.getFieldName(), field);
9014         }
9015       }
9016
9017       /**
9018        * Find the _Fields constant that matches fieldId, or null if its not found.
9019        */
9020       public static _Fields findByThriftId(int fieldId) {
9021         switch(fieldId) {
9022           case 0: // SUCCESS
9023             return SUCCESS;
9024           default:
9025             return null;
9026         }
9027       }
9028
9029       /**
9030        * Find the _Fields constant that matches fieldId, throwing an exception
9031        * if it is not found.
9032        */
9033       public static _Fields findByThriftIdOrThrow(int fieldId) {
9034         _Fields fields = findByThriftId(fieldId);
9035         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9036         return fields;
9037       }
9038
9039       /**
9040        * Find the _Fields constant that matches name, or null if its not found.
9041        */
9042       public static _Fields findByName(String name) {
9043         return byName.get(name);
9044       }
9045
9046       private final short _thriftId;
9047       private final String _fieldName;
9048
9049       _Fields(short thriftId, String fieldName) {
9050         _thriftId = thriftId;
9051         _fieldName = fieldName;
9052       }
9053
9054       public short getThriftFieldId() {
9055         return _thriftId;
9056       }
9057
9058       public String getFieldName() {
9059         return _fieldName;
9060       }
9061     }
9062
9063     // isset id assignments
9064     private static final int __SUCCESS_ISSET_ID = 0;
9065     private byte __isset_bitfield = 0;
9066     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9067     static {
9068       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9069       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9070           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9071       metaDataMap = Collections.unmodifiableMap(tmpMap);
9072       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_result.class, metaDataMap);
9073     }
9074
9075     public delVrf_result() {
9076     }
9077
9078     public delVrf_result(
9079       int success)
9080     {
9081       this();
9082       this.success = success;
9083       setSuccessIsSet(true);
9084     }
9085
9086     /**
9087      * Performs a deep copy on <i>other</i>.
9088      */
9089     public delVrf_result(delVrf_result other) {
9090       __isset_bitfield = other.__isset_bitfield;
9091       this.success = other.success;
9092     }
9093
9094     public delVrf_result deepCopy() {
9095       return new delVrf_result(this);
9096     }
9097
9098     @Override
9099     public void clear() {
9100       setSuccessIsSet(false);
9101       this.success = 0;
9102     }
9103
9104     public int getSuccess() {
9105       return this.success;
9106     }
9107
9108     public delVrf_result setSuccess(int success) {
9109       this.success = success;
9110       setSuccessIsSet(true);
9111       return this;
9112     }
9113
9114     public void unsetSuccess() {
9115       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9116     }
9117
9118     /** Returns true if field success is set (has been assigned a value) and false otherwise */
9119     public boolean isSetSuccess() {
9120       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9121     }
9122
9123     public void setSuccessIsSet(boolean value) {
9124       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
9125     }
9126
9127     public void setFieldValue(_Fields field, Object value) {
9128       switch (field) {
9129       case SUCCESS:
9130         if (value == null) {
9131           unsetSuccess();
9132         } else {
9133           setSuccess((Integer)value);
9134         }
9135         break;
9136
9137       }
9138     }
9139
9140     public Object getFieldValue(_Fields field) {
9141       switch (field) {
9142       case SUCCESS:
9143         return Integer.valueOf(getSuccess());
9144
9145       }
9146       throw new IllegalStateException();
9147     }
9148
9149     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9150     public boolean isSet(_Fields field) {
9151       if (field == null) {
9152         throw new IllegalArgumentException();
9153       }
9154
9155       switch (field) {
9156       case SUCCESS:
9157         return isSetSuccess();
9158       }
9159       throw new IllegalStateException();
9160     }
9161
9162     @Override
9163     public boolean equals(Object that) {
9164       if (that == null)
9165         return false;
9166       if (that instanceof delVrf_result)
9167         return this.equals((delVrf_result)that);
9168       return false;
9169     }
9170
9171     public boolean equals(delVrf_result that) {
9172       if (that == null)
9173         return false;
9174
9175       boolean this_present_success = true;
9176       boolean that_present_success = true;
9177       if (this_present_success || that_present_success) {
9178         if (!(this_present_success && that_present_success))
9179           return false;
9180         if (this.success != that.success)
9181           return false;
9182       }
9183
9184       return true;
9185     }
9186
9187     @Override
9188     public int hashCode() {
9189       return 0;
9190     }
9191
9192     @Override
9193     public int compareTo(delVrf_result other) {
9194       if (!getClass().equals(other.getClass())) {
9195         return getClass().getName().compareTo(other.getClass().getName());
9196       }
9197
9198       int lastComparison = 0;
9199
9200       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
9201       if (lastComparison != 0) {
9202         return lastComparison;
9203       }
9204       if (isSetSuccess()) {
9205         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
9206         if (lastComparison != 0) {
9207           return lastComparison;
9208         }
9209       }
9210       return 0;
9211     }
9212
9213     public _Fields fieldForId(int fieldId) {
9214       return _Fields.findByThriftId(fieldId);
9215     }
9216
9217     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9218       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9219     }
9220
9221     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9222       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9223       }
9224
9225     @Override
9226     public String toString() {
9227       StringBuilder sb = new StringBuilder("delVrf_result(");
9228       boolean first = true;
9229
9230       sb.append("success:");
9231       sb.append(this.success);
9232       first = false;
9233       sb.append(")");
9234       return sb.toString();
9235     }
9236
9237     public void validate() throws org.apache.thrift.TException {
9238       // check for required fields
9239       // check for sub-struct validity
9240     }
9241
9242     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9243       try {
9244         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9245       } catch (org.apache.thrift.TException te) {
9246         throw new java.io.IOException(te);
9247       }
9248     }
9249
9250     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9251       try {
9252         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9253         __isset_bitfield = 0;
9254         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9255       } catch (org.apache.thrift.TException te) {
9256         throw new java.io.IOException(te);
9257       }
9258     }
9259
9260     private static class delVrf_resultStandardSchemeFactory implements SchemeFactory {
9261       public delVrf_resultStandardScheme getScheme() {
9262         return new delVrf_resultStandardScheme();
9263       }
9264     }
9265
9266     private static class delVrf_resultStandardScheme extends StandardScheme<delVrf_result> {
9267
9268       public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_result struct) throws org.apache.thrift.TException {
9269         org.apache.thrift.protocol.TField schemeField;
9270         iprot.readStructBegin();
9271         while (true)
9272         {
9273           schemeField = iprot.readFieldBegin();
9274           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
9275             break;
9276           }
9277           switch (schemeField.id) {
9278             case 0: // SUCCESS
9279               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9280                 struct.success = iprot.readI32();
9281                 struct.setSuccessIsSet(true);
9282               } else { 
9283                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9284               }
9285               break;
9286             default:
9287               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9288           }
9289           iprot.readFieldEnd();
9290         }
9291         iprot.readStructEnd();
9292
9293         // check for required fields of primitive type, which can't be checked in the validate method
9294         struct.validate();
9295       }
9296
9297       public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_result struct) throws org.apache.thrift.TException {
9298         struct.validate();
9299
9300         oprot.writeStructBegin(STRUCT_DESC);
9301         if (struct.isSetSuccess()) {
9302           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9303           oprot.writeI32(struct.success);
9304           oprot.writeFieldEnd();
9305         }
9306         oprot.writeFieldStop();
9307         oprot.writeStructEnd();
9308       }
9309
9310     }
9311
9312     private static class delVrf_resultTupleSchemeFactory implements SchemeFactory {
9313       public delVrf_resultTupleScheme getScheme() {
9314         return new delVrf_resultTupleScheme();
9315       }
9316     }
9317
9318     private static class delVrf_resultTupleScheme extends TupleScheme<delVrf_result> {
9319
9320       @Override
9321       public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
9322         TTupleProtocol oprot = (TTupleProtocol) prot;
9323         BitSet optionals = new BitSet();
9324         if (struct.isSetSuccess()) {
9325           optionals.set(0);
9326         }
9327         oprot.writeBitSet(optionals, 1);
9328         if (struct.isSetSuccess()) {
9329           oprot.writeI32(struct.success);
9330         }
9331       }
9332
9333       @Override
9334       public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
9335         TTupleProtocol iprot = (TTupleProtocol) prot;
9336         BitSet incoming = iprot.readBitSet(1);
9337         if (incoming.get(0)) {
9338           struct.success = iprot.readI32();
9339           struct.setSuccessIsSet(true);
9340         }
9341       }
9342     }
9343
9344   }
9345
9346   public static class pushRoute_args implements org.apache.thrift.TBase<pushRoute_args, pushRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_args>   {
9347     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_args");
9348
9349     private static final org.apache.thrift.protocol.TField P_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("p_type", org.apache.thrift.protocol.TType.I32, (short)1);
9350     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)2);
9351     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)3);
9352     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)4);
9353     private static final org.apache.thrift.protocol.TField ETHTAG_FIELD_DESC = new org.apache.thrift.protocol.TField("ethtag", org.apache.thrift.protocol.TType.I32, (short)5);
9354     private static final org.apache.thrift.protocol.TField ESI_FIELD_DESC = new org.apache.thrift.protocol.TField("esi", org.apache.thrift.protocol.TType.STRING, (short)6);
9355     private static final org.apache.thrift.protocol.TField MACADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("macaddress", org.apache.thrift.protocol.TType.STRING, (short)7);
9356     private static final org.apache.thrift.protocol.TField L3LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("l3label", org.apache.thrift.protocol.TType.I32, (short)8);
9357     private static final org.apache.thrift.protocol.TField L2LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("l2label", org.apache.thrift.protocol.TType.I32, (short)9);
9358     private static final org.apache.thrift.protocol.TField ENC_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("enc_type", org.apache.thrift.protocol.TType.I32, (short)10);
9359     private static final org.apache.thrift.protocol.TField ROUTERMAC_FIELD_DESC = new org.apache.thrift.protocol.TField("routermac", org.apache.thrift.protocol.TType.STRING, (short)11);
9360
9361     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9362     static {
9363       schemes.put(StandardScheme.class, new pushRoute_argsStandardSchemeFactory());
9364       schemes.put(TupleScheme.class, new pushRoute_argsTupleSchemeFactory());
9365     }
9366
9367     /**
9368      * 
9369      * @see protocol_type
9370      */
9371     public protocol_type p_type; // required
9372     public String prefix; // required
9373     public String nexthop; // required
9374     public String rd; // required
9375     public int ethtag; // required
9376     public String esi; // required
9377     public String macaddress; // required
9378     public int l3label; // required
9379     public int l2label; // required
9380     /**
9381      * 
9382      * @see encap_type
9383      */
9384     public encap_type enc_type; // required
9385     public String routermac; // required
9386
9387     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9388     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9389       /**
9390        * 
9391        * @see protocol_type
9392        */
9393       P_TYPE((short)1, "p_type"),
9394       PREFIX((short)2, "prefix"),
9395       NEXTHOP((short)3, "nexthop"),
9396       RD((short)4, "rd"),
9397       ETHTAG((short)5, "ethtag"),
9398       ESI((short)6, "esi"),
9399       MACADDRESS((short)7, "macaddress"),
9400       L3LABEL((short)8, "l3label"),
9401       L2LABEL((short)9, "l2label"),
9402       /**
9403        * 
9404        * @see encap_type
9405        */
9406       ENC_TYPE((short)10, "enc_type"),
9407       ROUTERMAC((short)11, "routermac");
9408
9409       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9410
9411       static {
9412         for (_Fields field : EnumSet.allOf(_Fields.class)) {
9413           byName.put(field.getFieldName(), field);
9414         }
9415       }
9416
9417       /**
9418        * Find the _Fields constant that matches fieldId, or null if its not found.
9419        */
9420       public static _Fields findByThriftId(int fieldId) {
9421         switch(fieldId) {
9422           case 1: // P_TYPE
9423             return P_TYPE;
9424           case 2: // PREFIX
9425             return PREFIX;
9426           case 3: // NEXTHOP
9427             return NEXTHOP;
9428           case 4: // RD
9429             return RD;
9430           case 5: // ETHTAG
9431             return ETHTAG;
9432           case 6: // ESI
9433             return ESI;
9434           case 7: // MACADDRESS
9435             return MACADDRESS;
9436           case 8: // L3LABEL
9437             return L3LABEL;
9438           case 9: // L2LABEL
9439             return L2LABEL;
9440           case 10: // ENC_TYPE
9441             return ENC_TYPE;
9442           case 11: // ROUTERMAC
9443             return ROUTERMAC;
9444           default:
9445             return null;
9446         }
9447       }
9448
9449       /**
9450        * Find the _Fields constant that matches fieldId, throwing an exception
9451        * if it is not found.
9452        */
9453       public static _Fields findByThriftIdOrThrow(int fieldId) {
9454         _Fields fields = findByThriftId(fieldId);
9455         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9456         return fields;
9457       }
9458
9459       /**
9460        * Find the _Fields constant that matches name, or null if its not found.
9461        */
9462       public static _Fields findByName(String name) {
9463         return byName.get(name);
9464       }
9465
9466       private final short _thriftId;
9467       private final String _fieldName;
9468
9469       _Fields(short thriftId, String fieldName) {
9470         _thriftId = thriftId;
9471         _fieldName = fieldName;
9472       }
9473
9474       public short getThriftFieldId() {
9475         return _thriftId;
9476       }
9477
9478       public String getFieldName() {
9479         return _fieldName;
9480       }
9481     }
9482
9483     // isset id assignments
9484     private static final int __ETHTAG_ISSET_ID = 0;
9485     private static final int __L3LABEL_ISSET_ID = 1;
9486     private static final int __L2LABEL_ISSET_ID = 2;
9487     private byte __isset_bitfield = 0;
9488     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9489     static {
9490       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9491       tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9492           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
9493       tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9494           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9495       tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9496           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9497       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9498           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9499       tmpMap.put(_Fields.ETHTAG, new org.apache.thrift.meta_data.FieldMetaData("ethtag", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9500           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9501       tmpMap.put(_Fields.ESI, new org.apache.thrift.meta_data.FieldMetaData("esi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9502           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9503       tmpMap.put(_Fields.MACADDRESS, new org.apache.thrift.meta_data.FieldMetaData("macaddress", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9504           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9505       tmpMap.put(_Fields.L3LABEL, new org.apache.thrift.meta_data.FieldMetaData("l3label", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9506           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9507       tmpMap.put(_Fields.L2LABEL, new org.apache.thrift.meta_data.FieldMetaData("l2label", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9508           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9509       tmpMap.put(_Fields.ENC_TYPE, new org.apache.thrift.meta_data.FieldMetaData("enc_type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9510           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, encap_type.class)));
9511       tmpMap.put(_Fields.ROUTERMAC, new org.apache.thrift.meta_data.FieldMetaData("routermac", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9512           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9513       metaDataMap = Collections.unmodifiableMap(tmpMap);
9514       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_args.class, metaDataMap);
9515     }
9516
9517     public pushRoute_args() {
9518     }
9519
9520     public pushRoute_args(
9521       protocol_type p_type,
9522       String prefix,
9523       String nexthop,
9524       String rd,
9525       int ethtag,
9526       String esi,
9527       String macaddress,
9528       int l3label,
9529       int l2label,
9530       encap_type enc_type,
9531       String routermac)
9532     {
9533       this();
9534       this.p_type = p_type;
9535       this.prefix = prefix;
9536       this.nexthop = nexthop;
9537       this.rd = rd;
9538       this.ethtag = ethtag;
9539       setEthtagIsSet(true);
9540       this.esi = esi;
9541       this.macaddress = macaddress;
9542       this.l3label = l3label;
9543       setL3labelIsSet(true);
9544       this.l2label = l2label;
9545       setL2labelIsSet(true);
9546       this.enc_type = enc_type;
9547       this.routermac = routermac;
9548     }
9549
9550     /**
9551      * Performs a deep copy on <i>other</i>.
9552      */
9553     public pushRoute_args(pushRoute_args other) {
9554       __isset_bitfield = other.__isset_bitfield;
9555       if (other.isSetP_type()) {
9556         this.p_type = other.p_type;
9557       }
9558       if (other.isSetPrefix()) {
9559         this.prefix = other.prefix;
9560       }
9561       if (other.isSetNexthop()) {
9562         this.nexthop = other.nexthop;
9563       }
9564       if (other.isSetRd()) {
9565         this.rd = other.rd;
9566       }
9567       this.ethtag = other.ethtag;
9568       if (other.isSetEsi()) {
9569         this.esi = other.esi;
9570       }
9571       if (other.isSetMacaddress()) {
9572         this.macaddress = other.macaddress;
9573       }
9574       this.l3label = other.l3label;
9575       this.l2label = other.l2label;
9576       if (other.isSetEnc_type()) {
9577         this.enc_type = other.enc_type;
9578       }
9579       if (other.isSetRoutermac()) {
9580         this.routermac = other.routermac;
9581       }
9582     }
9583
9584     public pushRoute_args deepCopy() {
9585       return new pushRoute_args(this);
9586     }
9587
9588     @Override
9589     public void clear() {
9590       this.p_type = null;
9591       this.prefix = null;
9592       this.nexthop = null;
9593       this.rd = null;
9594       setEthtagIsSet(false);
9595       this.ethtag = 0;
9596       this.esi = null;
9597       this.macaddress = null;
9598       setL3labelIsSet(false);
9599       this.l3label = 0;
9600       setL2labelIsSet(false);
9601       this.l2label = 0;
9602       this.enc_type = null;
9603       this.routermac = null;
9604     }
9605
9606     /**
9607      * 
9608      * @see protocol_type
9609      */
9610     public protocol_type getP_type() {
9611       return this.p_type;
9612     }
9613
9614     /**
9615      * 
9616      * @see protocol_type
9617      */
9618     public pushRoute_args setP_type(protocol_type p_type) {
9619       this.p_type = p_type;
9620       return this;
9621     }
9622
9623     public void unsetP_type() {
9624       this.p_type = null;
9625     }
9626
9627     /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
9628     public boolean isSetP_type() {
9629       return this.p_type != null;
9630     }
9631
9632     public void setP_typeIsSet(boolean value) {
9633       if (!value) {
9634         this.p_type = null;
9635       }
9636     }
9637
9638     public String getPrefix() {
9639       return this.prefix;
9640     }
9641
9642     public pushRoute_args setPrefix(String prefix) {
9643       this.prefix = prefix;
9644       return this;
9645     }
9646
9647     public void unsetPrefix() {
9648       this.prefix = null;
9649     }
9650
9651     /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
9652     public boolean isSetPrefix() {
9653       return this.prefix != null;
9654     }
9655
9656     public void setPrefixIsSet(boolean value) {
9657       if (!value) {
9658         this.prefix = null;
9659       }
9660     }
9661
9662     public String getNexthop() {
9663       return this.nexthop;
9664     }
9665
9666     public pushRoute_args setNexthop(String nexthop) {
9667       this.nexthop = nexthop;
9668       return this;
9669     }
9670
9671     public void unsetNexthop() {
9672       this.nexthop = null;
9673     }
9674
9675     /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
9676     public boolean isSetNexthop() {
9677       return this.nexthop != null;
9678     }
9679
9680     public void setNexthopIsSet(boolean value) {
9681       if (!value) {
9682         this.nexthop = null;
9683       }
9684     }
9685
9686     public String getRd() {
9687       return this.rd;
9688     }
9689
9690     public pushRoute_args setRd(String rd) {
9691       this.rd = rd;
9692       return this;
9693     }
9694
9695     public void unsetRd() {
9696       this.rd = null;
9697     }
9698
9699     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
9700     public boolean isSetRd() {
9701       return this.rd != null;
9702     }
9703
9704     public void setRdIsSet(boolean value) {
9705       if (!value) {
9706         this.rd = null;
9707       }
9708     }
9709
9710     public int getEthtag() {
9711       return this.ethtag;
9712     }
9713
9714     public pushRoute_args setEthtag(int ethtag) {
9715       this.ethtag = ethtag;
9716       setEthtagIsSet(true);
9717       return this;
9718     }
9719
9720     public void unsetEthtag() {
9721       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ETHTAG_ISSET_ID);
9722     }
9723
9724     /** Returns true if field ethtag is set (has been assigned a value) and false otherwise */
9725     public boolean isSetEthtag() {
9726       return EncodingUtils.testBit(__isset_bitfield, __ETHTAG_ISSET_ID);
9727     }
9728
9729     public void setEthtagIsSet(boolean value) {
9730       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ETHTAG_ISSET_ID, value);
9731     }
9732
9733     public String getEsi() {
9734       return this.esi;
9735     }
9736
9737     public pushRoute_args setEsi(String esi) {
9738       this.esi = esi;
9739       return this;
9740     }
9741
9742     public void unsetEsi() {
9743       this.esi = null;
9744     }
9745
9746     /** Returns true if field esi is set (has been assigned a value) and false otherwise */
9747     public boolean isSetEsi() {
9748       return this.esi != null;
9749     }
9750
9751     public void setEsiIsSet(boolean value) {
9752       if (!value) {
9753         this.esi = null;
9754       }
9755     }
9756
9757     public String getMacaddress() {
9758       return this.macaddress;
9759     }
9760
9761     public pushRoute_args setMacaddress(String macaddress) {
9762       this.macaddress = macaddress;
9763       return this;
9764     }
9765
9766     public void unsetMacaddress() {
9767       this.macaddress = null;
9768     }
9769
9770     /** Returns true if field macaddress is set (has been assigned a value) and false otherwise */
9771     public boolean isSetMacaddress() {
9772       return this.macaddress != null;
9773     }
9774
9775     public void setMacaddressIsSet(boolean value) {
9776       if (!value) {
9777         this.macaddress = null;
9778       }
9779     }
9780
9781     public int getL3label() {
9782       return this.l3label;
9783     }
9784
9785     public pushRoute_args setL3label(int l3label) {
9786       this.l3label = l3label;
9787       setL3labelIsSet(true);
9788       return this;
9789     }
9790
9791     public void unsetL3label() {
9792       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L3LABEL_ISSET_ID);
9793     }
9794
9795     /** Returns true if field l3label is set (has been assigned a value) and false otherwise */
9796     public boolean isSetL3label() {
9797       return EncodingUtils.testBit(__isset_bitfield, __L3LABEL_ISSET_ID);
9798     }
9799
9800     public void setL3labelIsSet(boolean value) {
9801       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L3LABEL_ISSET_ID, value);
9802     }
9803
9804     public int getL2label() {
9805       return this.l2label;
9806     }
9807
9808     public pushRoute_args setL2label(int l2label) {
9809       this.l2label = l2label;
9810       setL2labelIsSet(true);
9811       return this;
9812     }
9813
9814     public void unsetL2label() {
9815       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L2LABEL_ISSET_ID);
9816     }
9817
9818     /** Returns true if field l2label is set (has been assigned a value) and false otherwise */
9819     public boolean isSetL2label() {
9820       return EncodingUtils.testBit(__isset_bitfield, __L2LABEL_ISSET_ID);
9821     }
9822
9823     public void setL2labelIsSet(boolean value) {
9824       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L2LABEL_ISSET_ID, value);
9825     }
9826
9827     /**
9828      * 
9829      * @see encap_type
9830      */
9831     public encap_type getEnc_type() {
9832       return this.enc_type;
9833     }
9834
9835     /**
9836      * 
9837      * @see encap_type
9838      */
9839     public pushRoute_args setEnc_type(encap_type enc_type) {
9840       this.enc_type = enc_type;
9841       return this;
9842     }
9843
9844     public void unsetEnc_type() {
9845       this.enc_type = null;
9846     }
9847
9848     /** Returns true if field enc_type is set (has been assigned a value) and false otherwise */
9849     public boolean isSetEnc_type() {
9850       return this.enc_type != null;
9851     }
9852
9853     public void setEnc_typeIsSet(boolean value) {
9854       if (!value) {
9855         this.enc_type = null;
9856       }
9857     }
9858
9859     public String getRoutermac() {
9860       return this.routermac;
9861     }
9862
9863     public pushRoute_args setRoutermac(String routermac) {
9864       this.routermac = routermac;
9865       return this;
9866     }
9867
9868     public void unsetRoutermac() {
9869       this.routermac = null;
9870     }
9871
9872     /** Returns true if field routermac is set (has been assigned a value) and false otherwise */
9873     public boolean isSetRoutermac() {
9874       return this.routermac != null;
9875     }
9876
9877     public void setRoutermacIsSet(boolean value) {
9878       if (!value) {
9879         this.routermac = null;
9880       }
9881     }
9882
9883     public void setFieldValue(_Fields field, Object value) {
9884       switch (field) {
9885       case P_TYPE:
9886         if (value == null) {
9887           unsetP_type();
9888         } else {
9889           setP_type((protocol_type)value);
9890         }
9891         break;
9892
9893       case PREFIX:
9894         if (value == null) {
9895           unsetPrefix();
9896         } else {
9897           setPrefix((String)value);
9898         }
9899         break;
9900
9901       case NEXTHOP:
9902         if (value == null) {
9903           unsetNexthop();
9904         } else {
9905           setNexthop((String)value);
9906         }
9907         break;
9908
9909       case RD:
9910         if (value == null) {
9911           unsetRd();
9912         } else {
9913           setRd((String)value);
9914         }
9915         break;
9916
9917       case ETHTAG:
9918         if (value == null) {
9919           unsetEthtag();
9920         } else {
9921           setEthtag((Integer)value);
9922         }
9923         break;
9924
9925       case ESI:
9926         if (value == null) {
9927           unsetEsi();
9928         } else {
9929           setEsi((String)value);
9930         }
9931         break;
9932
9933       case MACADDRESS:
9934         if (value == null) {
9935           unsetMacaddress();
9936         } else {
9937           setMacaddress((String)value);
9938         }
9939         break;
9940
9941       case L3LABEL:
9942         if (value == null) {
9943           unsetL3label();
9944         } else {
9945           setL3label((Integer)value);
9946         }
9947         break;
9948
9949       case L2LABEL:
9950         if (value == null) {
9951           unsetL2label();
9952         } else {
9953           setL2label((Integer)value);
9954         }
9955         break;
9956
9957       case ENC_TYPE:
9958         if (value == null) {
9959           unsetEnc_type();
9960         } else {
9961           setEnc_type((encap_type)value);
9962         }
9963         break;
9964
9965       case ROUTERMAC:
9966         if (value == null) {
9967           unsetRoutermac();
9968         } else {
9969           setRoutermac((String)value);
9970         }
9971         break;
9972
9973       }
9974     }
9975
9976     public Object getFieldValue(_Fields field) {
9977       switch (field) {
9978       case P_TYPE:
9979         return getP_type();
9980
9981       case PREFIX:
9982         return getPrefix();
9983
9984       case NEXTHOP:
9985         return getNexthop();
9986
9987       case RD:
9988         return getRd();
9989
9990       case ETHTAG:
9991         return Integer.valueOf(getEthtag());
9992
9993       case ESI:
9994         return getEsi();
9995
9996       case MACADDRESS:
9997         return getMacaddress();
9998
9999       case L3LABEL:
10000         return Integer.valueOf(getL3label());
10001
10002       case L2LABEL:
10003         return Integer.valueOf(getL2label());
10004
10005       case ENC_TYPE:
10006         return getEnc_type();
10007
10008       case ROUTERMAC:
10009         return getRoutermac();
10010
10011       }
10012       throw new IllegalStateException();
10013     }
10014
10015     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10016     public boolean isSet(_Fields field) {
10017       if (field == null) {
10018         throw new IllegalArgumentException();
10019       }
10020
10021       switch (field) {
10022       case P_TYPE:
10023         return isSetP_type();
10024       case PREFIX:
10025         return isSetPrefix();
10026       case NEXTHOP:
10027         return isSetNexthop();
10028       case RD:
10029         return isSetRd();
10030       case ETHTAG:
10031         return isSetEthtag();
10032       case ESI:
10033         return isSetEsi();
10034       case MACADDRESS:
10035         return isSetMacaddress();
10036       case L3LABEL:
10037         return isSetL3label();
10038       case L2LABEL:
10039         return isSetL2label();
10040       case ENC_TYPE:
10041         return isSetEnc_type();
10042       case ROUTERMAC:
10043         return isSetRoutermac();
10044       }
10045       throw new IllegalStateException();
10046     }
10047
10048     @Override
10049     public boolean equals(Object that) {
10050       if (that == null)
10051         return false;
10052       if (that instanceof pushRoute_args)
10053         return this.equals((pushRoute_args)that);
10054       return false;
10055     }
10056
10057     public boolean equals(pushRoute_args that) {
10058       if (that == null)
10059         return false;
10060
10061       boolean this_present_p_type = true && this.isSetP_type();
10062       boolean that_present_p_type = true && that.isSetP_type();
10063       if (this_present_p_type || that_present_p_type) {
10064         if (!(this_present_p_type && that_present_p_type))
10065           return false;
10066         if (!this.p_type.equals(that.p_type))
10067           return false;
10068       }
10069
10070       boolean this_present_prefix = true && this.isSetPrefix();
10071       boolean that_present_prefix = true && that.isSetPrefix();
10072       if (this_present_prefix || that_present_prefix) {
10073         if (!(this_present_prefix && that_present_prefix))
10074           return false;
10075         if (!this.prefix.equals(that.prefix))
10076           return false;
10077       }
10078
10079       boolean this_present_nexthop = true && this.isSetNexthop();
10080       boolean that_present_nexthop = true && that.isSetNexthop();
10081       if (this_present_nexthop || that_present_nexthop) {
10082         if (!(this_present_nexthop && that_present_nexthop))
10083           return false;
10084         if (!this.nexthop.equals(that.nexthop))
10085           return false;
10086       }
10087
10088       boolean this_present_rd = true && this.isSetRd();
10089       boolean that_present_rd = true && that.isSetRd();
10090       if (this_present_rd || that_present_rd) {
10091         if (!(this_present_rd && that_present_rd))
10092           return false;
10093         if (!this.rd.equals(that.rd))
10094           return false;
10095       }
10096
10097       boolean this_present_ethtag = true;
10098       boolean that_present_ethtag = true;
10099       if (this_present_ethtag || that_present_ethtag) {
10100         if (!(this_present_ethtag && that_present_ethtag))
10101           return false;
10102         if (this.ethtag != that.ethtag)
10103           return false;
10104       }
10105
10106       boolean this_present_esi = true && this.isSetEsi();
10107       boolean that_present_esi = true && that.isSetEsi();
10108       if (this_present_esi || that_present_esi) {
10109         if (!(this_present_esi && that_present_esi))
10110           return false;
10111         if (!this.esi.equals(that.esi))
10112           return false;
10113       }
10114
10115       boolean this_present_macaddress = true && this.isSetMacaddress();
10116       boolean that_present_macaddress = true && that.isSetMacaddress();
10117       if (this_present_macaddress || that_present_macaddress) {
10118         if (!(this_present_macaddress && that_present_macaddress))
10119           return false;
10120         if (!this.macaddress.equals(that.macaddress))
10121           return false;
10122       }
10123
10124       boolean this_present_l3label = true;
10125       boolean that_present_l3label = true;
10126       if (this_present_l3label || that_present_l3label) {
10127         if (!(this_present_l3label && that_present_l3label))
10128           return false;
10129         if (this.l3label != that.l3label)
10130           return false;
10131       }
10132
10133       boolean this_present_l2label = true;
10134       boolean that_present_l2label = true;
10135       if (this_present_l2label || that_present_l2label) {
10136         if (!(this_present_l2label && that_present_l2label))
10137           return false;
10138         if (this.l2label != that.l2label)
10139           return false;
10140       }
10141
10142       boolean this_present_enc_type = true && this.isSetEnc_type();
10143       boolean that_present_enc_type = true && that.isSetEnc_type();
10144       if (this_present_enc_type || that_present_enc_type) {
10145         if (!(this_present_enc_type && that_present_enc_type))
10146           return false;
10147         if (!this.enc_type.equals(that.enc_type))
10148           return false;
10149       }
10150
10151       boolean this_present_routermac = true && this.isSetRoutermac();
10152       boolean that_present_routermac = true && that.isSetRoutermac();
10153       if (this_present_routermac || that_present_routermac) {
10154         if (!(this_present_routermac && that_present_routermac))
10155           return false;
10156         if (!this.routermac.equals(that.routermac))
10157           return false;
10158       }
10159
10160       return true;
10161     }
10162
10163     @Override
10164     public int hashCode() {
10165       return 0;
10166     }
10167
10168     @Override
10169     public int compareTo(pushRoute_args other) {
10170       if (!getClass().equals(other.getClass())) {
10171         return getClass().getName().compareTo(other.getClass().getName());
10172       }
10173
10174       int lastComparison = 0;
10175
10176       lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
10177       if (lastComparison != 0) {
10178         return lastComparison;
10179       }
10180       if (isSetP_type()) {
10181         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
10182         if (lastComparison != 0) {
10183           return lastComparison;
10184         }
10185       }
10186       lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
10187       if (lastComparison != 0) {
10188         return lastComparison;
10189       }
10190       if (isSetPrefix()) {
10191         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
10192         if (lastComparison != 0) {
10193           return lastComparison;
10194         }
10195       }
10196       lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
10197       if (lastComparison != 0) {
10198         return lastComparison;
10199       }
10200       if (isSetNexthop()) {
10201         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
10202         if (lastComparison != 0) {
10203           return lastComparison;
10204         }
10205       }
10206       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
10207       if (lastComparison != 0) {
10208         return lastComparison;
10209       }
10210       if (isSetRd()) {
10211         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
10212         if (lastComparison != 0) {
10213           return lastComparison;
10214         }
10215       }
10216       lastComparison = Boolean.valueOf(isSetEthtag()).compareTo(other.isSetEthtag());
10217       if (lastComparison != 0) {
10218         return lastComparison;
10219       }
10220       if (isSetEthtag()) {
10221         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ethtag, other.ethtag);
10222         if (lastComparison != 0) {
10223           return lastComparison;
10224         }
10225       }
10226       lastComparison = Boolean.valueOf(isSetEsi()).compareTo(other.isSetEsi());
10227       if (lastComparison != 0) {
10228         return lastComparison;
10229       }
10230       if (isSetEsi()) {
10231         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.esi, other.esi);
10232         if (lastComparison != 0) {
10233           return lastComparison;
10234         }
10235       }
10236       lastComparison = Boolean.valueOf(isSetMacaddress()).compareTo(other.isSetMacaddress());
10237       if (lastComparison != 0) {
10238         return lastComparison;
10239       }
10240       if (isSetMacaddress()) {
10241         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.macaddress, other.macaddress);
10242         if (lastComparison != 0) {
10243           return lastComparison;
10244         }
10245       }
10246       lastComparison = Boolean.valueOf(isSetL3label()).compareTo(other.isSetL3label());
10247       if (lastComparison != 0) {
10248         return lastComparison;
10249       }
10250       if (isSetL3label()) {
10251         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l3label, other.l3label);
10252         if (lastComparison != 0) {
10253           return lastComparison;
10254         }
10255       }
10256       lastComparison = Boolean.valueOf(isSetL2label()).compareTo(other.isSetL2label());
10257       if (lastComparison != 0) {
10258         return lastComparison;
10259       }
10260       if (isSetL2label()) {
10261         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l2label, other.l2label);
10262         if (lastComparison != 0) {
10263           return lastComparison;
10264         }
10265       }
10266       lastComparison = Boolean.valueOf(isSetEnc_type()).compareTo(other.isSetEnc_type());
10267       if (lastComparison != 0) {
10268         return lastComparison;
10269       }
10270       if (isSetEnc_type()) {
10271         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.enc_type, other.enc_type);
10272         if (lastComparison != 0) {
10273           return lastComparison;
10274         }
10275       }
10276       lastComparison = Boolean.valueOf(isSetRoutermac()).compareTo(other.isSetRoutermac());
10277       if (lastComparison != 0) {
10278         return lastComparison;
10279       }
10280       if (isSetRoutermac()) {
10281         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routermac, other.routermac);
10282         if (lastComparison != 0) {
10283           return lastComparison;
10284         }
10285       }
10286       return 0;
10287     }
10288
10289     public _Fields fieldForId(int fieldId) {
10290       return _Fields.findByThriftId(fieldId);
10291     }
10292
10293     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10294       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10295     }
10296
10297     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10298       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10299     }
10300
10301     @Override
10302     public String toString() {
10303       StringBuilder sb = new StringBuilder("pushRoute_args(");
10304       boolean first = true;
10305
10306       sb.append("p_type:");
10307       if (this.p_type == null) {
10308         sb.append("null");
10309       } else {
10310         sb.append(this.p_type);
10311       }
10312       first = false;
10313       if (!first) sb.append(", ");
10314       sb.append("prefix:");
10315       if (this.prefix == null) {
10316         sb.append("null");
10317       } else {
10318         sb.append(this.prefix);
10319       }
10320       first = false;
10321       if (!first) sb.append(", ");
10322       sb.append("nexthop:");
10323       if (this.nexthop == null) {
10324         sb.append("null");
10325       } else {
10326         sb.append(this.nexthop);
10327       }
10328       first = false;
10329       if (!first) sb.append(", ");
10330       sb.append("rd:");
10331       if (this.rd == null) {
10332         sb.append("null");
10333       } else {
10334         sb.append(this.rd);
10335       }
10336       first = false;
10337       if (!first) sb.append(", ");
10338       sb.append("ethtag:");
10339       sb.append(this.ethtag);
10340       first = false;
10341       if (!first) sb.append(", ");
10342       sb.append("esi:");
10343       if (this.esi == null) {
10344         sb.append("null");
10345       } else {
10346         sb.append(this.esi);
10347       }
10348       first = false;
10349       if (!first) sb.append(", ");
10350       sb.append("macaddress:");
10351       if (this.macaddress == null) {
10352         sb.append("null");
10353       } else {
10354         sb.append(this.macaddress);
10355       }
10356       first = false;
10357       if (!first) sb.append(", ");
10358       sb.append("l3label:");
10359       sb.append(this.l3label);
10360       first = false;
10361       if (!first) sb.append(", ");
10362       sb.append("l2label:");
10363       sb.append(this.l2label);
10364       first = false;
10365       if (!first) sb.append(", ");
10366       sb.append("enc_type:");
10367       if (this.enc_type == null) {
10368         sb.append("null");
10369       } else {
10370         sb.append(this.enc_type);
10371       }
10372       first = false;
10373       if (!first) sb.append(", ");
10374       sb.append("routermac:");
10375       if (this.routermac == null) {
10376         sb.append("null");
10377       } else {
10378         sb.append(this.routermac);
10379       }
10380       first = false;
10381       sb.append(")");
10382       return sb.toString();
10383     }
10384
10385     public void validate() throws org.apache.thrift.TException {
10386       // check for required fields
10387       // check for sub-struct validity
10388     }
10389
10390     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10391       try {
10392         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10393       } catch (org.apache.thrift.TException te) {
10394         throw new java.io.IOException(te);
10395       }
10396     }
10397
10398     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10399       try {
10400         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10401         __isset_bitfield = 0;
10402         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10403       } catch (org.apache.thrift.TException te) {
10404         throw new java.io.IOException(te);
10405       }
10406     }
10407
10408     private static class pushRoute_argsStandardSchemeFactory implements SchemeFactory {
10409       public pushRoute_argsStandardScheme getScheme() {
10410         return new pushRoute_argsStandardScheme();
10411       }
10412     }
10413
10414     private static class pushRoute_argsStandardScheme extends StandardScheme<pushRoute_args> {
10415
10416       public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_args struct) throws org.apache.thrift.TException {
10417         org.apache.thrift.protocol.TField schemeField;
10418         iprot.readStructBegin();
10419         while (true)
10420         {
10421           schemeField = iprot.readFieldBegin();
10422           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
10423             break;
10424           }
10425           switch (schemeField.id) {
10426             case 1: // P_TYPE
10427               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10428                 struct.p_type = protocol_type.findByValue(iprot.readI32());
10429                 struct.setP_typeIsSet(true);
10430               } else { 
10431                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10432               }
10433               break;
10434             case 2: // PREFIX
10435               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10436                 struct.prefix = iprot.readString();
10437                 struct.setPrefixIsSet(true);
10438               } else { 
10439                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10440               }
10441               break;
10442             case 3: // NEXTHOP
10443               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10444                 struct.nexthop = iprot.readString();
10445                 struct.setNexthopIsSet(true);
10446               } else { 
10447                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10448               }
10449               break;
10450             case 4: // RD
10451               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10452                 struct.rd = iprot.readString();
10453                 struct.setRdIsSet(true);
10454               } else { 
10455                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10456               }
10457               break;
10458             case 5: // ETHTAG
10459               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10460                 struct.ethtag = iprot.readI32();
10461                 struct.setEthtagIsSet(true);
10462               } else { 
10463                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10464               }
10465               break;
10466             case 6: // ESI
10467               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10468                 struct.esi = iprot.readString();
10469                 struct.setEsiIsSet(true);
10470               } else { 
10471                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10472               }
10473               break;
10474             case 7: // MACADDRESS
10475               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10476                 struct.macaddress = iprot.readString();
10477                 struct.setMacaddressIsSet(true);
10478               } else { 
10479                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10480               }
10481               break;
10482             case 8: // L3LABEL
10483               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10484                 struct.l3label = iprot.readI32();
10485                 struct.setL3labelIsSet(true);
10486               } else { 
10487                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10488               }
10489               break;
10490             case 9: // L2LABEL
10491               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10492                 struct.l2label = iprot.readI32();
10493                 struct.setL2labelIsSet(true);
10494               } else { 
10495                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10496               }
10497               break;
10498             case 10: // ENC_TYPE
10499               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10500                 struct.enc_type = encap_type.findByValue(iprot.readI32());
10501                 struct.setEnc_typeIsSet(true);
10502               } else { 
10503                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10504               }
10505               break;
10506             case 11: // ROUTERMAC
10507               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10508                 struct.routermac = iprot.readString();
10509                 struct.setRoutermacIsSet(true);
10510               } else { 
10511                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10512               }
10513               break;
10514             default:
10515               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10516           }
10517           iprot.readFieldEnd();
10518         }
10519         iprot.readStructEnd();
10520
10521         // check for required fields of primitive type, which can't be checked in the validate method
10522         struct.validate();
10523       }
10524
10525       public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_args struct) throws org.apache.thrift.TException {
10526         struct.validate();
10527
10528         oprot.writeStructBegin(STRUCT_DESC);
10529         if (struct.p_type != null) {
10530           oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
10531           oprot.writeI32(struct.p_type.getValue());
10532           oprot.writeFieldEnd();
10533         }
10534         if (struct.prefix != null) {
10535           oprot.writeFieldBegin(PREFIX_FIELD_DESC);
10536           oprot.writeString(struct.prefix);
10537           oprot.writeFieldEnd();
10538         }
10539         if (struct.nexthop != null) {
10540           oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
10541           oprot.writeString(struct.nexthop);
10542           oprot.writeFieldEnd();
10543         }
10544         if (struct.rd != null) {
10545           oprot.writeFieldBegin(RD_FIELD_DESC);
10546           oprot.writeString(struct.rd);
10547           oprot.writeFieldEnd();
10548         }
10549         oprot.writeFieldBegin(ETHTAG_FIELD_DESC);
10550         oprot.writeI32(struct.ethtag);
10551         oprot.writeFieldEnd();
10552         if (struct.esi != null) {
10553           oprot.writeFieldBegin(ESI_FIELD_DESC);
10554           oprot.writeString(struct.esi);
10555           oprot.writeFieldEnd();
10556         }
10557         if (struct.macaddress != null) {
10558           oprot.writeFieldBegin(MACADDRESS_FIELD_DESC);
10559           oprot.writeString(struct.macaddress);
10560           oprot.writeFieldEnd();
10561         }
10562         oprot.writeFieldBegin(L3LABEL_FIELD_DESC);
10563         oprot.writeI32(struct.l3label);
10564         oprot.writeFieldEnd();
10565         oprot.writeFieldBegin(L2LABEL_FIELD_DESC);
10566         oprot.writeI32(struct.l2label);
10567         oprot.writeFieldEnd();
10568         if (struct.enc_type != null) {
10569           oprot.writeFieldBegin(ENC_TYPE_FIELD_DESC);
10570           oprot.writeI32(struct.enc_type.getValue());
10571           oprot.writeFieldEnd();
10572         }
10573         if (struct.routermac != null) {
10574           oprot.writeFieldBegin(ROUTERMAC_FIELD_DESC);
10575           oprot.writeString(struct.routermac);
10576           oprot.writeFieldEnd();
10577         }
10578         oprot.writeFieldStop();
10579         oprot.writeStructEnd();
10580       }
10581
10582     }
10583
10584     private static class pushRoute_argsTupleSchemeFactory implements SchemeFactory {
10585       public pushRoute_argsTupleScheme getScheme() {
10586         return new pushRoute_argsTupleScheme();
10587       }
10588     }
10589
10590     private static class pushRoute_argsTupleScheme extends TupleScheme<pushRoute_args> {
10591
10592       @Override
10593       public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
10594         TTupleProtocol oprot = (TTupleProtocol) prot;
10595         BitSet optionals = new BitSet();
10596         if (struct.isSetP_type()) {
10597           optionals.set(0);
10598         }
10599         if (struct.isSetPrefix()) {
10600           optionals.set(1);
10601         }
10602         if (struct.isSetNexthop()) {
10603           optionals.set(2);
10604         }
10605         if (struct.isSetRd()) {
10606           optionals.set(3);
10607         }
10608         if (struct.isSetEthtag()) {
10609           optionals.set(4);
10610         }
10611         if (struct.isSetEsi()) {
10612           optionals.set(5);
10613         }
10614         if (struct.isSetMacaddress()) {
10615           optionals.set(6);
10616         }
10617         if (struct.isSetL3label()) {
10618           optionals.set(7);
10619         }
10620         if (struct.isSetL2label()) {
10621           optionals.set(8);
10622         }
10623         if (struct.isSetEnc_type()) {
10624           optionals.set(9);
10625         }
10626         if (struct.isSetRoutermac()) {
10627           optionals.set(10);
10628         }
10629         oprot.writeBitSet(optionals, 11);
10630         if (struct.isSetP_type()) {
10631           oprot.writeI32(struct.p_type.getValue());
10632         }
10633         if (struct.isSetPrefix()) {
10634           oprot.writeString(struct.prefix);
10635         }
10636         if (struct.isSetNexthop()) {
10637           oprot.writeString(struct.nexthop);
10638         }
10639         if (struct.isSetRd()) {
10640           oprot.writeString(struct.rd);
10641         }
10642         if (struct.isSetEthtag()) {
10643           oprot.writeI32(struct.ethtag);
10644         }
10645         if (struct.isSetEsi()) {
10646           oprot.writeString(struct.esi);
10647         }
10648         if (struct.isSetMacaddress()) {
10649           oprot.writeString(struct.macaddress);
10650         }
10651         if (struct.isSetL3label()) {
10652           oprot.writeI32(struct.l3label);
10653         }
10654         if (struct.isSetL2label()) {
10655           oprot.writeI32(struct.l2label);
10656         }
10657         if (struct.isSetEnc_type()) {
10658           oprot.writeI32(struct.enc_type.getValue());
10659         }
10660         if (struct.isSetRoutermac()) {
10661           oprot.writeString(struct.routermac);
10662         }
10663       }
10664
10665       @Override
10666       public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
10667         TTupleProtocol iprot = (TTupleProtocol) prot;
10668         BitSet incoming = iprot.readBitSet(11);
10669         if (incoming.get(0)) {
10670           struct.p_type = protocol_type.findByValue(iprot.readI32());
10671           struct.setP_typeIsSet(true);
10672         }
10673         if (incoming.get(1)) {
10674           struct.prefix = iprot.readString();
10675           struct.setPrefixIsSet(true);
10676         }
10677         if (incoming.get(2)) {
10678           struct.nexthop = iprot.readString();
10679           struct.setNexthopIsSet(true);
10680         }
10681         if (incoming.get(3)) {
10682           struct.rd = iprot.readString();
10683           struct.setRdIsSet(true);
10684         }
10685         if (incoming.get(4)) {
10686           struct.ethtag = iprot.readI32();
10687           struct.setEthtagIsSet(true);
10688         }
10689         if (incoming.get(5)) {
10690           struct.esi = iprot.readString();
10691           struct.setEsiIsSet(true);
10692         }
10693         if (incoming.get(6)) {
10694           struct.macaddress = iprot.readString();
10695           struct.setMacaddressIsSet(true);
10696         }
10697         if (incoming.get(7)) {
10698           struct.l3label = iprot.readI32();
10699           struct.setL3labelIsSet(true);
10700         }
10701         if (incoming.get(8)) {
10702           struct.l2label = iprot.readI32();
10703           struct.setL2labelIsSet(true);
10704         }
10705         if (incoming.get(9)) {
10706           struct.enc_type = encap_type.findByValue(iprot.readI32());
10707           struct.setEnc_typeIsSet(true);
10708         }
10709         if (incoming.get(10)) {
10710           struct.routermac = iprot.readString();
10711           struct.setRoutermacIsSet(true);
10712         }
10713       }
10714     }
10715
10716   }
10717
10718   public static class pushRoute_result implements org.apache.thrift.TBase<pushRoute_result, pushRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_result>   {
10719     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_result");
10720
10721     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);
10722
10723     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10724     static {
10725       schemes.put(StandardScheme.class, new pushRoute_resultStandardSchemeFactory());
10726       schemes.put(TupleScheme.class, new pushRoute_resultTupleSchemeFactory());
10727     }
10728
10729     public int success; // required
10730
10731     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10732     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10733       SUCCESS((short)0, "success");
10734
10735       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10736
10737       static {
10738         for (_Fields field : EnumSet.allOf(_Fields.class)) {
10739           byName.put(field.getFieldName(), field);
10740         }
10741       }
10742
10743       /**
10744        * Find the _Fields constant that matches fieldId, or null if its not found.
10745        */
10746       public static _Fields findByThriftId(int fieldId) {
10747         switch(fieldId) {
10748           case 0: // SUCCESS
10749             return SUCCESS;
10750           default:
10751             return null;
10752         }
10753       }
10754
10755       /**
10756        * Find the _Fields constant that matches fieldId, throwing an exception
10757        * if it is not found.
10758        */
10759       public static _Fields findByThriftIdOrThrow(int fieldId) {
10760         _Fields fields = findByThriftId(fieldId);
10761         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10762         return fields;
10763       }
10764
10765       /**
10766        * Find the _Fields constant that matches name, or null if its not found.
10767        */
10768       public static _Fields findByName(String name) {
10769         return byName.get(name);
10770       }
10771
10772       private final short _thriftId;
10773       private final String _fieldName;
10774
10775       _Fields(short thriftId, String fieldName) {
10776         _thriftId = thriftId;
10777         _fieldName = fieldName;
10778       }
10779
10780       public short getThriftFieldId() {
10781         return _thriftId;
10782       }
10783
10784       public String getFieldName() {
10785         return _fieldName;
10786       }
10787     }
10788
10789     // isset id assignments
10790     private static final int __SUCCESS_ISSET_ID = 0;
10791     private byte __isset_bitfield = 0;
10792     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10793     static {
10794       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10795       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10796           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10797       metaDataMap = Collections.unmodifiableMap(tmpMap);
10798       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_result.class, metaDataMap);
10799     }
10800
10801     public pushRoute_result() {
10802     }
10803
10804     public pushRoute_result(
10805       int success)
10806     {
10807       this();
10808       this.success = success;
10809       setSuccessIsSet(true);
10810     }
10811
10812     /**
10813      * Performs a deep copy on <i>other</i>.
10814      */
10815     public pushRoute_result(pushRoute_result other) {
10816       __isset_bitfield = other.__isset_bitfield;
10817       this.success = other.success;
10818     }
10819
10820     public pushRoute_result deepCopy() {
10821       return new pushRoute_result(this);
10822     }
10823
10824     @Override
10825     public void clear() {
10826       setSuccessIsSet(false);
10827       this.success = 0;
10828     }
10829
10830     public int getSuccess() {
10831       return this.success;
10832     }
10833
10834     public pushRoute_result setSuccess(int success) {
10835       this.success = success;
10836       setSuccessIsSet(true);
10837       return this;
10838     }
10839
10840     public void unsetSuccess() {
10841       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10842     }
10843
10844     /** Returns true if field success is set (has been assigned a value) and false otherwise */
10845     public boolean isSetSuccess() {
10846       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10847     }
10848
10849     public void setSuccessIsSet(boolean value) {
10850       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
10851     }
10852
10853     public void setFieldValue(_Fields field, Object value) {
10854       switch (field) {
10855       case SUCCESS:
10856         if (value == null) {
10857           unsetSuccess();
10858         } else {
10859           setSuccess((Integer)value);
10860         }
10861         break;
10862
10863       }
10864     }
10865
10866     public Object getFieldValue(_Fields field) {
10867       switch (field) {
10868       case SUCCESS:
10869         return Integer.valueOf(getSuccess());
10870
10871       }
10872       throw new IllegalStateException();
10873     }
10874
10875     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10876     public boolean isSet(_Fields field) {
10877       if (field == null) {
10878         throw new IllegalArgumentException();
10879       }
10880
10881       switch (field) {
10882       case SUCCESS:
10883         return isSetSuccess();
10884       }
10885       throw new IllegalStateException();
10886     }
10887
10888     @Override
10889     public boolean equals(Object that) {
10890       if (that == null)
10891         return false;
10892       if (that instanceof pushRoute_result)
10893         return this.equals((pushRoute_result)that);
10894       return false;
10895     }
10896
10897     public boolean equals(pushRoute_result that) {
10898       if (that == null)
10899         return false;
10900
10901       boolean this_present_success = true;
10902       boolean that_present_success = true;
10903       if (this_present_success || that_present_success) {
10904         if (!(this_present_success && that_present_success))
10905           return false;
10906         if (this.success != that.success)
10907           return false;
10908       }
10909
10910       return true;
10911     }
10912
10913     @Override
10914     public int hashCode() {
10915       return 0;
10916     }
10917
10918     @Override
10919     public int compareTo(pushRoute_result other) {
10920       if (!getClass().equals(other.getClass())) {
10921         return getClass().getName().compareTo(other.getClass().getName());
10922       }
10923
10924       int lastComparison = 0;
10925
10926       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
10927       if (lastComparison != 0) {
10928         return lastComparison;
10929       }
10930       if (isSetSuccess()) {
10931         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
10932         if (lastComparison != 0) {
10933           return lastComparison;
10934         }
10935       }
10936       return 0;
10937     }
10938
10939     public _Fields fieldForId(int fieldId) {
10940       return _Fields.findByThriftId(fieldId);
10941     }
10942
10943     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10944       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10945     }
10946
10947     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10948       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10949       }
10950
10951     @Override
10952     public String toString() {
10953       StringBuilder sb = new StringBuilder("pushRoute_result(");
10954       boolean first = true;
10955
10956       sb.append("success:");
10957       sb.append(this.success);
10958       first = false;
10959       sb.append(")");
10960       return sb.toString();
10961     }
10962
10963     public void validate() throws org.apache.thrift.TException {
10964       // check for required fields
10965       // check for sub-struct validity
10966     }
10967
10968     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10969       try {
10970         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10971       } catch (org.apache.thrift.TException te) {
10972         throw new java.io.IOException(te);
10973       }
10974     }
10975
10976     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10977       try {
10978         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10979         __isset_bitfield = 0;
10980         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10981       } catch (org.apache.thrift.TException te) {
10982         throw new java.io.IOException(te);
10983       }
10984     }
10985
10986     private static class pushRoute_resultStandardSchemeFactory implements SchemeFactory {
10987       public pushRoute_resultStandardScheme getScheme() {
10988         return new pushRoute_resultStandardScheme();
10989       }
10990     }
10991
10992     private static class pushRoute_resultStandardScheme extends StandardScheme<pushRoute_result> {
10993
10994       public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_result struct) throws org.apache.thrift.TException {
10995         org.apache.thrift.protocol.TField schemeField;
10996         iprot.readStructBegin();
10997         while (true)
10998         {
10999           schemeField = iprot.readFieldBegin();
11000           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
11001             break;
11002           }
11003           switch (schemeField.id) {
11004             case 0: // SUCCESS
11005               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11006                 struct.success = iprot.readI32();
11007                 struct.setSuccessIsSet(true);
11008               } else { 
11009                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11010               }
11011               break;
11012             default:
11013               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11014           }
11015           iprot.readFieldEnd();
11016         }
11017         iprot.readStructEnd();
11018
11019         // check for required fields of primitive type, which can't be checked in the validate method
11020         struct.validate();
11021       }
11022
11023       public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_result struct) throws org.apache.thrift.TException {
11024         struct.validate();
11025
11026         oprot.writeStructBegin(STRUCT_DESC);
11027         if (struct.isSetSuccess()) {
11028           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11029           oprot.writeI32(struct.success);
11030           oprot.writeFieldEnd();
11031         }
11032         oprot.writeFieldStop();
11033         oprot.writeStructEnd();
11034       }
11035
11036     }
11037
11038     private static class pushRoute_resultTupleSchemeFactory implements SchemeFactory {
11039       public pushRoute_resultTupleScheme getScheme() {
11040         return new pushRoute_resultTupleScheme();
11041       }
11042     }
11043
11044     private static class pushRoute_resultTupleScheme extends TupleScheme<pushRoute_result> {
11045
11046       @Override
11047       public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
11048         TTupleProtocol oprot = (TTupleProtocol) prot;
11049         BitSet optionals = new BitSet();
11050         if (struct.isSetSuccess()) {
11051           optionals.set(0);
11052         }
11053         oprot.writeBitSet(optionals, 1);
11054         if (struct.isSetSuccess()) {
11055           oprot.writeI32(struct.success);
11056         }
11057       }
11058
11059       @Override
11060       public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
11061         TTupleProtocol iprot = (TTupleProtocol) prot;
11062         BitSet incoming = iprot.readBitSet(1);
11063         if (incoming.get(0)) {
11064           struct.success = iprot.readI32();
11065           struct.setSuccessIsSet(true);
11066         }
11067       }
11068     }
11069
11070   }
11071
11072   public static class withdrawRoute_args implements org.apache.thrift.TBase<withdrawRoute_args, withdrawRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_args>   {
11073     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_args");
11074
11075     private static final org.apache.thrift.protocol.TField P_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("p_type", org.apache.thrift.protocol.TType.I32, (short)1);
11076     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)2);
11077     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);
11078     private static final org.apache.thrift.protocol.TField ETHTAG_FIELD_DESC = new org.apache.thrift.protocol.TField("ethtag", org.apache.thrift.protocol.TType.I32, (short)4);
11079     private static final org.apache.thrift.protocol.TField ESI_FIELD_DESC = new org.apache.thrift.protocol.TField("esi", org.apache.thrift.protocol.TType.STRING, (short)5);
11080     private static final org.apache.thrift.protocol.TField MACADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("macaddress", org.apache.thrift.protocol.TType.STRING, (short)6);
11081
11082     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11083     static {
11084       schemes.put(StandardScheme.class, new withdrawRoute_argsStandardSchemeFactory());
11085       schemes.put(TupleScheme.class, new withdrawRoute_argsTupleSchemeFactory());
11086     }
11087
11088     /**
11089      * 
11090      * @see protocol_type
11091      */
11092     public protocol_type p_type; // required
11093     public String prefix; // required
11094     public String rd; // required
11095     public int ethtag; // required
11096     public String esi; // required
11097     public String macaddress; // required
11098
11099     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11100     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11101       /**
11102        * 
11103        * @see protocol_type
11104        */
11105       P_TYPE((short)1, "p_type"),
11106       PREFIX((short)2, "prefix"),
11107       RD((short)3, "rd"),
11108       ETHTAG((short)4, "ethtag"),
11109       ESI((short)5, "esi"),
11110       MACADDRESS((short)6, "macaddress");
11111
11112       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11113
11114       static {
11115         for (_Fields field : EnumSet.allOf(_Fields.class)) {
11116           byName.put(field.getFieldName(), field);
11117         }
11118       }
11119
11120       /**
11121        * Find the _Fields constant that matches fieldId, or null if its not found.
11122        */
11123       public static _Fields findByThriftId(int fieldId) {
11124         switch(fieldId) {
11125           case 1: // P_TYPE
11126             return P_TYPE;
11127           case 2: // PREFIX
11128             return PREFIX;
11129           case 3: // RD
11130             return RD;
11131           case 4: // ETHTAG
11132             return ETHTAG;
11133           case 5: // ESI
11134             return ESI;
11135           case 6: // MACADDRESS
11136             return MACADDRESS;
11137           default:
11138             return null;
11139         }
11140       }
11141
11142       /**
11143        * Find the _Fields constant that matches fieldId, throwing an exception
11144        * if it is not found.
11145        */
11146       public static _Fields findByThriftIdOrThrow(int fieldId) {
11147         _Fields fields = findByThriftId(fieldId);
11148         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11149         return fields;
11150       }
11151
11152       /**
11153        * Find the _Fields constant that matches name, or null if its not found.
11154        */
11155       public static _Fields findByName(String name) {
11156         return byName.get(name);
11157       }
11158
11159       private final short _thriftId;
11160       private final String _fieldName;
11161
11162       _Fields(short thriftId, String fieldName) {
11163         _thriftId = thriftId;
11164         _fieldName = fieldName;
11165       }
11166
11167       public short getThriftFieldId() {
11168         return _thriftId;
11169       }
11170
11171       public String getFieldName() {
11172         return _fieldName;
11173       }
11174     }
11175
11176     // isset id assignments
11177     private static final int __ETHTAG_ISSET_ID = 0;
11178     private byte __isset_bitfield = 0;
11179     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11180     static {
11181       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11182       tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11183           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
11184       tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11185           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11186       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11187           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11188       tmpMap.put(_Fields.ETHTAG, new org.apache.thrift.meta_data.FieldMetaData("ethtag", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11189           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
11190       tmpMap.put(_Fields.ESI, new org.apache.thrift.meta_data.FieldMetaData("esi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11191           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11192       tmpMap.put(_Fields.MACADDRESS, new org.apache.thrift.meta_data.FieldMetaData("macaddress", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11193           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11194       metaDataMap = Collections.unmodifiableMap(tmpMap);
11195       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_args.class, metaDataMap);
11196     }
11197
11198     public withdrawRoute_args() {
11199     }
11200
11201     public withdrawRoute_args(
11202       protocol_type p_type,
11203       String prefix,
11204       String rd,
11205       int ethtag,
11206       String esi,
11207       String macaddress)
11208     {
11209       this();
11210       this.p_type = p_type;
11211       this.prefix = prefix;
11212       this.rd = rd;
11213       this.ethtag = ethtag;
11214       setEthtagIsSet(true);
11215       this.esi = esi;
11216       this.macaddress = macaddress;
11217     }
11218
11219     /**
11220      * Performs a deep copy on <i>other</i>.
11221      */
11222     public withdrawRoute_args(withdrawRoute_args other) {
11223       __isset_bitfield = other.__isset_bitfield;
11224       if (other.isSetP_type()) {
11225         this.p_type = other.p_type;
11226       }
11227       if (other.isSetPrefix()) {
11228         this.prefix = other.prefix;
11229       }
11230       if (other.isSetRd()) {
11231         this.rd = other.rd;
11232       }
11233       this.ethtag = other.ethtag;
11234       if (other.isSetEsi()) {
11235         this.esi = other.esi;
11236       }
11237       if (other.isSetMacaddress()) {
11238         this.macaddress = other.macaddress;
11239       }
11240     }
11241
11242     public withdrawRoute_args deepCopy() {
11243       return new withdrawRoute_args(this);
11244     }
11245
11246     @Override
11247     public void clear() {
11248       this.p_type = null;
11249       this.prefix = null;
11250       this.rd = null;
11251       setEthtagIsSet(false);
11252       this.ethtag = 0;
11253       this.esi = null;
11254       this.macaddress = null;
11255     }
11256
11257     /**
11258      * 
11259      * @see protocol_type
11260      */
11261     public protocol_type getP_type() {
11262       return this.p_type;
11263     }
11264
11265     /**
11266      * 
11267      * @see protocol_type
11268      */
11269     public withdrawRoute_args setP_type(protocol_type p_type) {
11270       this.p_type = p_type;
11271       return this;
11272     }
11273
11274     public void unsetP_type() {
11275       this.p_type = null;
11276     }
11277
11278     /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
11279     public boolean isSetP_type() {
11280       return this.p_type != null;
11281     }
11282
11283     public void setP_typeIsSet(boolean value) {
11284       if (!value) {
11285         this.p_type = null;
11286       }
11287     }
11288
11289     public String getPrefix() {
11290       return this.prefix;
11291     }
11292
11293     public withdrawRoute_args setPrefix(String prefix) {
11294       this.prefix = prefix;
11295       return this;
11296     }
11297
11298     public void unsetPrefix() {
11299       this.prefix = null;
11300     }
11301
11302     /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
11303     public boolean isSetPrefix() {
11304       return this.prefix != null;
11305     }
11306
11307     public void setPrefixIsSet(boolean value) {
11308       if (!value) {
11309         this.prefix = null;
11310       }
11311     }
11312
11313     public String getRd() {
11314       return this.rd;
11315     }
11316
11317     public withdrawRoute_args setRd(String rd) {
11318       this.rd = rd;
11319       return this;
11320     }
11321
11322     public void unsetRd() {
11323       this.rd = null;
11324     }
11325
11326     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
11327     public boolean isSetRd() {
11328       return this.rd != null;
11329     }
11330
11331     public void setRdIsSet(boolean value) {
11332       if (!value) {
11333         this.rd = null;
11334       }
11335     }
11336
11337     public int getEthtag() {
11338       return this.ethtag;
11339     }
11340
11341     public withdrawRoute_args setEthtag(int ethtag) {
11342       this.ethtag = ethtag;
11343       setEthtagIsSet(true);
11344       return this;
11345     }
11346
11347     public void unsetEthtag() {
11348       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ETHTAG_ISSET_ID);
11349     }
11350
11351     /** Returns true if field ethtag is set (has been assigned a value) and false otherwise */
11352     public boolean isSetEthtag() {
11353       return EncodingUtils.testBit(__isset_bitfield, __ETHTAG_ISSET_ID);
11354     }
11355
11356     public void setEthtagIsSet(boolean value) {
11357       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ETHTAG_ISSET_ID, value);
11358     }
11359
11360     public String getEsi() {
11361       return this.esi;
11362     }
11363
11364     public withdrawRoute_args setEsi(String esi) {
11365       this.esi = esi;
11366       return this;
11367     }
11368
11369     public void unsetEsi() {
11370       this.esi = null;
11371     }
11372
11373     /** Returns true if field esi is set (has been assigned a value) and false otherwise */
11374     public boolean isSetEsi() {
11375       return this.esi != null;
11376     }
11377
11378     public void setEsiIsSet(boolean value) {
11379       if (!value) {
11380         this.esi = null;
11381       }
11382     }
11383
11384     public String getMacaddress() {
11385       return this.macaddress;
11386     }
11387
11388     public withdrawRoute_args setMacaddress(String macaddress) {
11389       this.macaddress = macaddress;
11390       return this;
11391     }
11392
11393     public void unsetMacaddress() {
11394       this.macaddress = null;
11395     }
11396
11397     /** Returns true if field macaddress is set (has been assigned a value) and false otherwise */
11398     public boolean isSetMacaddress() {
11399       return this.macaddress != null;
11400     }
11401
11402     public void setMacaddressIsSet(boolean value) {
11403       if (!value) {
11404         this.macaddress = null;
11405       }
11406     }
11407
11408     public void setFieldValue(_Fields field, Object value) {
11409       switch (field) {
11410       case P_TYPE:
11411         if (value == null) {
11412           unsetP_type();
11413         } else {
11414           setP_type((protocol_type)value);
11415         }
11416         break;
11417
11418       case PREFIX:
11419         if (value == null) {
11420           unsetPrefix();
11421         } else {
11422           setPrefix((String)value);
11423         }
11424         break;
11425
11426       case RD:
11427         if (value == null) {
11428           unsetRd();
11429         } else {
11430           setRd((String)value);
11431         }
11432         break;
11433
11434       case ETHTAG:
11435         if (value == null) {
11436           unsetEthtag();
11437         } else {
11438           setEthtag((Integer)value);
11439         }
11440         break;
11441
11442       case ESI:
11443         if (value == null) {
11444           unsetEsi();
11445         } else {
11446           setEsi((String)value);
11447         }
11448         break;
11449
11450       case MACADDRESS:
11451         if (value == null) {
11452           unsetMacaddress();
11453         } else {
11454           setMacaddress((String)value);
11455         }
11456         break;
11457
11458       }
11459     }
11460
11461     public Object getFieldValue(_Fields field) {
11462       switch (field) {
11463       case P_TYPE:
11464         return getP_type();
11465
11466       case PREFIX:
11467         return getPrefix();
11468
11469       case RD:
11470         return getRd();
11471
11472       case ETHTAG:
11473         return Integer.valueOf(getEthtag());
11474
11475       case ESI:
11476         return getEsi();
11477
11478       case MACADDRESS:
11479         return getMacaddress();
11480
11481       }
11482       throw new IllegalStateException();
11483     }
11484
11485     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11486     public boolean isSet(_Fields field) {
11487       if (field == null) {
11488         throw new IllegalArgumentException();
11489       }
11490
11491       switch (field) {
11492       case P_TYPE:
11493         return isSetP_type();
11494       case PREFIX:
11495         return isSetPrefix();
11496       case RD:
11497         return isSetRd();
11498       case ETHTAG:
11499         return isSetEthtag();
11500       case ESI:
11501         return isSetEsi();
11502       case MACADDRESS:
11503         return isSetMacaddress();
11504       }
11505       throw new IllegalStateException();
11506     }
11507
11508     @Override
11509     public boolean equals(Object that) {
11510       if (that == null)
11511         return false;
11512       if (that instanceof withdrawRoute_args)
11513         return this.equals((withdrawRoute_args)that);
11514       return false;
11515     }
11516
11517     public boolean equals(withdrawRoute_args that) {
11518       if (that == null)
11519         return false;
11520
11521       boolean this_present_p_type = true && this.isSetP_type();
11522       boolean that_present_p_type = true && that.isSetP_type();
11523       if (this_present_p_type || that_present_p_type) {
11524         if (!(this_present_p_type && that_present_p_type))
11525           return false;
11526         if (!this.p_type.equals(that.p_type))
11527           return false;
11528       }
11529
11530       boolean this_present_prefix = true && this.isSetPrefix();
11531       boolean that_present_prefix = true && that.isSetPrefix();
11532       if (this_present_prefix || that_present_prefix) {
11533         if (!(this_present_prefix && that_present_prefix))
11534           return false;
11535         if (!this.prefix.equals(that.prefix))
11536           return false;
11537       }
11538
11539       boolean this_present_rd = true && this.isSetRd();
11540       boolean that_present_rd = true && that.isSetRd();
11541       if (this_present_rd || that_present_rd) {
11542         if (!(this_present_rd && that_present_rd))
11543           return false;
11544         if (!this.rd.equals(that.rd))
11545           return false;
11546       }
11547
11548       boolean this_present_ethtag = true;
11549       boolean that_present_ethtag = true;
11550       if (this_present_ethtag || that_present_ethtag) {
11551         if (!(this_present_ethtag && that_present_ethtag))
11552           return false;
11553         if (this.ethtag != that.ethtag)
11554           return false;
11555       }
11556
11557       boolean this_present_esi = true && this.isSetEsi();
11558       boolean that_present_esi = true && that.isSetEsi();
11559       if (this_present_esi || that_present_esi) {
11560         if (!(this_present_esi && that_present_esi))
11561           return false;
11562         if (!this.esi.equals(that.esi))
11563           return false;
11564       }
11565
11566       boolean this_present_macaddress = true && this.isSetMacaddress();
11567       boolean that_present_macaddress = true && that.isSetMacaddress();
11568       if (this_present_macaddress || that_present_macaddress) {
11569         if (!(this_present_macaddress && that_present_macaddress))
11570           return false;
11571         if (!this.macaddress.equals(that.macaddress))
11572           return false;
11573       }
11574
11575       return true;
11576     }
11577
11578     @Override
11579     public int hashCode() {
11580       return 0;
11581     }
11582
11583     @Override
11584     public int compareTo(withdrawRoute_args other) {
11585       if (!getClass().equals(other.getClass())) {
11586         return getClass().getName().compareTo(other.getClass().getName());
11587       }
11588
11589       int lastComparison = 0;
11590
11591       lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
11592       if (lastComparison != 0) {
11593         return lastComparison;
11594       }
11595       if (isSetP_type()) {
11596         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
11597         if (lastComparison != 0) {
11598           return lastComparison;
11599         }
11600       }
11601       lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
11602       if (lastComparison != 0) {
11603         return lastComparison;
11604       }
11605       if (isSetPrefix()) {
11606         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
11607         if (lastComparison != 0) {
11608           return lastComparison;
11609         }
11610       }
11611       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
11612       if (lastComparison != 0) {
11613         return lastComparison;
11614       }
11615       if (isSetRd()) {
11616         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
11617         if (lastComparison != 0) {
11618           return lastComparison;
11619         }
11620       }
11621       lastComparison = Boolean.valueOf(isSetEthtag()).compareTo(other.isSetEthtag());
11622       if (lastComparison != 0) {
11623         return lastComparison;
11624       }
11625       if (isSetEthtag()) {
11626         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ethtag, other.ethtag);
11627         if (lastComparison != 0) {
11628           return lastComparison;
11629         }
11630       }
11631       lastComparison = Boolean.valueOf(isSetEsi()).compareTo(other.isSetEsi());
11632       if (lastComparison != 0) {
11633         return lastComparison;
11634       }
11635       if (isSetEsi()) {
11636         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.esi, other.esi);
11637         if (lastComparison != 0) {
11638           return lastComparison;
11639         }
11640       }
11641       lastComparison = Boolean.valueOf(isSetMacaddress()).compareTo(other.isSetMacaddress());
11642       if (lastComparison != 0) {
11643         return lastComparison;
11644       }
11645       if (isSetMacaddress()) {
11646         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.macaddress, other.macaddress);
11647         if (lastComparison != 0) {
11648           return lastComparison;
11649         }
11650       }
11651       return 0;
11652     }
11653
11654     public _Fields fieldForId(int fieldId) {
11655       return _Fields.findByThriftId(fieldId);
11656     }
11657
11658     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11659       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11660     }
11661
11662     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11663       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11664     }
11665
11666     @Override
11667     public String toString() {
11668       StringBuilder sb = new StringBuilder("withdrawRoute_args(");
11669       boolean first = true;
11670
11671       sb.append("p_type:");
11672       if (this.p_type == null) {
11673         sb.append("null");
11674       } else {
11675         sb.append(this.p_type);
11676       }
11677       first = false;
11678       if (!first) sb.append(", ");
11679       sb.append("prefix:");
11680       if (this.prefix == null) {
11681         sb.append("null");
11682       } else {
11683         sb.append(this.prefix);
11684       }
11685       first = false;
11686       if (!first) sb.append(", ");
11687       sb.append("rd:");
11688       if (this.rd == null) {
11689         sb.append("null");
11690       } else {
11691         sb.append(this.rd);
11692       }
11693       first = false;
11694       if (!first) sb.append(", ");
11695       sb.append("ethtag:");
11696       sb.append(this.ethtag);
11697       first = false;
11698       if (!first) sb.append(", ");
11699       sb.append("esi:");
11700       if (this.esi == null) {
11701         sb.append("null");
11702       } else {
11703         sb.append(this.esi);
11704       }
11705       first = false;
11706       if (!first) sb.append(", ");
11707       sb.append("macaddress:");
11708       if (this.macaddress == null) {
11709         sb.append("null");
11710       } else {
11711         sb.append(this.macaddress);
11712       }
11713       first = false;
11714       sb.append(")");
11715       return sb.toString();
11716     }
11717
11718     public void validate() throws org.apache.thrift.TException {
11719       // check for required fields
11720       // check for sub-struct validity
11721     }
11722
11723     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11724       try {
11725         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11726       } catch (org.apache.thrift.TException te) {
11727         throw new java.io.IOException(te);
11728       }
11729     }
11730
11731     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11732       try {
11733         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11734         __isset_bitfield = 0;
11735         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11736       } catch (org.apache.thrift.TException te) {
11737         throw new java.io.IOException(te);
11738       }
11739     }
11740
11741     private static class withdrawRoute_argsStandardSchemeFactory implements SchemeFactory {
11742       public withdrawRoute_argsStandardScheme getScheme() {
11743         return new withdrawRoute_argsStandardScheme();
11744       }
11745     }
11746
11747     private static class withdrawRoute_argsStandardScheme extends StandardScheme<withdrawRoute_args> {
11748
11749       public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
11750         org.apache.thrift.protocol.TField schemeField;
11751         iprot.readStructBegin();
11752         while (true)
11753         {
11754           schemeField = iprot.readFieldBegin();
11755           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
11756             break;
11757           }
11758           switch (schemeField.id) {
11759             case 1: // P_TYPE
11760               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11761                 struct.p_type = protocol_type.findByValue(iprot.readI32());
11762                 struct.setP_typeIsSet(true);
11763               } else { 
11764                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11765               }
11766               break;
11767             case 2: // PREFIX
11768               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11769                 struct.prefix = iprot.readString();
11770                 struct.setPrefixIsSet(true);
11771               } else { 
11772                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11773               }
11774               break;
11775             case 3: // RD
11776               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11777                 struct.rd = iprot.readString();
11778                 struct.setRdIsSet(true);
11779               } else { 
11780                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11781               }
11782               break;
11783             case 4: // ETHTAG
11784               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11785                 struct.ethtag = iprot.readI32();
11786                 struct.setEthtagIsSet(true);
11787               } else { 
11788                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11789               }
11790               break;
11791             case 5: // ESI
11792               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11793                 struct.esi = iprot.readString();
11794                 struct.setEsiIsSet(true);
11795               } else { 
11796                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11797               }
11798               break;
11799             case 6: // MACADDRESS
11800               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11801                 struct.macaddress = iprot.readString();
11802                 struct.setMacaddressIsSet(true);
11803               } else { 
11804                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11805               }
11806               break;
11807             default:
11808               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11809           }
11810           iprot.readFieldEnd();
11811         }
11812         iprot.readStructEnd();
11813
11814         // check for required fields of primitive type, which can't be checked in the validate method
11815         struct.validate();
11816       }
11817
11818       public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
11819         struct.validate();
11820
11821         oprot.writeStructBegin(STRUCT_DESC);
11822         if (struct.p_type != null) {
11823           oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
11824           oprot.writeI32(struct.p_type.getValue());
11825           oprot.writeFieldEnd();
11826         }
11827         if (struct.prefix != null) {
11828           oprot.writeFieldBegin(PREFIX_FIELD_DESC);
11829           oprot.writeString(struct.prefix);
11830           oprot.writeFieldEnd();
11831         }
11832         if (struct.rd != null) {
11833           oprot.writeFieldBegin(RD_FIELD_DESC);
11834           oprot.writeString(struct.rd);
11835           oprot.writeFieldEnd();
11836         }
11837         oprot.writeFieldBegin(ETHTAG_FIELD_DESC);
11838         oprot.writeI32(struct.ethtag);
11839         oprot.writeFieldEnd();
11840         if (struct.esi != null) {
11841           oprot.writeFieldBegin(ESI_FIELD_DESC);
11842           oprot.writeString(struct.esi);
11843           oprot.writeFieldEnd();
11844         }
11845         if (struct.macaddress != null) {
11846           oprot.writeFieldBegin(MACADDRESS_FIELD_DESC);
11847           oprot.writeString(struct.macaddress);
11848           oprot.writeFieldEnd();
11849         }
11850         oprot.writeFieldStop();
11851         oprot.writeStructEnd();
11852       }
11853
11854     }
11855
11856     private static class withdrawRoute_argsTupleSchemeFactory implements SchemeFactory {
11857       public withdrawRoute_argsTupleScheme getScheme() {
11858         return new withdrawRoute_argsTupleScheme();
11859       }
11860     }
11861
11862     private static class withdrawRoute_argsTupleScheme extends TupleScheme<withdrawRoute_args> {
11863
11864       @Override
11865       public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
11866         TTupleProtocol oprot = (TTupleProtocol) prot;
11867         BitSet optionals = new BitSet();
11868         if (struct.isSetP_type()) {
11869           optionals.set(0);
11870         }
11871         if (struct.isSetPrefix()) {
11872           optionals.set(1);
11873         }
11874         if (struct.isSetRd()) {
11875           optionals.set(2);
11876         }
11877         if (struct.isSetEthtag()) {
11878           optionals.set(3);
11879         }
11880         if (struct.isSetEsi()) {
11881           optionals.set(4);
11882         }
11883         if (struct.isSetMacaddress()) {
11884           optionals.set(5);
11885         }
11886         oprot.writeBitSet(optionals, 6);
11887         if (struct.isSetP_type()) {
11888           oprot.writeI32(struct.p_type.getValue());
11889         }
11890         if (struct.isSetPrefix()) {
11891           oprot.writeString(struct.prefix);
11892         }
11893         if (struct.isSetRd()) {
11894           oprot.writeString(struct.rd);
11895         }
11896         if (struct.isSetEthtag()) {
11897           oprot.writeI32(struct.ethtag);
11898         }
11899         if (struct.isSetEsi()) {
11900           oprot.writeString(struct.esi);
11901         }
11902         if (struct.isSetMacaddress()) {
11903           oprot.writeString(struct.macaddress);
11904         }
11905       }
11906
11907       @Override
11908       public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
11909         TTupleProtocol iprot = (TTupleProtocol) prot;
11910         BitSet incoming = iprot.readBitSet(6);
11911         if (incoming.get(0)) {
11912           struct.p_type = protocol_type.findByValue(iprot.readI32());
11913           struct.setP_typeIsSet(true);
11914         }
11915         if (incoming.get(1)) {
11916           struct.prefix = iprot.readString();
11917           struct.setPrefixIsSet(true);
11918         }
11919         if (incoming.get(2)) {
11920           struct.rd = iprot.readString();
11921           struct.setRdIsSet(true);
11922         }
11923         if (incoming.get(3)) {
11924           struct.ethtag = iprot.readI32();
11925           struct.setEthtagIsSet(true);
11926         }
11927         if (incoming.get(4)) {
11928           struct.esi = iprot.readString();
11929           struct.setEsiIsSet(true);
11930         }
11931         if (incoming.get(5)) {
11932           struct.macaddress = iprot.readString();
11933           struct.setMacaddressIsSet(true);
11934         }
11935       }
11936     }
11937
11938   }
11939
11940   public static class withdrawRoute_result implements org.apache.thrift.TBase<withdrawRoute_result, withdrawRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_result>   {
11941     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_result");
11942
11943     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);
11944
11945     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11946     static {
11947       schemes.put(StandardScheme.class, new withdrawRoute_resultStandardSchemeFactory());
11948       schemes.put(TupleScheme.class, new withdrawRoute_resultTupleSchemeFactory());
11949     }
11950
11951     public int success; // required
11952
11953     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11954     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11955       SUCCESS((short)0, "success");
11956
11957       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11958
11959       static {
11960         for (_Fields field : EnumSet.allOf(_Fields.class)) {
11961           byName.put(field.getFieldName(), field);
11962         }
11963       }
11964
11965       /**
11966        * Find the _Fields constant that matches fieldId, or null if its not found.
11967        */
11968       public static _Fields findByThriftId(int fieldId) {
11969         switch(fieldId) {
11970           case 0: // SUCCESS
11971             return SUCCESS;
11972           default:
11973             return null;
11974         }
11975       }
11976
11977       /**
11978        * Find the _Fields constant that matches fieldId, throwing an exception
11979        * if it is not found.
11980        */
11981       public static _Fields findByThriftIdOrThrow(int fieldId) {
11982         _Fields fields = findByThriftId(fieldId);
11983         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11984         return fields;
11985       }
11986
11987       /**
11988        * Find the _Fields constant that matches name, or null if its not found.
11989        */
11990       public static _Fields findByName(String name) {
11991         return byName.get(name);
11992       }
11993
11994       private final short _thriftId;
11995       private final String _fieldName;
11996
11997       _Fields(short thriftId, String fieldName) {
11998         _thriftId = thriftId;
11999         _fieldName = fieldName;
12000       }
12001
12002       public short getThriftFieldId() {
12003         return _thriftId;
12004       }
12005
12006       public String getFieldName() {
12007         return _fieldName;
12008       }
12009     }
12010
12011     // isset id assignments
12012     private static final int __SUCCESS_ISSET_ID = 0;
12013     private byte __isset_bitfield = 0;
12014     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12015     static {
12016       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12017       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12018           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12019       metaDataMap = Collections.unmodifiableMap(tmpMap);
12020       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_result.class, metaDataMap);
12021     }
12022
12023     public withdrawRoute_result() {
12024     }
12025
12026     public withdrawRoute_result(
12027       int success)
12028     {
12029       this();
12030       this.success = success;
12031       setSuccessIsSet(true);
12032     }
12033
12034     /**
12035      * Performs a deep copy on <i>other</i>.
12036      */
12037     public withdrawRoute_result(withdrawRoute_result other) {
12038       __isset_bitfield = other.__isset_bitfield;
12039       this.success = other.success;
12040     }
12041
12042     public withdrawRoute_result deepCopy() {
12043       return new withdrawRoute_result(this);
12044     }
12045
12046     @Override
12047     public void clear() {
12048       setSuccessIsSet(false);
12049       this.success = 0;
12050     }
12051
12052     public int getSuccess() {
12053       return this.success;
12054     }
12055
12056     public withdrawRoute_result setSuccess(int success) {
12057       this.success = success;
12058       setSuccessIsSet(true);
12059       return this;
12060     }
12061
12062     public void unsetSuccess() {
12063       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12064     }
12065
12066     /** Returns true if field success is set (has been assigned a value) and false otherwise */
12067     public boolean isSetSuccess() {
12068       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12069     }
12070
12071     public void setSuccessIsSet(boolean value) {
12072       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
12073     }
12074
12075     public void setFieldValue(_Fields field, Object value) {
12076       switch (field) {
12077       case SUCCESS:
12078         if (value == null) {
12079           unsetSuccess();
12080         } else {
12081           setSuccess((Integer)value);
12082         }
12083         break;
12084
12085       }
12086     }
12087
12088     public Object getFieldValue(_Fields field) {
12089       switch (field) {
12090       case SUCCESS:
12091         return Integer.valueOf(getSuccess());
12092
12093       }
12094       throw new IllegalStateException();
12095     }
12096
12097     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12098     public boolean isSet(_Fields field) {
12099       if (field == null) {
12100         throw new IllegalArgumentException();
12101       }
12102
12103       switch (field) {
12104       case SUCCESS:
12105         return isSetSuccess();
12106       }
12107       throw new IllegalStateException();
12108     }
12109
12110     @Override
12111     public boolean equals(Object that) {
12112       if (that == null)
12113         return false;
12114       if (that instanceof withdrawRoute_result)
12115         return this.equals((withdrawRoute_result)that);
12116       return false;
12117     }
12118
12119     public boolean equals(withdrawRoute_result that) {
12120       if (that == null)
12121         return false;
12122
12123       boolean this_present_success = true;
12124       boolean that_present_success = true;
12125       if (this_present_success || that_present_success) {
12126         if (!(this_present_success && that_present_success))
12127           return false;
12128         if (this.success != that.success)
12129           return false;
12130       }
12131
12132       return true;
12133     }
12134
12135     @Override
12136     public int hashCode() {
12137       return 0;
12138     }
12139
12140     @Override
12141     public int compareTo(withdrawRoute_result other) {
12142       if (!getClass().equals(other.getClass())) {
12143         return getClass().getName().compareTo(other.getClass().getName());
12144       }
12145
12146       int lastComparison = 0;
12147
12148       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
12149       if (lastComparison != 0) {
12150         return lastComparison;
12151       }
12152       if (isSetSuccess()) {
12153         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
12154         if (lastComparison != 0) {
12155           return lastComparison;
12156         }
12157       }
12158       return 0;
12159     }
12160
12161     public _Fields fieldForId(int fieldId) {
12162       return _Fields.findByThriftId(fieldId);
12163     }
12164
12165     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12166       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12167     }
12168
12169     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12170       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12171       }
12172
12173     @Override
12174     public String toString() {
12175       StringBuilder sb = new StringBuilder("withdrawRoute_result(");
12176       boolean first = true;
12177
12178       sb.append("success:");
12179       sb.append(this.success);
12180       first = false;
12181       sb.append(")");
12182       return sb.toString();
12183     }
12184
12185     public void validate() throws org.apache.thrift.TException {
12186       // check for required fields
12187       // check for sub-struct validity
12188     }
12189
12190     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12191       try {
12192         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12193       } catch (org.apache.thrift.TException te) {
12194         throw new java.io.IOException(te);
12195       }
12196     }
12197
12198     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12199       try {
12200         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12201         __isset_bitfield = 0;
12202         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12203       } catch (org.apache.thrift.TException te) {
12204         throw new java.io.IOException(te);
12205       }
12206     }
12207
12208     private static class withdrawRoute_resultStandardSchemeFactory implements SchemeFactory {
12209       public withdrawRoute_resultStandardScheme getScheme() {
12210         return new withdrawRoute_resultStandardScheme();
12211       }
12212     }
12213
12214     private static class withdrawRoute_resultStandardScheme extends StandardScheme<withdrawRoute_result> {
12215
12216       public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
12217         org.apache.thrift.protocol.TField schemeField;
12218         iprot.readStructBegin();
12219         while (true)
12220         {
12221           schemeField = iprot.readFieldBegin();
12222           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
12223             break;
12224           }
12225           switch (schemeField.id) {
12226             case 0: // SUCCESS
12227               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12228                 struct.success = iprot.readI32();
12229                 struct.setSuccessIsSet(true);
12230               } else { 
12231                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12232               }
12233               break;
12234             default:
12235               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12236           }
12237           iprot.readFieldEnd();
12238         }
12239         iprot.readStructEnd();
12240
12241         // check for required fields of primitive type, which can't be checked in the validate method
12242         struct.validate();
12243       }
12244
12245       public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
12246         struct.validate();
12247
12248         oprot.writeStructBegin(STRUCT_DESC);
12249         if (struct.isSetSuccess()) {
12250           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12251           oprot.writeI32(struct.success);
12252           oprot.writeFieldEnd();
12253         }
12254         oprot.writeFieldStop();
12255         oprot.writeStructEnd();
12256       }
12257
12258     }
12259
12260     private static class withdrawRoute_resultTupleSchemeFactory implements SchemeFactory {
12261       public withdrawRoute_resultTupleScheme getScheme() {
12262         return new withdrawRoute_resultTupleScheme();
12263       }
12264     }
12265
12266     private static class withdrawRoute_resultTupleScheme extends TupleScheme<withdrawRoute_result> {
12267
12268       @Override
12269       public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
12270         TTupleProtocol oprot = (TTupleProtocol) prot;
12271         BitSet optionals = new BitSet();
12272         if (struct.isSetSuccess()) {
12273           optionals.set(0);
12274         }
12275         oprot.writeBitSet(optionals, 1);
12276         if (struct.isSetSuccess()) {
12277           oprot.writeI32(struct.success);
12278         }
12279       }
12280
12281       @Override
12282       public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
12283         TTupleProtocol iprot = (TTupleProtocol) prot;
12284         BitSet incoming = iprot.readBitSet(1);
12285         if (incoming.get(0)) {
12286           struct.success = iprot.readI32();
12287           struct.setSuccessIsSet(true);
12288         }
12289       }
12290     }
12291
12292   }
12293
12294   public static class setEbgpMultihop_args implements org.apache.thrift.TBase<setEbgpMultihop_args, setEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_args>   {
12295     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_args");
12296
12297     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);
12298     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);
12299
12300     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12301     static {
12302       schemes.put(StandardScheme.class, new setEbgpMultihop_argsStandardSchemeFactory());
12303       schemes.put(TupleScheme.class, new setEbgpMultihop_argsTupleSchemeFactory());
12304     }
12305
12306     public String peerIp; // required
12307     public int nHops; // required
12308
12309     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12310     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12311       PEER_IP((short)1, "peerIp"),
12312       N_HOPS((short)2, "nHops");
12313
12314       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12315
12316       static {
12317         for (_Fields field : EnumSet.allOf(_Fields.class)) {
12318           byName.put(field.getFieldName(), field);
12319         }
12320       }
12321
12322       /**
12323        * Find the _Fields constant that matches fieldId, or null if its not found.
12324        */
12325       public static _Fields findByThriftId(int fieldId) {
12326         switch(fieldId) {
12327           case 1: // PEER_IP
12328             return PEER_IP;
12329           case 2: // N_HOPS
12330             return N_HOPS;
12331           default:
12332             return null;
12333         }
12334       }
12335
12336       /**
12337        * Find the _Fields constant that matches fieldId, throwing an exception
12338        * if it is not found.
12339        */
12340       public static _Fields findByThriftIdOrThrow(int fieldId) {
12341         _Fields fields = findByThriftId(fieldId);
12342         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12343         return fields;
12344       }
12345
12346       /**
12347        * Find the _Fields constant that matches name, or null if its not found.
12348        */
12349       public static _Fields findByName(String name) {
12350         return byName.get(name);
12351       }
12352
12353       private final short _thriftId;
12354       private final String _fieldName;
12355
12356       _Fields(short thriftId, String fieldName) {
12357         _thriftId = thriftId;
12358         _fieldName = fieldName;
12359       }
12360
12361       public short getThriftFieldId() {
12362         return _thriftId;
12363       }
12364
12365       public String getFieldName() {
12366         return _fieldName;
12367       }
12368     }
12369
12370     // isset id assignments
12371     private static final int __NHOPS_ISSET_ID = 0;
12372     private byte __isset_bitfield = 0;
12373     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12374     static {
12375       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12376       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12377           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12378       tmpMap.put(_Fields.N_HOPS, new org.apache.thrift.meta_data.FieldMetaData("nHops", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12379           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12380       metaDataMap = Collections.unmodifiableMap(tmpMap);
12381       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_args.class, metaDataMap);
12382     }
12383
12384     public setEbgpMultihop_args() {
12385     }
12386
12387     public setEbgpMultihop_args(
12388       String peerIp,
12389       int nHops)
12390     {
12391       this();
12392       this.peerIp = peerIp;
12393       this.nHops = nHops;
12394       setNHopsIsSet(true);
12395     }
12396
12397     /**
12398      * Performs a deep copy on <i>other</i>.
12399      */
12400     public setEbgpMultihop_args(setEbgpMultihop_args other) {
12401       __isset_bitfield = other.__isset_bitfield;
12402       if (other.isSetPeerIp()) {
12403         this.peerIp = other.peerIp;
12404       }
12405       this.nHops = other.nHops;
12406     }
12407
12408     public setEbgpMultihop_args deepCopy() {
12409       return new setEbgpMultihop_args(this);
12410     }
12411
12412     @Override
12413     public void clear() {
12414       this.peerIp = null;
12415       setNHopsIsSet(false);
12416       this.nHops = 0;
12417     }
12418
12419     public String getPeerIp() {
12420       return this.peerIp;
12421     }
12422
12423     public setEbgpMultihop_args setPeerIp(String peerIp) {
12424       this.peerIp = peerIp;
12425       return this;
12426     }
12427
12428     public void unsetPeerIp() {
12429       this.peerIp = null;
12430     }
12431
12432     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
12433     public boolean isSetPeerIp() {
12434       return this.peerIp != null;
12435     }
12436
12437     public void setPeerIpIsSet(boolean value) {
12438       if (!value) {
12439         this.peerIp = null;
12440       }
12441     }
12442
12443     public int getNHops() {
12444       return this.nHops;
12445     }
12446
12447     public setEbgpMultihop_args setNHops(int nHops) {
12448       this.nHops = nHops;
12449       setNHopsIsSet(true);
12450       return this;
12451     }
12452
12453     public void unsetNHops() {
12454       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NHOPS_ISSET_ID);
12455     }
12456
12457     /** Returns true if field nHops is set (has been assigned a value) and false otherwise */
12458     public boolean isSetNHops() {
12459       return EncodingUtils.testBit(__isset_bitfield, __NHOPS_ISSET_ID);
12460     }
12461
12462     public void setNHopsIsSet(boolean value) {
12463       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NHOPS_ISSET_ID, value);
12464     }
12465
12466     public void setFieldValue(_Fields field, Object value) {
12467       switch (field) {
12468       case PEER_IP:
12469         if (value == null) {
12470           unsetPeerIp();
12471         } else {
12472           setPeerIp((String)value);
12473         }
12474         break;
12475
12476       case N_HOPS:
12477         if (value == null) {
12478           unsetNHops();
12479         } else {
12480           setNHops((Integer)value);
12481         }
12482         break;
12483
12484       }
12485     }
12486
12487     public Object getFieldValue(_Fields field) {
12488       switch (field) {
12489       case PEER_IP:
12490         return getPeerIp();
12491
12492       case N_HOPS:
12493         return Integer.valueOf(getNHops());
12494
12495       }
12496       throw new IllegalStateException();
12497     }
12498
12499     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12500     public boolean isSet(_Fields field) {
12501       if (field == null) {
12502         throw new IllegalArgumentException();
12503       }
12504
12505       switch (field) {
12506       case PEER_IP:
12507         return isSetPeerIp();
12508       case N_HOPS:
12509         return isSetNHops();
12510       }
12511       throw new IllegalStateException();
12512     }
12513
12514     @Override
12515     public boolean equals(Object that) {
12516       if (that == null)
12517         return false;
12518       if (that instanceof setEbgpMultihop_args)
12519         return this.equals((setEbgpMultihop_args)that);
12520       return false;
12521     }
12522
12523     public boolean equals(setEbgpMultihop_args that) {
12524       if (that == null)
12525         return false;
12526
12527       boolean this_present_peerIp = true && this.isSetPeerIp();
12528       boolean that_present_peerIp = true && that.isSetPeerIp();
12529       if (this_present_peerIp || that_present_peerIp) {
12530         if (!(this_present_peerIp && that_present_peerIp))
12531           return false;
12532         if (!this.peerIp.equals(that.peerIp))
12533           return false;
12534       }
12535
12536       boolean this_present_nHops = true;
12537       boolean that_present_nHops = true;
12538       if (this_present_nHops || that_present_nHops) {
12539         if (!(this_present_nHops && that_present_nHops))
12540           return false;
12541         if (this.nHops != that.nHops)
12542           return false;
12543       }
12544
12545       return true;
12546     }
12547
12548     @Override
12549     public int hashCode() {
12550       return 0;
12551     }
12552
12553     @Override
12554     public int compareTo(setEbgpMultihop_args other) {
12555       if (!getClass().equals(other.getClass())) {
12556         return getClass().getName().compareTo(other.getClass().getName());
12557       }
12558
12559       int lastComparison = 0;
12560
12561       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
12562       if (lastComparison != 0) {
12563         return lastComparison;
12564       }
12565       if (isSetPeerIp()) {
12566         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
12567         if (lastComparison != 0) {
12568           return lastComparison;
12569         }
12570       }
12571       lastComparison = Boolean.valueOf(isSetNHops()).compareTo(other.isSetNHops());
12572       if (lastComparison != 0) {
12573         return lastComparison;
12574       }
12575       if (isSetNHops()) {
12576         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nHops, other.nHops);
12577         if (lastComparison != 0) {
12578           return lastComparison;
12579         }
12580       }
12581       return 0;
12582     }
12583
12584     public _Fields fieldForId(int fieldId) {
12585       return _Fields.findByThriftId(fieldId);
12586     }
12587
12588     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12589       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12590     }
12591
12592     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12593       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12594     }
12595
12596     @Override
12597     public String toString() {
12598       StringBuilder sb = new StringBuilder("setEbgpMultihop_args(");
12599       boolean first = true;
12600
12601       sb.append("peerIp:");
12602       if (this.peerIp == null) {
12603         sb.append("null");
12604       } else {
12605         sb.append(this.peerIp);
12606       }
12607       first = false;
12608       if (!first) sb.append(", ");
12609       sb.append("nHops:");
12610       sb.append(this.nHops);
12611       first = false;
12612       sb.append(")");
12613       return sb.toString();
12614     }
12615
12616     public void validate() throws org.apache.thrift.TException {
12617       // check for required fields
12618       // check for sub-struct validity
12619     }
12620
12621     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12622       try {
12623         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12624       } catch (org.apache.thrift.TException te) {
12625         throw new java.io.IOException(te);
12626       }
12627     }
12628
12629     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12630       try {
12631         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12632         __isset_bitfield = 0;
12633         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12634       } catch (org.apache.thrift.TException te) {
12635         throw new java.io.IOException(te);
12636       }
12637     }
12638
12639     private static class setEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
12640       public setEbgpMultihop_argsStandardScheme getScheme() {
12641         return new setEbgpMultihop_argsStandardScheme();
12642       }
12643     }
12644
12645     private static class setEbgpMultihop_argsStandardScheme extends StandardScheme<setEbgpMultihop_args> {
12646
12647       public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
12648         org.apache.thrift.protocol.TField schemeField;
12649         iprot.readStructBegin();
12650         while (true)
12651         {
12652           schemeField = iprot.readFieldBegin();
12653           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
12654             break;
12655           }
12656           switch (schemeField.id) {
12657             case 1: // PEER_IP
12658               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12659                 struct.peerIp = iprot.readString();
12660                 struct.setPeerIpIsSet(true);
12661               } else { 
12662                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12663               }
12664               break;
12665             case 2: // N_HOPS
12666               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12667                 struct.nHops = iprot.readI32();
12668                 struct.setNHopsIsSet(true);
12669               } else { 
12670                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12671               }
12672               break;
12673             default:
12674               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12675           }
12676           iprot.readFieldEnd();
12677         }
12678         iprot.readStructEnd();
12679
12680         // check for required fields of primitive type, which can't be checked in the validate method
12681         struct.validate();
12682       }
12683
12684       public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
12685         struct.validate();
12686
12687         oprot.writeStructBegin(STRUCT_DESC);
12688         if (struct.peerIp != null) {
12689           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
12690           oprot.writeString(struct.peerIp);
12691           oprot.writeFieldEnd();
12692         }
12693         oprot.writeFieldBegin(N_HOPS_FIELD_DESC);
12694         oprot.writeI32(struct.nHops);
12695         oprot.writeFieldEnd();
12696         oprot.writeFieldStop();
12697         oprot.writeStructEnd();
12698       }
12699
12700     }
12701
12702     private static class setEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
12703       public setEbgpMultihop_argsTupleScheme getScheme() {
12704         return new setEbgpMultihop_argsTupleScheme();
12705       }
12706     }
12707
12708     private static class setEbgpMultihop_argsTupleScheme extends TupleScheme<setEbgpMultihop_args> {
12709
12710       @Override
12711       public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
12712         TTupleProtocol oprot = (TTupleProtocol) prot;
12713         BitSet optionals = new BitSet();
12714         if (struct.isSetPeerIp()) {
12715           optionals.set(0);
12716         }
12717         if (struct.isSetNHops()) {
12718           optionals.set(1);
12719         }
12720         oprot.writeBitSet(optionals, 2);
12721         if (struct.isSetPeerIp()) {
12722           oprot.writeString(struct.peerIp);
12723         }
12724         if (struct.isSetNHops()) {
12725           oprot.writeI32(struct.nHops);
12726         }
12727       }
12728
12729       @Override
12730       public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
12731         TTupleProtocol iprot = (TTupleProtocol) prot;
12732         BitSet incoming = iprot.readBitSet(2);
12733         if (incoming.get(0)) {
12734           struct.peerIp = iprot.readString();
12735           struct.setPeerIpIsSet(true);
12736         }
12737         if (incoming.get(1)) {
12738           struct.nHops = iprot.readI32();
12739           struct.setNHopsIsSet(true);
12740         }
12741       }
12742     }
12743
12744   }
12745
12746   public static class setEbgpMultihop_result implements org.apache.thrift.TBase<setEbgpMultihop_result, setEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_result>   {
12747     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_result");
12748
12749     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);
12750
12751     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12752     static {
12753       schemes.put(StandardScheme.class, new setEbgpMultihop_resultStandardSchemeFactory());
12754       schemes.put(TupleScheme.class, new setEbgpMultihop_resultTupleSchemeFactory());
12755     }
12756
12757     public int success; // required
12758
12759     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12760     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12761       SUCCESS((short)0, "success");
12762
12763       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12764
12765       static {
12766         for (_Fields field : EnumSet.allOf(_Fields.class)) {
12767           byName.put(field.getFieldName(), field);
12768         }
12769       }
12770
12771       /**
12772        * Find the _Fields constant that matches fieldId, or null if its not found.
12773        */
12774       public static _Fields findByThriftId(int fieldId) {
12775         switch(fieldId) {
12776           case 0: // SUCCESS
12777             return SUCCESS;
12778           default:
12779             return null;
12780         }
12781       }
12782
12783       /**
12784        * Find the _Fields constant that matches fieldId, throwing an exception
12785        * if it is not found.
12786        */
12787       public static _Fields findByThriftIdOrThrow(int fieldId) {
12788         _Fields fields = findByThriftId(fieldId);
12789         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12790         return fields;
12791       }
12792
12793       /**
12794        * Find the _Fields constant that matches name, or null if its not found.
12795        */
12796       public static _Fields findByName(String name) {
12797         return byName.get(name);
12798       }
12799
12800       private final short _thriftId;
12801       private final String _fieldName;
12802
12803       _Fields(short thriftId, String fieldName) {
12804         _thriftId = thriftId;
12805         _fieldName = fieldName;
12806       }
12807
12808       public short getThriftFieldId() {
12809         return _thriftId;
12810       }
12811
12812       public String getFieldName() {
12813         return _fieldName;
12814       }
12815     }
12816
12817     // isset id assignments
12818     private static final int __SUCCESS_ISSET_ID = 0;
12819     private byte __isset_bitfield = 0;
12820     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12821     static {
12822       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12823       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12824           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12825       metaDataMap = Collections.unmodifiableMap(tmpMap);
12826       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_result.class, metaDataMap);
12827     }
12828
12829     public setEbgpMultihop_result() {
12830     }
12831
12832     public setEbgpMultihop_result(
12833       int success)
12834     {
12835       this();
12836       this.success = success;
12837       setSuccessIsSet(true);
12838     }
12839
12840     /**
12841      * Performs a deep copy on <i>other</i>.
12842      */
12843     public setEbgpMultihop_result(setEbgpMultihop_result other) {
12844       __isset_bitfield = other.__isset_bitfield;
12845       this.success = other.success;
12846     }
12847
12848     public setEbgpMultihop_result deepCopy() {
12849       return new setEbgpMultihop_result(this);
12850     }
12851
12852     @Override
12853     public void clear() {
12854       setSuccessIsSet(false);
12855       this.success = 0;
12856     }
12857
12858     public int getSuccess() {
12859       return this.success;
12860     }
12861
12862     public setEbgpMultihop_result setSuccess(int success) {
12863       this.success = success;
12864       setSuccessIsSet(true);
12865       return this;
12866     }
12867
12868     public void unsetSuccess() {
12869       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12870     }
12871
12872     /** Returns true if field success is set (has been assigned a value) and false otherwise */
12873     public boolean isSetSuccess() {
12874       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12875     }
12876
12877     public void setSuccessIsSet(boolean value) {
12878       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
12879     }
12880
12881     public void setFieldValue(_Fields field, Object value) {
12882       switch (field) {
12883       case SUCCESS:
12884         if (value == null) {
12885           unsetSuccess();
12886         } else {
12887           setSuccess((Integer)value);
12888         }
12889         break;
12890
12891       }
12892     }
12893
12894     public Object getFieldValue(_Fields field) {
12895       switch (field) {
12896       case SUCCESS:
12897         return Integer.valueOf(getSuccess());
12898
12899       }
12900       throw new IllegalStateException();
12901     }
12902
12903     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12904     public boolean isSet(_Fields field) {
12905       if (field == null) {
12906         throw new IllegalArgumentException();
12907       }
12908
12909       switch (field) {
12910       case SUCCESS:
12911         return isSetSuccess();
12912       }
12913       throw new IllegalStateException();
12914     }
12915
12916     @Override
12917     public boolean equals(Object that) {
12918       if (that == null)
12919         return false;
12920       if (that instanceof setEbgpMultihop_result)
12921         return this.equals((setEbgpMultihop_result)that);
12922       return false;
12923     }
12924
12925     public boolean equals(setEbgpMultihop_result that) {
12926       if (that == null)
12927         return false;
12928
12929       boolean this_present_success = true;
12930       boolean that_present_success = true;
12931       if (this_present_success || that_present_success) {
12932         if (!(this_present_success && that_present_success))
12933           return false;
12934         if (this.success != that.success)
12935           return false;
12936       }
12937
12938       return true;
12939     }
12940
12941     @Override
12942     public int hashCode() {
12943       return 0;
12944     }
12945
12946     @Override
12947     public int compareTo(setEbgpMultihop_result other) {
12948       if (!getClass().equals(other.getClass())) {
12949         return getClass().getName().compareTo(other.getClass().getName());
12950       }
12951
12952       int lastComparison = 0;
12953
12954       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
12955       if (lastComparison != 0) {
12956         return lastComparison;
12957       }
12958       if (isSetSuccess()) {
12959         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
12960         if (lastComparison != 0) {
12961           return lastComparison;
12962         }
12963       }
12964       return 0;
12965     }
12966
12967     public _Fields fieldForId(int fieldId) {
12968       return _Fields.findByThriftId(fieldId);
12969     }
12970
12971     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12972       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12973     }
12974
12975     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12976       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12977       }
12978
12979     @Override
12980     public String toString() {
12981       StringBuilder sb = new StringBuilder("setEbgpMultihop_result(");
12982       boolean first = true;
12983
12984       sb.append("success:");
12985       sb.append(this.success);
12986       first = false;
12987       sb.append(")");
12988       return sb.toString();
12989     }
12990
12991     public void validate() throws org.apache.thrift.TException {
12992       // check for required fields
12993       // check for sub-struct validity
12994     }
12995
12996     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12997       try {
12998         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12999       } catch (org.apache.thrift.TException te) {
13000         throw new java.io.IOException(te);
13001       }
13002     }
13003
13004     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13005       try {
13006         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13007         __isset_bitfield = 0;
13008         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13009       } catch (org.apache.thrift.TException te) {
13010         throw new java.io.IOException(te);
13011       }
13012     }
13013
13014     private static class setEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
13015       public setEbgpMultihop_resultStandardScheme getScheme() {
13016         return new setEbgpMultihop_resultStandardScheme();
13017       }
13018     }
13019
13020     private static class setEbgpMultihop_resultStandardScheme extends StandardScheme<setEbgpMultihop_result> {
13021
13022       public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
13023         org.apache.thrift.protocol.TField schemeField;
13024         iprot.readStructBegin();
13025         while (true)
13026         {
13027           schemeField = iprot.readFieldBegin();
13028           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
13029             break;
13030           }
13031           switch (schemeField.id) {
13032             case 0: // SUCCESS
13033               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13034                 struct.success = iprot.readI32();
13035                 struct.setSuccessIsSet(true);
13036               } else { 
13037                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13038               }
13039               break;
13040             default:
13041               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13042           }
13043           iprot.readFieldEnd();
13044         }
13045         iprot.readStructEnd();
13046
13047         // check for required fields of primitive type, which can't be checked in the validate method
13048         struct.validate();
13049       }
13050
13051       public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
13052         struct.validate();
13053
13054         oprot.writeStructBegin(STRUCT_DESC);
13055         if (struct.isSetSuccess()) {
13056           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13057           oprot.writeI32(struct.success);
13058           oprot.writeFieldEnd();
13059         }
13060         oprot.writeFieldStop();
13061         oprot.writeStructEnd();
13062       }
13063
13064     }
13065
13066     private static class setEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
13067       public setEbgpMultihop_resultTupleScheme getScheme() {
13068         return new setEbgpMultihop_resultTupleScheme();
13069       }
13070     }
13071
13072     private static class setEbgpMultihop_resultTupleScheme extends TupleScheme<setEbgpMultihop_result> {
13073
13074       @Override
13075       public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
13076         TTupleProtocol oprot = (TTupleProtocol) prot;
13077         BitSet optionals = new BitSet();
13078         if (struct.isSetSuccess()) {
13079           optionals.set(0);
13080         }
13081         oprot.writeBitSet(optionals, 1);
13082         if (struct.isSetSuccess()) {
13083           oprot.writeI32(struct.success);
13084         }
13085       }
13086
13087       @Override
13088       public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
13089         TTupleProtocol iprot = (TTupleProtocol) prot;
13090         BitSet incoming = iprot.readBitSet(1);
13091         if (incoming.get(0)) {
13092           struct.success = iprot.readI32();
13093           struct.setSuccessIsSet(true);
13094         }
13095       }
13096     }
13097
13098   }
13099
13100   public static class unsetEbgpMultihop_args implements org.apache.thrift.TBase<unsetEbgpMultihop_args, unsetEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_args>   {
13101     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_args");
13102
13103     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);
13104
13105     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13106     static {
13107       schemes.put(StandardScheme.class, new unsetEbgpMultihop_argsStandardSchemeFactory());
13108       schemes.put(TupleScheme.class, new unsetEbgpMultihop_argsTupleSchemeFactory());
13109     }
13110
13111     public String peerIp; // required
13112
13113     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13114     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13115       PEER_IP((short)1, "peerIp");
13116
13117       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13118
13119       static {
13120         for (_Fields field : EnumSet.allOf(_Fields.class)) {
13121           byName.put(field.getFieldName(), field);
13122         }
13123       }
13124
13125       /**
13126        * Find the _Fields constant that matches fieldId, or null if its not found.
13127        */
13128       public static _Fields findByThriftId(int fieldId) {
13129         switch(fieldId) {
13130           case 1: // PEER_IP
13131             return PEER_IP;
13132           default:
13133             return null;
13134         }
13135       }
13136
13137       /**
13138        * Find the _Fields constant that matches fieldId, throwing an exception
13139        * if it is not found.
13140        */
13141       public static _Fields findByThriftIdOrThrow(int fieldId) {
13142         _Fields fields = findByThriftId(fieldId);
13143         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13144         return fields;
13145       }
13146
13147       /**
13148        * Find the _Fields constant that matches name, or null if its not found.
13149        */
13150       public static _Fields findByName(String name) {
13151         return byName.get(name);
13152       }
13153
13154       private final short _thriftId;
13155       private final String _fieldName;
13156
13157       _Fields(short thriftId, String fieldName) {
13158         _thriftId = thriftId;
13159         _fieldName = fieldName;
13160       }
13161
13162       public short getThriftFieldId() {
13163         return _thriftId;
13164       }
13165
13166       public String getFieldName() {
13167         return _fieldName;
13168       }
13169     }
13170
13171     // isset id assignments
13172     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13173     static {
13174       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13175       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13176           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13177       metaDataMap = Collections.unmodifiableMap(tmpMap);
13178       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_args.class, metaDataMap);
13179     }
13180
13181     public unsetEbgpMultihop_args() {
13182     }
13183
13184     public unsetEbgpMultihop_args(
13185       String peerIp)
13186     {
13187       this();
13188       this.peerIp = peerIp;
13189     }
13190
13191     /**
13192      * Performs a deep copy on <i>other</i>.
13193      */
13194     public unsetEbgpMultihop_args(unsetEbgpMultihop_args other) {
13195       if (other.isSetPeerIp()) {
13196         this.peerIp = other.peerIp;
13197       }
13198     }
13199
13200     public unsetEbgpMultihop_args deepCopy() {
13201       return new unsetEbgpMultihop_args(this);
13202     }
13203
13204     @Override
13205     public void clear() {
13206       this.peerIp = null;
13207     }
13208
13209     public String getPeerIp() {
13210       return this.peerIp;
13211     }
13212
13213     public unsetEbgpMultihop_args setPeerIp(String peerIp) {
13214       this.peerIp = peerIp;
13215       return this;
13216     }
13217
13218     public void unsetPeerIp() {
13219       this.peerIp = null;
13220     }
13221
13222     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
13223     public boolean isSetPeerIp() {
13224       return this.peerIp != null;
13225     }
13226
13227     public void setPeerIpIsSet(boolean value) {
13228       if (!value) {
13229         this.peerIp = null;
13230       }
13231     }
13232
13233     public void setFieldValue(_Fields field, Object value) {
13234       switch (field) {
13235       case PEER_IP:
13236         if (value == null) {
13237           unsetPeerIp();
13238         } else {
13239           setPeerIp((String)value);
13240         }
13241         break;
13242
13243       }
13244     }
13245
13246     public Object getFieldValue(_Fields field) {
13247       switch (field) {
13248       case PEER_IP:
13249         return getPeerIp();
13250
13251       }
13252       throw new IllegalStateException();
13253     }
13254
13255     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13256     public boolean isSet(_Fields field) {
13257       if (field == null) {
13258         throw new IllegalArgumentException();
13259       }
13260
13261       switch (field) {
13262       case PEER_IP:
13263         return isSetPeerIp();
13264       }
13265       throw new IllegalStateException();
13266     }
13267
13268     @Override
13269     public boolean equals(Object that) {
13270       if (that == null)
13271         return false;
13272       if (that instanceof unsetEbgpMultihop_args)
13273         return this.equals((unsetEbgpMultihop_args)that);
13274       return false;
13275     }
13276
13277     public boolean equals(unsetEbgpMultihop_args that) {
13278       if (that == null)
13279         return false;
13280
13281       boolean this_present_peerIp = true && this.isSetPeerIp();
13282       boolean that_present_peerIp = true && that.isSetPeerIp();
13283       if (this_present_peerIp || that_present_peerIp) {
13284         if (!(this_present_peerIp && that_present_peerIp))
13285           return false;
13286         if (!this.peerIp.equals(that.peerIp))
13287           return false;
13288       }
13289
13290       return true;
13291     }
13292
13293     @Override
13294     public int hashCode() {
13295       return 0;
13296     }
13297
13298     @Override
13299     public int compareTo(unsetEbgpMultihop_args other) {
13300       if (!getClass().equals(other.getClass())) {
13301         return getClass().getName().compareTo(other.getClass().getName());
13302       }
13303
13304       int lastComparison = 0;
13305
13306       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
13307       if (lastComparison != 0) {
13308         return lastComparison;
13309       }
13310       if (isSetPeerIp()) {
13311         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
13312         if (lastComparison != 0) {
13313           return lastComparison;
13314         }
13315       }
13316       return 0;
13317     }
13318
13319     public _Fields fieldForId(int fieldId) {
13320       return _Fields.findByThriftId(fieldId);
13321     }
13322
13323     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13324       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13325     }
13326
13327     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13328       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13329     }
13330
13331     @Override
13332     public String toString() {
13333       StringBuilder sb = new StringBuilder("unsetEbgpMultihop_args(");
13334       boolean first = true;
13335
13336       sb.append("peerIp:");
13337       if (this.peerIp == null) {
13338         sb.append("null");
13339       } else {
13340         sb.append(this.peerIp);
13341       }
13342       first = false;
13343       sb.append(")");
13344       return sb.toString();
13345     }
13346
13347     public void validate() throws org.apache.thrift.TException {
13348       // check for required fields
13349       // check for sub-struct validity
13350     }
13351
13352     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13353       try {
13354         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13355       } catch (org.apache.thrift.TException te) {
13356         throw new java.io.IOException(te);
13357       }
13358     }
13359
13360     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13361       try {
13362         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13363       } catch (org.apache.thrift.TException te) {
13364         throw new java.io.IOException(te);
13365       }
13366     }
13367
13368     private static class unsetEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
13369       public unsetEbgpMultihop_argsStandardScheme getScheme() {
13370         return new unsetEbgpMultihop_argsStandardScheme();
13371       }
13372     }
13373
13374     private static class unsetEbgpMultihop_argsStandardScheme extends StandardScheme<unsetEbgpMultihop_args> {
13375
13376       public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
13377         org.apache.thrift.protocol.TField schemeField;
13378         iprot.readStructBegin();
13379         while (true)
13380         {
13381           schemeField = iprot.readFieldBegin();
13382           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
13383             break;
13384           }
13385           switch (schemeField.id) {
13386             case 1: // PEER_IP
13387               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13388                 struct.peerIp = iprot.readString();
13389                 struct.setPeerIpIsSet(true);
13390               } else { 
13391                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13392               }
13393               break;
13394             default:
13395               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13396           }
13397           iprot.readFieldEnd();
13398         }
13399         iprot.readStructEnd();
13400
13401         // check for required fields of primitive type, which can't be checked in the validate method
13402         struct.validate();
13403       }
13404
13405       public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
13406         struct.validate();
13407
13408         oprot.writeStructBegin(STRUCT_DESC);
13409         if (struct.peerIp != null) {
13410           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
13411           oprot.writeString(struct.peerIp);
13412           oprot.writeFieldEnd();
13413         }
13414         oprot.writeFieldStop();
13415         oprot.writeStructEnd();
13416       }
13417
13418     }
13419
13420     private static class unsetEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
13421       public unsetEbgpMultihop_argsTupleScheme getScheme() {
13422         return new unsetEbgpMultihop_argsTupleScheme();
13423       }
13424     }
13425
13426     private static class unsetEbgpMultihop_argsTupleScheme extends TupleScheme<unsetEbgpMultihop_args> {
13427
13428       @Override
13429       public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
13430         TTupleProtocol oprot = (TTupleProtocol) prot;
13431         BitSet optionals = new BitSet();
13432         if (struct.isSetPeerIp()) {
13433           optionals.set(0);
13434         }
13435         oprot.writeBitSet(optionals, 1);
13436         if (struct.isSetPeerIp()) {
13437           oprot.writeString(struct.peerIp);
13438         }
13439       }
13440
13441       @Override
13442       public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
13443         TTupleProtocol iprot = (TTupleProtocol) prot;
13444         BitSet incoming = iprot.readBitSet(1);
13445         if (incoming.get(0)) {
13446           struct.peerIp = iprot.readString();
13447           struct.setPeerIpIsSet(true);
13448         }
13449       }
13450     }
13451
13452   }
13453
13454   public static class unsetEbgpMultihop_result implements org.apache.thrift.TBase<unsetEbgpMultihop_result, unsetEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_result>   {
13455     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_result");
13456
13457     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);
13458
13459     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13460     static {
13461       schemes.put(StandardScheme.class, new unsetEbgpMultihop_resultStandardSchemeFactory());
13462       schemes.put(TupleScheme.class, new unsetEbgpMultihop_resultTupleSchemeFactory());
13463     }
13464
13465     public int success; // required
13466
13467     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13468     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13469       SUCCESS((short)0, "success");
13470
13471       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13472
13473       static {
13474         for (_Fields field : EnumSet.allOf(_Fields.class)) {
13475           byName.put(field.getFieldName(), field);
13476         }
13477       }
13478
13479       /**
13480        * Find the _Fields constant that matches fieldId, or null if its not found.
13481        */
13482       public static _Fields findByThriftId(int fieldId) {
13483         switch(fieldId) {
13484           case 0: // SUCCESS
13485             return SUCCESS;
13486           default:
13487             return null;
13488         }
13489       }
13490
13491       /**
13492        * Find the _Fields constant that matches fieldId, throwing an exception
13493        * if it is not found.
13494        */
13495       public static _Fields findByThriftIdOrThrow(int fieldId) {
13496         _Fields fields = findByThriftId(fieldId);
13497         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13498         return fields;
13499       }
13500
13501       /**
13502        * Find the _Fields constant that matches name, or null if its not found.
13503        */
13504       public static _Fields findByName(String name) {
13505         return byName.get(name);
13506       }
13507
13508       private final short _thriftId;
13509       private final String _fieldName;
13510
13511       _Fields(short thriftId, String fieldName) {
13512         _thriftId = thriftId;
13513         _fieldName = fieldName;
13514       }
13515
13516       public short getThriftFieldId() {
13517         return _thriftId;
13518       }
13519
13520       public String getFieldName() {
13521         return _fieldName;
13522       }
13523     }
13524
13525     // isset id assignments
13526     private static final int __SUCCESS_ISSET_ID = 0;
13527     private byte __isset_bitfield = 0;
13528     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13529     static {
13530       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13531       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13532           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
13533       metaDataMap = Collections.unmodifiableMap(tmpMap);
13534       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_result.class, metaDataMap);
13535     }
13536
13537     public unsetEbgpMultihop_result() {
13538     }
13539
13540     public unsetEbgpMultihop_result(
13541       int success)
13542     {
13543       this();
13544       this.success = success;
13545       setSuccessIsSet(true);
13546     }
13547
13548     /**
13549      * Performs a deep copy on <i>other</i>.
13550      */
13551     public unsetEbgpMultihop_result(unsetEbgpMultihop_result other) {
13552       __isset_bitfield = other.__isset_bitfield;
13553       this.success = other.success;
13554     }
13555
13556     public unsetEbgpMultihop_result deepCopy() {
13557       return new unsetEbgpMultihop_result(this);
13558     }
13559
13560     @Override
13561     public void clear() {
13562       setSuccessIsSet(false);
13563       this.success = 0;
13564     }
13565
13566     public int getSuccess() {
13567       return this.success;
13568     }
13569
13570     public unsetEbgpMultihop_result setSuccess(int success) {
13571       this.success = success;
13572       setSuccessIsSet(true);
13573       return this;
13574     }
13575
13576     public void unsetSuccess() {
13577       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13578     }
13579
13580     /** Returns true if field success is set (has been assigned a value) and false otherwise */
13581     public boolean isSetSuccess() {
13582       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13583     }
13584
13585     public void setSuccessIsSet(boolean value) {
13586       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
13587     }
13588
13589     public void setFieldValue(_Fields field, Object value) {
13590       switch (field) {
13591       case SUCCESS:
13592         if (value == null) {
13593           unsetSuccess();
13594         } else {
13595           setSuccess((Integer)value);
13596         }
13597         break;
13598
13599       }
13600     }
13601
13602     public Object getFieldValue(_Fields field) {
13603       switch (field) {
13604       case SUCCESS:
13605         return Integer.valueOf(getSuccess());
13606
13607       }
13608       throw new IllegalStateException();
13609     }
13610
13611     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13612     public boolean isSet(_Fields field) {
13613       if (field == null) {
13614         throw new IllegalArgumentException();
13615       }
13616
13617       switch (field) {
13618       case SUCCESS:
13619         return isSetSuccess();
13620       }
13621       throw new IllegalStateException();
13622     }
13623
13624     @Override
13625     public boolean equals(Object that) {
13626       if (that == null)
13627         return false;
13628       if (that instanceof unsetEbgpMultihop_result)
13629         return this.equals((unsetEbgpMultihop_result)that);
13630       return false;
13631     }
13632
13633     public boolean equals(unsetEbgpMultihop_result that) {
13634       if (that == null)
13635         return false;
13636
13637       boolean this_present_success = true;
13638       boolean that_present_success = true;
13639       if (this_present_success || that_present_success) {
13640         if (!(this_present_success && that_present_success))
13641           return false;
13642         if (this.success != that.success)
13643           return false;
13644       }
13645
13646       return true;
13647     }
13648
13649     @Override
13650     public int hashCode() {
13651       return 0;
13652     }
13653
13654     @Override
13655     public int compareTo(unsetEbgpMultihop_result other) {
13656       if (!getClass().equals(other.getClass())) {
13657         return getClass().getName().compareTo(other.getClass().getName());
13658       }
13659
13660       int lastComparison = 0;
13661
13662       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
13663       if (lastComparison != 0) {
13664         return lastComparison;
13665       }
13666       if (isSetSuccess()) {
13667         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
13668         if (lastComparison != 0) {
13669           return lastComparison;
13670         }
13671       }
13672       return 0;
13673     }
13674
13675     public _Fields fieldForId(int fieldId) {
13676       return _Fields.findByThriftId(fieldId);
13677     }
13678
13679     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13680       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13681     }
13682
13683     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13684       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13685       }
13686
13687     @Override
13688     public String toString() {
13689       StringBuilder sb = new StringBuilder("unsetEbgpMultihop_result(");
13690       boolean first = true;
13691
13692       sb.append("success:");
13693       sb.append(this.success);
13694       first = false;
13695       sb.append(")");
13696       return sb.toString();
13697     }
13698
13699     public void validate() throws org.apache.thrift.TException {
13700       // check for required fields
13701       // check for sub-struct validity
13702     }
13703
13704     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13705       try {
13706         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13707       } catch (org.apache.thrift.TException te) {
13708         throw new java.io.IOException(te);
13709       }
13710     }
13711
13712     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13713       try {
13714         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13715         __isset_bitfield = 0;
13716         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13717       } catch (org.apache.thrift.TException te) {
13718         throw new java.io.IOException(te);
13719       }
13720     }
13721
13722     private static class unsetEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
13723       public unsetEbgpMultihop_resultStandardScheme getScheme() {
13724         return new unsetEbgpMultihop_resultStandardScheme();
13725       }
13726     }
13727
13728     private static class unsetEbgpMultihop_resultStandardScheme extends StandardScheme<unsetEbgpMultihop_result> {
13729
13730       public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
13731         org.apache.thrift.protocol.TField schemeField;
13732         iprot.readStructBegin();
13733         while (true)
13734         {
13735           schemeField = iprot.readFieldBegin();
13736           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
13737             break;
13738           }
13739           switch (schemeField.id) {
13740             case 0: // SUCCESS
13741               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13742                 struct.success = iprot.readI32();
13743                 struct.setSuccessIsSet(true);
13744               } else { 
13745                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13746               }
13747               break;
13748             default:
13749               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13750           }
13751           iprot.readFieldEnd();
13752         }
13753         iprot.readStructEnd();
13754
13755         // check for required fields of primitive type, which can't be checked in the validate method
13756         struct.validate();
13757       }
13758
13759       public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
13760         struct.validate();
13761
13762         oprot.writeStructBegin(STRUCT_DESC);
13763         if (struct.isSetSuccess()) {
13764           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13765           oprot.writeI32(struct.success);
13766           oprot.writeFieldEnd();
13767         }
13768         oprot.writeFieldStop();
13769         oprot.writeStructEnd();
13770       }
13771
13772     }
13773
13774     private static class unsetEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
13775       public unsetEbgpMultihop_resultTupleScheme getScheme() {
13776         return new unsetEbgpMultihop_resultTupleScheme();
13777       }
13778     }
13779
13780     private static class unsetEbgpMultihop_resultTupleScheme extends TupleScheme<unsetEbgpMultihop_result> {
13781
13782       @Override
13783       public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
13784         TTupleProtocol oprot = (TTupleProtocol) prot;
13785         BitSet optionals = new BitSet();
13786         if (struct.isSetSuccess()) {
13787           optionals.set(0);
13788         }
13789         oprot.writeBitSet(optionals, 1);
13790         if (struct.isSetSuccess()) {
13791           oprot.writeI32(struct.success);
13792         }
13793       }
13794
13795       @Override
13796       public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
13797         TTupleProtocol iprot = (TTupleProtocol) prot;
13798         BitSet incoming = iprot.readBitSet(1);
13799         if (incoming.get(0)) {
13800           struct.success = iprot.readI32();
13801           struct.setSuccessIsSet(true);
13802         }
13803       }
13804     }
13805
13806   }
13807
13808   public static class setUpdateSource_args implements org.apache.thrift.TBase<setUpdateSource_args, setUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_args>   {
13809     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_args");
13810
13811     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);
13812     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);
13813
13814     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13815     static {
13816       schemes.put(StandardScheme.class, new setUpdateSource_argsStandardSchemeFactory());
13817       schemes.put(TupleScheme.class, new setUpdateSource_argsTupleSchemeFactory());
13818     }
13819
13820     public String peerIp; // required
13821     public String srcIp; // required
13822
13823     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13824     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13825       PEER_IP((short)1, "peerIp"),
13826       SRC_IP((short)2, "srcIp");
13827
13828       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13829
13830       static {
13831         for (_Fields field : EnumSet.allOf(_Fields.class)) {
13832           byName.put(field.getFieldName(), field);
13833         }
13834       }
13835
13836       /**
13837        * Find the _Fields constant that matches fieldId, or null if its not found.
13838        */
13839       public static _Fields findByThriftId(int fieldId) {
13840         switch(fieldId) {
13841           case 1: // PEER_IP
13842             return PEER_IP;
13843           case 2: // SRC_IP
13844             return SRC_IP;
13845           default:
13846             return null;
13847         }
13848       }
13849
13850       /**
13851        * Find the _Fields constant that matches fieldId, throwing an exception
13852        * if it is not found.
13853        */
13854       public static _Fields findByThriftIdOrThrow(int fieldId) {
13855         _Fields fields = findByThriftId(fieldId);
13856         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13857         return fields;
13858       }
13859
13860       /**
13861        * Find the _Fields constant that matches name, or null if its not found.
13862        */
13863       public static _Fields findByName(String name) {
13864         return byName.get(name);
13865       }
13866
13867       private final short _thriftId;
13868       private final String _fieldName;
13869
13870       _Fields(short thriftId, String fieldName) {
13871         _thriftId = thriftId;
13872         _fieldName = fieldName;
13873       }
13874
13875       public short getThriftFieldId() {
13876         return _thriftId;
13877       }
13878
13879       public String getFieldName() {
13880         return _fieldName;
13881       }
13882     }
13883
13884     // isset id assignments
13885     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13886     static {
13887       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13888       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13889           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13890       tmpMap.put(_Fields.SRC_IP, new org.apache.thrift.meta_data.FieldMetaData("srcIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13891           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13892       metaDataMap = Collections.unmodifiableMap(tmpMap);
13893       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_args.class, metaDataMap);
13894     }
13895
13896     public setUpdateSource_args() {
13897     }
13898
13899     public setUpdateSource_args(
13900       String peerIp,
13901       String srcIp)
13902     {
13903       this();
13904       this.peerIp = peerIp;
13905       this.srcIp = srcIp;
13906     }
13907
13908     /**
13909      * Performs a deep copy on <i>other</i>.
13910      */
13911     public setUpdateSource_args(setUpdateSource_args other) {
13912       if (other.isSetPeerIp()) {
13913         this.peerIp = other.peerIp;
13914       }
13915       if (other.isSetSrcIp()) {
13916         this.srcIp = other.srcIp;
13917       }
13918     }
13919
13920     public setUpdateSource_args deepCopy() {
13921       return new setUpdateSource_args(this);
13922     }
13923
13924     @Override
13925     public void clear() {
13926       this.peerIp = null;
13927       this.srcIp = null;
13928     }
13929
13930     public String getPeerIp() {
13931       return this.peerIp;
13932     }
13933
13934     public setUpdateSource_args setPeerIp(String peerIp) {
13935       this.peerIp = peerIp;
13936       return this;
13937     }
13938
13939     public void unsetPeerIp() {
13940       this.peerIp = null;
13941     }
13942
13943     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
13944     public boolean isSetPeerIp() {
13945       return this.peerIp != null;
13946     }
13947
13948     public void setPeerIpIsSet(boolean value) {
13949       if (!value) {
13950         this.peerIp = null;
13951       }
13952     }
13953
13954     public String getSrcIp() {
13955       return this.srcIp;
13956     }
13957
13958     public setUpdateSource_args setSrcIp(String srcIp) {
13959       this.srcIp = srcIp;
13960       return this;
13961     }
13962
13963     public void unsetSrcIp() {
13964       this.srcIp = null;
13965     }
13966
13967     /** Returns true if field srcIp is set (has been assigned a value) and false otherwise */
13968     public boolean isSetSrcIp() {
13969       return this.srcIp != null;
13970     }
13971
13972     public void setSrcIpIsSet(boolean value) {
13973       if (!value) {
13974         this.srcIp = null;
13975       }
13976     }
13977
13978     public void setFieldValue(_Fields field, Object value) {
13979       switch (field) {
13980       case PEER_IP:
13981         if (value == null) {
13982           unsetPeerIp();
13983         } else {
13984           setPeerIp((String)value);
13985         }
13986         break;
13987
13988       case SRC_IP:
13989         if (value == null) {
13990           unsetSrcIp();
13991         } else {
13992           setSrcIp((String)value);
13993         }
13994         break;
13995
13996       }
13997     }
13998
13999     public Object getFieldValue(_Fields field) {
14000       switch (field) {
14001       case PEER_IP:
14002         return getPeerIp();
14003
14004       case SRC_IP:
14005         return getSrcIp();
14006
14007       }
14008       throw new IllegalStateException();
14009     }
14010
14011     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14012     public boolean isSet(_Fields field) {
14013       if (field == null) {
14014         throw new IllegalArgumentException();
14015       }
14016
14017       switch (field) {
14018       case PEER_IP:
14019         return isSetPeerIp();
14020       case SRC_IP:
14021         return isSetSrcIp();
14022       }
14023       throw new IllegalStateException();
14024     }
14025
14026     @Override
14027     public boolean equals(Object that) {
14028       if (that == null)
14029         return false;
14030       if (that instanceof setUpdateSource_args)
14031         return this.equals((setUpdateSource_args)that);
14032       return false;
14033     }
14034
14035     public boolean equals(setUpdateSource_args that) {
14036       if (that == null)
14037         return false;
14038
14039       boolean this_present_peerIp = true && this.isSetPeerIp();
14040       boolean that_present_peerIp = true && that.isSetPeerIp();
14041       if (this_present_peerIp || that_present_peerIp) {
14042         if (!(this_present_peerIp && that_present_peerIp))
14043           return false;
14044         if (!this.peerIp.equals(that.peerIp))
14045           return false;
14046       }
14047
14048       boolean this_present_srcIp = true && this.isSetSrcIp();
14049       boolean that_present_srcIp = true && that.isSetSrcIp();
14050       if (this_present_srcIp || that_present_srcIp) {
14051         if (!(this_present_srcIp && that_present_srcIp))
14052           return false;
14053         if (!this.srcIp.equals(that.srcIp))
14054           return false;
14055       }
14056
14057       return true;
14058     }
14059
14060     @Override
14061     public int hashCode() {
14062       return 0;
14063     }
14064
14065     @Override
14066     public int compareTo(setUpdateSource_args other) {
14067       if (!getClass().equals(other.getClass())) {
14068         return getClass().getName().compareTo(other.getClass().getName());
14069       }
14070
14071       int lastComparison = 0;
14072
14073       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
14074       if (lastComparison != 0) {
14075         return lastComparison;
14076       }
14077       if (isSetPeerIp()) {
14078         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
14079         if (lastComparison != 0) {
14080           return lastComparison;
14081         }
14082       }
14083       lastComparison = Boolean.valueOf(isSetSrcIp()).compareTo(other.isSetSrcIp());
14084       if (lastComparison != 0) {
14085         return lastComparison;
14086       }
14087       if (isSetSrcIp()) {
14088         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.srcIp, other.srcIp);
14089         if (lastComparison != 0) {
14090           return lastComparison;
14091         }
14092       }
14093       return 0;
14094     }
14095
14096     public _Fields fieldForId(int fieldId) {
14097       return _Fields.findByThriftId(fieldId);
14098     }
14099
14100     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14101       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14102     }
14103
14104     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14105       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14106     }
14107
14108     @Override
14109     public String toString() {
14110       StringBuilder sb = new StringBuilder("setUpdateSource_args(");
14111       boolean first = true;
14112
14113       sb.append("peerIp:");
14114       if (this.peerIp == null) {
14115         sb.append("null");
14116       } else {
14117         sb.append(this.peerIp);
14118       }
14119       first = false;
14120       if (!first) sb.append(", ");
14121       sb.append("srcIp:");
14122       if (this.srcIp == null) {
14123         sb.append("null");
14124       } else {
14125         sb.append(this.srcIp);
14126       }
14127       first = false;
14128       sb.append(")");
14129       return sb.toString();
14130     }
14131
14132     public void validate() throws org.apache.thrift.TException {
14133       // check for required fields
14134       // check for sub-struct validity
14135     }
14136
14137     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14138       try {
14139         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14140       } catch (org.apache.thrift.TException te) {
14141         throw new java.io.IOException(te);
14142       }
14143     }
14144
14145     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14146       try {
14147         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14148       } catch (org.apache.thrift.TException te) {
14149         throw new java.io.IOException(te);
14150       }
14151     }
14152
14153     private static class setUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
14154       public setUpdateSource_argsStandardScheme getScheme() {
14155         return new setUpdateSource_argsStandardScheme();
14156       }
14157     }
14158
14159     private static class setUpdateSource_argsStandardScheme extends StandardScheme<setUpdateSource_args> {
14160
14161       public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
14162         org.apache.thrift.protocol.TField schemeField;
14163         iprot.readStructBegin();
14164         while (true)
14165         {
14166           schemeField = iprot.readFieldBegin();
14167           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
14168             break;
14169           }
14170           switch (schemeField.id) {
14171             case 1: // PEER_IP
14172               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14173                 struct.peerIp = iprot.readString();
14174                 struct.setPeerIpIsSet(true);
14175               } else { 
14176                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14177               }
14178               break;
14179             case 2: // SRC_IP
14180               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14181                 struct.srcIp = iprot.readString();
14182                 struct.setSrcIpIsSet(true);
14183               } else { 
14184                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14185               }
14186               break;
14187             default:
14188               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14189           }
14190           iprot.readFieldEnd();
14191         }
14192         iprot.readStructEnd();
14193
14194         // check for required fields of primitive type, which can't be checked in the validate method
14195         struct.validate();
14196       }
14197
14198       public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
14199         struct.validate();
14200
14201         oprot.writeStructBegin(STRUCT_DESC);
14202         if (struct.peerIp != null) {
14203           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
14204           oprot.writeString(struct.peerIp);
14205           oprot.writeFieldEnd();
14206         }
14207         if (struct.srcIp != null) {
14208           oprot.writeFieldBegin(SRC_IP_FIELD_DESC);
14209           oprot.writeString(struct.srcIp);
14210           oprot.writeFieldEnd();
14211         }
14212         oprot.writeFieldStop();
14213         oprot.writeStructEnd();
14214       }
14215
14216     }
14217
14218     private static class setUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
14219       public setUpdateSource_argsTupleScheme getScheme() {
14220         return new setUpdateSource_argsTupleScheme();
14221       }
14222     }
14223
14224     private static class setUpdateSource_argsTupleScheme extends TupleScheme<setUpdateSource_args> {
14225
14226       @Override
14227       public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
14228         TTupleProtocol oprot = (TTupleProtocol) prot;
14229         BitSet optionals = new BitSet();
14230         if (struct.isSetPeerIp()) {
14231           optionals.set(0);
14232         }
14233         if (struct.isSetSrcIp()) {
14234           optionals.set(1);
14235         }
14236         oprot.writeBitSet(optionals, 2);
14237         if (struct.isSetPeerIp()) {
14238           oprot.writeString(struct.peerIp);
14239         }
14240         if (struct.isSetSrcIp()) {
14241           oprot.writeString(struct.srcIp);
14242         }
14243       }
14244
14245       @Override
14246       public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
14247         TTupleProtocol iprot = (TTupleProtocol) prot;
14248         BitSet incoming = iprot.readBitSet(2);
14249         if (incoming.get(0)) {
14250           struct.peerIp = iprot.readString();
14251           struct.setPeerIpIsSet(true);
14252         }
14253         if (incoming.get(1)) {
14254           struct.srcIp = iprot.readString();
14255           struct.setSrcIpIsSet(true);
14256         }
14257       }
14258     }
14259
14260   }
14261
14262   public static class setUpdateSource_result implements org.apache.thrift.TBase<setUpdateSource_result, setUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_result>   {
14263     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_result");
14264
14265     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);
14266
14267     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14268     static {
14269       schemes.put(StandardScheme.class, new setUpdateSource_resultStandardSchemeFactory());
14270       schemes.put(TupleScheme.class, new setUpdateSource_resultTupleSchemeFactory());
14271     }
14272
14273     public int success; // required
14274
14275     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14276     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14277       SUCCESS((short)0, "success");
14278
14279       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14280
14281       static {
14282         for (_Fields field : EnumSet.allOf(_Fields.class)) {
14283           byName.put(field.getFieldName(), field);
14284         }
14285       }
14286
14287       /**
14288        * Find the _Fields constant that matches fieldId, or null if its not found.
14289        */
14290       public static _Fields findByThriftId(int fieldId) {
14291         switch(fieldId) {
14292           case 0: // SUCCESS
14293             return SUCCESS;
14294           default:
14295             return null;
14296         }
14297       }
14298
14299       /**
14300        * Find the _Fields constant that matches fieldId, throwing an exception
14301        * if it is not found.
14302        */
14303       public static _Fields findByThriftIdOrThrow(int fieldId) {
14304         _Fields fields = findByThriftId(fieldId);
14305         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14306         return fields;
14307       }
14308
14309       /**
14310        * Find the _Fields constant that matches name, or null if its not found.
14311        */
14312       public static _Fields findByName(String name) {
14313         return byName.get(name);
14314       }
14315
14316       private final short _thriftId;
14317       private final String _fieldName;
14318
14319       _Fields(short thriftId, String fieldName) {
14320         _thriftId = thriftId;
14321         _fieldName = fieldName;
14322       }
14323
14324       public short getThriftFieldId() {
14325         return _thriftId;
14326       }
14327
14328       public String getFieldName() {
14329         return _fieldName;
14330       }
14331     }
14332
14333     // isset id assignments
14334     private static final int __SUCCESS_ISSET_ID = 0;
14335     private byte __isset_bitfield = 0;
14336     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14337     static {
14338       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14339       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14340           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
14341       metaDataMap = Collections.unmodifiableMap(tmpMap);
14342       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_result.class, metaDataMap);
14343     }
14344
14345     public setUpdateSource_result() {
14346     }
14347
14348     public setUpdateSource_result(
14349       int success)
14350     {
14351       this();
14352       this.success = success;
14353       setSuccessIsSet(true);
14354     }
14355
14356     /**
14357      * Performs a deep copy on <i>other</i>.
14358      */
14359     public setUpdateSource_result(setUpdateSource_result other) {
14360       __isset_bitfield = other.__isset_bitfield;
14361       this.success = other.success;
14362     }
14363
14364     public setUpdateSource_result deepCopy() {
14365       return new setUpdateSource_result(this);
14366     }
14367
14368     @Override
14369     public void clear() {
14370       setSuccessIsSet(false);
14371       this.success = 0;
14372     }
14373
14374     public int getSuccess() {
14375       return this.success;
14376     }
14377
14378     public setUpdateSource_result setSuccess(int success) {
14379       this.success = success;
14380       setSuccessIsSet(true);
14381       return this;
14382     }
14383
14384     public void unsetSuccess() {
14385       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14386     }
14387
14388     /** Returns true if field success is set (has been assigned a value) and false otherwise */
14389     public boolean isSetSuccess() {
14390       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14391     }
14392
14393     public void setSuccessIsSet(boolean value) {
14394       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
14395     }
14396
14397     public void setFieldValue(_Fields field, Object value) {
14398       switch (field) {
14399       case SUCCESS:
14400         if (value == null) {
14401           unsetSuccess();
14402         } else {
14403           setSuccess((Integer)value);
14404         }
14405         break;
14406
14407       }
14408     }
14409
14410     public Object getFieldValue(_Fields field) {
14411       switch (field) {
14412       case SUCCESS:
14413         return Integer.valueOf(getSuccess());
14414
14415       }
14416       throw new IllegalStateException();
14417     }
14418
14419     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14420     public boolean isSet(_Fields field) {
14421       if (field == null) {
14422         throw new IllegalArgumentException();
14423       }
14424
14425       switch (field) {
14426       case SUCCESS:
14427         return isSetSuccess();
14428       }
14429       throw new IllegalStateException();
14430     }
14431
14432     @Override
14433     public boolean equals(Object that) {
14434       if (that == null)
14435         return false;
14436       if (that instanceof setUpdateSource_result)
14437         return this.equals((setUpdateSource_result)that);
14438       return false;
14439     }
14440
14441     public boolean equals(setUpdateSource_result that) {
14442       if (that == null)
14443         return false;
14444
14445       boolean this_present_success = true;
14446       boolean that_present_success = true;
14447       if (this_present_success || that_present_success) {
14448         if (!(this_present_success && that_present_success))
14449           return false;
14450         if (this.success != that.success)
14451           return false;
14452       }
14453
14454       return true;
14455     }
14456
14457     @Override
14458     public int hashCode() {
14459       return 0;
14460     }
14461
14462     @Override
14463     public int compareTo(setUpdateSource_result other) {
14464       if (!getClass().equals(other.getClass())) {
14465         return getClass().getName().compareTo(other.getClass().getName());
14466       }
14467
14468       int lastComparison = 0;
14469
14470       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
14471       if (lastComparison != 0) {
14472         return lastComparison;
14473       }
14474       if (isSetSuccess()) {
14475         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
14476         if (lastComparison != 0) {
14477           return lastComparison;
14478         }
14479       }
14480       return 0;
14481     }
14482
14483     public _Fields fieldForId(int fieldId) {
14484       return _Fields.findByThriftId(fieldId);
14485     }
14486
14487     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14488       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14489     }
14490
14491     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14492       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14493       }
14494
14495     @Override
14496     public String toString() {
14497       StringBuilder sb = new StringBuilder("setUpdateSource_result(");
14498       boolean first = true;
14499
14500       sb.append("success:");
14501       sb.append(this.success);
14502       first = false;
14503       sb.append(")");
14504       return sb.toString();
14505     }
14506
14507     public void validate() throws org.apache.thrift.TException {
14508       // check for required fields
14509       // check for sub-struct validity
14510     }
14511
14512     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14513       try {
14514         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14515       } catch (org.apache.thrift.TException te) {
14516         throw new java.io.IOException(te);
14517       }
14518     }
14519
14520     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14521       try {
14522         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14523         __isset_bitfield = 0;
14524         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14525       } catch (org.apache.thrift.TException te) {
14526         throw new java.io.IOException(te);
14527       }
14528     }
14529
14530     private static class setUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
14531       public setUpdateSource_resultStandardScheme getScheme() {
14532         return new setUpdateSource_resultStandardScheme();
14533       }
14534     }
14535
14536     private static class setUpdateSource_resultStandardScheme extends StandardScheme<setUpdateSource_result> {
14537
14538       public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
14539         org.apache.thrift.protocol.TField schemeField;
14540         iprot.readStructBegin();
14541         while (true)
14542         {
14543           schemeField = iprot.readFieldBegin();
14544           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
14545             break;
14546           }
14547           switch (schemeField.id) {
14548             case 0: // SUCCESS
14549               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14550                 struct.success = iprot.readI32();
14551                 struct.setSuccessIsSet(true);
14552               } else { 
14553                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14554               }
14555               break;
14556             default:
14557               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14558           }
14559           iprot.readFieldEnd();
14560         }
14561         iprot.readStructEnd();
14562
14563         // check for required fields of primitive type, which can't be checked in the validate method
14564         struct.validate();
14565       }
14566
14567       public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
14568         struct.validate();
14569
14570         oprot.writeStructBegin(STRUCT_DESC);
14571         if (struct.isSetSuccess()) {
14572           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14573           oprot.writeI32(struct.success);
14574           oprot.writeFieldEnd();
14575         }
14576         oprot.writeFieldStop();
14577         oprot.writeStructEnd();
14578       }
14579
14580     }
14581
14582     private static class setUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
14583       public setUpdateSource_resultTupleScheme getScheme() {
14584         return new setUpdateSource_resultTupleScheme();
14585       }
14586     }
14587
14588     private static class setUpdateSource_resultTupleScheme extends TupleScheme<setUpdateSource_result> {
14589
14590       @Override
14591       public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
14592         TTupleProtocol oprot = (TTupleProtocol) prot;
14593         BitSet optionals = new BitSet();
14594         if (struct.isSetSuccess()) {
14595           optionals.set(0);
14596         }
14597         oprot.writeBitSet(optionals, 1);
14598         if (struct.isSetSuccess()) {
14599           oprot.writeI32(struct.success);
14600         }
14601       }
14602
14603       @Override
14604       public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
14605         TTupleProtocol iprot = (TTupleProtocol) prot;
14606         BitSet incoming = iprot.readBitSet(1);
14607         if (incoming.get(0)) {
14608           struct.success = iprot.readI32();
14609           struct.setSuccessIsSet(true);
14610         }
14611       }
14612     }
14613
14614   }
14615
14616   public static class unsetUpdateSource_args implements org.apache.thrift.TBase<unsetUpdateSource_args, unsetUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_args>   {
14617     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_args");
14618
14619     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);
14620
14621     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14622     static {
14623       schemes.put(StandardScheme.class, new unsetUpdateSource_argsStandardSchemeFactory());
14624       schemes.put(TupleScheme.class, new unsetUpdateSource_argsTupleSchemeFactory());
14625     }
14626
14627     public String peerIp; // required
14628
14629     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14630     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14631       PEER_IP((short)1, "peerIp");
14632
14633       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14634
14635       static {
14636         for (_Fields field : EnumSet.allOf(_Fields.class)) {
14637           byName.put(field.getFieldName(), field);
14638         }
14639       }
14640
14641       /**
14642        * Find the _Fields constant that matches fieldId, or null if its not found.
14643        */
14644       public static _Fields findByThriftId(int fieldId) {
14645         switch(fieldId) {
14646           case 1: // PEER_IP
14647             return PEER_IP;
14648           default:
14649             return null;
14650         }
14651       }
14652
14653       /**
14654        * Find the _Fields constant that matches fieldId, throwing an exception
14655        * if it is not found.
14656        */
14657       public static _Fields findByThriftIdOrThrow(int fieldId) {
14658         _Fields fields = findByThriftId(fieldId);
14659         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14660         return fields;
14661       }
14662
14663       /**
14664        * Find the _Fields constant that matches name, or null if its not found.
14665        */
14666       public static _Fields findByName(String name) {
14667         return byName.get(name);
14668       }
14669
14670       private final short _thriftId;
14671       private final String _fieldName;
14672
14673       _Fields(short thriftId, String fieldName) {
14674         _thriftId = thriftId;
14675         _fieldName = fieldName;
14676       }
14677
14678       public short getThriftFieldId() {
14679         return _thriftId;
14680       }
14681
14682       public String getFieldName() {
14683         return _fieldName;
14684       }
14685     }
14686
14687     // isset id assignments
14688     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14689     static {
14690       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14691       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14692           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14693       metaDataMap = Collections.unmodifiableMap(tmpMap);
14694       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_args.class, metaDataMap);
14695     }
14696
14697     public unsetUpdateSource_args() {
14698     }
14699
14700     public unsetUpdateSource_args(
14701       String peerIp)
14702     {
14703       this();
14704       this.peerIp = peerIp;
14705     }
14706
14707     /**
14708      * Performs a deep copy on <i>other</i>.
14709      */
14710     public unsetUpdateSource_args(unsetUpdateSource_args other) {
14711       if (other.isSetPeerIp()) {
14712         this.peerIp = other.peerIp;
14713       }
14714     }
14715
14716     public unsetUpdateSource_args deepCopy() {
14717       return new unsetUpdateSource_args(this);
14718     }
14719
14720     @Override
14721     public void clear() {
14722       this.peerIp = null;
14723     }
14724
14725     public String getPeerIp() {
14726       return this.peerIp;
14727     }
14728
14729     public unsetUpdateSource_args setPeerIp(String peerIp) {
14730       this.peerIp = peerIp;
14731       return this;
14732     }
14733
14734     public void unsetPeerIp() {
14735       this.peerIp = null;
14736     }
14737
14738     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
14739     public boolean isSetPeerIp() {
14740       return this.peerIp != null;
14741     }
14742
14743     public void setPeerIpIsSet(boolean value) {
14744       if (!value) {
14745         this.peerIp = null;
14746       }
14747     }
14748
14749     public void setFieldValue(_Fields field, Object value) {
14750       switch (field) {
14751       case PEER_IP:
14752         if (value == null) {
14753           unsetPeerIp();
14754         } else {
14755           setPeerIp((String)value);
14756         }
14757         break;
14758
14759       }
14760     }
14761
14762     public Object getFieldValue(_Fields field) {
14763       switch (field) {
14764       case PEER_IP:
14765         return getPeerIp();
14766
14767       }
14768       throw new IllegalStateException();
14769     }
14770
14771     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14772     public boolean isSet(_Fields field) {
14773       if (field == null) {
14774         throw new IllegalArgumentException();
14775       }
14776
14777       switch (field) {
14778       case PEER_IP:
14779         return isSetPeerIp();
14780       }
14781       throw new IllegalStateException();
14782     }
14783
14784     @Override
14785     public boolean equals(Object that) {
14786       if (that == null)
14787         return false;
14788       if (that instanceof unsetUpdateSource_args)
14789         return this.equals((unsetUpdateSource_args)that);
14790       return false;
14791     }
14792
14793     public boolean equals(unsetUpdateSource_args that) {
14794       if (that == null)
14795         return false;
14796
14797       boolean this_present_peerIp = true && this.isSetPeerIp();
14798       boolean that_present_peerIp = true && that.isSetPeerIp();
14799       if (this_present_peerIp || that_present_peerIp) {
14800         if (!(this_present_peerIp && that_present_peerIp))
14801           return false;
14802         if (!this.peerIp.equals(that.peerIp))
14803           return false;
14804       }
14805
14806       return true;
14807     }
14808
14809     @Override
14810     public int hashCode() {
14811       return 0;
14812     }
14813
14814     @Override
14815     public int compareTo(unsetUpdateSource_args other) {
14816       if (!getClass().equals(other.getClass())) {
14817         return getClass().getName().compareTo(other.getClass().getName());
14818       }
14819
14820       int lastComparison = 0;
14821
14822       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
14823       if (lastComparison != 0) {
14824         return lastComparison;
14825       }
14826       if (isSetPeerIp()) {
14827         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
14828         if (lastComparison != 0) {
14829           return lastComparison;
14830         }
14831       }
14832       return 0;
14833     }
14834
14835     public _Fields fieldForId(int fieldId) {
14836       return _Fields.findByThriftId(fieldId);
14837     }
14838
14839     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14840       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14841     }
14842
14843     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14844       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14845     }
14846
14847     @Override
14848     public String toString() {
14849       StringBuilder sb = new StringBuilder("unsetUpdateSource_args(");
14850       boolean first = true;
14851
14852       sb.append("peerIp:");
14853       if (this.peerIp == null) {
14854         sb.append("null");
14855       } else {
14856         sb.append(this.peerIp);
14857       }
14858       first = false;
14859       sb.append(")");
14860       return sb.toString();
14861     }
14862
14863     public void validate() throws org.apache.thrift.TException {
14864       // check for required fields
14865       // check for sub-struct validity
14866     }
14867
14868     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14869       try {
14870         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14871       } catch (org.apache.thrift.TException te) {
14872         throw new java.io.IOException(te);
14873       }
14874     }
14875
14876     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14877       try {
14878         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14879       } catch (org.apache.thrift.TException te) {
14880         throw new java.io.IOException(te);
14881       }
14882     }
14883
14884     private static class unsetUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
14885       public unsetUpdateSource_argsStandardScheme getScheme() {
14886         return new unsetUpdateSource_argsStandardScheme();
14887       }
14888     }
14889
14890     private static class unsetUpdateSource_argsStandardScheme extends StandardScheme<unsetUpdateSource_args> {
14891
14892       public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
14893         org.apache.thrift.protocol.TField schemeField;
14894         iprot.readStructBegin();
14895         while (true)
14896         {
14897           schemeField = iprot.readFieldBegin();
14898           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
14899             break;
14900           }
14901           switch (schemeField.id) {
14902             case 1: // PEER_IP
14903               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14904                 struct.peerIp = iprot.readString();
14905                 struct.setPeerIpIsSet(true);
14906               } else { 
14907                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14908               }
14909               break;
14910             default:
14911               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14912           }
14913           iprot.readFieldEnd();
14914         }
14915         iprot.readStructEnd();
14916
14917         // check for required fields of primitive type, which can't be checked in the validate method
14918         struct.validate();
14919       }
14920
14921       public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
14922         struct.validate();
14923
14924         oprot.writeStructBegin(STRUCT_DESC);
14925         if (struct.peerIp != null) {
14926           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
14927           oprot.writeString(struct.peerIp);
14928           oprot.writeFieldEnd();
14929         }
14930         oprot.writeFieldStop();
14931         oprot.writeStructEnd();
14932       }
14933
14934     }
14935
14936     private static class unsetUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
14937       public unsetUpdateSource_argsTupleScheme getScheme() {
14938         return new unsetUpdateSource_argsTupleScheme();
14939       }
14940     }
14941
14942     private static class unsetUpdateSource_argsTupleScheme extends TupleScheme<unsetUpdateSource_args> {
14943
14944       @Override
14945       public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
14946         TTupleProtocol oprot = (TTupleProtocol) prot;
14947         BitSet optionals = new BitSet();
14948         if (struct.isSetPeerIp()) {
14949           optionals.set(0);
14950         }
14951         oprot.writeBitSet(optionals, 1);
14952         if (struct.isSetPeerIp()) {
14953           oprot.writeString(struct.peerIp);
14954         }
14955       }
14956
14957       @Override
14958       public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
14959         TTupleProtocol iprot = (TTupleProtocol) prot;
14960         BitSet incoming = iprot.readBitSet(1);
14961         if (incoming.get(0)) {
14962           struct.peerIp = iprot.readString();
14963           struct.setPeerIpIsSet(true);
14964         }
14965       }
14966     }
14967
14968   }
14969
14970   public static class unsetUpdateSource_result implements org.apache.thrift.TBase<unsetUpdateSource_result, unsetUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_result>   {
14971     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_result");
14972
14973     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);
14974
14975     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14976     static {
14977       schemes.put(StandardScheme.class, new unsetUpdateSource_resultStandardSchemeFactory());
14978       schemes.put(TupleScheme.class, new unsetUpdateSource_resultTupleSchemeFactory());
14979     }
14980
14981     public int success; // required
14982
14983     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14984     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14985       SUCCESS((short)0, "success");
14986
14987       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14988
14989       static {
14990         for (_Fields field : EnumSet.allOf(_Fields.class)) {
14991           byName.put(field.getFieldName(), field);
14992         }
14993       }
14994
14995       /**
14996        * Find the _Fields constant that matches fieldId, or null if its not found.
14997        */
14998       public static _Fields findByThriftId(int fieldId) {
14999         switch(fieldId) {
15000           case 0: // SUCCESS
15001             return SUCCESS;
15002           default:
15003             return null;
15004         }
15005       }
15006
15007       /**
15008        * Find the _Fields constant that matches fieldId, throwing an exception
15009        * if it is not found.
15010        */
15011       public static _Fields findByThriftIdOrThrow(int fieldId) {
15012         _Fields fields = findByThriftId(fieldId);
15013         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15014         return fields;
15015       }
15016
15017       /**
15018        * Find the _Fields constant that matches name, or null if its not found.
15019        */
15020       public static _Fields findByName(String name) {
15021         return byName.get(name);
15022       }
15023
15024       private final short _thriftId;
15025       private final String _fieldName;
15026
15027       _Fields(short thriftId, String fieldName) {
15028         _thriftId = thriftId;
15029         _fieldName = fieldName;
15030       }
15031
15032       public short getThriftFieldId() {
15033         return _thriftId;
15034       }
15035
15036       public String getFieldName() {
15037         return _fieldName;
15038       }
15039     }
15040
15041     // isset id assignments
15042     private static final int __SUCCESS_ISSET_ID = 0;
15043     private byte __isset_bitfield = 0;
15044     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15045     static {
15046       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15047       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15048           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15049       metaDataMap = Collections.unmodifiableMap(tmpMap);
15050       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_result.class, metaDataMap);
15051     }
15052
15053     public unsetUpdateSource_result() {
15054     }
15055
15056     public unsetUpdateSource_result(
15057       int success)
15058     {
15059       this();
15060       this.success = success;
15061       setSuccessIsSet(true);
15062     }
15063
15064     /**
15065      * Performs a deep copy on <i>other</i>.
15066      */
15067     public unsetUpdateSource_result(unsetUpdateSource_result other) {
15068       __isset_bitfield = other.__isset_bitfield;
15069       this.success = other.success;
15070     }
15071
15072     public unsetUpdateSource_result deepCopy() {
15073       return new unsetUpdateSource_result(this);
15074     }
15075
15076     @Override
15077     public void clear() {
15078       setSuccessIsSet(false);
15079       this.success = 0;
15080     }
15081
15082     public int getSuccess() {
15083       return this.success;
15084     }
15085
15086     public unsetUpdateSource_result setSuccess(int success) {
15087       this.success = success;
15088       setSuccessIsSet(true);
15089       return this;
15090     }
15091
15092     public void unsetSuccess() {
15093       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15094     }
15095
15096     /** Returns true if field success is set (has been assigned a value) and false otherwise */
15097     public boolean isSetSuccess() {
15098       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15099     }
15100
15101     public void setSuccessIsSet(boolean value) {
15102       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
15103     }
15104
15105     public void setFieldValue(_Fields field, Object value) {
15106       switch (field) {
15107       case SUCCESS:
15108         if (value == null) {
15109           unsetSuccess();
15110         } else {
15111           setSuccess((Integer)value);
15112         }
15113         break;
15114
15115       }
15116     }
15117
15118     public Object getFieldValue(_Fields field) {
15119       switch (field) {
15120       case SUCCESS:
15121         return Integer.valueOf(getSuccess());
15122
15123       }
15124       throw new IllegalStateException();
15125     }
15126
15127     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15128     public boolean isSet(_Fields field) {
15129       if (field == null) {
15130         throw new IllegalArgumentException();
15131       }
15132
15133       switch (field) {
15134       case SUCCESS:
15135         return isSetSuccess();
15136       }
15137       throw new IllegalStateException();
15138     }
15139
15140     @Override
15141     public boolean equals(Object that) {
15142       if (that == null)
15143         return false;
15144       if (that instanceof unsetUpdateSource_result)
15145         return this.equals((unsetUpdateSource_result)that);
15146       return false;
15147     }
15148
15149     public boolean equals(unsetUpdateSource_result that) {
15150       if (that == null)
15151         return false;
15152
15153       boolean this_present_success = true;
15154       boolean that_present_success = true;
15155       if (this_present_success || that_present_success) {
15156         if (!(this_present_success && that_present_success))
15157           return false;
15158         if (this.success != that.success)
15159           return false;
15160       }
15161
15162       return true;
15163     }
15164
15165     @Override
15166     public int hashCode() {
15167       return 0;
15168     }
15169
15170     @Override
15171     public int compareTo(unsetUpdateSource_result other) {
15172       if (!getClass().equals(other.getClass())) {
15173         return getClass().getName().compareTo(other.getClass().getName());
15174       }
15175
15176       int lastComparison = 0;
15177
15178       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15179       if (lastComparison != 0) {
15180         return lastComparison;
15181       }
15182       if (isSetSuccess()) {
15183         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15184         if (lastComparison != 0) {
15185           return lastComparison;
15186         }
15187       }
15188       return 0;
15189     }
15190
15191     public _Fields fieldForId(int fieldId) {
15192       return _Fields.findByThriftId(fieldId);
15193     }
15194
15195     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15196       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15197     }
15198
15199     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15200       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15201       }
15202
15203     @Override
15204     public String toString() {
15205       StringBuilder sb = new StringBuilder("unsetUpdateSource_result(");
15206       boolean first = true;
15207
15208       sb.append("success:");
15209       sb.append(this.success);
15210       first = false;
15211       sb.append(")");
15212       return sb.toString();
15213     }
15214
15215     public void validate() throws org.apache.thrift.TException {
15216       // check for required fields
15217       // check for sub-struct validity
15218     }
15219
15220     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15221       try {
15222         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15223       } catch (org.apache.thrift.TException te) {
15224         throw new java.io.IOException(te);
15225       }
15226     }
15227
15228     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15229       try {
15230         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15231         __isset_bitfield = 0;
15232         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15233       } catch (org.apache.thrift.TException te) {
15234         throw new java.io.IOException(te);
15235       }
15236     }
15237
15238     private static class unsetUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
15239       public unsetUpdateSource_resultStandardScheme getScheme() {
15240         return new unsetUpdateSource_resultStandardScheme();
15241       }
15242     }
15243
15244     private static class unsetUpdateSource_resultStandardScheme extends StandardScheme<unsetUpdateSource_result> {
15245
15246       public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
15247         org.apache.thrift.protocol.TField schemeField;
15248         iprot.readStructBegin();
15249         while (true)
15250         {
15251           schemeField = iprot.readFieldBegin();
15252           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
15253             break;
15254           }
15255           switch (schemeField.id) {
15256             case 0: // SUCCESS
15257               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15258                 struct.success = iprot.readI32();
15259                 struct.setSuccessIsSet(true);
15260               } else { 
15261                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15262               }
15263               break;
15264             default:
15265               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15266           }
15267           iprot.readFieldEnd();
15268         }
15269         iprot.readStructEnd();
15270
15271         // check for required fields of primitive type, which can't be checked in the validate method
15272         struct.validate();
15273       }
15274
15275       public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
15276         struct.validate();
15277
15278         oprot.writeStructBegin(STRUCT_DESC);
15279         if (struct.isSetSuccess()) {
15280           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15281           oprot.writeI32(struct.success);
15282           oprot.writeFieldEnd();
15283         }
15284         oprot.writeFieldStop();
15285         oprot.writeStructEnd();
15286       }
15287
15288     }
15289
15290     private static class unsetUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
15291       public unsetUpdateSource_resultTupleScheme getScheme() {
15292         return new unsetUpdateSource_resultTupleScheme();
15293       }
15294     }
15295
15296     private static class unsetUpdateSource_resultTupleScheme extends TupleScheme<unsetUpdateSource_result> {
15297
15298       @Override
15299       public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
15300         TTupleProtocol oprot = (TTupleProtocol) prot;
15301         BitSet optionals = new BitSet();
15302         if (struct.isSetSuccess()) {
15303           optionals.set(0);
15304         }
15305         oprot.writeBitSet(optionals, 1);
15306         if (struct.isSetSuccess()) {
15307           oprot.writeI32(struct.success);
15308         }
15309       }
15310
15311       @Override
15312       public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
15313         TTupleProtocol iprot = (TTupleProtocol) prot;
15314         BitSet incoming = iprot.readBitSet(1);
15315         if (incoming.get(0)) {
15316           struct.success = iprot.readI32();
15317           struct.setSuccessIsSet(true);
15318         }
15319       }
15320     }
15321
15322   }
15323
15324   public static class enableAddressFamily_args implements org.apache.thrift.TBase<enableAddressFamily_args, enableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_args>   {
15325     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_args");
15326
15327     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);
15328     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);
15329     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);
15330
15331     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15332     static {
15333       schemes.put(StandardScheme.class, new enableAddressFamily_argsStandardSchemeFactory());
15334       schemes.put(TupleScheme.class, new enableAddressFamily_argsTupleSchemeFactory());
15335     }
15336
15337     public String peerIp; // required
15338     /**
15339      * 
15340      * @see af_afi
15341      */
15342     public af_afi afi; // required
15343     /**
15344      * 
15345      * @see af_safi
15346      */
15347     public af_safi safi; // required
15348
15349     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15350     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15351       PEER_IP((short)1, "peerIp"),
15352       /**
15353        * 
15354        * @see af_afi
15355        */
15356       AFI((short)2, "afi"),
15357       /**
15358        * 
15359        * @see af_safi
15360        */
15361       SAFI((short)3, "safi");
15362
15363       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15364
15365       static {
15366         for (_Fields field : EnumSet.allOf(_Fields.class)) {
15367           byName.put(field.getFieldName(), field);
15368         }
15369       }
15370
15371       /**
15372        * Find the _Fields constant that matches fieldId, or null if its not found.
15373        */
15374       public static _Fields findByThriftId(int fieldId) {
15375         switch(fieldId) {
15376           case 1: // PEER_IP
15377             return PEER_IP;
15378           case 2: // AFI
15379             return AFI;
15380           case 3: // SAFI
15381             return SAFI;
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     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15423     static {
15424       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15425       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15426           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15427       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15428           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
15429       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15430           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
15431       metaDataMap = Collections.unmodifiableMap(tmpMap);
15432       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_args.class, metaDataMap);
15433     }
15434
15435     public enableAddressFamily_args() {
15436     }
15437
15438     public enableAddressFamily_args(
15439       String peerIp,
15440       af_afi afi,
15441       af_safi safi)
15442     {
15443       this();
15444       this.peerIp = peerIp;
15445       this.afi = afi;
15446       this.safi = safi;
15447     }
15448
15449     /**
15450      * Performs a deep copy on <i>other</i>.
15451      */
15452     public enableAddressFamily_args(enableAddressFamily_args other) {
15453       if (other.isSetPeerIp()) {
15454         this.peerIp = other.peerIp;
15455       }
15456       if (other.isSetAfi()) {
15457         this.afi = other.afi;
15458       }
15459       if (other.isSetSafi()) {
15460         this.safi = other.safi;
15461       }
15462     }
15463
15464     public enableAddressFamily_args deepCopy() {
15465       return new enableAddressFamily_args(this);
15466     }
15467
15468     @Override
15469     public void clear() {
15470       this.peerIp = null;
15471       this.afi = null;
15472       this.safi = null;
15473     }
15474
15475     public String getPeerIp() {
15476       return this.peerIp;
15477     }
15478
15479     public enableAddressFamily_args setPeerIp(String peerIp) {
15480       this.peerIp = peerIp;
15481       return this;
15482     }
15483
15484     public void unsetPeerIp() {
15485       this.peerIp = null;
15486     }
15487
15488     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
15489     public boolean isSetPeerIp() {
15490       return this.peerIp != null;
15491     }
15492
15493     public void setPeerIpIsSet(boolean value) {
15494       if (!value) {
15495         this.peerIp = null;
15496       }
15497     }
15498
15499     /**
15500      * 
15501      * @see af_afi
15502      */
15503     public af_afi getAfi() {
15504       return this.afi;
15505     }
15506
15507     /**
15508      * 
15509      * @see af_afi
15510      */
15511     public enableAddressFamily_args setAfi(af_afi afi) {
15512       this.afi = afi;
15513       return this;
15514     }
15515
15516     public void unsetAfi() {
15517       this.afi = null;
15518     }
15519
15520     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
15521     public boolean isSetAfi() {
15522       return this.afi != null;
15523     }
15524
15525     public void setAfiIsSet(boolean value) {
15526       if (!value) {
15527         this.afi = null;
15528       }
15529     }
15530
15531     /**
15532      * 
15533      * @see af_safi
15534      */
15535     public af_safi getSafi() {
15536       return this.safi;
15537     }
15538
15539     /**
15540      * 
15541      * @see af_safi
15542      */
15543     public enableAddressFamily_args setSafi(af_safi safi) {
15544       this.safi = safi;
15545       return this;
15546     }
15547
15548     public void unsetSafi() {
15549       this.safi = null;
15550     }
15551
15552     /** Returns true if field safi is set (has been assigned a value) and false otherwise */
15553     public boolean isSetSafi() {
15554       return this.safi != null;
15555     }
15556
15557     public void setSafiIsSet(boolean value) {
15558       if (!value) {
15559         this.safi = null;
15560       }
15561     }
15562
15563     public void setFieldValue(_Fields field, Object value) {
15564       switch (field) {
15565       case PEER_IP:
15566         if (value == null) {
15567           unsetPeerIp();
15568         } else {
15569           setPeerIp((String)value);
15570         }
15571         break;
15572
15573       case AFI:
15574         if (value == null) {
15575           unsetAfi();
15576         } else {
15577           setAfi((af_afi)value);
15578         }
15579         break;
15580
15581       case SAFI:
15582         if (value == null) {
15583           unsetSafi();
15584         } else {
15585           setSafi((af_safi)value);
15586         }
15587         break;
15588
15589       }
15590     }
15591
15592     public Object getFieldValue(_Fields field) {
15593       switch (field) {
15594       case PEER_IP:
15595         return getPeerIp();
15596
15597       case AFI:
15598         return getAfi();
15599
15600       case SAFI:
15601         return getSafi();
15602
15603       }
15604       throw new IllegalStateException();
15605     }
15606
15607     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15608     public boolean isSet(_Fields field) {
15609       if (field == null) {
15610         throw new IllegalArgumentException();
15611       }
15612
15613       switch (field) {
15614       case PEER_IP:
15615         return isSetPeerIp();
15616       case AFI:
15617         return isSetAfi();
15618       case SAFI:
15619         return isSetSafi();
15620       }
15621       throw new IllegalStateException();
15622     }
15623
15624     @Override
15625     public boolean equals(Object that) {
15626       if (that == null)
15627         return false;
15628       if (that instanceof enableAddressFamily_args)
15629         return this.equals((enableAddressFamily_args)that);
15630       return false;
15631     }
15632
15633     public boolean equals(enableAddressFamily_args that) {
15634       if (that == null)
15635         return false;
15636
15637       boolean this_present_peerIp = true && this.isSetPeerIp();
15638       boolean that_present_peerIp = true && that.isSetPeerIp();
15639       if (this_present_peerIp || that_present_peerIp) {
15640         if (!(this_present_peerIp && that_present_peerIp))
15641           return false;
15642         if (!this.peerIp.equals(that.peerIp))
15643           return false;
15644       }
15645
15646       boolean this_present_afi = true && this.isSetAfi();
15647       boolean that_present_afi = true && that.isSetAfi();
15648       if (this_present_afi || that_present_afi) {
15649         if (!(this_present_afi && that_present_afi))
15650           return false;
15651         if (!this.afi.equals(that.afi))
15652           return false;
15653       }
15654
15655       boolean this_present_safi = true && this.isSetSafi();
15656       boolean that_present_safi = true && that.isSetSafi();
15657       if (this_present_safi || that_present_safi) {
15658         if (!(this_present_safi && that_present_safi))
15659           return false;
15660         if (!this.safi.equals(that.safi))
15661           return false;
15662       }
15663
15664       return true;
15665     }
15666
15667     @Override
15668     public int hashCode() {
15669       return 0;
15670     }
15671
15672     @Override
15673     public int compareTo(enableAddressFamily_args other) {
15674       if (!getClass().equals(other.getClass())) {
15675         return getClass().getName().compareTo(other.getClass().getName());
15676       }
15677
15678       int lastComparison = 0;
15679
15680       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
15681       if (lastComparison != 0) {
15682         return lastComparison;
15683       }
15684       if (isSetPeerIp()) {
15685         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
15686         if (lastComparison != 0) {
15687           return lastComparison;
15688         }
15689       }
15690       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
15691       if (lastComparison != 0) {
15692         return lastComparison;
15693       }
15694       if (isSetAfi()) {
15695         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
15696         if (lastComparison != 0) {
15697           return lastComparison;
15698         }
15699       }
15700       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
15701       if (lastComparison != 0) {
15702         return lastComparison;
15703       }
15704       if (isSetSafi()) {
15705         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
15706         if (lastComparison != 0) {
15707           return lastComparison;
15708         }
15709       }
15710       return 0;
15711     }
15712
15713     public _Fields fieldForId(int fieldId) {
15714       return _Fields.findByThriftId(fieldId);
15715     }
15716
15717     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15718       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15719     }
15720
15721     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15722       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15723     }
15724
15725     @Override
15726     public String toString() {
15727       StringBuilder sb = new StringBuilder("enableAddressFamily_args(");
15728       boolean first = true;
15729
15730       sb.append("peerIp:");
15731       if (this.peerIp == null) {
15732         sb.append("null");
15733       } else {
15734         sb.append(this.peerIp);
15735       }
15736       first = false;
15737       if (!first) sb.append(", ");
15738       sb.append("afi:");
15739       if (this.afi == null) {
15740         sb.append("null");
15741       } else {
15742         sb.append(this.afi);
15743       }
15744       first = false;
15745       if (!first) sb.append(", ");
15746       sb.append("safi:");
15747       if (this.safi == null) {
15748         sb.append("null");
15749       } else {
15750         sb.append(this.safi);
15751       }
15752       first = false;
15753       sb.append(")");
15754       return sb.toString();
15755     }
15756
15757     public void validate() throws org.apache.thrift.TException {
15758       // check for required fields
15759       // check for sub-struct validity
15760     }
15761
15762     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15763       try {
15764         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15765       } catch (org.apache.thrift.TException te) {
15766         throw new java.io.IOException(te);
15767       }
15768     }
15769
15770     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15771       try {
15772         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15773       } catch (org.apache.thrift.TException te) {
15774         throw new java.io.IOException(te);
15775       }
15776     }
15777
15778     private static class enableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
15779       public enableAddressFamily_argsStandardScheme getScheme() {
15780         return new enableAddressFamily_argsStandardScheme();
15781       }
15782     }
15783
15784     private static class enableAddressFamily_argsStandardScheme extends StandardScheme<enableAddressFamily_args> {
15785
15786       public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
15787         org.apache.thrift.protocol.TField schemeField;
15788         iprot.readStructBegin();
15789         while (true)
15790         {
15791           schemeField = iprot.readFieldBegin();
15792           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
15793             break;
15794           }
15795           switch (schemeField.id) {
15796             case 1: // PEER_IP
15797               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15798                 struct.peerIp = iprot.readString();
15799                 struct.setPeerIpIsSet(true);
15800               } else { 
15801                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15802               }
15803               break;
15804             case 2: // AFI
15805               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15806                 struct.afi = af_afi.findByValue(iprot.readI32());
15807                 struct.setAfiIsSet(true);
15808               } else { 
15809                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15810               }
15811               break;
15812             case 3: // SAFI
15813               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15814                 struct.safi = af_safi.findByValue(iprot.readI32());
15815                 struct.setSafiIsSet(true);
15816               } else { 
15817                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15818               }
15819               break;
15820             default:
15821               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15822           }
15823           iprot.readFieldEnd();
15824         }
15825         iprot.readStructEnd();
15826
15827         // check for required fields of primitive type, which can't be checked in the validate method
15828         struct.validate();
15829       }
15830
15831       public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
15832         struct.validate();
15833
15834         oprot.writeStructBegin(STRUCT_DESC);
15835         if (struct.peerIp != null) {
15836           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
15837           oprot.writeString(struct.peerIp);
15838           oprot.writeFieldEnd();
15839         }
15840         if (struct.afi != null) {
15841           oprot.writeFieldBegin(AFI_FIELD_DESC);
15842           oprot.writeI32(struct.afi.getValue());
15843           oprot.writeFieldEnd();
15844         }
15845         if (struct.safi != null) {
15846           oprot.writeFieldBegin(SAFI_FIELD_DESC);
15847           oprot.writeI32(struct.safi.getValue());
15848           oprot.writeFieldEnd();
15849         }
15850         oprot.writeFieldStop();
15851         oprot.writeStructEnd();
15852       }
15853
15854     }
15855
15856     private static class enableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
15857       public enableAddressFamily_argsTupleScheme getScheme() {
15858         return new enableAddressFamily_argsTupleScheme();
15859       }
15860     }
15861
15862     private static class enableAddressFamily_argsTupleScheme extends TupleScheme<enableAddressFamily_args> {
15863
15864       @Override
15865       public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
15866         TTupleProtocol oprot = (TTupleProtocol) prot;
15867         BitSet optionals = new BitSet();
15868         if (struct.isSetPeerIp()) {
15869           optionals.set(0);
15870         }
15871         if (struct.isSetAfi()) {
15872           optionals.set(1);
15873         }
15874         if (struct.isSetSafi()) {
15875           optionals.set(2);
15876         }
15877         oprot.writeBitSet(optionals, 3);
15878         if (struct.isSetPeerIp()) {
15879           oprot.writeString(struct.peerIp);
15880         }
15881         if (struct.isSetAfi()) {
15882           oprot.writeI32(struct.afi.getValue());
15883         }
15884         if (struct.isSetSafi()) {
15885           oprot.writeI32(struct.safi.getValue());
15886         }
15887       }
15888
15889       @Override
15890       public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
15891         TTupleProtocol iprot = (TTupleProtocol) prot;
15892         BitSet incoming = iprot.readBitSet(3);
15893         if (incoming.get(0)) {
15894           struct.peerIp = iprot.readString();
15895           struct.setPeerIpIsSet(true);
15896         }
15897         if (incoming.get(1)) {
15898           struct.afi = af_afi.findByValue(iprot.readI32());
15899           struct.setAfiIsSet(true);
15900         }
15901         if (incoming.get(2)) {
15902           struct.safi = af_safi.findByValue(iprot.readI32());
15903           struct.setSafiIsSet(true);
15904         }
15905       }
15906     }
15907
15908   }
15909
15910   public static class enableAddressFamily_result implements org.apache.thrift.TBase<enableAddressFamily_result, enableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_result>   {
15911     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_result");
15912
15913     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);
15914
15915     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15916     static {
15917       schemes.put(StandardScheme.class, new enableAddressFamily_resultStandardSchemeFactory());
15918       schemes.put(TupleScheme.class, new enableAddressFamily_resultTupleSchemeFactory());
15919     }
15920
15921     public int success; // required
15922
15923     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15924     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15925       SUCCESS((short)0, "success");
15926
15927       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15928
15929       static {
15930         for (_Fields field : EnumSet.allOf(_Fields.class)) {
15931           byName.put(field.getFieldName(), field);
15932         }
15933       }
15934
15935       /**
15936        * Find the _Fields constant that matches fieldId, or null if its not found.
15937        */
15938       public static _Fields findByThriftId(int fieldId) {
15939         switch(fieldId) {
15940           case 0: // SUCCESS
15941             return SUCCESS;
15942           default:
15943             return null;
15944         }
15945       }
15946
15947       /**
15948        * Find the _Fields constant that matches fieldId, throwing an exception
15949        * if it is not found.
15950        */
15951       public static _Fields findByThriftIdOrThrow(int fieldId) {
15952         _Fields fields = findByThriftId(fieldId);
15953         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15954         return fields;
15955       }
15956
15957       /**
15958        * Find the _Fields constant that matches name, or null if its not found.
15959        */
15960       public static _Fields findByName(String name) {
15961         return byName.get(name);
15962       }
15963
15964       private final short _thriftId;
15965       private final String _fieldName;
15966
15967       _Fields(short thriftId, String fieldName) {
15968         _thriftId = thriftId;
15969         _fieldName = fieldName;
15970       }
15971
15972       public short getThriftFieldId() {
15973         return _thriftId;
15974       }
15975
15976       public String getFieldName() {
15977         return _fieldName;
15978       }
15979     }
15980
15981     // isset id assignments
15982     private static final int __SUCCESS_ISSET_ID = 0;
15983     private byte __isset_bitfield = 0;
15984     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15985     static {
15986       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15987       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15988           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15989       metaDataMap = Collections.unmodifiableMap(tmpMap);
15990       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_result.class, metaDataMap);
15991     }
15992
15993     public enableAddressFamily_result() {
15994     }
15995
15996     public enableAddressFamily_result(
15997       int success)
15998     {
15999       this();
16000       this.success = success;
16001       setSuccessIsSet(true);
16002     }
16003
16004     /**
16005      * Performs a deep copy on <i>other</i>.
16006      */
16007     public enableAddressFamily_result(enableAddressFamily_result other) {
16008       __isset_bitfield = other.__isset_bitfield;
16009       this.success = other.success;
16010     }
16011
16012     public enableAddressFamily_result deepCopy() {
16013       return new enableAddressFamily_result(this);
16014     }
16015
16016     @Override
16017     public void clear() {
16018       setSuccessIsSet(false);
16019       this.success = 0;
16020     }
16021
16022     public int getSuccess() {
16023       return this.success;
16024     }
16025
16026     public enableAddressFamily_result setSuccess(int success) {
16027       this.success = success;
16028       setSuccessIsSet(true);
16029       return this;
16030     }
16031
16032     public void unsetSuccess() {
16033       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16034     }
16035
16036     /** Returns true if field success is set (has been assigned a value) and false otherwise */
16037     public boolean isSetSuccess() {
16038       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16039     }
16040
16041     public void setSuccessIsSet(boolean value) {
16042       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
16043     }
16044
16045     public void setFieldValue(_Fields field, Object value) {
16046       switch (field) {
16047       case SUCCESS:
16048         if (value == null) {
16049           unsetSuccess();
16050         } else {
16051           setSuccess((Integer)value);
16052         }
16053         break;
16054
16055       }
16056     }
16057
16058     public Object getFieldValue(_Fields field) {
16059       switch (field) {
16060       case SUCCESS:
16061         return Integer.valueOf(getSuccess());
16062
16063       }
16064       throw new IllegalStateException();
16065     }
16066
16067     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16068     public boolean isSet(_Fields field) {
16069       if (field == null) {
16070         throw new IllegalArgumentException();
16071       }
16072
16073       switch (field) {
16074       case SUCCESS:
16075         return isSetSuccess();
16076       }
16077       throw new IllegalStateException();
16078     }
16079
16080     @Override
16081     public boolean equals(Object that) {
16082       if (that == null)
16083         return false;
16084       if (that instanceof enableAddressFamily_result)
16085         return this.equals((enableAddressFamily_result)that);
16086       return false;
16087     }
16088
16089     public boolean equals(enableAddressFamily_result that) {
16090       if (that == null)
16091         return false;
16092
16093       boolean this_present_success = true;
16094       boolean that_present_success = true;
16095       if (this_present_success || that_present_success) {
16096         if (!(this_present_success && that_present_success))
16097           return false;
16098         if (this.success != that.success)
16099           return false;
16100       }
16101
16102       return true;
16103     }
16104
16105     @Override
16106     public int hashCode() {
16107       return 0;
16108     }
16109
16110     @Override
16111     public int compareTo(enableAddressFamily_result other) {
16112       if (!getClass().equals(other.getClass())) {
16113         return getClass().getName().compareTo(other.getClass().getName());
16114       }
16115
16116       int lastComparison = 0;
16117
16118       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
16119       if (lastComparison != 0) {
16120         return lastComparison;
16121       }
16122       if (isSetSuccess()) {
16123         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
16124         if (lastComparison != 0) {
16125           return lastComparison;
16126         }
16127       }
16128       return 0;
16129     }
16130
16131     public _Fields fieldForId(int fieldId) {
16132       return _Fields.findByThriftId(fieldId);
16133     }
16134
16135     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16136       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16137     }
16138
16139     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16140       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16141       }
16142
16143     @Override
16144     public String toString() {
16145       StringBuilder sb = new StringBuilder("enableAddressFamily_result(");
16146       boolean first = true;
16147
16148       sb.append("success:");
16149       sb.append(this.success);
16150       first = false;
16151       sb.append(")");
16152       return sb.toString();
16153     }
16154
16155     public void validate() throws org.apache.thrift.TException {
16156       // check for required fields
16157       // check for sub-struct validity
16158     }
16159
16160     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16161       try {
16162         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16163       } catch (org.apache.thrift.TException te) {
16164         throw new java.io.IOException(te);
16165       }
16166     }
16167
16168     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16169       try {
16170         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16171         __isset_bitfield = 0;
16172         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16173       } catch (org.apache.thrift.TException te) {
16174         throw new java.io.IOException(te);
16175       }
16176     }
16177
16178     private static class enableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
16179       public enableAddressFamily_resultStandardScheme getScheme() {
16180         return new enableAddressFamily_resultStandardScheme();
16181       }
16182     }
16183
16184     private static class enableAddressFamily_resultStandardScheme extends StandardScheme<enableAddressFamily_result> {
16185
16186       public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
16187         org.apache.thrift.protocol.TField schemeField;
16188         iprot.readStructBegin();
16189         while (true)
16190         {
16191           schemeField = iprot.readFieldBegin();
16192           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
16193             break;
16194           }
16195           switch (schemeField.id) {
16196             case 0: // SUCCESS
16197               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16198                 struct.success = iprot.readI32();
16199                 struct.setSuccessIsSet(true);
16200               } else { 
16201                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16202               }
16203               break;
16204             default:
16205               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16206           }
16207           iprot.readFieldEnd();
16208         }
16209         iprot.readStructEnd();
16210
16211         // check for required fields of primitive type, which can't be checked in the validate method
16212         struct.validate();
16213       }
16214
16215       public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
16216         struct.validate();
16217
16218         oprot.writeStructBegin(STRUCT_DESC);
16219         if (struct.isSetSuccess()) {
16220           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16221           oprot.writeI32(struct.success);
16222           oprot.writeFieldEnd();
16223         }
16224         oprot.writeFieldStop();
16225         oprot.writeStructEnd();
16226       }
16227
16228     }
16229
16230     private static class enableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
16231       public enableAddressFamily_resultTupleScheme getScheme() {
16232         return new enableAddressFamily_resultTupleScheme();
16233       }
16234     }
16235
16236     private static class enableAddressFamily_resultTupleScheme extends TupleScheme<enableAddressFamily_result> {
16237
16238       @Override
16239       public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
16240         TTupleProtocol oprot = (TTupleProtocol) prot;
16241         BitSet optionals = new BitSet();
16242         if (struct.isSetSuccess()) {
16243           optionals.set(0);
16244         }
16245         oprot.writeBitSet(optionals, 1);
16246         if (struct.isSetSuccess()) {
16247           oprot.writeI32(struct.success);
16248         }
16249       }
16250
16251       @Override
16252       public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
16253         TTupleProtocol iprot = (TTupleProtocol) prot;
16254         BitSet incoming = iprot.readBitSet(1);
16255         if (incoming.get(0)) {
16256           struct.success = iprot.readI32();
16257           struct.setSuccessIsSet(true);
16258         }
16259       }
16260     }
16261
16262   }
16263
16264   public static class disableAddressFamily_args implements org.apache.thrift.TBase<disableAddressFamily_args, disableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_args>   {
16265     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_args");
16266
16267     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);
16268     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);
16269     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);
16270
16271     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16272     static {
16273       schemes.put(StandardScheme.class, new disableAddressFamily_argsStandardSchemeFactory());
16274       schemes.put(TupleScheme.class, new disableAddressFamily_argsTupleSchemeFactory());
16275     }
16276
16277     public String peerIp; // required
16278     /**
16279      * 
16280      * @see af_afi
16281      */
16282     public af_afi afi; // required
16283     /**
16284      * 
16285      * @see af_safi
16286      */
16287     public af_safi safi; // required
16288
16289     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16290     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16291       PEER_IP((short)1, "peerIp"),
16292       /**
16293        * 
16294        * @see af_afi
16295        */
16296       AFI((short)2, "afi"),
16297       /**
16298        * 
16299        * @see af_safi
16300        */
16301       SAFI((short)3, "safi");
16302
16303       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16304
16305       static {
16306         for (_Fields field : EnumSet.allOf(_Fields.class)) {
16307           byName.put(field.getFieldName(), field);
16308         }
16309       }
16310
16311       /**
16312        * Find the _Fields constant that matches fieldId, or null if its not found.
16313        */
16314       public static _Fields findByThriftId(int fieldId) {
16315         switch(fieldId) {
16316           case 1: // PEER_IP
16317             return PEER_IP;
16318           case 2: // AFI
16319             return AFI;
16320           case 3: // SAFI
16321             return SAFI;
16322           default:
16323             return null;
16324         }
16325       }
16326
16327       /**
16328        * Find the _Fields constant that matches fieldId, throwing an exception
16329        * if it is not found.
16330        */
16331       public static _Fields findByThriftIdOrThrow(int fieldId) {
16332         _Fields fields = findByThriftId(fieldId);
16333         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16334         return fields;
16335       }
16336
16337       /**
16338        * Find the _Fields constant that matches name, or null if its not found.
16339        */
16340       public static _Fields findByName(String name) {
16341         return byName.get(name);
16342       }
16343
16344       private final short _thriftId;
16345       private final String _fieldName;
16346
16347       _Fields(short thriftId, String fieldName) {
16348         _thriftId = thriftId;
16349         _fieldName = fieldName;
16350       }
16351
16352       public short getThriftFieldId() {
16353         return _thriftId;
16354       }
16355
16356       public String getFieldName() {
16357         return _fieldName;
16358       }
16359     }
16360
16361     // isset id assignments
16362     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16363     static {
16364       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16365       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16366           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16367       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16368           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
16369       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16370           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
16371       metaDataMap = Collections.unmodifiableMap(tmpMap);
16372       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_args.class, metaDataMap);
16373     }
16374
16375     public disableAddressFamily_args() {
16376     }
16377
16378     public disableAddressFamily_args(
16379       String peerIp,
16380       af_afi afi,
16381       af_safi safi)
16382     {
16383       this();
16384       this.peerIp = peerIp;
16385       this.afi = afi;
16386       this.safi = safi;
16387     }
16388
16389     /**
16390      * Performs a deep copy on <i>other</i>.
16391      */
16392     public disableAddressFamily_args(disableAddressFamily_args other) {
16393       if (other.isSetPeerIp()) {
16394         this.peerIp = other.peerIp;
16395       }
16396       if (other.isSetAfi()) {
16397         this.afi = other.afi;
16398       }
16399       if (other.isSetSafi()) {
16400         this.safi = other.safi;
16401       }
16402     }
16403
16404     public disableAddressFamily_args deepCopy() {
16405       return new disableAddressFamily_args(this);
16406     }
16407
16408     @Override
16409     public void clear() {
16410       this.peerIp = null;
16411       this.afi = null;
16412       this.safi = null;
16413     }
16414
16415     public String getPeerIp() {
16416       return this.peerIp;
16417     }
16418
16419     public disableAddressFamily_args setPeerIp(String peerIp) {
16420       this.peerIp = peerIp;
16421       return this;
16422     }
16423
16424     public void unsetPeerIp() {
16425       this.peerIp = null;
16426     }
16427
16428     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
16429     public boolean isSetPeerIp() {
16430       return this.peerIp != null;
16431     }
16432
16433     public void setPeerIpIsSet(boolean value) {
16434       if (!value) {
16435         this.peerIp = null;
16436       }
16437     }
16438
16439     /**
16440      * 
16441      * @see af_afi
16442      */
16443     public af_afi getAfi() {
16444       return this.afi;
16445     }
16446
16447     /**
16448      * 
16449      * @see af_afi
16450      */
16451     public disableAddressFamily_args setAfi(af_afi afi) {
16452       this.afi = afi;
16453       return this;
16454     }
16455
16456     public void unsetAfi() {
16457       this.afi = null;
16458     }
16459
16460     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
16461     public boolean isSetAfi() {
16462       return this.afi != null;
16463     }
16464
16465     public void setAfiIsSet(boolean value) {
16466       if (!value) {
16467         this.afi = null;
16468       }
16469     }
16470
16471     /**
16472      * 
16473      * @see af_safi
16474      */
16475     public af_safi getSafi() {
16476       return this.safi;
16477     }
16478
16479     /**
16480      * 
16481      * @see af_safi
16482      */
16483     public disableAddressFamily_args setSafi(af_safi safi) {
16484       this.safi = safi;
16485       return this;
16486     }
16487
16488     public void unsetSafi() {
16489       this.safi = null;
16490     }
16491
16492     /** Returns true if field safi is set (has been assigned a value) and false otherwise */
16493     public boolean isSetSafi() {
16494       return this.safi != null;
16495     }
16496
16497     public void setSafiIsSet(boolean value) {
16498       if (!value) {
16499         this.safi = null;
16500       }
16501     }
16502
16503     public void setFieldValue(_Fields field, Object value) {
16504       switch (field) {
16505       case PEER_IP:
16506         if (value == null) {
16507           unsetPeerIp();
16508         } else {
16509           setPeerIp((String)value);
16510         }
16511         break;
16512
16513       case AFI:
16514         if (value == null) {
16515           unsetAfi();
16516         } else {
16517           setAfi((af_afi)value);
16518         }
16519         break;
16520
16521       case SAFI:
16522         if (value == null) {
16523           unsetSafi();
16524         } else {
16525           setSafi((af_safi)value);
16526         }
16527         break;
16528
16529       }
16530     }
16531
16532     public Object getFieldValue(_Fields field) {
16533       switch (field) {
16534       case PEER_IP:
16535         return getPeerIp();
16536
16537       case AFI:
16538         return getAfi();
16539
16540       case SAFI:
16541         return getSafi();
16542
16543       }
16544       throw new IllegalStateException();
16545     }
16546
16547     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16548     public boolean isSet(_Fields field) {
16549       if (field == null) {
16550         throw new IllegalArgumentException();
16551       }
16552
16553       switch (field) {
16554       case PEER_IP:
16555         return isSetPeerIp();
16556       case AFI:
16557         return isSetAfi();
16558       case SAFI:
16559         return isSetSafi();
16560       }
16561       throw new IllegalStateException();
16562     }
16563
16564     @Override
16565     public boolean equals(Object that) {
16566       if (that == null)
16567         return false;
16568       if (that instanceof disableAddressFamily_args)
16569         return this.equals((disableAddressFamily_args)that);
16570       return false;
16571     }
16572
16573     public boolean equals(disableAddressFamily_args that) {
16574       if (that == null)
16575         return false;
16576
16577       boolean this_present_peerIp = true && this.isSetPeerIp();
16578       boolean that_present_peerIp = true && that.isSetPeerIp();
16579       if (this_present_peerIp || that_present_peerIp) {
16580         if (!(this_present_peerIp && that_present_peerIp))
16581           return false;
16582         if (!this.peerIp.equals(that.peerIp))
16583           return false;
16584       }
16585
16586       boolean this_present_afi = true && this.isSetAfi();
16587       boolean that_present_afi = true && that.isSetAfi();
16588       if (this_present_afi || that_present_afi) {
16589         if (!(this_present_afi && that_present_afi))
16590           return false;
16591         if (!this.afi.equals(that.afi))
16592           return false;
16593       }
16594
16595       boolean this_present_safi = true && this.isSetSafi();
16596       boolean that_present_safi = true && that.isSetSafi();
16597       if (this_present_safi || that_present_safi) {
16598         if (!(this_present_safi && that_present_safi))
16599           return false;
16600         if (!this.safi.equals(that.safi))
16601           return false;
16602       }
16603
16604       return true;
16605     }
16606
16607     @Override
16608     public int hashCode() {
16609       return 0;
16610     }
16611
16612     @Override
16613     public int compareTo(disableAddressFamily_args other) {
16614       if (!getClass().equals(other.getClass())) {
16615         return getClass().getName().compareTo(other.getClass().getName());
16616       }
16617
16618       int lastComparison = 0;
16619
16620       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
16621       if (lastComparison != 0) {
16622         return lastComparison;
16623       }
16624       if (isSetPeerIp()) {
16625         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
16626         if (lastComparison != 0) {
16627           return lastComparison;
16628         }
16629       }
16630       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
16631       if (lastComparison != 0) {
16632         return lastComparison;
16633       }
16634       if (isSetAfi()) {
16635         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
16636         if (lastComparison != 0) {
16637           return lastComparison;
16638         }
16639       }
16640       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
16641       if (lastComparison != 0) {
16642         return lastComparison;
16643       }
16644       if (isSetSafi()) {
16645         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
16646         if (lastComparison != 0) {
16647           return lastComparison;
16648         }
16649       }
16650       return 0;
16651     }
16652
16653     public _Fields fieldForId(int fieldId) {
16654       return _Fields.findByThriftId(fieldId);
16655     }
16656
16657     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16658       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16659     }
16660
16661     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16662       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16663     }
16664
16665     @Override
16666     public String toString() {
16667       StringBuilder sb = new StringBuilder("disableAddressFamily_args(");
16668       boolean first = true;
16669
16670       sb.append("peerIp:");
16671       if (this.peerIp == null) {
16672         sb.append("null");
16673       } else {
16674         sb.append(this.peerIp);
16675       }
16676       first = false;
16677       if (!first) sb.append(", ");
16678       sb.append("afi:");
16679       if (this.afi == null) {
16680         sb.append("null");
16681       } else {
16682         sb.append(this.afi);
16683       }
16684       first = false;
16685       if (!first) sb.append(", ");
16686       sb.append("safi:");
16687       if (this.safi == null) {
16688         sb.append("null");
16689       } else {
16690         sb.append(this.safi);
16691       }
16692       first = false;
16693       sb.append(")");
16694       return sb.toString();
16695     }
16696
16697     public void validate() throws org.apache.thrift.TException {
16698       // check for required fields
16699       // check for sub-struct validity
16700     }
16701
16702     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16703       try {
16704         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16705       } catch (org.apache.thrift.TException te) {
16706         throw new java.io.IOException(te);
16707       }
16708     }
16709
16710     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16711       try {
16712         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16713       } catch (org.apache.thrift.TException te) {
16714         throw new java.io.IOException(te);
16715       }
16716     }
16717
16718     private static class disableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
16719       public disableAddressFamily_argsStandardScheme getScheme() {
16720         return new disableAddressFamily_argsStandardScheme();
16721       }
16722     }
16723
16724     private static class disableAddressFamily_argsStandardScheme extends StandardScheme<disableAddressFamily_args> {
16725
16726       public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
16727         org.apache.thrift.protocol.TField schemeField;
16728         iprot.readStructBegin();
16729         while (true)
16730         {
16731           schemeField = iprot.readFieldBegin();
16732           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
16733             break;
16734           }
16735           switch (schemeField.id) {
16736             case 1: // PEER_IP
16737               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16738                 struct.peerIp = iprot.readString();
16739                 struct.setPeerIpIsSet(true);
16740               } else { 
16741                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16742               }
16743               break;
16744             case 2: // AFI
16745               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16746                 struct.afi = af_afi.findByValue(iprot.readI32());
16747                 struct.setAfiIsSet(true);
16748               } else { 
16749                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16750               }
16751               break;
16752             case 3: // SAFI
16753               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16754                 struct.safi = af_safi.findByValue(iprot.readI32());
16755                 struct.setSafiIsSet(true);
16756               } else { 
16757                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16758               }
16759               break;
16760             default:
16761               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16762           }
16763           iprot.readFieldEnd();
16764         }
16765         iprot.readStructEnd();
16766
16767         // check for required fields of primitive type, which can't be checked in the validate method
16768         struct.validate();
16769       }
16770
16771       public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
16772         struct.validate();
16773
16774         oprot.writeStructBegin(STRUCT_DESC);
16775         if (struct.peerIp != null) {
16776           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
16777           oprot.writeString(struct.peerIp);
16778           oprot.writeFieldEnd();
16779         }
16780         if (struct.afi != null) {
16781           oprot.writeFieldBegin(AFI_FIELD_DESC);
16782           oprot.writeI32(struct.afi.getValue());
16783           oprot.writeFieldEnd();
16784         }
16785         if (struct.safi != null) {
16786           oprot.writeFieldBegin(SAFI_FIELD_DESC);
16787           oprot.writeI32(struct.safi.getValue());
16788           oprot.writeFieldEnd();
16789         }
16790         oprot.writeFieldStop();
16791         oprot.writeStructEnd();
16792       }
16793
16794     }
16795
16796     private static class disableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
16797       public disableAddressFamily_argsTupleScheme getScheme() {
16798         return new disableAddressFamily_argsTupleScheme();
16799       }
16800     }
16801
16802     private static class disableAddressFamily_argsTupleScheme extends TupleScheme<disableAddressFamily_args> {
16803
16804       @Override
16805       public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
16806         TTupleProtocol oprot = (TTupleProtocol) prot;
16807         BitSet optionals = new BitSet();
16808         if (struct.isSetPeerIp()) {
16809           optionals.set(0);
16810         }
16811         if (struct.isSetAfi()) {
16812           optionals.set(1);
16813         }
16814         if (struct.isSetSafi()) {
16815           optionals.set(2);
16816         }
16817         oprot.writeBitSet(optionals, 3);
16818         if (struct.isSetPeerIp()) {
16819           oprot.writeString(struct.peerIp);
16820         }
16821         if (struct.isSetAfi()) {
16822           oprot.writeI32(struct.afi.getValue());
16823         }
16824         if (struct.isSetSafi()) {
16825           oprot.writeI32(struct.safi.getValue());
16826         }
16827       }
16828
16829       @Override
16830       public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
16831         TTupleProtocol iprot = (TTupleProtocol) prot;
16832         BitSet incoming = iprot.readBitSet(3);
16833         if (incoming.get(0)) {
16834           struct.peerIp = iprot.readString();
16835           struct.setPeerIpIsSet(true);
16836         }
16837         if (incoming.get(1)) {
16838           struct.afi = af_afi.findByValue(iprot.readI32());
16839           struct.setAfiIsSet(true);
16840         }
16841         if (incoming.get(2)) {
16842           struct.safi = af_safi.findByValue(iprot.readI32());
16843           struct.setSafiIsSet(true);
16844         }
16845       }
16846     }
16847
16848   }
16849
16850   public static class disableAddressFamily_result implements org.apache.thrift.TBase<disableAddressFamily_result, disableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_result>   {
16851     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_result");
16852
16853     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);
16854
16855     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16856     static {
16857       schemes.put(StandardScheme.class, new disableAddressFamily_resultStandardSchemeFactory());
16858       schemes.put(TupleScheme.class, new disableAddressFamily_resultTupleSchemeFactory());
16859     }
16860
16861     public int success; // required
16862
16863     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16864     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16865       SUCCESS((short)0, "success");
16866
16867       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16868
16869       static {
16870         for (_Fields field : EnumSet.allOf(_Fields.class)) {
16871           byName.put(field.getFieldName(), field);
16872         }
16873       }
16874
16875       /**
16876        * Find the _Fields constant that matches fieldId, or null if its not found.
16877        */
16878       public static _Fields findByThriftId(int fieldId) {
16879         switch(fieldId) {
16880           case 0: // SUCCESS
16881             return SUCCESS;
16882           default:
16883             return null;
16884         }
16885       }
16886
16887       /**
16888        * Find the _Fields constant that matches fieldId, throwing an exception
16889        * if it is not found.
16890        */
16891       public static _Fields findByThriftIdOrThrow(int fieldId) {
16892         _Fields fields = findByThriftId(fieldId);
16893         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16894         return fields;
16895       }
16896
16897       /**
16898        * Find the _Fields constant that matches name, or null if its not found.
16899        */
16900       public static _Fields findByName(String name) {
16901         return byName.get(name);
16902       }
16903
16904       private final short _thriftId;
16905       private final String _fieldName;
16906
16907       _Fields(short thriftId, String fieldName) {
16908         _thriftId = thriftId;
16909         _fieldName = fieldName;
16910       }
16911
16912       public short getThriftFieldId() {
16913         return _thriftId;
16914       }
16915
16916       public String getFieldName() {
16917         return _fieldName;
16918       }
16919     }
16920
16921     // isset id assignments
16922     private static final int __SUCCESS_ISSET_ID = 0;
16923     private byte __isset_bitfield = 0;
16924     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16925     static {
16926       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16927       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16928           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16929       metaDataMap = Collections.unmodifiableMap(tmpMap);
16930       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_result.class, metaDataMap);
16931     }
16932
16933     public disableAddressFamily_result() {
16934     }
16935
16936     public disableAddressFamily_result(
16937       int success)
16938     {
16939       this();
16940       this.success = success;
16941       setSuccessIsSet(true);
16942     }
16943
16944     /**
16945      * Performs a deep copy on <i>other</i>.
16946      */
16947     public disableAddressFamily_result(disableAddressFamily_result other) {
16948       __isset_bitfield = other.__isset_bitfield;
16949       this.success = other.success;
16950     }
16951
16952     public disableAddressFamily_result deepCopy() {
16953       return new disableAddressFamily_result(this);
16954     }
16955
16956     @Override
16957     public void clear() {
16958       setSuccessIsSet(false);
16959       this.success = 0;
16960     }
16961
16962     public int getSuccess() {
16963       return this.success;
16964     }
16965
16966     public disableAddressFamily_result setSuccess(int success) {
16967       this.success = success;
16968       setSuccessIsSet(true);
16969       return this;
16970     }
16971
16972     public void unsetSuccess() {
16973       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16974     }
16975
16976     /** Returns true if field success is set (has been assigned a value) and false otherwise */
16977     public boolean isSetSuccess() {
16978       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16979     }
16980
16981     public void setSuccessIsSet(boolean value) {
16982       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
16983     }
16984
16985     public void setFieldValue(_Fields field, Object value) {
16986       switch (field) {
16987       case SUCCESS:
16988         if (value == null) {
16989           unsetSuccess();
16990         } else {
16991           setSuccess((Integer)value);
16992         }
16993         break;
16994
16995       }
16996     }
16997
16998     public Object getFieldValue(_Fields field) {
16999       switch (field) {
17000       case SUCCESS:
17001         return Integer.valueOf(getSuccess());
17002
17003       }
17004       throw new IllegalStateException();
17005     }
17006
17007     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17008     public boolean isSet(_Fields field) {
17009       if (field == null) {
17010         throw new IllegalArgumentException();
17011       }
17012
17013       switch (field) {
17014       case SUCCESS:
17015         return isSetSuccess();
17016       }
17017       throw new IllegalStateException();
17018     }
17019
17020     @Override
17021     public boolean equals(Object that) {
17022       if (that == null)
17023         return false;
17024       if (that instanceof disableAddressFamily_result)
17025         return this.equals((disableAddressFamily_result)that);
17026       return false;
17027     }
17028
17029     public boolean equals(disableAddressFamily_result that) {
17030       if (that == null)
17031         return false;
17032
17033       boolean this_present_success = true;
17034       boolean that_present_success = true;
17035       if (this_present_success || that_present_success) {
17036         if (!(this_present_success && that_present_success))
17037           return false;
17038         if (this.success != that.success)
17039           return false;
17040       }
17041
17042       return true;
17043     }
17044
17045     @Override
17046     public int hashCode() {
17047       return 0;
17048     }
17049
17050     @Override
17051     public int compareTo(disableAddressFamily_result other) {
17052       if (!getClass().equals(other.getClass())) {
17053         return getClass().getName().compareTo(other.getClass().getName());
17054       }
17055
17056       int lastComparison = 0;
17057
17058       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
17059       if (lastComparison != 0) {
17060         return lastComparison;
17061       }
17062       if (isSetSuccess()) {
17063         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
17064         if (lastComparison != 0) {
17065           return lastComparison;
17066         }
17067       }
17068       return 0;
17069     }
17070
17071     public _Fields fieldForId(int fieldId) {
17072       return _Fields.findByThriftId(fieldId);
17073     }
17074
17075     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17076       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17077     }
17078
17079     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17080       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17081       }
17082
17083     @Override
17084     public String toString() {
17085       StringBuilder sb = new StringBuilder("disableAddressFamily_result(");
17086       boolean first = true;
17087
17088       sb.append("success:");
17089       sb.append(this.success);
17090       first = false;
17091       sb.append(")");
17092       return sb.toString();
17093     }
17094
17095     public void validate() throws org.apache.thrift.TException {
17096       // check for required fields
17097       // check for sub-struct validity
17098     }
17099
17100     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17101       try {
17102         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17103       } catch (org.apache.thrift.TException te) {
17104         throw new java.io.IOException(te);
17105       }
17106     }
17107
17108     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17109       try {
17110         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17111         __isset_bitfield = 0;
17112         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17113       } catch (org.apache.thrift.TException te) {
17114         throw new java.io.IOException(te);
17115       }
17116     }
17117
17118     private static class disableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
17119       public disableAddressFamily_resultStandardScheme getScheme() {
17120         return new disableAddressFamily_resultStandardScheme();
17121       }
17122     }
17123
17124     private static class disableAddressFamily_resultStandardScheme extends StandardScheme<disableAddressFamily_result> {
17125
17126       public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
17127         org.apache.thrift.protocol.TField schemeField;
17128         iprot.readStructBegin();
17129         while (true)
17130         {
17131           schemeField = iprot.readFieldBegin();
17132           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
17133             break;
17134           }
17135           switch (schemeField.id) {
17136             case 0: // SUCCESS
17137               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17138                 struct.success = iprot.readI32();
17139                 struct.setSuccessIsSet(true);
17140               } else { 
17141                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17142               }
17143               break;
17144             default:
17145               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17146           }
17147           iprot.readFieldEnd();
17148         }
17149         iprot.readStructEnd();
17150
17151         // check for required fields of primitive type, which can't be checked in the validate method
17152         struct.validate();
17153       }
17154
17155       public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
17156         struct.validate();
17157
17158         oprot.writeStructBegin(STRUCT_DESC);
17159         if (struct.isSetSuccess()) {
17160           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17161           oprot.writeI32(struct.success);
17162           oprot.writeFieldEnd();
17163         }
17164         oprot.writeFieldStop();
17165         oprot.writeStructEnd();
17166       }
17167
17168     }
17169
17170     private static class disableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
17171       public disableAddressFamily_resultTupleScheme getScheme() {
17172         return new disableAddressFamily_resultTupleScheme();
17173       }
17174     }
17175
17176     private static class disableAddressFamily_resultTupleScheme extends TupleScheme<disableAddressFamily_result> {
17177
17178       @Override
17179       public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
17180         TTupleProtocol oprot = (TTupleProtocol) prot;
17181         BitSet optionals = new BitSet();
17182         if (struct.isSetSuccess()) {
17183           optionals.set(0);
17184         }
17185         oprot.writeBitSet(optionals, 1);
17186         if (struct.isSetSuccess()) {
17187           oprot.writeI32(struct.success);
17188         }
17189       }
17190
17191       @Override
17192       public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
17193         TTupleProtocol iprot = (TTupleProtocol) prot;
17194         BitSet incoming = iprot.readBitSet(1);
17195         if (incoming.get(0)) {
17196           struct.success = iprot.readI32();
17197           struct.setSuccessIsSet(true);
17198         }
17199       }
17200     }
17201
17202   }
17203
17204   public static class setLogConfig_args implements org.apache.thrift.TBase<setLogConfig_args, setLogConfig_args._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_args>   {
17205     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_args");
17206
17207     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);
17208     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);
17209
17210     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17211     static {
17212       schemes.put(StandardScheme.class, new setLogConfig_argsStandardSchemeFactory());
17213       schemes.put(TupleScheme.class, new setLogConfig_argsTupleSchemeFactory());
17214     }
17215
17216     public String logFileName; // required
17217     public String logLevel; // required
17218
17219     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17220     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17221       LOG_FILE_NAME((short)1, "logFileName"),
17222       LOG_LEVEL((short)2, "logLevel");
17223
17224       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17225
17226       static {
17227         for (_Fields field : EnumSet.allOf(_Fields.class)) {
17228           byName.put(field.getFieldName(), field);
17229         }
17230       }
17231
17232       /**
17233        * Find the _Fields constant that matches fieldId, or null if its not found.
17234        */
17235       public static _Fields findByThriftId(int fieldId) {
17236         switch(fieldId) {
17237           case 1: // LOG_FILE_NAME
17238             return LOG_FILE_NAME;
17239           case 2: // LOG_LEVEL
17240             return LOG_LEVEL;
17241           default:
17242             return null;
17243         }
17244       }
17245
17246       /**
17247        * Find the _Fields constant that matches fieldId, throwing an exception
17248        * if it is not found.
17249        */
17250       public static _Fields findByThriftIdOrThrow(int fieldId) {
17251         _Fields fields = findByThriftId(fieldId);
17252         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17253         return fields;
17254       }
17255
17256       /**
17257        * Find the _Fields constant that matches name, or null if its not found.
17258        */
17259       public static _Fields findByName(String name) {
17260         return byName.get(name);
17261       }
17262
17263       private final short _thriftId;
17264       private final String _fieldName;
17265
17266       _Fields(short thriftId, String fieldName) {
17267         _thriftId = thriftId;
17268         _fieldName = fieldName;
17269       }
17270
17271       public short getThriftFieldId() {
17272         return _thriftId;
17273       }
17274
17275       public String getFieldName() {
17276         return _fieldName;
17277       }
17278     }
17279
17280     // isset id assignments
17281     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17282     static {
17283       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17284       tmpMap.put(_Fields.LOG_FILE_NAME, new org.apache.thrift.meta_data.FieldMetaData("logFileName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17285           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17286       tmpMap.put(_Fields.LOG_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("logLevel", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17287           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17288       metaDataMap = Collections.unmodifiableMap(tmpMap);
17289       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_args.class, metaDataMap);
17290     }
17291
17292     public setLogConfig_args() {
17293     }
17294
17295     public setLogConfig_args(
17296       String logFileName,
17297       String logLevel)
17298     {
17299       this();
17300       this.logFileName = logFileName;
17301       this.logLevel = logLevel;
17302     }
17303
17304     /**
17305      * Performs a deep copy on <i>other</i>.
17306      */
17307     public setLogConfig_args(setLogConfig_args other) {
17308       if (other.isSetLogFileName()) {
17309         this.logFileName = other.logFileName;
17310       }
17311       if (other.isSetLogLevel()) {
17312         this.logLevel = other.logLevel;
17313       }
17314     }
17315
17316     public setLogConfig_args deepCopy() {
17317       return new setLogConfig_args(this);
17318     }
17319
17320     @Override
17321     public void clear() {
17322       this.logFileName = null;
17323       this.logLevel = null;
17324     }
17325
17326     public String getLogFileName() {
17327       return this.logFileName;
17328     }
17329
17330     public setLogConfig_args setLogFileName(String logFileName) {
17331       this.logFileName = logFileName;
17332       return this;
17333     }
17334
17335     public void unsetLogFileName() {
17336       this.logFileName = null;
17337     }
17338
17339     /** Returns true if field logFileName is set (has been assigned a value) and false otherwise */
17340     public boolean isSetLogFileName() {
17341       return this.logFileName != null;
17342     }
17343
17344     public void setLogFileNameIsSet(boolean value) {
17345       if (!value) {
17346         this.logFileName = null;
17347       }
17348     }
17349
17350     public String getLogLevel() {
17351       return this.logLevel;
17352     }
17353
17354     public setLogConfig_args setLogLevel(String logLevel) {
17355       this.logLevel = logLevel;
17356       return this;
17357     }
17358
17359     public void unsetLogLevel() {
17360       this.logLevel = null;
17361     }
17362
17363     /** Returns true if field logLevel is set (has been assigned a value) and false otherwise */
17364     public boolean isSetLogLevel() {
17365       return this.logLevel != null;
17366     }
17367
17368     public void setLogLevelIsSet(boolean value) {
17369       if (!value) {
17370         this.logLevel = null;
17371       }
17372     }
17373
17374     public void setFieldValue(_Fields field, Object value) {
17375       switch (field) {
17376       case LOG_FILE_NAME:
17377         if (value == null) {
17378           unsetLogFileName();
17379         } else {
17380           setLogFileName((String)value);
17381         }
17382         break;
17383
17384       case LOG_LEVEL:
17385         if (value == null) {
17386           unsetLogLevel();
17387         } else {
17388           setLogLevel((String)value);
17389         }
17390         break;
17391
17392       }
17393     }
17394
17395     public Object getFieldValue(_Fields field) {
17396       switch (field) {
17397       case LOG_FILE_NAME:
17398         return getLogFileName();
17399
17400       case LOG_LEVEL:
17401         return getLogLevel();
17402
17403       }
17404       throw new IllegalStateException();
17405     }
17406
17407     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17408     public boolean isSet(_Fields field) {
17409       if (field == null) {
17410         throw new IllegalArgumentException();
17411       }
17412
17413       switch (field) {
17414       case LOG_FILE_NAME:
17415         return isSetLogFileName();
17416       case LOG_LEVEL:
17417         return isSetLogLevel();
17418       }
17419       throw new IllegalStateException();
17420     }
17421
17422     @Override
17423     public boolean equals(Object that) {
17424       if (that == null)
17425         return false;
17426       if (that instanceof setLogConfig_args)
17427         return this.equals((setLogConfig_args)that);
17428       return false;
17429     }
17430
17431     public boolean equals(setLogConfig_args that) {
17432       if (that == null)
17433         return false;
17434
17435       boolean this_present_logFileName = true && this.isSetLogFileName();
17436       boolean that_present_logFileName = true && that.isSetLogFileName();
17437       if (this_present_logFileName || that_present_logFileName) {
17438         if (!(this_present_logFileName && that_present_logFileName))
17439           return false;
17440         if (!this.logFileName.equals(that.logFileName))
17441           return false;
17442       }
17443
17444       boolean this_present_logLevel = true && this.isSetLogLevel();
17445       boolean that_present_logLevel = true && that.isSetLogLevel();
17446       if (this_present_logLevel || that_present_logLevel) {
17447         if (!(this_present_logLevel && that_present_logLevel))
17448           return false;
17449         if (!this.logLevel.equals(that.logLevel))
17450           return false;
17451       }
17452
17453       return true;
17454     }
17455
17456     @Override
17457     public int hashCode() {
17458       return 0;
17459     }
17460
17461     @Override
17462     public int compareTo(setLogConfig_args other) {
17463       if (!getClass().equals(other.getClass())) {
17464         return getClass().getName().compareTo(other.getClass().getName());
17465       }
17466
17467       int lastComparison = 0;
17468
17469       lastComparison = Boolean.valueOf(isSetLogFileName()).compareTo(other.isSetLogFileName());
17470       if (lastComparison != 0) {
17471         return lastComparison;
17472       }
17473       if (isSetLogFileName()) {
17474         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logFileName, other.logFileName);
17475         if (lastComparison != 0) {
17476           return lastComparison;
17477         }
17478       }
17479       lastComparison = Boolean.valueOf(isSetLogLevel()).compareTo(other.isSetLogLevel());
17480       if (lastComparison != 0) {
17481         return lastComparison;
17482       }
17483       if (isSetLogLevel()) {
17484         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logLevel, other.logLevel);
17485         if (lastComparison != 0) {
17486           return lastComparison;
17487         }
17488       }
17489       return 0;
17490     }
17491
17492     public _Fields fieldForId(int fieldId) {
17493       return _Fields.findByThriftId(fieldId);
17494     }
17495
17496     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17497       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17498     }
17499
17500     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17501       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17502     }
17503
17504     @Override
17505     public String toString() {
17506       StringBuilder sb = new StringBuilder("setLogConfig_args(");
17507       boolean first = true;
17508
17509       sb.append("logFileName:");
17510       if (this.logFileName == null) {
17511         sb.append("null");
17512       } else {
17513         sb.append(this.logFileName);
17514       }
17515       first = false;
17516       if (!first) sb.append(", ");
17517       sb.append("logLevel:");
17518       if (this.logLevel == null) {
17519         sb.append("null");
17520       } else {
17521         sb.append(this.logLevel);
17522       }
17523       first = false;
17524       sb.append(")");
17525       return sb.toString();
17526     }
17527
17528     public void validate() throws org.apache.thrift.TException {
17529       // check for required fields
17530       // check for sub-struct validity
17531     }
17532
17533     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17534       try {
17535         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17536       } catch (org.apache.thrift.TException te) {
17537         throw new java.io.IOException(te);
17538       }
17539     }
17540
17541     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17542       try {
17543         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17544       } catch (org.apache.thrift.TException te) {
17545         throw new java.io.IOException(te);
17546       }
17547     }
17548
17549     private static class setLogConfig_argsStandardSchemeFactory implements SchemeFactory {
17550       public setLogConfig_argsStandardScheme getScheme() {
17551         return new setLogConfig_argsStandardScheme();
17552       }
17553     }
17554
17555     private static class setLogConfig_argsStandardScheme extends StandardScheme<setLogConfig_args> {
17556
17557       public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_args struct) throws org.apache.thrift.TException {
17558         org.apache.thrift.protocol.TField schemeField;
17559         iprot.readStructBegin();
17560         while (true)
17561         {
17562           schemeField = iprot.readFieldBegin();
17563           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
17564             break;
17565           }
17566           switch (schemeField.id) {
17567             case 1: // LOG_FILE_NAME
17568               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
17569                 struct.logFileName = iprot.readString();
17570                 struct.setLogFileNameIsSet(true);
17571               } else { 
17572                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17573               }
17574               break;
17575             case 2: // LOG_LEVEL
17576               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
17577                 struct.logLevel = iprot.readString();
17578                 struct.setLogLevelIsSet(true);
17579               } else { 
17580                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17581               }
17582               break;
17583             default:
17584               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17585           }
17586           iprot.readFieldEnd();
17587         }
17588         iprot.readStructEnd();
17589
17590         // check for required fields of primitive type, which can't be checked in the validate method
17591         struct.validate();
17592       }
17593
17594       public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_args struct) throws org.apache.thrift.TException {
17595         struct.validate();
17596
17597         oprot.writeStructBegin(STRUCT_DESC);
17598         if (struct.logFileName != null) {
17599           oprot.writeFieldBegin(LOG_FILE_NAME_FIELD_DESC);
17600           oprot.writeString(struct.logFileName);
17601           oprot.writeFieldEnd();
17602         }
17603         if (struct.logLevel != null) {
17604           oprot.writeFieldBegin(LOG_LEVEL_FIELD_DESC);
17605           oprot.writeString(struct.logLevel);
17606           oprot.writeFieldEnd();
17607         }
17608         oprot.writeFieldStop();
17609         oprot.writeStructEnd();
17610       }
17611
17612     }
17613
17614     private static class setLogConfig_argsTupleSchemeFactory implements SchemeFactory {
17615       public setLogConfig_argsTupleScheme getScheme() {
17616         return new setLogConfig_argsTupleScheme();
17617       }
17618     }
17619
17620     private static class setLogConfig_argsTupleScheme extends TupleScheme<setLogConfig_args> {
17621
17622       @Override
17623       public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
17624         TTupleProtocol oprot = (TTupleProtocol) prot;
17625         BitSet optionals = new BitSet();
17626         if (struct.isSetLogFileName()) {
17627           optionals.set(0);
17628         }
17629         if (struct.isSetLogLevel()) {
17630           optionals.set(1);
17631         }
17632         oprot.writeBitSet(optionals, 2);
17633         if (struct.isSetLogFileName()) {
17634           oprot.writeString(struct.logFileName);
17635         }
17636         if (struct.isSetLogLevel()) {
17637           oprot.writeString(struct.logLevel);
17638         }
17639       }
17640
17641       @Override
17642       public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
17643         TTupleProtocol iprot = (TTupleProtocol) prot;
17644         BitSet incoming = iprot.readBitSet(2);
17645         if (incoming.get(0)) {
17646           struct.logFileName = iprot.readString();
17647           struct.setLogFileNameIsSet(true);
17648         }
17649         if (incoming.get(1)) {
17650           struct.logLevel = iprot.readString();
17651           struct.setLogLevelIsSet(true);
17652         }
17653       }
17654     }
17655
17656   }
17657
17658   public static class setLogConfig_result implements org.apache.thrift.TBase<setLogConfig_result, setLogConfig_result._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_result>   {
17659     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_result");
17660
17661     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);
17662
17663     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17664     static {
17665       schemes.put(StandardScheme.class, new setLogConfig_resultStandardSchemeFactory());
17666       schemes.put(TupleScheme.class, new setLogConfig_resultTupleSchemeFactory());
17667     }
17668
17669     public int success; // required
17670
17671     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17672     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17673       SUCCESS((short)0, "success");
17674
17675       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17676
17677       static {
17678         for (_Fields field : EnumSet.allOf(_Fields.class)) {
17679           byName.put(field.getFieldName(), field);
17680         }
17681       }
17682
17683       /**
17684        * Find the _Fields constant that matches fieldId, or null if its not found.
17685        */
17686       public static _Fields findByThriftId(int fieldId) {
17687         switch(fieldId) {
17688           case 0: // SUCCESS
17689             return SUCCESS;
17690           default:
17691             return null;
17692         }
17693       }
17694
17695       /**
17696        * Find the _Fields constant that matches fieldId, throwing an exception
17697        * if it is not found.
17698        */
17699       public static _Fields findByThriftIdOrThrow(int fieldId) {
17700         _Fields fields = findByThriftId(fieldId);
17701         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17702         return fields;
17703       }
17704
17705       /**
17706        * Find the _Fields constant that matches name, or null if its not found.
17707        */
17708       public static _Fields findByName(String name) {
17709         return byName.get(name);
17710       }
17711
17712       private final short _thriftId;
17713       private final String _fieldName;
17714
17715       _Fields(short thriftId, String fieldName) {
17716         _thriftId = thriftId;
17717         _fieldName = fieldName;
17718       }
17719
17720       public short getThriftFieldId() {
17721         return _thriftId;
17722       }
17723
17724       public String getFieldName() {
17725         return _fieldName;
17726       }
17727     }
17728
17729     // isset id assignments
17730     private static final int __SUCCESS_ISSET_ID = 0;
17731     private byte __isset_bitfield = 0;
17732     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17733     static {
17734       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17735       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17736           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
17737       metaDataMap = Collections.unmodifiableMap(tmpMap);
17738       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_result.class, metaDataMap);
17739     }
17740
17741     public setLogConfig_result() {
17742     }
17743
17744     public setLogConfig_result(
17745       int success)
17746     {
17747       this();
17748       this.success = success;
17749       setSuccessIsSet(true);
17750     }
17751
17752     /**
17753      * Performs a deep copy on <i>other</i>.
17754      */
17755     public setLogConfig_result(setLogConfig_result other) {
17756       __isset_bitfield = other.__isset_bitfield;
17757       this.success = other.success;
17758     }
17759
17760     public setLogConfig_result deepCopy() {
17761       return new setLogConfig_result(this);
17762     }
17763
17764     @Override
17765     public void clear() {
17766       setSuccessIsSet(false);
17767       this.success = 0;
17768     }
17769
17770     public int getSuccess() {
17771       return this.success;
17772     }
17773
17774     public setLogConfig_result setSuccess(int success) {
17775       this.success = success;
17776       setSuccessIsSet(true);
17777       return this;
17778     }
17779
17780     public void unsetSuccess() {
17781       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
17782     }
17783
17784     /** Returns true if field success is set (has been assigned a value) and false otherwise */
17785     public boolean isSetSuccess() {
17786       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
17787     }
17788
17789     public void setSuccessIsSet(boolean value) {
17790       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
17791     }
17792
17793     public void setFieldValue(_Fields field, Object value) {
17794       switch (field) {
17795       case SUCCESS:
17796         if (value == null) {
17797           unsetSuccess();
17798         } else {
17799           setSuccess((Integer)value);
17800         }
17801         break;
17802
17803       }
17804     }
17805
17806     public Object getFieldValue(_Fields field) {
17807       switch (field) {
17808       case SUCCESS:
17809         return Integer.valueOf(getSuccess());
17810
17811       }
17812       throw new IllegalStateException();
17813     }
17814
17815     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17816     public boolean isSet(_Fields field) {
17817       if (field == null) {
17818         throw new IllegalArgumentException();
17819       }
17820
17821       switch (field) {
17822       case SUCCESS:
17823         return isSetSuccess();
17824       }
17825       throw new IllegalStateException();
17826     }
17827
17828     @Override
17829     public boolean equals(Object that) {
17830       if (that == null)
17831         return false;
17832       if (that instanceof setLogConfig_result)
17833         return this.equals((setLogConfig_result)that);
17834       return false;
17835     }
17836
17837     public boolean equals(setLogConfig_result that) {
17838       if (that == null)
17839         return false;
17840
17841       boolean this_present_success = true;
17842       boolean that_present_success = true;
17843       if (this_present_success || that_present_success) {
17844         if (!(this_present_success && that_present_success))
17845           return false;
17846         if (this.success != that.success)
17847           return false;
17848       }
17849
17850       return true;
17851     }
17852
17853     @Override
17854     public int hashCode() {
17855       return 0;
17856     }
17857
17858     @Override
17859     public int compareTo(setLogConfig_result other) {
17860       if (!getClass().equals(other.getClass())) {
17861         return getClass().getName().compareTo(other.getClass().getName());
17862       }
17863
17864       int lastComparison = 0;
17865
17866       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
17867       if (lastComparison != 0) {
17868         return lastComparison;
17869       }
17870       if (isSetSuccess()) {
17871         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
17872         if (lastComparison != 0) {
17873           return lastComparison;
17874         }
17875       }
17876       return 0;
17877     }
17878
17879     public _Fields fieldForId(int fieldId) {
17880       return _Fields.findByThriftId(fieldId);
17881     }
17882
17883     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17884       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17885     }
17886
17887     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17888       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17889       }
17890
17891     @Override
17892     public String toString() {
17893       StringBuilder sb = new StringBuilder("setLogConfig_result(");
17894       boolean first = true;
17895
17896       sb.append("success:");
17897       sb.append(this.success);
17898       first = false;
17899       sb.append(")");
17900       return sb.toString();
17901     }
17902
17903     public void validate() throws org.apache.thrift.TException {
17904       // check for required fields
17905       // check for sub-struct validity
17906     }
17907
17908     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17909       try {
17910         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17911       } catch (org.apache.thrift.TException te) {
17912         throw new java.io.IOException(te);
17913       }
17914     }
17915
17916     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17917       try {
17918         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17919         __isset_bitfield = 0;
17920         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17921       } catch (org.apache.thrift.TException te) {
17922         throw new java.io.IOException(te);
17923       }
17924     }
17925
17926     private static class setLogConfig_resultStandardSchemeFactory implements SchemeFactory {
17927       public setLogConfig_resultStandardScheme getScheme() {
17928         return new setLogConfig_resultStandardScheme();
17929       }
17930     }
17931
17932     private static class setLogConfig_resultStandardScheme extends StandardScheme<setLogConfig_result> {
17933
17934       public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_result struct) throws org.apache.thrift.TException {
17935         org.apache.thrift.protocol.TField schemeField;
17936         iprot.readStructBegin();
17937         while (true)
17938         {
17939           schemeField = iprot.readFieldBegin();
17940           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
17941             break;
17942           }
17943           switch (schemeField.id) {
17944             case 0: // SUCCESS
17945               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17946                 struct.success = iprot.readI32();
17947                 struct.setSuccessIsSet(true);
17948               } else { 
17949                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17950               }
17951               break;
17952             default:
17953               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17954           }
17955           iprot.readFieldEnd();
17956         }
17957         iprot.readStructEnd();
17958
17959         // check for required fields of primitive type, which can't be checked in the validate method
17960         struct.validate();
17961       }
17962
17963       public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_result struct) throws org.apache.thrift.TException {
17964         struct.validate();
17965
17966         oprot.writeStructBegin(STRUCT_DESC);
17967         if (struct.isSetSuccess()) {
17968           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17969           oprot.writeI32(struct.success);
17970           oprot.writeFieldEnd();
17971         }
17972         oprot.writeFieldStop();
17973         oprot.writeStructEnd();
17974       }
17975
17976     }
17977
17978     private static class setLogConfig_resultTupleSchemeFactory implements SchemeFactory {
17979       public setLogConfig_resultTupleScheme getScheme() {
17980         return new setLogConfig_resultTupleScheme();
17981       }
17982     }
17983
17984     private static class setLogConfig_resultTupleScheme extends TupleScheme<setLogConfig_result> {
17985
17986       @Override
17987       public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
17988         TTupleProtocol oprot = (TTupleProtocol) prot;
17989         BitSet optionals = new BitSet();
17990         if (struct.isSetSuccess()) {
17991           optionals.set(0);
17992         }
17993         oprot.writeBitSet(optionals, 1);
17994         if (struct.isSetSuccess()) {
17995           oprot.writeI32(struct.success);
17996         }
17997       }
17998
17999       @Override
18000       public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
18001         TTupleProtocol iprot = (TTupleProtocol) prot;
18002         BitSet incoming = iprot.readBitSet(1);
18003         if (incoming.get(0)) {
18004           struct.success = iprot.readI32();
18005           struct.setSuccessIsSet(true);
18006         }
18007       }
18008     }
18009
18010   }
18011
18012   public static class enableGracefulRestart_args implements org.apache.thrift.TBase<enableGracefulRestart_args, enableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_args>   {
18013     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_args");
18014
18015     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);
18016
18017     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18018     static {
18019       schemes.put(StandardScheme.class, new enableGracefulRestart_argsStandardSchemeFactory());
18020       schemes.put(TupleScheme.class, new enableGracefulRestart_argsTupleSchemeFactory());
18021     }
18022
18023     public int stalepathTime; // required
18024
18025     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18026     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18027       STALEPATH_TIME((short)1, "stalepathTime");
18028
18029       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18030
18031       static {
18032         for (_Fields field : EnumSet.allOf(_Fields.class)) {
18033           byName.put(field.getFieldName(), field);
18034         }
18035       }
18036
18037       /**
18038        * Find the _Fields constant that matches fieldId, or null if its not found.
18039        */
18040       public static _Fields findByThriftId(int fieldId) {
18041         switch(fieldId) {
18042           case 1: // STALEPATH_TIME
18043             return STALEPATH_TIME;
18044           default:
18045             return null;
18046         }
18047       }
18048
18049       /**
18050        * Find the _Fields constant that matches fieldId, throwing an exception
18051        * if it is not found.
18052        */
18053       public static _Fields findByThriftIdOrThrow(int fieldId) {
18054         _Fields fields = findByThriftId(fieldId);
18055         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18056         return fields;
18057       }
18058
18059       /**
18060        * Find the _Fields constant that matches name, or null if its not found.
18061        */
18062       public static _Fields findByName(String name) {
18063         return byName.get(name);
18064       }
18065
18066       private final short _thriftId;
18067       private final String _fieldName;
18068
18069       _Fields(short thriftId, String fieldName) {
18070         _thriftId = thriftId;
18071         _fieldName = fieldName;
18072       }
18073
18074       public short getThriftFieldId() {
18075         return _thriftId;
18076       }
18077
18078       public String getFieldName() {
18079         return _fieldName;
18080       }
18081     }
18082
18083     // isset id assignments
18084     private static final int __STALEPATHTIME_ISSET_ID = 0;
18085     private byte __isset_bitfield = 0;
18086     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18087     static {
18088       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18089       tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18090           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
18091       metaDataMap = Collections.unmodifiableMap(tmpMap);
18092       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_args.class, metaDataMap);
18093     }
18094
18095     public enableGracefulRestart_args() {
18096     }
18097
18098     public enableGracefulRestart_args(
18099       int stalepathTime)
18100     {
18101       this();
18102       this.stalepathTime = stalepathTime;
18103       setStalepathTimeIsSet(true);
18104     }
18105
18106     /**
18107      * Performs a deep copy on <i>other</i>.
18108      */
18109     public enableGracefulRestart_args(enableGracefulRestart_args other) {
18110       __isset_bitfield = other.__isset_bitfield;
18111       this.stalepathTime = other.stalepathTime;
18112     }
18113
18114     public enableGracefulRestart_args deepCopy() {
18115       return new enableGracefulRestart_args(this);
18116     }
18117
18118     @Override
18119     public void clear() {
18120       setStalepathTimeIsSet(false);
18121       this.stalepathTime = 0;
18122     }
18123
18124     public int getStalepathTime() {
18125       return this.stalepathTime;
18126     }
18127
18128     public enableGracefulRestart_args setStalepathTime(int stalepathTime) {
18129       this.stalepathTime = stalepathTime;
18130       setStalepathTimeIsSet(true);
18131       return this;
18132     }
18133
18134     public void unsetStalepathTime() {
18135       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
18136     }
18137
18138     /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
18139     public boolean isSetStalepathTime() {
18140       return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
18141     }
18142
18143     public void setStalepathTimeIsSet(boolean value) {
18144       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
18145     }
18146
18147     public void setFieldValue(_Fields field, Object value) {
18148       switch (field) {
18149       case STALEPATH_TIME:
18150         if (value == null) {
18151           unsetStalepathTime();
18152         } else {
18153           setStalepathTime((Integer)value);
18154         }
18155         break;
18156
18157       }
18158     }
18159
18160     public Object getFieldValue(_Fields field) {
18161       switch (field) {
18162       case STALEPATH_TIME:
18163         return Integer.valueOf(getStalepathTime());
18164
18165       }
18166       throw new IllegalStateException();
18167     }
18168
18169     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18170     public boolean isSet(_Fields field) {
18171       if (field == null) {
18172         throw new IllegalArgumentException();
18173       }
18174
18175       switch (field) {
18176       case STALEPATH_TIME:
18177         return isSetStalepathTime();
18178       }
18179       throw new IllegalStateException();
18180     }
18181
18182     @Override
18183     public boolean equals(Object that) {
18184       if (that == null)
18185         return false;
18186       if (that instanceof enableGracefulRestart_args)
18187         return this.equals((enableGracefulRestart_args)that);
18188       return false;
18189     }
18190
18191     public boolean equals(enableGracefulRestart_args that) {
18192       if (that == null)
18193         return false;
18194
18195       boolean this_present_stalepathTime = true;
18196       boolean that_present_stalepathTime = true;
18197       if (this_present_stalepathTime || that_present_stalepathTime) {
18198         if (!(this_present_stalepathTime && that_present_stalepathTime))
18199           return false;
18200         if (this.stalepathTime != that.stalepathTime)
18201           return false;
18202       }
18203
18204       return true;
18205     }
18206
18207     @Override
18208     public int hashCode() {
18209       return 0;
18210     }
18211
18212     @Override
18213     public int compareTo(enableGracefulRestart_args other) {
18214       if (!getClass().equals(other.getClass())) {
18215         return getClass().getName().compareTo(other.getClass().getName());
18216       }
18217
18218       int lastComparison = 0;
18219
18220       lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
18221       if (lastComparison != 0) {
18222         return lastComparison;
18223       }
18224       if (isSetStalepathTime()) {
18225         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
18226         if (lastComparison != 0) {
18227           return lastComparison;
18228         }
18229       }
18230       return 0;
18231     }
18232
18233     public _Fields fieldForId(int fieldId) {
18234       return _Fields.findByThriftId(fieldId);
18235     }
18236
18237     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18238       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18239     }
18240
18241     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18242       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18243     }
18244
18245     @Override
18246     public String toString() {
18247       StringBuilder sb = new StringBuilder("enableGracefulRestart_args(");
18248       boolean first = true;
18249
18250       sb.append("stalepathTime:");
18251       sb.append(this.stalepathTime);
18252       first = false;
18253       sb.append(")");
18254       return sb.toString();
18255     }
18256
18257     public void validate() throws org.apache.thrift.TException {
18258       // check for required fields
18259       // check for sub-struct validity
18260     }
18261
18262     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18263       try {
18264         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18265       } catch (org.apache.thrift.TException te) {
18266         throw new java.io.IOException(te);
18267       }
18268     }
18269
18270     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18271       try {
18272         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18273         __isset_bitfield = 0;
18274         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18275       } catch (org.apache.thrift.TException te) {
18276         throw new java.io.IOException(te);
18277       }
18278     }
18279
18280     private static class enableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
18281       public enableGracefulRestart_argsStandardScheme getScheme() {
18282         return new enableGracefulRestart_argsStandardScheme();
18283       }
18284     }
18285
18286     private static class enableGracefulRestart_argsStandardScheme extends StandardScheme<enableGracefulRestart_args> {
18287
18288       public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
18289         org.apache.thrift.protocol.TField schemeField;
18290         iprot.readStructBegin();
18291         while (true)
18292         {
18293           schemeField = iprot.readFieldBegin();
18294           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
18295             break;
18296           }
18297           switch (schemeField.id) {
18298             case 1: // STALEPATH_TIME
18299               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
18300                 struct.stalepathTime = iprot.readI32();
18301                 struct.setStalepathTimeIsSet(true);
18302               } else { 
18303                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18304               }
18305               break;
18306             default:
18307               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18308           }
18309           iprot.readFieldEnd();
18310         }
18311         iprot.readStructEnd();
18312
18313         // check for required fields of primitive type, which can't be checked in the validate method
18314         struct.validate();
18315       }
18316
18317       public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
18318         struct.validate();
18319
18320         oprot.writeStructBegin(STRUCT_DESC);
18321         oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
18322         oprot.writeI32(struct.stalepathTime);
18323         oprot.writeFieldEnd();
18324         oprot.writeFieldStop();
18325         oprot.writeStructEnd();
18326       }
18327
18328     }
18329
18330     private static class enableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
18331       public enableGracefulRestart_argsTupleScheme getScheme() {
18332         return new enableGracefulRestart_argsTupleScheme();
18333       }
18334     }
18335
18336     private static class enableGracefulRestart_argsTupleScheme extends TupleScheme<enableGracefulRestart_args> {
18337
18338       @Override
18339       public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
18340         TTupleProtocol oprot = (TTupleProtocol) prot;
18341         BitSet optionals = new BitSet();
18342         if (struct.isSetStalepathTime()) {
18343           optionals.set(0);
18344         }
18345         oprot.writeBitSet(optionals, 1);
18346         if (struct.isSetStalepathTime()) {
18347           oprot.writeI32(struct.stalepathTime);
18348         }
18349       }
18350
18351       @Override
18352       public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
18353         TTupleProtocol iprot = (TTupleProtocol) prot;
18354         BitSet incoming = iprot.readBitSet(1);
18355         if (incoming.get(0)) {
18356           struct.stalepathTime = iprot.readI32();
18357           struct.setStalepathTimeIsSet(true);
18358         }
18359       }
18360     }
18361
18362   }
18363
18364   public static class enableGracefulRestart_result implements org.apache.thrift.TBase<enableGracefulRestart_result, enableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_result>   {
18365     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_result");
18366
18367     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);
18368
18369     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18370     static {
18371       schemes.put(StandardScheme.class, new enableGracefulRestart_resultStandardSchemeFactory());
18372       schemes.put(TupleScheme.class, new enableGracefulRestart_resultTupleSchemeFactory());
18373     }
18374
18375     public int success; // required
18376
18377     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18378     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18379       SUCCESS((short)0, "success");
18380
18381       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18382
18383       static {
18384         for (_Fields field : EnumSet.allOf(_Fields.class)) {
18385           byName.put(field.getFieldName(), field);
18386         }
18387       }
18388
18389       /**
18390        * Find the _Fields constant that matches fieldId, or null if its not found.
18391        */
18392       public static _Fields findByThriftId(int fieldId) {
18393         switch(fieldId) {
18394           case 0: // SUCCESS
18395             return SUCCESS;
18396           default:
18397             return null;
18398         }
18399       }
18400
18401       /**
18402        * Find the _Fields constant that matches fieldId, throwing an exception
18403        * if it is not found.
18404        */
18405       public static _Fields findByThriftIdOrThrow(int fieldId) {
18406         _Fields fields = findByThriftId(fieldId);
18407         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18408         return fields;
18409       }
18410
18411       /**
18412        * Find the _Fields constant that matches name, or null if its not found.
18413        */
18414       public static _Fields findByName(String name) {
18415         return byName.get(name);
18416       }
18417
18418       private final short _thriftId;
18419       private final String _fieldName;
18420
18421       _Fields(short thriftId, String fieldName) {
18422         _thriftId = thriftId;
18423         _fieldName = fieldName;
18424       }
18425
18426       public short getThriftFieldId() {
18427         return _thriftId;
18428       }
18429
18430       public String getFieldName() {
18431         return _fieldName;
18432       }
18433     }
18434
18435     // isset id assignments
18436     private static final int __SUCCESS_ISSET_ID = 0;
18437     private byte __isset_bitfield = 0;
18438     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18439     static {
18440       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18441       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18442           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
18443       metaDataMap = Collections.unmodifiableMap(tmpMap);
18444       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_result.class, metaDataMap);
18445     }
18446
18447     public enableGracefulRestart_result() {
18448     }
18449
18450     public enableGracefulRestart_result(
18451       int success)
18452     {
18453       this();
18454       this.success = success;
18455       setSuccessIsSet(true);
18456     }
18457
18458     /**
18459      * Performs a deep copy on <i>other</i>.
18460      */
18461     public enableGracefulRestart_result(enableGracefulRestart_result other) {
18462       __isset_bitfield = other.__isset_bitfield;
18463       this.success = other.success;
18464     }
18465
18466     public enableGracefulRestart_result deepCopy() {
18467       return new enableGracefulRestart_result(this);
18468     }
18469
18470     @Override
18471     public void clear() {
18472       setSuccessIsSet(false);
18473       this.success = 0;
18474     }
18475
18476     public int getSuccess() {
18477       return this.success;
18478     }
18479
18480     public enableGracefulRestart_result setSuccess(int success) {
18481       this.success = success;
18482       setSuccessIsSet(true);
18483       return this;
18484     }
18485
18486     public void unsetSuccess() {
18487       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
18488     }
18489
18490     /** Returns true if field success is set (has been assigned a value) and false otherwise */
18491     public boolean isSetSuccess() {
18492       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
18493     }
18494
18495     public void setSuccessIsSet(boolean value) {
18496       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
18497     }
18498
18499     public void setFieldValue(_Fields field, Object value) {
18500       switch (field) {
18501       case SUCCESS:
18502         if (value == null) {
18503           unsetSuccess();
18504         } else {
18505           setSuccess((Integer)value);
18506         }
18507         break;
18508
18509       }
18510     }
18511
18512     public Object getFieldValue(_Fields field) {
18513       switch (field) {
18514       case SUCCESS:
18515         return Integer.valueOf(getSuccess());
18516
18517       }
18518       throw new IllegalStateException();
18519     }
18520
18521     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18522     public boolean isSet(_Fields field) {
18523       if (field == null) {
18524         throw new IllegalArgumentException();
18525       }
18526
18527       switch (field) {
18528       case SUCCESS:
18529         return isSetSuccess();
18530       }
18531       throw new IllegalStateException();
18532     }
18533
18534     @Override
18535     public boolean equals(Object that) {
18536       if (that == null)
18537         return false;
18538       if (that instanceof enableGracefulRestart_result)
18539         return this.equals((enableGracefulRestart_result)that);
18540       return false;
18541     }
18542
18543     public boolean equals(enableGracefulRestart_result that) {
18544       if (that == null)
18545         return false;
18546
18547       boolean this_present_success = true;
18548       boolean that_present_success = true;
18549       if (this_present_success || that_present_success) {
18550         if (!(this_present_success && that_present_success))
18551           return false;
18552         if (this.success != that.success)
18553           return false;
18554       }
18555
18556       return true;
18557     }
18558
18559     @Override
18560     public int hashCode() {
18561       return 0;
18562     }
18563
18564     @Override
18565     public int compareTo(enableGracefulRestart_result other) {
18566       if (!getClass().equals(other.getClass())) {
18567         return getClass().getName().compareTo(other.getClass().getName());
18568       }
18569
18570       int lastComparison = 0;
18571
18572       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
18573       if (lastComparison != 0) {
18574         return lastComparison;
18575       }
18576       if (isSetSuccess()) {
18577         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
18578         if (lastComparison != 0) {
18579           return lastComparison;
18580         }
18581       }
18582       return 0;
18583     }
18584
18585     public _Fields fieldForId(int fieldId) {
18586       return _Fields.findByThriftId(fieldId);
18587     }
18588
18589     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18590       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18591     }
18592
18593     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18594       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18595       }
18596
18597     @Override
18598     public String toString() {
18599       StringBuilder sb = new StringBuilder("enableGracefulRestart_result(");
18600       boolean first = true;
18601
18602       sb.append("success:");
18603       sb.append(this.success);
18604       first = false;
18605       sb.append(")");
18606       return sb.toString();
18607     }
18608
18609     public void validate() throws org.apache.thrift.TException {
18610       // check for required fields
18611       // check for sub-struct validity
18612     }
18613
18614     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18615       try {
18616         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18617       } catch (org.apache.thrift.TException te) {
18618         throw new java.io.IOException(te);
18619       }
18620     }
18621
18622     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18623       try {
18624         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18625         __isset_bitfield = 0;
18626         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18627       } catch (org.apache.thrift.TException te) {
18628         throw new java.io.IOException(te);
18629       }
18630     }
18631
18632     private static class enableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
18633       public enableGracefulRestart_resultStandardScheme getScheme() {
18634         return new enableGracefulRestart_resultStandardScheme();
18635       }
18636     }
18637
18638     private static class enableGracefulRestart_resultStandardScheme extends StandardScheme<enableGracefulRestart_result> {
18639
18640       public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
18641         org.apache.thrift.protocol.TField schemeField;
18642         iprot.readStructBegin();
18643         while (true)
18644         {
18645           schemeField = iprot.readFieldBegin();
18646           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
18647             break;
18648           }
18649           switch (schemeField.id) {
18650             case 0: // SUCCESS
18651               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
18652                 struct.success = iprot.readI32();
18653                 struct.setSuccessIsSet(true);
18654               } else { 
18655                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18656               }
18657               break;
18658             default:
18659               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18660           }
18661           iprot.readFieldEnd();
18662         }
18663         iprot.readStructEnd();
18664
18665         // check for required fields of primitive type, which can't be checked in the validate method
18666         struct.validate();
18667       }
18668
18669       public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
18670         struct.validate();
18671
18672         oprot.writeStructBegin(STRUCT_DESC);
18673         if (struct.isSetSuccess()) {
18674           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18675           oprot.writeI32(struct.success);
18676           oprot.writeFieldEnd();
18677         }
18678         oprot.writeFieldStop();
18679         oprot.writeStructEnd();
18680       }
18681
18682     }
18683
18684     private static class enableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
18685       public enableGracefulRestart_resultTupleScheme getScheme() {
18686         return new enableGracefulRestart_resultTupleScheme();
18687       }
18688     }
18689
18690     private static class enableGracefulRestart_resultTupleScheme extends TupleScheme<enableGracefulRestart_result> {
18691
18692       @Override
18693       public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
18694         TTupleProtocol oprot = (TTupleProtocol) prot;
18695         BitSet optionals = new BitSet();
18696         if (struct.isSetSuccess()) {
18697           optionals.set(0);
18698         }
18699         oprot.writeBitSet(optionals, 1);
18700         if (struct.isSetSuccess()) {
18701           oprot.writeI32(struct.success);
18702         }
18703       }
18704
18705       @Override
18706       public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
18707         TTupleProtocol iprot = (TTupleProtocol) prot;
18708         BitSet incoming = iprot.readBitSet(1);
18709         if (incoming.get(0)) {
18710           struct.success = iprot.readI32();
18711           struct.setSuccessIsSet(true);
18712         }
18713       }
18714     }
18715
18716   }
18717
18718   public static class disableGracefulRestart_args implements org.apache.thrift.TBase<disableGracefulRestart_args, disableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_args>   {
18719     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_args");
18720
18721
18722     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18723     static {
18724       schemes.put(StandardScheme.class, new disableGracefulRestart_argsStandardSchemeFactory());
18725       schemes.put(TupleScheme.class, new disableGracefulRestart_argsTupleSchemeFactory());
18726     }
18727
18728
18729     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18730     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18731 ;
18732
18733       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18734
18735       static {
18736         for (_Fields field : EnumSet.allOf(_Fields.class)) {
18737           byName.put(field.getFieldName(), field);
18738         }
18739       }
18740
18741       /**
18742        * Find the _Fields constant that matches fieldId, or null if its not found.
18743        */
18744       public static _Fields findByThriftId(int fieldId) {
18745         switch(fieldId) {
18746           default:
18747             return null;
18748         }
18749       }
18750
18751       /**
18752        * Find the _Fields constant that matches fieldId, throwing an exception
18753        * if it is not found.
18754        */
18755       public static _Fields findByThriftIdOrThrow(int fieldId) {
18756         _Fields fields = findByThriftId(fieldId);
18757         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18758         return fields;
18759       }
18760
18761       /**
18762        * Find the _Fields constant that matches name, or null if its not found.
18763        */
18764       public static _Fields findByName(String name) {
18765         return byName.get(name);
18766       }
18767
18768       private final short _thriftId;
18769       private final String _fieldName;
18770
18771       _Fields(short thriftId, String fieldName) {
18772         _thriftId = thriftId;
18773         _fieldName = fieldName;
18774       }
18775
18776       public short getThriftFieldId() {
18777         return _thriftId;
18778       }
18779
18780       public String getFieldName() {
18781         return _fieldName;
18782       }
18783     }
18784     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18785     static {
18786       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18787       metaDataMap = Collections.unmodifiableMap(tmpMap);
18788       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_args.class, metaDataMap);
18789     }
18790
18791     public disableGracefulRestart_args() {
18792     }
18793
18794     /**
18795      * Performs a deep copy on <i>other</i>.
18796      */
18797     public disableGracefulRestart_args(disableGracefulRestart_args other) {
18798     }
18799
18800     public disableGracefulRestart_args deepCopy() {
18801       return new disableGracefulRestart_args(this);
18802     }
18803
18804     @Override
18805     public void clear() {
18806     }
18807
18808     public void setFieldValue(_Fields field, Object value) {
18809       switch (field) {
18810       }
18811     }
18812
18813     public Object getFieldValue(_Fields field) {
18814       switch (field) {
18815       }
18816       throw new IllegalStateException();
18817     }
18818
18819     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18820     public boolean isSet(_Fields field) {
18821       if (field == null) {
18822         throw new IllegalArgumentException();
18823       }
18824
18825       switch (field) {
18826       }
18827       throw new IllegalStateException();
18828     }
18829
18830     @Override
18831     public boolean equals(Object that) {
18832       if (that == null)
18833         return false;
18834       if (that instanceof disableGracefulRestart_args)
18835         return this.equals((disableGracefulRestart_args)that);
18836       return false;
18837     }
18838
18839     public boolean equals(disableGracefulRestart_args that) {
18840       if (that == null)
18841         return false;
18842
18843       return true;
18844     }
18845
18846     @Override
18847     public int hashCode() {
18848       return 0;
18849     }
18850
18851     @Override
18852     public int compareTo(disableGracefulRestart_args other) {
18853       if (!getClass().equals(other.getClass())) {
18854         return getClass().getName().compareTo(other.getClass().getName());
18855       }
18856
18857       int lastComparison = 0;
18858
18859       return 0;
18860     }
18861
18862     public _Fields fieldForId(int fieldId) {
18863       return _Fields.findByThriftId(fieldId);
18864     }
18865
18866     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18867       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18868     }
18869
18870     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18871       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18872     }
18873
18874     @Override
18875     public String toString() {
18876       StringBuilder sb = new StringBuilder("disableGracefulRestart_args(");
18877       boolean first = true;
18878
18879       sb.append(")");
18880       return sb.toString();
18881     }
18882
18883     public void validate() throws org.apache.thrift.TException {
18884       // check for required fields
18885       // check for sub-struct validity
18886     }
18887
18888     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18889       try {
18890         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18891       } catch (org.apache.thrift.TException te) {
18892         throw new java.io.IOException(te);
18893       }
18894     }
18895
18896     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18897       try {
18898         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18899       } catch (org.apache.thrift.TException te) {
18900         throw new java.io.IOException(te);
18901       }
18902     }
18903
18904     private static class disableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
18905       public disableGracefulRestart_argsStandardScheme getScheme() {
18906         return new disableGracefulRestart_argsStandardScheme();
18907       }
18908     }
18909
18910     private static class disableGracefulRestart_argsStandardScheme extends StandardScheme<disableGracefulRestart_args> {
18911
18912       public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
18913         org.apache.thrift.protocol.TField schemeField;
18914         iprot.readStructBegin();
18915         while (true)
18916         {
18917           schemeField = iprot.readFieldBegin();
18918           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
18919             break;
18920           }
18921           switch (schemeField.id) {
18922             default:
18923               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18924           }
18925           iprot.readFieldEnd();
18926         }
18927         iprot.readStructEnd();
18928
18929         // check for required fields of primitive type, which can't be checked in the validate method
18930         struct.validate();
18931       }
18932
18933       public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
18934         struct.validate();
18935
18936         oprot.writeStructBegin(STRUCT_DESC);
18937         oprot.writeFieldStop();
18938         oprot.writeStructEnd();
18939       }
18940
18941     }
18942
18943     private static class disableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
18944       public disableGracefulRestart_argsTupleScheme getScheme() {
18945         return new disableGracefulRestart_argsTupleScheme();
18946       }
18947     }
18948
18949     private static class disableGracefulRestart_argsTupleScheme extends TupleScheme<disableGracefulRestart_args> {
18950
18951       @Override
18952       public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
18953         TTupleProtocol oprot = (TTupleProtocol) prot;
18954       }
18955
18956       @Override
18957       public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
18958         TTupleProtocol iprot = (TTupleProtocol) prot;
18959       }
18960     }
18961
18962   }
18963
18964   public static class disableGracefulRestart_result implements org.apache.thrift.TBase<disableGracefulRestart_result, disableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_result>   {
18965     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_result");
18966
18967     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);
18968
18969     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18970     static {
18971       schemes.put(StandardScheme.class, new disableGracefulRestart_resultStandardSchemeFactory());
18972       schemes.put(TupleScheme.class, new disableGracefulRestart_resultTupleSchemeFactory());
18973     }
18974
18975     public int success; // required
18976
18977     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18978     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18979       SUCCESS((short)0, "success");
18980
18981       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18982
18983       static {
18984         for (_Fields field : EnumSet.allOf(_Fields.class)) {
18985           byName.put(field.getFieldName(), field);
18986         }
18987       }
18988
18989       /**
18990        * Find the _Fields constant that matches fieldId, or null if its not found.
18991        */
18992       public static _Fields findByThriftId(int fieldId) {
18993         switch(fieldId) {
18994           case 0: // SUCCESS
18995             return SUCCESS;
18996           default:
18997             return null;
18998         }
18999       }
19000
19001       /**
19002        * Find the _Fields constant that matches fieldId, throwing an exception
19003        * if it is not found.
19004        */
19005       public static _Fields findByThriftIdOrThrow(int fieldId) {
19006         _Fields fields = findByThriftId(fieldId);
19007         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19008         return fields;
19009       }
19010
19011       /**
19012        * Find the _Fields constant that matches name, or null if its not found.
19013        */
19014       public static _Fields findByName(String name) {
19015         return byName.get(name);
19016       }
19017
19018       private final short _thriftId;
19019       private final String _fieldName;
19020
19021       _Fields(short thriftId, String fieldName) {
19022         _thriftId = thriftId;
19023         _fieldName = fieldName;
19024       }
19025
19026       public short getThriftFieldId() {
19027         return _thriftId;
19028       }
19029
19030       public String getFieldName() {
19031         return _fieldName;
19032       }
19033     }
19034
19035     // isset id assignments
19036     private static final int __SUCCESS_ISSET_ID = 0;
19037     private byte __isset_bitfield = 0;
19038     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19039     static {
19040       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19041       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19042           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
19043       metaDataMap = Collections.unmodifiableMap(tmpMap);
19044       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_result.class, metaDataMap);
19045     }
19046
19047     public disableGracefulRestart_result() {
19048     }
19049
19050     public disableGracefulRestart_result(
19051       int success)
19052     {
19053       this();
19054       this.success = success;
19055       setSuccessIsSet(true);
19056     }
19057
19058     /**
19059      * Performs a deep copy on <i>other</i>.
19060      */
19061     public disableGracefulRestart_result(disableGracefulRestart_result other) {
19062       __isset_bitfield = other.__isset_bitfield;
19063       this.success = other.success;
19064     }
19065
19066     public disableGracefulRestart_result deepCopy() {
19067       return new disableGracefulRestart_result(this);
19068     }
19069
19070     @Override
19071     public void clear() {
19072       setSuccessIsSet(false);
19073       this.success = 0;
19074     }
19075
19076     public int getSuccess() {
19077       return this.success;
19078     }
19079
19080     public disableGracefulRestart_result setSuccess(int success) {
19081       this.success = success;
19082       setSuccessIsSet(true);
19083       return this;
19084     }
19085
19086     public void unsetSuccess() {
19087       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
19088     }
19089
19090     /** Returns true if field success is set (has been assigned a value) and false otherwise */
19091     public boolean isSetSuccess() {
19092       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
19093     }
19094
19095     public void setSuccessIsSet(boolean value) {
19096       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
19097     }
19098
19099     public void setFieldValue(_Fields field, Object value) {
19100       switch (field) {
19101       case SUCCESS:
19102         if (value == null) {
19103           unsetSuccess();
19104         } else {
19105           setSuccess((Integer)value);
19106         }
19107         break;
19108
19109       }
19110     }
19111
19112     public Object getFieldValue(_Fields field) {
19113       switch (field) {
19114       case SUCCESS:
19115         return Integer.valueOf(getSuccess());
19116
19117       }
19118       throw new IllegalStateException();
19119     }
19120
19121     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19122     public boolean isSet(_Fields field) {
19123       if (field == null) {
19124         throw new IllegalArgumentException();
19125       }
19126
19127       switch (field) {
19128       case SUCCESS:
19129         return isSetSuccess();
19130       }
19131       throw new IllegalStateException();
19132     }
19133
19134     @Override
19135     public boolean equals(Object that) {
19136       if (that == null)
19137         return false;
19138       if (that instanceof disableGracefulRestart_result)
19139         return this.equals((disableGracefulRestart_result)that);
19140       return false;
19141     }
19142
19143     public boolean equals(disableGracefulRestart_result that) {
19144       if (that == null)
19145         return false;
19146
19147       boolean this_present_success = true;
19148       boolean that_present_success = true;
19149       if (this_present_success || that_present_success) {
19150         if (!(this_present_success && that_present_success))
19151           return false;
19152         if (this.success != that.success)
19153           return false;
19154       }
19155
19156       return true;
19157     }
19158
19159     @Override
19160     public int hashCode() {
19161       return 0;
19162     }
19163
19164     @Override
19165     public int compareTo(disableGracefulRestart_result other) {
19166       if (!getClass().equals(other.getClass())) {
19167         return getClass().getName().compareTo(other.getClass().getName());
19168       }
19169
19170       int lastComparison = 0;
19171
19172       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
19173       if (lastComparison != 0) {
19174         return lastComparison;
19175       }
19176       if (isSetSuccess()) {
19177         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
19178         if (lastComparison != 0) {
19179           return lastComparison;
19180         }
19181       }
19182       return 0;
19183     }
19184
19185     public _Fields fieldForId(int fieldId) {
19186       return _Fields.findByThriftId(fieldId);
19187     }
19188
19189     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19190       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19191     }
19192
19193     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19194       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19195       }
19196
19197     @Override
19198     public String toString() {
19199       StringBuilder sb = new StringBuilder("disableGracefulRestart_result(");
19200       boolean first = true;
19201
19202       sb.append("success:");
19203       sb.append(this.success);
19204       first = false;
19205       sb.append(")");
19206       return sb.toString();
19207     }
19208
19209     public void validate() throws org.apache.thrift.TException {
19210       // check for required fields
19211       // check for sub-struct validity
19212     }
19213
19214     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19215       try {
19216         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19217       } catch (org.apache.thrift.TException te) {
19218         throw new java.io.IOException(te);
19219       }
19220     }
19221
19222     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19223       try {
19224         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19225         __isset_bitfield = 0;
19226         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19227       } catch (org.apache.thrift.TException te) {
19228         throw new java.io.IOException(te);
19229       }
19230     }
19231
19232     private static class disableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
19233       public disableGracefulRestart_resultStandardScheme getScheme() {
19234         return new disableGracefulRestart_resultStandardScheme();
19235       }
19236     }
19237
19238     private static class disableGracefulRestart_resultStandardScheme extends StandardScheme<disableGracefulRestart_result> {
19239
19240       public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
19241         org.apache.thrift.protocol.TField schemeField;
19242         iprot.readStructBegin();
19243         while (true)
19244         {
19245           schemeField = iprot.readFieldBegin();
19246           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
19247             break;
19248           }
19249           switch (schemeField.id) {
19250             case 0: // SUCCESS
19251               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
19252                 struct.success = iprot.readI32();
19253                 struct.setSuccessIsSet(true);
19254               } else { 
19255                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19256               }
19257               break;
19258             default:
19259               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19260           }
19261           iprot.readFieldEnd();
19262         }
19263         iprot.readStructEnd();
19264
19265         // check for required fields of primitive type, which can't be checked in the validate method
19266         struct.validate();
19267       }
19268
19269       public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
19270         struct.validate();
19271
19272         oprot.writeStructBegin(STRUCT_DESC);
19273         if (struct.isSetSuccess()) {
19274           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19275           oprot.writeI32(struct.success);
19276           oprot.writeFieldEnd();
19277         }
19278         oprot.writeFieldStop();
19279         oprot.writeStructEnd();
19280       }
19281
19282     }
19283
19284     private static class disableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
19285       public disableGracefulRestart_resultTupleScheme getScheme() {
19286         return new disableGracefulRestart_resultTupleScheme();
19287       }
19288     }
19289
19290     private static class disableGracefulRestart_resultTupleScheme extends TupleScheme<disableGracefulRestart_result> {
19291
19292       @Override
19293       public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
19294         TTupleProtocol oprot = (TTupleProtocol) prot;
19295         BitSet optionals = new BitSet();
19296         if (struct.isSetSuccess()) {
19297           optionals.set(0);
19298         }
19299         oprot.writeBitSet(optionals, 1);
19300         if (struct.isSetSuccess()) {
19301           oprot.writeI32(struct.success);
19302         }
19303       }
19304
19305       @Override
19306       public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
19307         TTupleProtocol iprot = (TTupleProtocol) prot;
19308         BitSet incoming = iprot.readBitSet(1);
19309         if (incoming.get(0)) {
19310           struct.success = iprot.readI32();
19311           struct.setSuccessIsSet(true);
19312         }
19313       }
19314     }
19315
19316   }
19317
19318   public static class getRoutes_args implements org.apache.thrift.TBase<getRoutes_args, getRoutes_args._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_args>   {
19319     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_args");
19320
19321     private static final org.apache.thrift.protocol.TField P_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("p_type", org.apache.thrift.protocol.TType.I32, (short)1);
19322     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)2);
19323     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)3);
19324
19325     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19326     static {
19327       schemes.put(StandardScheme.class, new getRoutes_argsStandardSchemeFactory());
19328       schemes.put(TupleScheme.class, new getRoutes_argsTupleSchemeFactory());
19329     }
19330
19331     /**
19332      * 
19333      * @see protocol_type
19334      */
19335     public protocol_type p_type; // required
19336     public int optype; // required
19337     public int winSize; // required
19338
19339     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19340     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19341       /**
19342        * 
19343        * @see protocol_type
19344        */
19345       P_TYPE((short)1, "p_type"),
19346       OPTYPE((short)2, "optype"),
19347       WIN_SIZE((short)3, "winSize");
19348
19349       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19350
19351       static {
19352         for (_Fields field : EnumSet.allOf(_Fields.class)) {
19353           byName.put(field.getFieldName(), field);
19354         }
19355       }
19356
19357       /**
19358        * Find the _Fields constant that matches fieldId, or null if its not found.
19359        */
19360       public static _Fields findByThriftId(int fieldId) {
19361         switch(fieldId) {
19362           case 1: // P_TYPE
19363             return P_TYPE;
19364           case 2: // OPTYPE
19365             return OPTYPE;
19366           case 3: // WIN_SIZE
19367             return WIN_SIZE;
19368           default:
19369             return null;
19370         }
19371       }
19372
19373       /**
19374        * Find the _Fields constant that matches fieldId, throwing an exception
19375        * if it is not found.
19376        */
19377       public static _Fields findByThriftIdOrThrow(int fieldId) {
19378         _Fields fields = findByThriftId(fieldId);
19379         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19380         return fields;
19381       }
19382
19383       /**
19384        * Find the _Fields constant that matches name, or null if its not found.
19385        */
19386       public static _Fields findByName(String name) {
19387         return byName.get(name);
19388       }
19389
19390       private final short _thriftId;
19391       private final String _fieldName;
19392
19393       _Fields(short thriftId, String fieldName) {
19394         _thriftId = thriftId;
19395         _fieldName = fieldName;
19396       }
19397
19398       public short getThriftFieldId() {
19399         return _thriftId;
19400       }
19401
19402       public String getFieldName() {
19403         return _fieldName;
19404       }
19405     }
19406
19407     // isset id assignments
19408     private static final int __OPTYPE_ISSET_ID = 0;
19409     private static final int __WINSIZE_ISSET_ID = 1;
19410     private byte __isset_bitfield = 0;
19411     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19412     static {
19413       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19414       tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19415           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
19416       tmpMap.put(_Fields.OPTYPE, new org.apache.thrift.meta_data.FieldMetaData("optype", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19417           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
19418       tmpMap.put(_Fields.WIN_SIZE, new org.apache.thrift.meta_data.FieldMetaData("winSize", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19419           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
19420       metaDataMap = Collections.unmodifiableMap(tmpMap);
19421       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_args.class, metaDataMap);
19422     }
19423
19424     public getRoutes_args() {
19425     }
19426
19427     public getRoutes_args(
19428       protocol_type p_type,
19429       int optype,
19430       int winSize)
19431     {
19432       this();
19433       this.p_type = p_type;
19434       this.optype = optype;
19435       setOptypeIsSet(true);
19436       this.winSize = winSize;
19437       setWinSizeIsSet(true);
19438     }
19439
19440     /**
19441      * Performs a deep copy on <i>other</i>.
19442      */
19443     public getRoutes_args(getRoutes_args other) {
19444       __isset_bitfield = other.__isset_bitfield;
19445       if (other.isSetP_type()) {
19446         this.p_type = other.p_type;
19447       }
19448       this.optype = other.optype;
19449       this.winSize = other.winSize;
19450     }
19451
19452     public getRoutes_args deepCopy() {
19453       return new getRoutes_args(this);
19454     }
19455
19456     @Override
19457     public void clear() {
19458       this.p_type = null;
19459       setOptypeIsSet(false);
19460       this.optype = 0;
19461       setWinSizeIsSet(false);
19462       this.winSize = 0;
19463     }
19464
19465     /**
19466      * 
19467      * @see protocol_type
19468      */
19469     public protocol_type getP_type() {
19470       return this.p_type;
19471     }
19472
19473     /**
19474      * 
19475      * @see protocol_type
19476      */
19477     public getRoutes_args setP_type(protocol_type p_type) {
19478       this.p_type = p_type;
19479       return this;
19480     }
19481
19482     public void unsetP_type() {
19483       this.p_type = null;
19484     }
19485
19486     /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
19487     public boolean isSetP_type() {
19488       return this.p_type != null;
19489     }
19490
19491     public void setP_typeIsSet(boolean value) {
19492       if (!value) {
19493         this.p_type = null;
19494       }
19495     }
19496
19497     public int getOptype() {
19498       return this.optype;
19499     }
19500
19501     public getRoutes_args setOptype(int optype) {
19502       this.optype = optype;
19503       setOptypeIsSet(true);
19504       return this;
19505     }
19506
19507     public void unsetOptype() {
19508       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OPTYPE_ISSET_ID);
19509     }
19510
19511     /** Returns true if field optype is set (has been assigned a value) and false otherwise */
19512     public boolean isSetOptype() {
19513       return EncodingUtils.testBit(__isset_bitfield, __OPTYPE_ISSET_ID);
19514     }
19515
19516     public void setOptypeIsSet(boolean value) {
19517       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OPTYPE_ISSET_ID, value);
19518     }
19519
19520     public int getWinSize() {
19521       return this.winSize;
19522     }
19523
19524     public getRoutes_args setWinSize(int winSize) {
19525       this.winSize = winSize;
19526       setWinSizeIsSet(true);
19527       return this;
19528     }
19529
19530     public void unsetWinSize() {
19531       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WINSIZE_ISSET_ID);
19532     }
19533
19534     /** Returns true if field winSize is set (has been assigned a value) and false otherwise */
19535     public boolean isSetWinSize() {
19536       return EncodingUtils.testBit(__isset_bitfield, __WINSIZE_ISSET_ID);
19537     }
19538
19539     public void setWinSizeIsSet(boolean value) {
19540       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WINSIZE_ISSET_ID, value);
19541     }
19542
19543     public void setFieldValue(_Fields field, Object value) {
19544       switch (field) {
19545       case P_TYPE:
19546         if (value == null) {
19547           unsetP_type();
19548         } else {
19549           setP_type((protocol_type)value);
19550         }
19551         break;
19552
19553       case OPTYPE:
19554         if (value == null) {
19555           unsetOptype();
19556         } else {
19557           setOptype((Integer)value);
19558         }
19559         break;
19560
19561       case WIN_SIZE:
19562         if (value == null) {
19563           unsetWinSize();
19564         } else {
19565           setWinSize((Integer)value);
19566         }
19567         break;
19568
19569       }
19570     }
19571
19572     public Object getFieldValue(_Fields field) {
19573       switch (field) {
19574       case P_TYPE:
19575         return getP_type();
19576
19577       case OPTYPE:
19578         return Integer.valueOf(getOptype());
19579
19580       case WIN_SIZE:
19581         return Integer.valueOf(getWinSize());
19582
19583       }
19584       throw new IllegalStateException();
19585     }
19586
19587     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19588     public boolean isSet(_Fields field) {
19589       if (field == null) {
19590         throw new IllegalArgumentException();
19591       }
19592
19593       switch (field) {
19594       case P_TYPE:
19595         return isSetP_type();
19596       case OPTYPE:
19597         return isSetOptype();
19598       case WIN_SIZE:
19599         return isSetWinSize();
19600       }
19601       throw new IllegalStateException();
19602     }
19603
19604     @Override
19605     public boolean equals(Object that) {
19606       if (that == null)
19607         return false;
19608       if (that instanceof getRoutes_args)
19609         return this.equals((getRoutes_args)that);
19610       return false;
19611     }
19612
19613     public boolean equals(getRoutes_args that) {
19614       if (that == null)
19615         return false;
19616
19617       boolean this_present_p_type = true && this.isSetP_type();
19618       boolean that_present_p_type = true && that.isSetP_type();
19619       if (this_present_p_type || that_present_p_type) {
19620         if (!(this_present_p_type && that_present_p_type))
19621           return false;
19622         if (!this.p_type.equals(that.p_type))
19623           return false;
19624       }
19625
19626       boolean this_present_optype = true;
19627       boolean that_present_optype = true;
19628       if (this_present_optype || that_present_optype) {
19629         if (!(this_present_optype && that_present_optype))
19630           return false;
19631         if (this.optype != that.optype)
19632           return false;
19633       }
19634
19635       boolean this_present_winSize = true;
19636       boolean that_present_winSize = true;
19637       if (this_present_winSize || that_present_winSize) {
19638         if (!(this_present_winSize && that_present_winSize))
19639           return false;
19640         if (this.winSize != that.winSize)
19641           return false;
19642       }
19643
19644       return true;
19645     }
19646
19647     @Override
19648     public int hashCode() {
19649       return 0;
19650     }
19651
19652     @Override
19653     public int compareTo(getRoutes_args other) {
19654       if (!getClass().equals(other.getClass())) {
19655         return getClass().getName().compareTo(other.getClass().getName());
19656       }
19657
19658       int lastComparison = 0;
19659
19660       lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
19661       if (lastComparison != 0) {
19662         return lastComparison;
19663       }
19664       if (isSetP_type()) {
19665         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
19666         if (lastComparison != 0) {
19667           return lastComparison;
19668         }
19669       }
19670       lastComparison = Boolean.valueOf(isSetOptype()).compareTo(other.isSetOptype());
19671       if (lastComparison != 0) {
19672         return lastComparison;
19673       }
19674       if (isSetOptype()) {
19675         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.optype, other.optype);
19676         if (lastComparison != 0) {
19677           return lastComparison;
19678         }
19679       }
19680       lastComparison = Boolean.valueOf(isSetWinSize()).compareTo(other.isSetWinSize());
19681       if (lastComparison != 0) {
19682         return lastComparison;
19683       }
19684       if (isSetWinSize()) {
19685         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.winSize, other.winSize);
19686         if (lastComparison != 0) {
19687           return lastComparison;
19688         }
19689       }
19690       return 0;
19691     }
19692
19693     public _Fields fieldForId(int fieldId) {
19694       return _Fields.findByThriftId(fieldId);
19695     }
19696
19697     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19698       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19699     }
19700
19701     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19702       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19703     }
19704
19705     @Override
19706     public String toString() {
19707       StringBuilder sb = new StringBuilder("getRoutes_args(");
19708       boolean first = true;
19709
19710       sb.append("p_type:");
19711       if (this.p_type == null) {
19712         sb.append("null");
19713       } else {
19714         sb.append(this.p_type);
19715       }
19716       first = false;
19717       if (!first) sb.append(", ");
19718       sb.append("optype:");
19719       sb.append(this.optype);
19720       first = false;
19721       if (!first) sb.append(", ");
19722       sb.append("winSize:");
19723       sb.append(this.winSize);
19724       first = false;
19725       sb.append(")");
19726       return sb.toString();
19727     }
19728
19729     public void validate() throws org.apache.thrift.TException {
19730       // check for required fields
19731       // check for sub-struct validity
19732     }
19733
19734     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19735       try {
19736         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19737       } catch (org.apache.thrift.TException te) {
19738         throw new java.io.IOException(te);
19739       }
19740     }
19741
19742     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19743       try {
19744         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19745         __isset_bitfield = 0;
19746         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19747       } catch (org.apache.thrift.TException te) {
19748         throw new java.io.IOException(te);
19749       }
19750     }
19751
19752     private static class getRoutes_argsStandardSchemeFactory implements SchemeFactory {
19753       public getRoutes_argsStandardScheme getScheme() {
19754         return new getRoutes_argsStandardScheme();
19755       }
19756     }
19757
19758     private static class getRoutes_argsStandardScheme extends StandardScheme<getRoutes_args> {
19759
19760       public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_args struct) throws org.apache.thrift.TException {
19761         org.apache.thrift.protocol.TField schemeField;
19762         iprot.readStructBegin();
19763         while (true)
19764         {
19765           schemeField = iprot.readFieldBegin();
19766           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
19767             break;
19768           }
19769           switch (schemeField.id) {
19770             case 1: // P_TYPE
19771               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
19772                 struct.p_type = protocol_type.findByValue(iprot.readI32());
19773                 struct.setP_typeIsSet(true);
19774               } else { 
19775                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19776               }
19777               break;
19778             case 2: // OPTYPE
19779               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
19780                 struct.optype = iprot.readI32();
19781                 struct.setOptypeIsSet(true);
19782               } else { 
19783                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19784               }
19785               break;
19786             case 3: // WIN_SIZE
19787               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
19788                 struct.winSize = iprot.readI32();
19789                 struct.setWinSizeIsSet(true);
19790               } else { 
19791                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19792               }
19793               break;
19794             default:
19795               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19796           }
19797           iprot.readFieldEnd();
19798         }
19799         iprot.readStructEnd();
19800
19801         // check for required fields of primitive type, which can't be checked in the validate method
19802         struct.validate();
19803       }
19804
19805       public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_args struct) throws org.apache.thrift.TException {
19806         struct.validate();
19807
19808         oprot.writeStructBegin(STRUCT_DESC);
19809         if (struct.p_type != null) {
19810           oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
19811           oprot.writeI32(struct.p_type.getValue());
19812           oprot.writeFieldEnd();
19813         }
19814         oprot.writeFieldBegin(OPTYPE_FIELD_DESC);
19815         oprot.writeI32(struct.optype);
19816         oprot.writeFieldEnd();
19817         oprot.writeFieldBegin(WIN_SIZE_FIELD_DESC);
19818         oprot.writeI32(struct.winSize);
19819         oprot.writeFieldEnd();
19820         oprot.writeFieldStop();
19821         oprot.writeStructEnd();
19822       }
19823
19824     }
19825
19826     private static class getRoutes_argsTupleSchemeFactory implements SchemeFactory {
19827       public getRoutes_argsTupleScheme getScheme() {
19828         return new getRoutes_argsTupleScheme();
19829       }
19830     }
19831
19832     private static class getRoutes_argsTupleScheme extends TupleScheme<getRoutes_args> {
19833
19834       @Override
19835       public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
19836         TTupleProtocol oprot = (TTupleProtocol) prot;
19837         BitSet optionals = new BitSet();
19838         if (struct.isSetP_type()) {
19839           optionals.set(0);
19840         }
19841         if (struct.isSetOptype()) {
19842           optionals.set(1);
19843         }
19844         if (struct.isSetWinSize()) {
19845           optionals.set(2);
19846         }
19847         oprot.writeBitSet(optionals, 3);
19848         if (struct.isSetP_type()) {
19849           oprot.writeI32(struct.p_type.getValue());
19850         }
19851         if (struct.isSetOptype()) {
19852           oprot.writeI32(struct.optype);
19853         }
19854         if (struct.isSetWinSize()) {
19855           oprot.writeI32(struct.winSize);
19856         }
19857       }
19858
19859       @Override
19860       public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
19861         TTupleProtocol iprot = (TTupleProtocol) prot;
19862         BitSet incoming = iprot.readBitSet(3);
19863         if (incoming.get(0)) {
19864           struct.p_type = protocol_type.findByValue(iprot.readI32());
19865           struct.setP_typeIsSet(true);
19866         }
19867         if (incoming.get(1)) {
19868           struct.optype = iprot.readI32();
19869           struct.setOptypeIsSet(true);
19870         }
19871         if (incoming.get(2)) {
19872           struct.winSize = iprot.readI32();
19873           struct.setWinSizeIsSet(true);
19874         }
19875       }
19876     }
19877
19878   }
19879
19880   public static class getRoutes_result implements org.apache.thrift.TBase<getRoutes_result, getRoutes_result._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_result>   {
19881     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_result");
19882
19883     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);
19884
19885     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19886     static {
19887       schemes.put(StandardScheme.class, new getRoutes_resultStandardSchemeFactory());
19888       schemes.put(TupleScheme.class, new getRoutes_resultTupleSchemeFactory());
19889     }
19890
19891     public Routes success; // required
19892
19893     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19894     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19895       SUCCESS((short)0, "success");
19896
19897       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19898
19899       static {
19900         for (_Fields field : EnumSet.allOf(_Fields.class)) {
19901           byName.put(field.getFieldName(), field);
19902         }
19903       }
19904
19905       /**
19906        * Find the _Fields constant that matches fieldId, or null if its not found.
19907        */
19908       public static _Fields findByThriftId(int fieldId) {
19909         switch(fieldId) {
19910           case 0: // SUCCESS
19911             return SUCCESS;
19912           default:
19913             return null;
19914         }
19915       }
19916
19917       /**
19918        * Find the _Fields constant that matches fieldId, throwing an exception
19919        * if it is not found.
19920        */
19921       public static _Fields findByThriftIdOrThrow(int fieldId) {
19922         _Fields fields = findByThriftId(fieldId);
19923         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19924         return fields;
19925       }
19926
19927       /**
19928        * Find the _Fields constant that matches name, or null if its not found.
19929        */
19930       public static _Fields findByName(String name) {
19931         return byName.get(name);
19932       }
19933
19934       private final short _thriftId;
19935       private final String _fieldName;
19936
19937       _Fields(short thriftId, String fieldName) {
19938         _thriftId = thriftId;
19939         _fieldName = fieldName;
19940       }
19941
19942       public short getThriftFieldId() {
19943         return _thriftId;
19944       }
19945
19946       public String getFieldName() {
19947         return _fieldName;
19948       }
19949     }
19950
19951     // isset id assignments
19952     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19953     static {
19954       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19955       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19956           new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Routes.class)));
19957       metaDataMap = Collections.unmodifiableMap(tmpMap);
19958       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_result.class, metaDataMap);
19959     }
19960
19961     public getRoutes_result() {
19962     }
19963
19964     public getRoutes_result(
19965       Routes success)
19966     {
19967       this();
19968       this.success = success;
19969     }
19970
19971     /**
19972      * Performs a deep copy on <i>other</i>.
19973      */
19974     public getRoutes_result(getRoutes_result other) {
19975       if (other.isSetSuccess()) {
19976         this.success = new Routes(other.success);
19977       }
19978     }
19979
19980     public getRoutes_result deepCopy() {
19981       return new getRoutes_result(this);
19982     }
19983
19984     @Override
19985     public void clear() {
19986       this.success = null;
19987     }
19988
19989     public Routes getSuccess() {
19990       return this.success;
19991     }
19992
19993     public getRoutes_result setSuccess(Routes success) {
19994       this.success = success;
19995       return this;
19996     }
19997
19998     public void unsetSuccess() {
19999       this.success = null;
20000     }
20001
20002     /** Returns true if field success is set (has been assigned a value) and false otherwise */
20003     public boolean isSetSuccess() {
20004       return this.success != null;
20005     }
20006
20007     public void setSuccessIsSet(boolean value) {
20008       if (!value) {
20009         this.success = null;
20010       }
20011     }
20012
20013     public void setFieldValue(_Fields field, Object value) {
20014       switch (field) {
20015       case SUCCESS:
20016         if (value == null) {
20017           unsetSuccess();
20018         } else {
20019           setSuccess((Routes)value);
20020         }
20021         break;
20022
20023       }
20024     }
20025
20026     public Object getFieldValue(_Fields field) {
20027       switch (field) {
20028       case SUCCESS:
20029         return getSuccess();
20030
20031       }
20032       throw new IllegalStateException();
20033     }
20034
20035     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20036     public boolean isSet(_Fields field) {
20037       if (field == null) {
20038         throw new IllegalArgumentException();
20039       }
20040
20041       switch (field) {
20042       case SUCCESS:
20043         return isSetSuccess();
20044       }
20045       throw new IllegalStateException();
20046     }
20047
20048     @Override
20049     public boolean equals(Object that) {
20050       if (that == null)
20051         return false;
20052       if (that instanceof getRoutes_result)
20053         return this.equals((getRoutes_result)that);
20054       return false;
20055     }
20056
20057     public boolean equals(getRoutes_result that) {
20058       if (that == null)
20059         return false;
20060
20061       boolean this_present_success = true && this.isSetSuccess();
20062       boolean that_present_success = true && that.isSetSuccess();
20063       if (this_present_success || that_present_success) {
20064         if (!(this_present_success && that_present_success))
20065           return false;
20066         if (!this.success.equals(that.success))
20067           return false;
20068       }
20069
20070       return true;
20071     }
20072
20073     @Override
20074     public int hashCode() {
20075       return 0;
20076     }
20077
20078     @Override
20079     public int compareTo(getRoutes_result other) {
20080       if (!getClass().equals(other.getClass())) {
20081         return getClass().getName().compareTo(other.getClass().getName());
20082       }
20083
20084       int lastComparison = 0;
20085
20086       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
20087       if (lastComparison != 0) {
20088         return lastComparison;
20089       }
20090       if (isSetSuccess()) {
20091         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
20092         if (lastComparison != 0) {
20093           return lastComparison;
20094         }
20095       }
20096       return 0;
20097     }
20098
20099     public _Fields fieldForId(int fieldId) {
20100       return _Fields.findByThriftId(fieldId);
20101     }
20102
20103     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20104       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20105     }
20106
20107     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20108       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20109       }
20110
20111     @Override
20112     public String toString() {
20113       StringBuilder sb = new StringBuilder("getRoutes_result(");
20114       boolean first = true;
20115
20116       sb.append("success:");
20117       if (this.success == null) {
20118         sb.append("null");
20119       } else {
20120         sb.append(this.success);
20121       }
20122       first = false;
20123       sb.append(")");
20124       return sb.toString();
20125     }
20126
20127     public void validate() throws org.apache.thrift.TException {
20128       // check for required fields
20129       // check for sub-struct validity
20130       if (success != null) {
20131         success.validate();
20132       }
20133     }
20134
20135     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20136       try {
20137         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20138       } catch (org.apache.thrift.TException te) {
20139         throw new java.io.IOException(te);
20140       }
20141     }
20142
20143     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20144       try {
20145         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20146       } catch (org.apache.thrift.TException te) {
20147         throw new java.io.IOException(te);
20148       }
20149     }
20150
20151     private static class getRoutes_resultStandardSchemeFactory implements SchemeFactory {
20152       public getRoutes_resultStandardScheme getScheme() {
20153         return new getRoutes_resultStandardScheme();
20154       }
20155     }
20156
20157     private static class getRoutes_resultStandardScheme extends StandardScheme<getRoutes_result> {
20158
20159       public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_result struct) throws org.apache.thrift.TException {
20160         org.apache.thrift.protocol.TField schemeField;
20161         iprot.readStructBegin();
20162         while (true)
20163         {
20164           schemeField = iprot.readFieldBegin();
20165           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
20166             break;
20167           }
20168           switch (schemeField.id) {
20169             case 0: // SUCCESS
20170               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
20171                 struct.success = new Routes();
20172                 struct.success.read(iprot);
20173                 struct.setSuccessIsSet(true);
20174               } else { 
20175                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20176               }
20177               break;
20178             default:
20179               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20180           }
20181           iprot.readFieldEnd();
20182         }
20183         iprot.readStructEnd();
20184
20185         // check for required fields of primitive type, which can't be checked in the validate method
20186         struct.validate();
20187       }
20188
20189       public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_result struct) throws org.apache.thrift.TException {
20190         struct.validate();
20191
20192         oprot.writeStructBegin(STRUCT_DESC);
20193         if (struct.success != null) {
20194           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20195           struct.success.write(oprot);
20196           oprot.writeFieldEnd();
20197         }
20198         oprot.writeFieldStop();
20199         oprot.writeStructEnd();
20200       }
20201
20202     }
20203
20204     private static class getRoutes_resultTupleSchemeFactory implements SchemeFactory {
20205       public getRoutes_resultTupleScheme getScheme() {
20206         return new getRoutes_resultTupleScheme();
20207       }
20208     }
20209
20210     private static class getRoutes_resultTupleScheme extends TupleScheme<getRoutes_result> {
20211
20212       @Override
20213       public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
20214         TTupleProtocol oprot = (TTupleProtocol) prot;
20215         BitSet optionals = new BitSet();
20216         if (struct.isSetSuccess()) {
20217           optionals.set(0);
20218         }
20219         oprot.writeBitSet(optionals, 1);
20220         if (struct.isSetSuccess()) {
20221           struct.success.write(oprot);
20222         }
20223       }
20224
20225       @Override
20226       public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
20227         TTupleProtocol iprot = (TTupleProtocol) prot;
20228         BitSet incoming = iprot.readBitSet(1);
20229         if (incoming.get(0)) {
20230           struct.success = new Routes();
20231           struct.success.read(iprot);
20232           struct.setSuccessIsSet(true);
20233         }
20234       }
20235     }
20236
20237   }
20238
20239   public static class enableMultipath_args implements org.apache.thrift.TBase<enableMultipath_args, enableMultipath_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableMultipath_args>   {
20240     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableMultipath_args");
20241
20242     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)1);
20243     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)2);
20244
20245     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20246     static {
20247       schemes.put(StandardScheme.class, new enableMultipath_argsStandardSchemeFactory());
20248       schemes.put(TupleScheme.class, new enableMultipath_argsTupleSchemeFactory());
20249     }
20250
20251     /**
20252      * 
20253      * @see af_afi
20254      */
20255     public af_afi afi; // required
20256     /**
20257      * 
20258      * @see af_safi
20259      */
20260     public af_safi safi; // required
20261
20262     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20263     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20264       /**
20265        * 
20266        * @see af_afi
20267        */
20268       AFI((short)1, "afi"),
20269       /**
20270        * 
20271        * @see af_safi
20272        */
20273       SAFI((short)2, "safi");
20274
20275       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20276
20277       static {
20278         for (_Fields field : EnumSet.allOf(_Fields.class)) {
20279           byName.put(field.getFieldName(), field);
20280         }
20281       }
20282
20283       /**
20284        * Find the _Fields constant that matches fieldId, or null if its not found.
20285        */
20286       public static _Fields findByThriftId(int fieldId) {
20287         switch(fieldId) {
20288           case 1: // AFI
20289             return AFI;
20290           case 2: // SAFI
20291             return SAFI;
20292           default:
20293             return null;
20294         }
20295       }
20296
20297       /**
20298        * Find the _Fields constant that matches fieldId, throwing an exception
20299        * if it is not found.
20300        */
20301       public static _Fields findByThriftIdOrThrow(int fieldId) {
20302         _Fields fields = findByThriftId(fieldId);
20303         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20304         return fields;
20305       }
20306
20307       /**
20308        * Find the _Fields constant that matches name, or null if its not found.
20309        */
20310       public static _Fields findByName(String name) {
20311         return byName.get(name);
20312       }
20313
20314       private final short _thriftId;
20315       private final String _fieldName;
20316
20317       _Fields(short thriftId, String fieldName) {
20318         _thriftId = thriftId;
20319         _fieldName = fieldName;
20320       }
20321
20322       public short getThriftFieldId() {
20323         return _thriftId;
20324       }
20325
20326       public String getFieldName() {
20327         return _fieldName;
20328       }
20329     }
20330
20331     // isset id assignments
20332     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20333     static {
20334       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20335       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20336           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
20337       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20338           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
20339       metaDataMap = Collections.unmodifiableMap(tmpMap);
20340       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableMultipath_args.class, metaDataMap);
20341     }
20342
20343     public enableMultipath_args() {
20344     }
20345
20346     public enableMultipath_args(
20347       af_afi afi,
20348       af_safi safi)
20349     {
20350       this();
20351       this.afi = afi;
20352       this.safi = safi;
20353     }
20354
20355     /**
20356      * Performs a deep copy on <i>other</i>.
20357      */
20358     public enableMultipath_args(enableMultipath_args other) {
20359       if (other.isSetAfi()) {
20360         this.afi = other.afi;
20361       }
20362       if (other.isSetSafi()) {
20363         this.safi = other.safi;
20364       }
20365     }
20366
20367     public enableMultipath_args deepCopy() {
20368       return new enableMultipath_args(this);
20369     }
20370
20371     @Override
20372     public void clear() {
20373       this.afi = null;
20374       this.safi = null;
20375     }
20376
20377     /**
20378      * 
20379      * @see af_afi
20380      */
20381     public af_afi getAfi() {
20382       return this.afi;
20383     }
20384
20385     /**
20386      * 
20387      * @see af_afi
20388      */
20389     public enableMultipath_args setAfi(af_afi afi) {
20390       this.afi = afi;
20391       return this;
20392     }
20393
20394     public void unsetAfi() {
20395       this.afi = null;
20396     }
20397
20398     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
20399     public boolean isSetAfi() {
20400       return this.afi != null;
20401     }
20402
20403     public void setAfiIsSet(boolean value) {
20404       if (!value) {
20405         this.afi = null;
20406       }
20407     }
20408
20409     /**
20410      * 
20411      * @see af_safi
20412      */
20413     public af_safi getSafi() {
20414       return this.safi;
20415     }
20416
20417     /**
20418      * 
20419      * @see af_safi
20420      */
20421     public enableMultipath_args setSafi(af_safi safi) {
20422       this.safi = safi;
20423       return this;
20424     }
20425
20426     public void unsetSafi() {
20427       this.safi = null;
20428     }
20429
20430     /** Returns true if field safi is set (has been assigned a value) and false otherwise */
20431     public boolean isSetSafi() {
20432       return this.safi != null;
20433     }
20434
20435     public void setSafiIsSet(boolean value) {
20436       if (!value) {
20437         this.safi = null;
20438       }
20439     }
20440
20441     public void setFieldValue(_Fields field, Object value) {
20442       switch (field) {
20443       case AFI:
20444         if (value == null) {
20445           unsetAfi();
20446         } else {
20447           setAfi((af_afi)value);
20448         }
20449         break;
20450
20451       case SAFI:
20452         if (value == null) {
20453           unsetSafi();
20454         } else {
20455           setSafi((af_safi)value);
20456         }
20457         break;
20458
20459       }
20460     }
20461
20462     public Object getFieldValue(_Fields field) {
20463       switch (field) {
20464       case AFI:
20465         return getAfi();
20466
20467       case SAFI:
20468         return getSafi();
20469
20470       }
20471       throw new IllegalStateException();
20472     }
20473
20474     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20475     public boolean isSet(_Fields field) {
20476       if (field == null) {
20477         throw new IllegalArgumentException();
20478       }
20479
20480       switch (field) {
20481       case AFI:
20482         return isSetAfi();
20483       case SAFI:
20484         return isSetSafi();
20485       }
20486       throw new IllegalStateException();
20487     }
20488
20489     @Override
20490     public boolean equals(Object that) {
20491       if (that == null)
20492         return false;
20493       if (that instanceof enableMultipath_args)
20494         return this.equals((enableMultipath_args)that);
20495       return false;
20496     }
20497
20498     public boolean equals(enableMultipath_args that) {
20499       if (that == null)
20500         return false;
20501
20502       boolean this_present_afi = true && this.isSetAfi();
20503       boolean that_present_afi = true && that.isSetAfi();
20504       if (this_present_afi || that_present_afi) {
20505         if (!(this_present_afi && that_present_afi))
20506           return false;
20507         if (!this.afi.equals(that.afi))
20508           return false;
20509       }
20510
20511       boolean this_present_safi = true && this.isSetSafi();
20512       boolean that_present_safi = true && that.isSetSafi();
20513       if (this_present_safi || that_present_safi) {
20514         if (!(this_present_safi && that_present_safi))
20515           return false;
20516         if (!this.safi.equals(that.safi))
20517           return false;
20518       }
20519
20520       return true;
20521     }
20522
20523     @Override
20524     public int hashCode() {
20525       return 0;
20526     }
20527
20528     @Override
20529     public int compareTo(enableMultipath_args other) {
20530       if (!getClass().equals(other.getClass())) {
20531         return getClass().getName().compareTo(other.getClass().getName());
20532       }
20533
20534       int lastComparison = 0;
20535
20536       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
20537       if (lastComparison != 0) {
20538         return lastComparison;
20539       }
20540       if (isSetAfi()) {
20541         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
20542         if (lastComparison != 0) {
20543           return lastComparison;
20544         }
20545       }
20546       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
20547       if (lastComparison != 0) {
20548         return lastComparison;
20549       }
20550       if (isSetSafi()) {
20551         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
20552         if (lastComparison != 0) {
20553           return lastComparison;
20554         }
20555       }
20556       return 0;
20557     }
20558
20559     public _Fields fieldForId(int fieldId) {
20560       return _Fields.findByThriftId(fieldId);
20561     }
20562
20563     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20564       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20565     }
20566
20567     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20568       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20569     }
20570
20571     @Override
20572     public String toString() {
20573       StringBuilder sb = new StringBuilder("enableMultipath_args(");
20574       boolean first = true;
20575
20576       sb.append("afi:");
20577       if (this.afi == null) {
20578         sb.append("null");
20579       } else {
20580         sb.append(this.afi);
20581       }
20582       first = false;
20583       if (!first) sb.append(", ");
20584       sb.append("safi:");
20585       if (this.safi == null) {
20586         sb.append("null");
20587       } else {
20588         sb.append(this.safi);
20589       }
20590       first = false;
20591       sb.append(")");
20592       return sb.toString();
20593     }
20594
20595     public void validate() throws org.apache.thrift.TException {
20596       // check for required fields
20597       // check for sub-struct validity
20598     }
20599
20600     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20601       try {
20602         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20603       } catch (org.apache.thrift.TException te) {
20604         throw new java.io.IOException(te);
20605       }
20606     }
20607
20608     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20609       try {
20610         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20611       } catch (org.apache.thrift.TException te) {
20612         throw new java.io.IOException(te);
20613       }
20614     }
20615
20616     private static class enableMultipath_argsStandardSchemeFactory implements SchemeFactory {
20617       public enableMultipath_argsStandardScheme getScheme() {
20618         return new enableMultipath_argsStandardScheme();
20619       }
20620     }
20621
20622     private static class enableMultipath_argsStandardScheme extends StandardScheme<enableMultipath_args> {
20623
20624       public void read(org.apache.thrift.protocol.TProtocol iprot, enableMultipath_args struct) throws org.apache.thrift.TException {
20625         org.apache.thrift.protocol.TField schemeField;
20626         iprot.readStructBegin();
20627         while (true)
20628         {
20629           schemeField = iprot.readFieldBegin();
20630           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
20631             break;
20632           }
20633           switch (schemeField.id) {
20634             case 1: // AFI
20635               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
20636                 struct.afi = af_afi.findByValue(iprot.readI32());
20637                 struct.setAfiIsSet(true);
20638               } else { 
20639                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20640               }
20641               break;
20642             case 2: // SAFI
20643               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
20644                 struct.safi = af_safi.findByValue(iprot.readI32());
20645                 struct.setSafiIsSet(true);
20646               } else { 
20647                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20648               }
20649               break;
20650             default:
20651               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20652           }
20653           iprot.readFieldEnd();
20654         }
20655         iprot.readStructEnd();
20656
20657         // check for required fields of primitive type, which can't be checked in the validate method
20658         struct.validate();
20659       }
20660
20661       public void write(org.apache.thrift.protocol.TProtocol oprot, enableMultipath_args struct) throws org.apache.thrift.TException {
20662         struct.validate();
20663
20664         oprot.writeStructBegin(STRUCT_DESC);
20665         if (struct.afi != null) {
20666           oprot.writeFieldBegin(AFI_FIELD_DESC);
20667           oprot.writeI32(struct.afi.getValue());
20668           oprot.writeFieldEnd();
20669         }
20670         if (struct.safi != null) {
20671           oprot.writeFieldBegin(SAFI_FIELD_DESC);
20672           oprot.writeI32(struct.safi.getValue());
20673           oprot.writeFieldEnd();
20674         }
20675         oprot.writeFieldStop();
20676         oprot.writeStructEnd();
20677       }
20678
20679     }
20680
20681     private static class enableMultipath_argsTupleSchemeFactory implements SchemeFactory {
20682       public enableMultipath_argsTupleScheme getScheme() {
20683         return new enableMultipath_argsTupleScheme();
20684       }
20685     }
20686
20687     private static class enableMultipath_argsTupleScheme extends TupleScheme<enableMultipath_args> {
20688
20689       @Override
20690       public void write(org.apache.thrift.protocol.TProtocol prot, enableMultipath_args struct) throws org.apache.thrift.TException {
20691         TTupleProtocol oprot = (TTupleProtocol) prot;
20692         BitSet optionals = new BitSet();
20693         if (struct.isSetAfi()) {
20694           optionals.set(0);
20695         }
20696         if (struct.isSetSafi()) {
20697           optionals.set(1);
20698         }
20699         oprot.writeBitSet(optionals, 2);
20700         if (struct.isSetAfi()) {
20701           oprot.writeI32(struct.afi.getValue());
20702         }
20703         if (struct.isSetSafi()) {
20704           oprot.writeI32(struct.safi.getValue());
20705         }
20706       }
20707
20708       @Override
20709       public void read(org.apache.thrift.protocol.TProtocol prot, enableMultipath_args struct) throws org.apache.thrift.TException {
20710         TTupleProtocol iprot = (TTupleProtocol) prot;
20711         BitSet incoming = iprot.readBitSet(2);
20712         if (incoming.get(0)) {
20713           struct.afi = af_afi.findByValue(iprot.readI32());
20714           struct.setAfiIsSet(true);
20715         }
20716         if (incoming.get(1)) {
20717           struct.safi = af_safi.findByValue(iprot.readI32());
20718           struct.setSafiIsSet(true);
20719         }
20720       }
20721     }
20722
20723   }
20724
20725   public static class enableMultipath_result implements org.apache.thrift.TBase<enableMultipath_result, enableMultipath_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableMultipath_result>   {
20726     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableMultipath_result");
20727
20728     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);
20729
20730     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20731     static {
20732       schemes.put(StandardScheme.class, new enableMultipath_resultStandardSchemeFactory());
20733       schemes.put(TupleScheme.class, new enableMultipath_resultTupleSchemeFactory());
20734     }
20735
20736     public int success; // required
20737
20738     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20739     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20740       SUCCESS((short)0, "success");
20741
20742       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20743
20744       static {
20745         for (_Fields field : EnumSet.allOf(_Fields.class)) {
20746           byName.put(field.getFieldName(), field);
20747         }
20748       }
20749
20750       /**
20751        * Find the _Fields constant that matches fieldId, or null if its not found.
20752        */
20753       public static _Fields findByThriftId(int fieldId) {
20754         switch(fieldId) {
20755           case 0: // SUCCESS
20756             return SUCCESS;
20757           default:
20758             return null;
20759         }
20760       }
20761
20762       /**
20763        * Find the _Fields constant that matches fieldId, throwing an exception
20764        * if it is not found.
20765        */
20766       public static _Fields findByThriftIdOrThrow(int fieldId) {
20767         _Fields fields = findByThriftId(fieldId);
20768         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20769         return fields;
20770       }
20771
20772       /**
20773        * Find the _Fields constant that matches name, or null if its not found.
20774        */
20775       public static _Fields findByName(String name) {
20776         return byName.get(name);
20777       }
20778
20779       private final short _thriftId;
20780       private final String _fieldName;
20781
20782       _Fields(short thriftId, String fieldName) {
20783         _thriftId = thriftId;
20784         _fieldName = fieldName;
20785       }
20786
20787       public short getThriftFieldId() {
20788         return _thriftId;
20789       }
20790
20791       public String getFieldName() {
20792         return _fieldName;
20793       }
20794     }
20795
20796     // isset id assignments
20797     private static final int __SUCCESS_ISSET_ID = 0;
20798     private byte __isset_bitfield = 0;
20799     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20800     static {
20801       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20802       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20803           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
20804       metaDataMap = Collections.unmodifiableMap(tmpMap);
20805       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableMultipath_result.class, metaDataMap);
20806     }
20807
20808     public enableMultipath_result() {
20809     }
20810
20811     public enableMultipath_result(
20812       int success)
20813     {
20814       this();
20815       this.success = success;
20816       setSuccessIsSet(true);
20817     }
20818
20819     /**
20820      * Performs a deep copy on <i>other</i>.
20821      */
20822     public enableMultipath_result(enableMultipath_result other) {
20823       __isset_bitfield = other.__isset_bitfield;
20824       this.success = other.success;
20825     }
20826
20827     public enableMultipath_result deepCopy() {
20828       return new enableMultipath_result(this);
20829     }
20830
20831     @Override
20832     public void clear() {
20833       setSuccessIsSet(false);
20834       this.success = 0;
20835     }
20836
20837     public int getSuccess() {
20838       return this.success;
20839     }
20840
20841     public enableMultipath_result setSuccess(int success) {
20842       this.success = success;
20843       setSuccessIsSet(true);
20844       return this;
20845     }
20846
20847     public void unsetSuccess() {
20848       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
20849     }
20850
20851     /** Returns true if field success is set (has been assigned a value) and false otherwise */
20852     public boolean isSetSuccess() {
20853       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
20854     }
20855
20856     public void setSuccessIsSet(boolean value) {
20857       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
20858     }
20859
20860     public void setFieldValue(_Fields field, Object value) {
20861       switch (field) {
20862       case SUCCESS:
20863         if (value == null) {
20864           unsetSuccess();
20865         } else {
20866           setSuccess((Integer)value);
20867         }
20868         break;
20869
20870       }
20871     }
20872
20873     public Object getFieldValue(_Fields field) {
20874       switch (field) {
20875       case SUCCESS:
20876         return Integer.valueOf(getSuccess());
20877
20878       }
20879       throw new IllegalStateException();
20880     }
20881
20882     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20883     public boolean isSet(_Fields field) {
20884       if (field == null) {
20885         throw new IllegalArgumentException();
20886       }
20887
20888       switch (field) {
20889       case SUCCESS:
20890         return isSetSuccess();
20891       }
20892       throw new IllegalStateException();
20893     }
20894
20895     @Override
20896     public boolean equals(Object that) {
20897       if (that == null)
20898         return false;
20899       if (that instanceof enableMultipath_result)
20900         return this.equals((enableMultipath_result)that);
20901       return false;
20902     }
20903
20904     public boolean equals(enableMultipath_result that) {
20905       if (that == null)
20906         return false;
20907
20908       boolean this_present_success = true;
20909       boolean that_present_success = true;
20910       if (this_present_success || that_present_success) {
20911         if (!(this_present_success && that_present_success))
20912           return false;
20913         if (this.success != that.success)
20914           return false;
20915       }
20916
20917       return true;
20918     }
20919
20920     @Override
20921     public int hashCode() {
20922       return 0;
20923     }
20924
20925     @Override
20926     public int compareTo(enableMultipath_result other) {
20927       if (!getClass().equals(other.getClass())) {
20928         return getClass().getName().compareTo(other.getClass().getName());
20929       }
20930
20931       int lastComparison = 0;
20932
20933       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
20934       if (lastComparison != 0) {
20935         return lastComparison;
20936       }
20937       if (isSetSuccess()) {
20938         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
20939         if (lastComparison != 0) {
20940           return lastComparison;
20941         }
20942       }
20943       return 0;
20944     }
20945
20946     public _Fields fieldForId(int fieldId) {
20947       return _Fields.findByThriftId(fieldId);
20948     }
20949
20950     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20951       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20952     }
20953
20954     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20955       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20956       }
20957
20958     @Override
20959     public String toString() {
20960       StringBuilder sb = new StringBuilder("enableMultipath_result(");
20961       boolean first = true;
20962
20963       sb.append("success:");
20964       sb.append(this.success);
20965       first = false;
20966       sb.append(")");
20967       return sb.toString();
20968     }
20969
20970     public void validate() throws org.apache.thrift.TException {
20971       // check for required fields
20972       // check for sub-struct validity
20973     }
20974
20975     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20976       try {
20977         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20978       } catch (org.apache.thrift.TException te) {
20979         throw new java.io.IOException(te);
20980       }
20981     }
20982
20983     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20984       try {
20985         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20986         __isset_bitfield = 0;
20987         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20988       } catch (org.apache.thrift.TException te) {
20989         throw new java.io.IOException(te);
20990       }
20991     }
20992
20993     private static class enableMultipath_resultStandardSchemeFactory implements SchemeFactory {
20994       public enableMultipath_resultStandardScheme getScheme() {
20995         return new enableMultipath_resultStandardScheme();
20996       }
20997     }
20998
20999     private static class enableMultipath_resultStandardScheme extends StandardScheme<enableMultipath_result> {
21000
21001       public void read(org.apache.thrift.protocol.TProtocol iprot, enableMultipath_result struct) throws org.apache.thrift.TException {
21002         org.apache.thrift.protocol.TField schemeField;
21003         iprot.readStructBegin();
21004         while (true)
21005         {
21006           schemeField = iprot.readFieldBegin();
21007           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
21008             break;
21009           }
21010           switch (schemeField.id) {
21011             case 0: // SUCCESS
21012               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21013                 struct.success = iprot.readI32();
21014                 struct.setSuccessIsSet(true);
21015               } else { 
21016                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21017               }
21018               break;
21019             default:
21020               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21021           }
21022           iprot.readFieldEnd();
21023         }
21024         iprot.readStructEnd();
21025
21026         // check for required fields of primitive type, which can't be checked in the validate method
21027         struct.validate();
21028       }
21029
21030       public void write(org.apache.thrift.protocol.TProtocol oprot, enableMultipath_result struct) throws org.apache.thrift.TException {
21031         struct.validate();
21032
21033         oprot.writeStructBegin(STRUCT_DESC);
21034         if (struct.isSetSuccess()) {
21035           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21036           oprot.writeI32(struct.success);
21037           oprot.writeFieldEnd();
21038         }
21039         oprot.writeFieldStop();
21040         oprot.writeStructEnd();
21041       }
21042
21043     }
21044
21045     private static class enableMultipath_resultTupleSchemeFactory implements SchemeFactory {
21046       public enableMultipath_resultTupleScheme getScheme() {
21047         return new enableMultipath_resultTupleScheme();
21048       }
21049     }
21050
21051     private static class enableMultipath_resultTupleScheme extends TupleScheme<enableMultipath_result> {
21052
21053       @Override
21054       public void write(org.apache.thrift.protocol.TProtocol prot, enableMultipath_result struct) throws org.apache.thrift.TException {
21055         TTupleProtocol oprot = (TTupleProtocol) prot;
21056         BitSet optionals = new BitSet();
21057         if (struct.isSetSuccess()) {
21058           optionals.set(0);
21059         }
21060         oprot.writeBitSet(optionals, 1);
21061         if (struct.isSetSuccess()) {
21062           oprot.writeI32(struct.success);
21063         }
21064       }
21065
21066       @Override
21067       public void read(org.apache.thrift.protocol.TProtocol prot, enableMultipath_result struct) throws org.apache.thrift.TException {
21068         TTupleProtocol iprot = (TTupleProtocol) prot;
21069         BitSet incoming = iprot.readBitSet(1);
21070         if (incoming.get(0)) {
21071           struct.success = iprot.readI32();
21072           struct.setSuccessIsSet(true);
21073         }
21074       }
21075     }
21076
21077   }
21078
21079   public static class disableMultipath_args implements org.apache.thrift.TBase<disableMultipath_args, disableMultipath_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableMultipath_args>   {
21080     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableMultipath_args");
21081
21082     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)1);
21083     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)2);
21084
21085     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21086     static {
21087       schemes.put(StandardScheme.class, new disableMultipath_argsStandardSchemeFactory());
21088       schemes.put(TupleScheme.class, new disableMultipath_argsTupleSchemeFactory());
21089     }
21090
21091     /**
21092      * 
21093      * @see af_afi
21094      */
21095     public af_afi afi; // required
21096     /**
21097      * 
21098      * @see af_safi
21099      */
21100     public af_safi safi; // required
21101
21102     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21103     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21104       /**
21105        * 
21106        * @see af_afi
21107        */
21108       AFI((short)1, "afi"),
21109       /**
21110        * 
21111        * @see af_safi
21112        */
21113       SAFI((short)2, "safi");
21114
21115       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21116
21117       static {
21118         for (_Fields field : EnumSet.allOf(_Fields.class)) {
21119           byName.put(field.getFieldName(), field);
21120         }
21121       }
21122
21123       /**
21124        * Find the _Fields constant that matches fieldId, or null if its not found.
21125        */
21126       public static _Fields findByThriftId(int fieldId) {
21127         switch(fieldId) {
21128           case 1: // AFI
21129             return AFI;
21130           case 2: // SAFI
21131             return SAFI;
21132           default:
21133             return null;
21134         }
21135       }
21136
21137       /**
21138        * Find the _Fields constant that matches fieldId, throwing an exception
21139        * if it is not found.
21140        */
21141       public static _Fields findByThriftIdOrThrow(int fieldId) {
21142         _Fields fields = findByThriftId(fieldId);
21143         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21144         return fields;
21145       }
21146
21147       /**
21148        * Find the _Fields constant that matches name, or null if its not found.
21149        */
21150       public static _Fields findByName(String name) {
21151         return byName.get(name);
21152       }
21153
21154       private final short _thriftId;
21155       private final String _fieldName;
21156
21157       _Fields(short thriftId, String fieldName) {
21158         _thriftId = thriftId;
21159         _fieldName = fieldName;
21160       }
21161
21162       public short getThriftFieldId() {
21163         return _thriftId;
21164       }
21165
21166       public String getFieldName() {
21167         return _fieldName;
21168       }
21169     }
21170
21171     // isset id assignments
21172     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21173     static {
21174       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21175       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21176           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
21177       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21178           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
21179       metaDataMap = Collections.unmodifiableMap(tmpMap);
21180       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableMultipath_args.class, metaDataMap);
21181     }
21182
21183     public disableMultipath_args() {
21184     }
21185
21186     public disableMultipath_args(
21187       af_afi afi,
21188       af_safi safi)
21189     {
21190       this();
21191       this.afi = afi;
21192       this.safi = safi;
21193     }
21194
21195     /**
21196      * Performs a deep copy on <i>other</i>.
21197      */
21198     public disableMultipath_args(disableMultipath_args other) {
21199       if (other.isSetAfi()) {
21200         this.afi = other.afi;
21201       }
21202       if (other.isSetSafi()) {
21203         this.safi = other.safi;
21204       }
21205     }
21206
21207     public disableMultipath_args deepCopy() {
21208       return new disableMultipath_args(this);
21209     }
21210
21211     @Override
21212     public void clear() {
21213       this.afi = null;
21214       this.safi = null;
21215     }
21216
21217     /**
21218      * 
21219      * @see af_afi
21220      */
21221     public af_afi getAfi() {
21222       return this.afi;
21223     }
21224
21225     /**
21226      * 
21227      * @see af_afi
21228      */
21229     public disableMultipath_args setAfi(af_afi afi) {
21230       this.afi = afi;
21231       return this;
21232     }
21233
21234     public void unsetAfi() {
21235       this.afi = null;
21236     }
21237
21238     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
21239     public boolean isSetAfi() {
21240       return this.afi != null;
21241     }
21242
21243     public void setAfiIsSet(boolean value) {
21244       if (!value) {
21245         this.afi = null;
21246       }
21247     }
21248
21249     /**
21250      * 
21251      * @see af_safi
21252      */
21253     public af_safi getSafi() {
21254       return this.safi;
21255     }
21256
21257     /**
21258      * 
21259      * @see af_safi
21260      */
21261     public disableMultipath_args setSafi(af_safi safi) {
21262       this.safi = safi;
21263       return this;
21264     }
21265
21266     public void unsetSafi() {
21267       this.safi = null;
21268     }
21269
21270     /** Returns true if field safi is set (has been assigned a value) and false otherwise */
21271     public boolean isSetSafi() {
21272       return this.safi != null;
21273     }
21274
21275     public void setSafiIsSet(boolean value) {
21276       if (!value) {
21277         this.safi = null;
21278       }
21279     }
21280
21281     public void setFieldValue(_Fields field, Object value) {
21282       switch (field) {
21283       case AFI:
21284         if (value == null) {
21285           unsetAfi();
21286         } else {
21287           setAfi((af_afi)value);
21288         }
21289         break;
21290
21291       case SAFI:
21292         if (value == null) {
21293           unsetSafi();
21294         } else {
21295           setSafi((af_safi)value);
21296         }
21297         break;
21298
21299       }
21300     }
21301
21302     public Object getFieldValue(_Fields field) {
21303       switch (field) {
21304       case AFI:
21305         return getAfi();
21306
21307       case SAFI:
21308         return getSafi();
21309
21310       }
21311       throw new IllegalStateException();
21312     }
21313
21314     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21315     public boolean isSet(_Fields field) {
21316       if (field == null) {
21317         throw new IllegalArgumentException();
21318       }
21319
21320       switch (field) {
21321       case AFI:
21322         return isSetAfi();
21323       case SAFI:
21324         return isSetSafi();
21325       }
21326       throw new IllegalStateException();
21327     }
21328
21329     @Override
21330     public boolean equals(Object that) {
21331       if (that == null)
21332         return false;
21333       if (that instanceof disableMultipath_args)
21334         return this.equals((disableMultipath_args)that);
21335       return false;
21336     }
21337
21338     public boolean equals(disableMultipath_args that) {
21339       if (that == null)
21340         return false;
21341
21342       boolean this_present_afi = true && this.isSetAfi();
21343       boolean that_present_afi = true && that.isSetAfi();
21344       if (this_present_afi || that_present_afi) {
21345         if (!(this_present_afi && that_present_afi))
21346           return false;
21347         if (!this.afi.equals(that.afi))
21348           return false;
21349       }
21350
21351       boolean this_present_safi = true && this.isSetSafi();
21352       boolean that_present_safi = true && that.isSetSafi();
21353       if (this_present_safi || that_present_safi) {
21354         if (!(this_present_safi && that_present_safi))
21355           return false;
21356         if (!this.safi.equals(that.safi))
21357           return false;
21358       }
21359
21360       return true;
21361     }
21362
21363     @Override
21364     public int hashCode() {
21365       return 0;
21366     }
21367
21368     @Override
21369     public int compareTo(disableMultipath_args other) {
21370       if (!getClass().equals(other.getClass())) {
21371         return getClass().getName().compareTo(other.getClass().getName());
21372       }
21373
21374       int lastComparison = 0;
21375
21376       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
21377       if (lastComparison != 0) {
21378         return lastComparison;
21379       }
21380       if (isSetAfi()) {
21381         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
21382         if (lastComparison != 0) {
21383           return lastComparison;
21384         }
21385       }
21386       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
21387       if (lastComparison != 0) {
21388         return lastComparison;
21389       }
21390       if (isSetSafi()) {
21391         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
21392         if (lastComparison != 0) {
21393           return lastComparison;
21394         }
21395       }
21396       return 0;
21397     }
21398
21399     public _Fields fieldForId(int fieldId) {
21400       return _Fields.findByThriftId(fieldId);
21401     }
21402
21403     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21404       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
21405     }
21406
21407     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21408       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
21409     }
21410
21411     @Override
21412     public String toString() {
21413       StringBuilder sb = new StringBuilder("disableMultipath_args(");
21414       boolean first = true;
21415
21416       sb.append("afi:");
21417       if (this.afi == null) {
21418         sb.append("null");
21419       } else {
21420         sb.append(this.afi);
21421       }
21422       first = false;
21423       if (!first) sb.append(", ");
21424       sb.append("safi:");
21425       if (this.safi == null) {
21426         sb.append("null");
21427       } else {
21428         sb.append(this.safi);
21429       }
21430       first = false;
21431       sb.append(")");
21432       return sb.toString();
21433     }
21434
21435     public void validate() throws org.apache.thrift.TException {
21436       // check for required fields
21437       // check for sub-struct validity
21438     }
21439
21440     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21441       try {
21442         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21443       } catch (org.apache.thrift.TException te) {
21444         throw new java.io.IOException(te);
21445       }
21446     }
21447
21448     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21449       try {
21450         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21451       } catch (org.apache.thrift.TException te) {
21452         throw new java.io.IOException(te);
21453       }
21454     }
21455
21456     private static class disableMultipath_argsStandardSchemeFactory implements SchemeFactory {
21457       public disableMultipath_argsStandardScheme getScheme() {
21458         return new disableMultipath_argsStandardScheme();
21459       }
21460     }
21461
21462     private static class disableMultipath_argsStandardScheme extends StandardScheme<disableMultipath_args> {
21463
21464       public void read(org.apache.thrift.protocol.TProtocol iprot, disableMultipath_args struct) throws org.apache.thrift.TException {
21465         org.apache.thrift.protocol.TField schemeField;
21466         iprot.readStructBegin();
21467         while (true)
21468         {
21469           schemeField = iprot.readFieldBegin();
21470           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
21471             break;
21472           }
21473           switch (schemeField.id) {
21474             case 1: // AFI
21475               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21476                 struct.afi = af_afi.findByValue(iprot.readI32());
21477                 struct.setAfiIsSet(true);
21478               } else { 
21479                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21480               }
21481               break;
21482             case 2: // SAFI
21483               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21484                 struct.safi = af_safi.findByValue(iprot.readI32());
21485                 struct.setSafiIsSet(true);
21486               } else { 
21487                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21488               }
21489               break;
21490             default:
21491               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21492           }
21493           iprot.readFieldEnd();
21494         }
21495         iprot.readStructEnd();
21496
21497         // check for required fields of primitive type, which can't be checked in the validate method
21498         struct.validate();
21499       }
21500
21501       public void write(org.apache.thrift.protocol.TProtocol oprot, disableMultipath_args struct) throws org.apache.thrift.TException {
21502         struct.validate();
21503
21504         oprot.writeStructBegin(STRUCT_DESC);
21505         if (struct.afi != null) {
21506           oprot.writeFieldBegin(AFI_FIELD_DESC);
21507           oprot.writeI32(struct.afi.getValue());
21508           oprot.writeFieldEnd();
21509         }
21510         if (struct.safi != null) {
21511           oprot.writeFieldBegin(SAFI_FIELD_DESC);
21512           oprot.writeI32(struct.safi.getValue());
21513           oprot.writeFieldEnd();
21514         }
21515         oprot.writeFieldStop();
21516         oprot.writeStructEnd();
21517       }
21518
21519     }
21520
21521     private static class disableMultipath_argsTupleSchemeFactory implements SchemeFactory {
21522       public disableMultipath_argsTupleScheme getScheme() {
21523         return new disableMultipath_argsTupleScheme();
21524       }
21525     }
21526
21527     private static class disableMultipath_argsTupleScheme extends TupleScheme<disableMultipath_args> {
21528
21529       @Override
21530       public void write(org.apache.thrift.protocol.TProtocol prot, disableMultipath_args struct) throws org.apache.thrift.TException {
21531         TTupleProtocol oprot = (TTupleProtocol) prot;
21532         BitSet optionals = new BitSet();
21533         if (struct.isSetAfi()) {
21534           optionals.set(0);
21535         }
21536         if (struct.isSetSafi()) {
21537           optionals.set(1);
21538         }
21539         oprot.writeBitSet(optionals, 2);
21540         if (struct.isSetAfi()) {
21541           oprot.writeI32(struct.afi.getValue());
21542         }
21543         if (struct.isSetSafi()) {
21544           oprot.writeI32(struct.safi.getValue());
21545         }
21546       }
21547
21548       @Override
21549       public void read(org.apache.thrift.protocol.TProtocol prot, disableMultipath_args struct) throws org.apache.thrift.TException {
21550         TTupleProtocol iprot = (TTupleProtocol) prot;
21551         BitSet incoming = iprot.readBitSet(2);
21552         if (incoming.get(0)) {
21553           struct.afi = af_afi.findByValue(iprot.readI32());
21554           struct.setAfiIsSet(true);
21555         }
21556         if (incoming.get(1)) {
21557           struct.safi = af_safi.findByValue(iprot.readI32());
21558           struct.setSafiIsSet(true);
21559         }
21560       }
21561     }
21562
21563   }
21564
21565   public static class disableMultipath_result implements org.apache.thrift.TBase<disableMultipath_result, disableMultipath_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableMultipath_result>   {
21566     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableMultipath_result");
21567
21568     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);
21569
21570     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21571     static {
21572       schemes.put(StandardScheme.class, new disableMultipath_resultStandardSchemeFactory());
21573       schemes.put(TupleScheme.class, new disableMultipath_resultTupleSchemeFactory());
21574     }
21575
21576     public int success; // required
21577
21578     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21579     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21580       SUCCESS((short)0, "success");
21581
21582       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21583
21584       static {
21585         for (_Fields field : EnumSet.allOf(_Fields.class)) {
21586           byName.put(field.getFieldName(), field);
21587         }
21588       }
21589
21590       /**
21591        * Find the _Fields constant that matches fieldId, or null if its not found.
21592        */
21593       public static _Fields findByThriftId(int fieldId) {
21594         switch(fieldId) {
21595           case 0: // SUCCESS
21596             return SUCCESS;
21597           default:
21598             return null;
21599         }
21600       }
21601
21602       /**
21603        * Find the _Fields constant that matches fieldId, throwing an exception
21604        * if it is not found.
21605        */
21606       public static _Fields findByThriftIdOrThrow(int fieldId) {
21607         _Fields fields = findByThriftId(fieldId);
21608         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21609         return fields;
21610       }
21611
21612       /**
21613        * Find the _Fields constant that matches name, or null if its not found.
21614        */
21615       public static _Fields findByName(String name) {
21616         return byName.get(name);
21617       }
21618
21619       private final short _thriftId;
21620       private final String _fieldName;
21621
21622       _Fields(short thriftId, String fieldName) {
21623         _thriftId = thriftId;
21624         _fieldName = fieldName;
21625       }
21626
21627       public short getThriftFieldId() {
21628         return _thriftId;
21629       }
21630
21631       public String getFieldName() {
21632         return _fieldName;
21633       }
21634     }
21635
21636     // isset id assignments
21637     private static final int __SUCCESS_ISSET_ID = 0;
21638     private byte __isset_bitfield = 0;
21639     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21640     static {
21641       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21642       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21643           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
21644       metaDataMap = Collections.unmodifiableMap(tmpMap);
21645       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableMultipath_result.class, metaDataMap);
21646     }
21647
21648     public disableMultipath_result() {
21649     }
21650
21651     public disableMultipath_result(
21652       int success)
21653     {
21654       this();
21655       this.success = success;
21656       setSuccessIsSet(true);
21657     }
21658
21659     /**
21660      * Performs a deep copy on <i>other</i>.
21661      */
21662     public disableMultipath_result(disableMultipath_result other) {
21663       __isset_bitfield = other.__isset_bitfield;
21664       this.success = other.success;
21665     }
21666
21667     public disableMultipath_result deepCopy() {
21668       return new disableMultipath_result(this);
21669     }
21670
21671     @Override
21672     public void clear() {
21673       setSuccessIsSet(false);
21674       this.success = 0;
21675     }
21676
21677     public int getSuccess() {
21678       return this.success;
21679     }
21680
21681     public disableMultipath_result setSuccess(int success) {
21682       this.success = success;
21683       setSuccessIsSet(true);
21684       return this;
21685     }
21686
21687     public void unsetSuccess() {
21688       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
21689     }
21690
21691     /** Returns true if field success is set (has been assigned a value) and false otherwise */
21692     public boolean isSetSuccess() {
21693       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
21694     }
21695
21696     public void setSuccessIsSet(boolean value) {
21697       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
21698     }
21699
21700     public void setFieldValue(_Fields field, Object value) {
21701       switch (field) {
21702       case SUCCESS:
21703         if (value == null) {
21704           unsetSuccess();
21705         } else {
21706           setSuccess((Integer)value);
21707         }
21708         break;
21709
21710       }
21711     }
21712
21713     public Object getFieldValue(_Fields field) {
21714       switch (field) {
21715       case SUCCESS:
21716         return Integer.valueOf(getSuccess());
21717
21718       }
21719       throw new IllegalStateException();
21720     }
21721
21722     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21723     public boolean isSet(_Fields field) {
21724       if (field == null) {
21725         throw new IllegalArgumentException();
21726       }
21727
21728       switch (field) {
21729       case SUCCESS:
21730         return isSetSuccess();
21731       }
21732       throw new IllegalStateException();
21733     }
21734
21735     @Override
21736     public boolean equals(Object that) {
21737       if (that == null)
21738         return false;
21739       if (that instanceof disableMultipath_result)
21740         return this.equals((disableMultipath_result)that);
21741       return false;
21742     }
21743
21744     public boolean equals(disableMultipath_result that) {
21745       if (that == null)
21746         return false;
21747
21748       boolean this_present_success = true;
21749       boolean that_present_success = true;
21750       if (this_present_success || that_present_success) {
21751         if (!(this_present_success && that_present_success))
21752           return false;
21753         if (this.success != that.success)
21754           return false;
21755       }
21756
21757       return true;
21758     }
21759
21760     @Override
21761     public int hashCode() {
21762       return 0;
21763     }
21764
21765     @Override
21766     public int compareTo(disableMultipath_result other) {
21767       if (!getClass().equals(other.getClass())) {
21768         return getClass().getName().compareTo(other.getClass().getName());
21769       }
21770
21771       int lastComparison = 0;
21772
21773       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
21774       if (lastComparison != 0) {
21775         return lastComparison;
21776       }
21777       if (isSetSuccess()) {
21778         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
21779         if (lastComparison != 0) {
21780           return lastComparison;
21781         }
21782       }
21783       return 0;
21784     }
21785
21786     public _Fields fieldForId(int fieldId) {
21787       return _Fields.findByThriftId(fieldId);
21788     }
21789
21790     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21791       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
21792     }
21793
21794     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21795       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
21796       }
21797
21798     @Override
21799     public String toString() {
21800       StringBuilder sb = new StringBuilder("disableMultipath_result(");
21801       boolean first = true;
21802
21803       sb.append("success:");
21804       sb.append(this.success);
21805       first = false;
21806       sb.append(")");
21807       return sb.toString();
21808     }
21809
21810     public void validate() throws org.apache.thrift.TException {
21811       // check for required fields
21812       // check for sub-struct validity
21813     }
21814
21815     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21816       try {
21817         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21818       } catch (org.apache.thrift.TException te) {
21819         throw new java.io.IOException(te);
21820       }
21821     }
21822
21823     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21824       try {
21825         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21826         __isset_bitfield = 0;
21827         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21828       } catch (org.apache.thrift.TException te) {
21829         throw new java.io.IOException(te);
21830       }
21831     }
21832
21833     private static class disableMultipath_resultStandardSchemeFactory implements SchemeFactory {
21834       public disableMultipath_resultStandardScheme getScheme() {
21835         return new disableMultipath_resultStandardScheme();
21836       }
21837     }
21838
21839     private static class disableMultipath_resultStandardScheme extends StandardScheme<disableMultipath_result> {
21840
21841       public void read(org.apache.thrift.protocol.TProtocol iprot, disableMultipath_result struct) throws org.apache.thrift.TException {
21842         org.apache.thrift.protocol.TField schemeField;
21843         iprot.readStructBegin();
21844         while (true)
21845         {
21846           schemeField = iprot.readFieldBegin();
21847           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
21848             break;
21849           }
21850           switch (schemeField.id) {
21851             case 0: // SUCCESS
21852               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21853                 struct.success = iprot.readI32();
21854                 struct.setSuccessIsSet(true);
21855               } else { 
21856                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21857               }
21858               break;
21859             default:
21860               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21861           }
21862           iprot.readFieldEnd();
21863         }
21864         iprot.readStructEnd();
21865
21866         // check for required fields of primitive type, which can't be checked in the validate method
21867         struct.validate();
21868       }
21869
21870       public void write(org.apache.thrift.protocol.TProtocol oprot, disableMultipath_result struct) throws org.apache.thrift.TException {
21871         struct.validate();
21872
21873         oprot.writeStructBegin(STRUCT_DESC);
21874         if (struct.isSetSuccess()) {
21875           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21876           oprot.writeI32(struct.success);
21877           oprot.writeFieldEnd();
21878         }
21879         oprot.writeFieldStop();
21880         oprot.writeStructEnd();
21881       }
21882
21883     }
21884
21885     private static class disableMultipath_resultTupleSchemeFactory implements SchemeFactory {
21886       public disableMultipath_resultTupleScheme getScheme() {
21887         return new disableMultipath_resultTupleScheme();
21888       }
21889     }
21890
21891     private static class disableMultipath_resultTupleScheme extends TupleScheme<disableMultipath_result> {
21892
21893       @Override
21894       public void write(org.apache.thrift.protocol.TProtocol prot, disableMultipath_result struct) throws org.apache.thrift.TException {
21895         TTupleProtocol oprot = (TTupleProtocol) prot;
21896         BitSet optionals = new BitSet();
21897         if (struct.isSetSuccess()) {
21898           optionals.set(0);
21899         }
21900         oprot.writeBitSet(optionals, 1);
21901         if (struct.isSetSuccess()) {
21902           oprot.writeI32(struct.success);
21903         }
21904       }
21905
21906       @Override
21907       public void read(org.apache.thrift.protocol.TProtocol prot, disableMultipath_result struct) throws org.apache.thrift.TException {
21908         TTupleProtocol iprot = (TTupleProtocol) prot;
21909         BitSet incoming = iprot.readBitSet(1);
21910         if (incoming.get(0)) {
21911           struct.success = iprot.readI32();
21912           struct.setSuccessIsSet(true);
21913         }
21914       }
21915     }
21916
21917   }
21918
21919   public static class multipaths_args implements org.apache.thrift.TBase<multipaths_args, multipaths_args._Fields>, java.io.Serializable, Cloneable, Comparable<multipaths_args>   {
21920     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("multipaths_args");
21921
21922     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);
21923     private static final org.apache.thrift.protocol.TField MAX_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("maxPath", org.apache.thrift.protocol.TType.I32, (short)2);
21924
21925     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21926     static {
21927       schemes.put(StandardScheme.class, new multipaths_argsStandardSchemeFactory());
21928       schemes.put(TupleScheme.class, new multipaths_argsTupleSchemeFactory());
21929     }
21930
21931     public String rd; // required
21932     public int maxPath; // required
21933
21934     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21935     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21936       RD((short)1, "rd"),
21937       MAX_PATH((short)2, "maxPath");
21938
21939       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21940
21941       static {
21942         for (_Fields field : EnumSet.allOf(_Fields.class)) {
21943           byName.put(field.getFieldName(), field);
21944         }
21945       }
21946
21947       /**
21948        * Find the _Fields constant that matches fieldId, or null if its not found.
21949        */
21950       public static _Fields findByThriftId(int fieldId) {
21951         switch(fieldId) {
21952           case 1: // RD
21953             return RD;
21954           case 2: // MAX_PATH
21955             return MAX_PATH;
21956           default:
21957             return null;
21958         }
21959       }
21960
21961       /**
21962        * Find the _Fields constant that matches fieldId, throwing an exception
21963        * if it is not found.
21964        */
21965       public static _Fields findByThriftIdOrThrow(int fieldId) {
21966         _Fields fields = findByThriftId(fieldId);
21967         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21968         return fields;
21969       }
21970
21971       /**
21972        * Find the _Fields constant that matches name, or null if its not found.
21973        */
21974       public static _Fields findByName(String name) {
21975         return byName.get(name);
21976       }
21977
21978       private final short _thriftId;
21979       private final String _fieldName;
21980
21981       _Fields(short thriftId, String fieldName) {
21982         _thriftId = thriftId;
21983         _fieldName = fieldName;
21984       }
21985
21986       public short getThriftFieldId() {
21987         return _thriftId;
21988       }
21989
21990       public String getFieldName() {
21991         return _fieldName;
21992       }
21993     }
21994
21995     // isset id assignments
21996     private static final int __MAXPATH_ISSET_ID = 0;
21997     private byte __isset_bitfield = 0;
21998     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21999     static {
22000       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22001       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22002           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22003       tmpMap.put(_Fields.MAX_PATH, new org.apache.thrift.meta_data.FieldMetaData("maxPath", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22004           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
22005       metaDataMap = Collections.unmodifiableMap(tmpMap);
22006       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(multipaths_args.class, metaDataMap);
22007     }
22008
22009     public multipaths_args() {
22010     }
22011
22012     public multipaths_args(
22013       String rd,
22014       int maxPath)
22015     {
22016       this();
22017       this.rd = rd;
22018       this.maxPath = maxPath;
22019       setMaxPathIsSet(true);
22020     }
22021
22022     /**
22023      * Performs a deep copy on <i>other</i>.
22024      */
22025     public multipaths_args(multipaths_args other) {
22026       __isset_bitfield = other.__isset_bitfield;
22027       if (other.isSetRd()) {
22028         this.rd = other.rd;
22029       }
22030       this.maxPath = other.maxPath;
22031     }
22032
22033     public multipaths_args deepCopy() {
22034       return new multipaths_args(this);
22035     }
22036
22037     @Override
22038     public void clear() {
22039       this.rd = null;
22040       setMaxPathIsSet(false);
22041       this.maxPath = 0;
22042     }
22043
22044     public String getRd() {
22045       return this.rd;
22046     }
22047
22048     public multipaths_args setRd(String rd) {
22049       this.rd = rd;
22050       return this;
22051     }
22052
22053     public void unsetRd() {
22054       this.rd = null;
22055     }
22056
22057     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
22058     public boolean isSetRd() {
22059       return this.rd != null;
22060     }
22061
22062     public void setRdIsSet(boolean value) {
22063       if (!value) {
22064         this.rd = null;
22065       }
22066     }
22067
22068     public int getMaxPath() {
22069       return this.maxPath;
22070     }
22071
22072     public multipaths_args setMaxPath(int maxPath) {
22073       this.maxPath = maxPath;
22074       setMaxPathIsSet(true);
22075       return this;
22076     }
22077
22078     public void unsetMaxPath() {
22079       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXPATH_ISSET_ID);
22080     }
22081
22082     /** Returns true if field maxPath is set (has been assigned a value) and false otherwise */
22083     public boolean isSetMaxPath() {
22084       return EncodingUtils.testBit(__isset_bitfield, __MAXPATH_ISSET_ID);
22085     }
22086
22087     public void setMaxPathIsSet(boolean value) {
22088       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXPATH_ISSET_ID, value);
22089     }
22090
22091     public void setFieldValue(_Fields field, Object value) {
22092       switch (field) {
22093       case RD:
22094         if (value == null) {
22095           unsetRd();
22096         } else {
22097           setRd((String)value);
22098         }
22099         break;
22100
22101       case MAX_PATH:
22102         if (value == null) {
22103           unsetMaxPath();
22104         } else {
22105           setMaxPath((Integer)value);
22106         }
22107         break;
22108
22109       }
22110     }
22111
22112     public Object getFieldValue(_Fields field) {
22113       switch (field) {
22114       case RD:
22115         return getRd();
22116
22117       case MAX_PATH:
22118         return Integer.valueOf(getMaxPath());
22119
22120       }
22121       throw new IllegalStateException();
22122     }
22123
22124     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22125     public boolean isSet(_Fields field) {
22126       if (field == null) {
22127         throw new IllegalArgumentException();
22128       }
22129
22130       switch (field) {
22131       case RD:
22132         return isSetRd();
22133       case MAX_PATH:
22134         return isSetMaxPath();
22135       }
22136       throw new IllegalStateException();
22137     }
22138
22139     @Override
22140     public boolean equals(Object that) {
22141       if (that == null)
22142         return false;
22143       if (that instanceof multipaths_args)
22144         return this.equals((multipaths_args)that);
22145       return false;
22146     }
22147
22148     public boolean equals(multipaths_args that) {
22149       if (that == null)
22150         return false;
22151
22152       boolean this_present_rd = true && this.isSetRd();
22153       boolean that_present_rd = true && that.isSetRd();
22154       if (this_present_rd || that_present_rd) {
22155         if (!(this_present_rd && that_present_rd))
22156           return false;
22157         if (!this.rd.equals(that.rd))
22158           return false;
22159       }
22160
22161       boolean this_present_maxPath = true;
22162       boolean that_present_maxPath = true;
22163       if (this_present_maxPath || that_present_maxPath) {
22164         if (!(this_present_maxPath && that_present_maxPath))
22165           return false;
22166         if (this.maxPath != that.maxPath)
22167           return false;
22168       }
22169
22170       return true;
22171     }
22172
22173     @Override
22174     public int hashCode() {
22175       return 0;
22176     }
22177
22178     @Override
22179     public int compareTo(multipaths_args other) {
22180       if (!getClass().equals(other.getClass())) {
22181         return getClass().getName().compareTo(other.getClass().getName());
22182       }
22183
22184       int lastComparison = 0;
22185
22186       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
22187       if (lastComparison != 0) {
22188         return lastComparison;
22189       }
22190       if (isSetRd()) {
22191         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
22192         if (lastComparison != 0) {
22193           return lastComparison;
22194         }
22195       }
22196       lastComparison = Boolean.valueOf(isSetMaxPath()).compareTo(other.isSetMaxPath());
22197       if (lastComparison != 0) {
22198         return lastComparison;
22199       }
22200       if (isSetMaxPath()) {
22201         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxPath, other.maxPath);
22202         if (lastComparison != 0) {
22203           return lastComparison;
22204         }
22205       }
22206       return 0;
22207     }
22208
22209     public _Fields fieldForId(int fieldId) {
22210       return _Fields.findByThriftId(fieldId);
22211     }
22212
22213     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22214       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22215     }
22216
22217     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22218       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22219     }
22220
22221     @Override
22222     public String toString() {
22223       StringBuilder sb = new StringBuilder("multipaths_args(");
22224       boolean first = true;
22225
22226       sb.append("rd:");
22227       if (this.rd == null) {
22228         sb.append("null");
22229       } else {
22230         sb.append(this.rd);
22231       }
22232       first = false;
22233       if (!first) sb.append(", ");
22234       sb.append("maxPath:");
22235       sb.append(this.maxPath);
22236       first = false;
22237       sb.append(")");
22238       return sb.toString();
22239     }
22240
22241     public void validate() throws org.apache.thrift.TException {
22242       // check for required fields
22243       // check for sub-struct validity
22244     }
22245
22246     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22247       try {
22248         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22249       } catch (org.apache.thrift.TException te) {
22250         throw new java.io.IOException(te);
22251       }
22252     }
22253
22254     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22255       try {
22256         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22257         __isset_bitfield = 0;
22258         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22259       } catch (org.apache.thrift.TException te) {
22260         throw new java.io.IOException(te);
22261       }
22262     }
22263
22264     private static class multipaths_argsStandardSchemeFactory implements SchemeFactory {
22265       public multipaths_argsStandardScheme getScheme() {
22266         return new multipaths_argsStandardScheme();
22267       }
22268     }
22269
22270     private static class multipaths_argsStandardScheme extends StandardScheme<multipaths_args> {
22271
22272       public void read(org.apache.thrift.protocol.TProtocol iprot, multipaths_args struct) throws org.apache.thrift.TException {
22273         org.apache.thrift.protocol.TField schemeField;
22274         iprot.readStructBegin();
22275         while (true)
22276         {
22277           schemeField = iprot.readFieldBegin();
22278           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
22279             break;
22280           }
22281           switch (schemeField.id) {
22282             case 1: // RD
22283               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
22284                 struct.rd = iprot.readString();
22285                 struct.setRdIsSet(true);
22286               } else { 
22287                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22288               }
22289               break;
22290             case 2: // MAX_PATH
22291               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
22292                 struct.maxPath = iprot.readI32();
22293                 struct.setMaxPathIsSet(true);
22294               } else { 
22295                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22296               }
22297               break;
22298             default:
22299               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22300           }
22301           iprot.readFieldEnd();
22302         }
22303         iprot.readStructEnd();
22304
22305         // check for required fields of primitive type, which can't be checked in the validate method
22306         struct.validate();
22307       }
22308
22309       public void write(org.apache.thrift.protocol.TProtocol oprot, multipaths_args struct) throws org.apache.thrift.TException {
22310         struct.validate();
22311
22312         oprot.writeStructBegin(STRUCT_DESC);
22313         if (struct.rd != null) {
22314           oprot.writeFieldBegin(RD_FIELD_DESC);
22315           oprot.writeString(struct.rd);
22316           oprot.writeFieldEnd();
22317         }
22318         oprot.writeFieldBegin(MAX_PATH_FIELD_DESC);
22319         oprot.writeI32(struct.maxPath);
22320         oprot.writeFieldEnd();
22321         oprot.writeFieldStop();
22322         oprot.writeStructEnd();
22323       }
22324
22325     }
22326
22327     private static class multipaths_argsTupleSchemeFactory implements SchemeFactory {
22328       public multipaths_argsTupleScheme getScheme() {
22329         return new multipaths_argsTupleScheme();
22330       }
22331     }
22332
22333     private static class multipaths_argsTupleScheme extends TupleScheme<multipaths_args> {
22334
22335       @Override
22336       public void write(org.apache.thrift.protocol.TProtocol prot, multipaths_args struct) throws org.apache.thrift.TException {
22337         TTupleProtocol oprot = (TTupleProtocol) prot;
22338         BitSet optionals = new BitSet();
22339         if (struct.isSetRd()) {
22340           optionals.set(0);
22341         }
22342         if (struct.isSetMaxPath()) {
22343           optionals.set(1);
22344         }
22345         oprot.writeBitSet(optionals, 2);
22346         if (struct.isSetRd()) {
22347           oprot.writeString(struct.rd);
22348         }
22349         if (struct.isSetMaxPath()) {
22350           oprot.writeI32(struct.maxPath);
22351         }
22352       }
22353
22354       @Override
22355       public void read(org.apache.thrift.protocol.TProtocol prot, multipaths_args struct) throws org.apache.thrift.TException {
22356         TTupleProtocol iprot = (TTupleProtocol) prot;
22357         BitSet incoming = iprot.readBitSet(2);
22358         if (incoming.get(0)) {
22359           struct.rd = iprot.readString();
22360           struct.setRdIsSet(true);
22361         }
22362         if (incoming.get(1)) {
22363           struct.maxPath = iprot.readI32();
22364           struct.setMaxPathIsSet(true);
22365         }
22366       }
22367     }
22368
22369   }
22370
22371   public static class multipaths_result implements org.apache.thrift.TBase<multipaths_result, multipaths_result._Fields>, java.io.Serializable, Cloneable, Comparable<multipaths_result>   {
22372     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("multipaths_result");
22373
22374     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);
22375
22376     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22377     static {
22378       schemes.put(StandardScheme.class, new multipaths_resultStandardSchemeFactory());
22379       schemes.put(TupleScheme.class, new multipaths_resultTupleSchemeFactory());
22380     }
22381
22382     public int success; // required
22383
22384     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22385     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22386       SUCCESS((short)0, "success");
22387
22388       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22389
22390       static {
22391         for (_Fields field : EnumSet.allOf(_Fields.class)) {
22392           byName.put(field.getFieldName(), field);
22393         }
22394       }
22395
22396       /**
22397        * Find the _Fields constant that matches fieldId, or null if its not found.
22398        */
22399       public static _Fields findByThriftId(int fieldId) {
22400         switch(fieldId) {
22401           case 0: // SUCCESS
22402             return SUCCESS;
22403           default:
22404             return null;
22405         }
22406       }
22407
22408       /**
22409        * Find the _Fields constant that matches fieldId, throwing an exception
22410        * if it is not found.
22411        */
22412       public static _Fields findByThriftIdOrThrow(int fieldId) {
22413         _Fields fields = findByThriftId(fieldId);
22414         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22415         return fields;
22416       }
22417
22418       /**
22419        * Find the _Fields constant that matches name, or null if its not found.
22420        */
22421       public static _Fields findByName(String name) {
22422         return byName.get(name);
22423       }
22424
22425       private final short _thriftId;
22426       private final String _fieldName;
22427
22428       _Fields(short thriftId, String fieldName) {
22429         _thriftId = thriftId;
22430         _fieldName = fieldName;
22431       }
22432
22433       public short getThriftFieldId() {
22434         return _thriftId;
22435       }
22436
22437       public String getFieldName() {
22438         return _fieldName;
22439       }
22440     }
22441
22442     // isset id assignments
22443     private static final int __SUCCESS_ISSET_ID = 0;
22444     private byte __isset_bitfield = 0;
22445     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22446     static {
22447       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22448       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22449           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
22450       metaDataMap = Collections.unmodifiableMap(tmpMap);
22451       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(multipaths_result.class, metaDataMap);
22452     }
22453
22454     public multipaths_result() {
22455     }
22456
22457     public multipaths_result(
22458       int success)
22459     {
22460       this();
22461       this.success = success;
22462       setSuccessIsSet(true);
22463     }
22464
22465     /**
22466      * Performs a deep copy on <i>other</i>.
22467      */
22468     public multipaths_result(multipaths_result other) {
22469       __isset_bitfield = other.__isset_bitfield;
22470       this.success = other.success;
22471     }
22472
22473     public multipaths_result deepCopy() {
22474       return new multipaths_result(this);
22475     }
22476
22477     @Override
22478     public void clear() {
22479       setSuccessIsSet(false);
22480       this.success = 0;
22481     }
22482
22483     public int getSuccess() {
22484       return this.success;
22485     }
22486
22487     public multipaths_result setSuccess(int success) {
22488       this.success = success;
22489       setSuccessIsSet(true);
22490       return this;
22491     }
22492
22493     public void unsetSuccess() {
22494       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
22495     }
22496
22497     /** Returns true if field success is set (has been assigned a value) and false otherwise */
22498     public boolean isSetSuccess() {
22499       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
22500     }
22501
22502     public void setSuccessIsSet(boolean value) {
22503       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
22504     }
22505
22506     public void setFieldValue(_Fields field, Object value) {
22507       switch (field) {
22508       case SUCCESS:
22509         if (value == null) {
22510           unsetSuccess();
22511         } else {
22512           setSuccess((Integer)value);
22513         }
22514         break;
22515
22516       }
22517     }
22518
22519     public Object getFieldValue(_Fields field) {
22520       switch (field) {
22521       case SUCCESS:
22522         return Integer.valueOf(getSuccess());
22523
22524       }
22525       throw new IllegalStateException();
22526     }
22527
22528     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22529     public boolean isSet(_Fields field) {
22530       if (field == null) {
22531         throw new IllegalArgumentException();
22532       }
22533
22534       switch (field) {
22535       case SUCCESS:
22536         return isSetSuccess();
22537       }
22538       throw new IllegalStateException();
22539     }
22540
22541     @Override
22542     public boolean equals(Object that) {
22543       if (that == null)
22544         return false;
22545       if (that instanceof multipaths_result)
22546         return this.equals((multipaths_result)that);
22547       return false;
22548     }
22549
22550     public boolean equals(multipaths_result that) {
22551       if (that == null)
22552         return false;
22553
22554       boolean this_present_success = true;
22555       boolean that_present_success = true;
22556       if (this_present_success || that_present_success) {
22557         if (!(this_present_success && that_present_success))
22558           return false;
22559         if (this.success != that.success)
22560           return false;
22561       }
22562
22563       return true;
22564     }
22565
22566     @Override
22567     public int hashCode() {
22568       return 0;
22569     }
22570
22571     @Override
22572     public int compareTo(multipaths_result other) {
22573       if (!getClass().equals(other.getClass())) {
22574         return getClass().getName().compareTo(other.getClass().getName());
22575       }
22576
22577       int lastComparison = 0;
22578
22579       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
22580       if (lastComparison != 0) {
22581         return lastComparison;
22582       }
22583       if (isSetSuccess()) {
22584         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
22585         if (lastComparison != 0) {
22586           return lastComparison;
22587         }
22588       }
22589       return 0;
22590     }
22591
22592     public _Fields fieldForId(int fieldId) {
22593       return _Fields.findByThriftId(fieldId);
22594     }
22595
22596     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22597       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22598     }
22599
22600     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22601       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22602       }
22603
22604     @Override
22605     public String toString() {
22606       StringBuilder sb = new StringBuilder("multipaths_result(");
22607       boolean first = true;
22608
22609       sb.append("success:");
22610       sb.append(this.success);
22611       first = false;
22612       sb.append(")");
22613       return sb.toString();
22614     }
22615
22616     public void validate() throws org.apache.thrift.TException {
22617       // check for required fields
22618       // check for sub-struct validity
22619     }
22620
22621     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22622       try {
22623         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22624       } catch (org.apache.thrift.TException te) {
22625         throw new java.io.IOException(te);
22626       }
22627     }
22628
22629     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22630       try {
22631         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22632         __isset_bitfield = 0;
22633         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22634       } catch (org.apache.thrift.TException te) {
22635         throw new java.io.IOException(te);
22636       }
22637     }
22638
22639     private static class multipaths_resultStandardSchemeFactory implements SchemeFactory {
22640       public multipaths_resultStandardScheme getScheme() {
22641         return new multipaths_resultStandardScheme();
22642       }
22643     }
22644
22645     private static class multipaths_resultStandardScheme extends StandardScheme<multipaths_result> {
22646
22647       public void read(org.apache.thrift.protocol.TProtocol iprot, multipaths_result struct) throws org.apache.thrift.TException {
22648         org.apache.thrift.protocol.TField schemeField;
22649         iprot.readStructBegin();
22650         while (true)
22651         {
22652           schemeField = iprot.readFieldBegin();
22653           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
22654             break;
22655           }
22656           switch (schemeField.id) {
22657             case 0: // SUCCESS
22658               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
22659                 struct.success = iprot.readI32();
22660                 struct.setSuccessIsSet(true);
22661               } else { 
22662                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22663               }
22664               break;
22665             default:
22666               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22667           }
22668           iprot.readFieldEnd();
22669         }
22670         iprot.readStructEnd();
22671
22672         // check for required fields of primitive type, which can't be checked in the validate method
22673         struct.validate();
22674       }
22675
22676       public void write(org.apache.thrift.protocol.TProtocol oprot, multipaths_result struct) throws org.apache.thrift.TException {
22677         struct.validate();
22678
22679         oprot.writeStructBegin(STRUCT_DESC);
22680         if (struct.isSetSuccess()) {
22681           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22682           oprot.writeI32(struct.success);
22683           oprot.writeFieldEnd();
22684         }
22685         oprot.writeFieldStop();
22686         oprot.writeStructEnd();
22687       }
22688
22689     }
22690
22691     private static class multipaths_resultTupleSchemeFactory implements SchemeFactory {
22692       public multipaths_resultTupleScheme getScheme() {
22693         return new multipaths_resultTupleScheme();
22694       }
22695     }
22696
22697     private static class multipaths_resultTupleScheme extends TupleScheme<multipaths_result> {
22698
22699       @Override
22700       public void write(org.apache.thrift.protocol.TProtocol prot, multipaths_result struct) throws org.apache.thrift.TException {
22701         TTupleProtocol oprot = (TTupleProtocol) prot;
22702         BitSet optionals = new BitSet();
22703         if (struct.isSetSuccess()) {
22704           optionals.set(0);
22705         }
22706         oprot.writeBitSet(optionals, 1);
22707         if (struct.isSetSuccess()) {
22708           oprot.writeI32(struct.success);
22709         }
22710       }
22711
22712       @Override
22713       public void read(org.apache.thrift.protocol.TProtocol prot, multipaths_result struct) throws org.apache.thrift.TException {
22714         TTupleProtocol iprot = (TTupleProtocol) prot;
22715         BitSet incoming = iprot.readBitSet(1);
22716         if (incoming.get(0)) {
22717           struct.success = iprot.readI32();
22718           struct.setSuccessIsSet(true);
22719         }
22720       }
22721     }
22722
22723   }
22724
22725 }