bgpmanager thrift upgrade to 0.9.3
[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.3)
3  *
4  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5  *  @generated
6  */
7  package org.opendaylight.netvirt.bgpmanager.thrift.gen;
8 import org.apache.thrift.scheme.IScheme;
9 import org.apache.thrift.scheme.SchemeFactory;
10 import org.apache.thrift.scheme.StandardScheme;
11
12 import org.apache.thrift.scheme.TupleScheme;
13 import org.apache.thrift.protocol.TTupleProtocol;
14 import org.apache.thrift.protocol.TProtocolException;
15 import org.apache.thrift.EncodingUtils;
16 import org.apache.thrift.TException;
17 import org.apache.thrift.async.AsyncMethodCallback;
18 import org.apache.thrift.server.AbstractNonblockingServer.*;
19 import java.util.List;
20 import java.util.ArrayList;
21 import java.util.Map;
22 import java.util.HashMap;
23 import java.util.EnumMap;
24 import java.util.Set;
25 import java.util.HashSet;
26 import java.util.EnumSet;
27 import java.util.Collections;
28 import java.util.BitSet;
29 import java.nio.ByteBuffer;
30 import java.util.Arrays;
31 import javax.annotation.Generated;
32 import org.slf4j.Logger;
33 import org.slf4j.LoggerFactory;
34
35 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
36 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-09-13")
37 public class BgpConfigurator {
38
39   public interface Iface {
40
41     public int startBgp(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush) throws org.apache.thrift.TException;
42
43     public int stopBgp(long asNumber) throws org.apache.thrift.TException;
44
45     public int createPeer(String ipAddress, long asNumber) throws org.apache.thrift.TException;
46
47     public int setPeerSecret(String ipAddress, String rfc2385_sharedSecret) throws org.apache.thrift.TException;
48
49     public int deletePeer(String ipAddress) throws org.apache.thrift.TException;
50
51     public int addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException;
52
53     public int delVrf(String rd) throws org.apache.thrift.TException;
54
55     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, af_afi afi) throws org.apache.thrift.TException;
56
57     public int withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, af_afi afi) throws org.apache.thrift.TException;
58
59     public int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException;
60
61     public int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException;
62
63     public int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException;
64
65     public int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException;
66
67     public int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
68
69     public int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
70
71     public int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException;
72
73     public int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException;
74
75     public int disableGracefulRestart() throws org.apache.thrift.TException;
76
77     public Routes getRoutes(protocol_type p_type, int optype, int winSize, af_afi afi) throws org.apache.thrift.TException;
78
79     public int enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException;
80
81     public int disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException;
82
83     public int multipaths(String rd, int maxPath) throws org.apache.thrift.TException;
84
85     public int enableEORDelay(int delay) throws org.apache.thrift.TException;
86
87     public int sendEOR() throws org.apache.thrift.TException;
88
89   }
90
91   public interface AsyncIface {
92
93     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;
94
95     public void stopBgp(long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
96
97     public void createPeer(String ipAddress, long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
98
99     public void setPeerSecret(String ipAddress, String rfc2385_sharedSecret, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
100
101     public void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
102
103     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;
104
105     public void delVrf(String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
106
107     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, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
108
109     public void withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
110
111     public void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
112
113     public void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
114
115     public void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
116
117     public void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
118
119     public void enableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
120
121     public void disableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
122
123     public void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
124
125     public void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
126
127     public void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
128
129     public void getRoutes(protocol_type p_type, int optype, int winSize, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
130
131     public void enableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
132
133     public void disableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
134
135     public void multipaths(String rd, int maxPath, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
136
137     public void enableEORDelay(int delay, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
138
139     public void sendEOR(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
140
141   }
142
143   public static class Client extends org.apache.thrift.TServiceClient implements Iface {
144     public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
145       public Factory() {}
146       @Override
147         public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
148         return new Client(prot);
149       }
150       @Override
151         public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
152         return new Client(iprot, oprot);
153       }
154     }
155
156     public Client(org.apache.thrift.protocol.TProtocol prot)
157     {
158       super(prot, prot);
159     }
160
161     public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
162       super(iprot, oprot);
163     }
164
165     @Override
166         public int startBgp(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush) throws org.apache.thrift.TException
167     {
168       send_startBgp(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFlush);
169       return recv_startBgp();
170     }
171
172     public void send_startBgp(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush) throws org.apache.thrift.TException
173     {
174       startBgp_args args = new startBgp_args();
175       args.setAsNumber(asNumber);
176       args.setRouterId(routerId);
177       args.setPort(port);
178       args.setHoldTime(holdTime);
179       args.setKeepAliveTime(keepAliveTime);
180       args.setStalepathTime(stalepathTime);
181       args.setAnnounceFlush(announceFlush);
182       sendBase("startBgp", args);
183     }
184
185     public int recv_startBgp() throws org.apache.thrift.TException
186     {
187       startBgp_result result = new startBgp_result();
188       receiveBase(result, "startBgp");
189       if (result.isSetSuccess()) {
190         return result.success;
191       }
192       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startBgp failed: unknown result");
193     }
194
195     @Override
196         public int stopBgp(long asNumber) throws org.apache.thrift.TException
197     {
198       send_stopBgp(asNumber);
199       return recv_stopBgp();
200     }
201
202     public void send_stopBgp(long asNumber) throws org.apache.thrift.TException
203     {
204       stopBgp_args args = new stopBgp_args();
205       args.setAsNumber(asNumber);
206       sendBase("stopBgp", args);
207     }
208
209     public int recv_stopBgp() throws org.apache.thrift.TException
210     {
211       stopBgp_result result = new stopBgp_result();
212       receiveBase(result, "stopBgp");
213       if (result.isSetSuccess()) {
214         return result.success;
215       }
216       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "stopBgp failed: unknown result");
217     }
218
219     @Override
220         public int createPeer(String ipAddress, long asNumber) throws org.apache.thrift.TException
221     {
222       send_createPeer(ipAddress, asNumber);
223       return recv_createPeer();
224     }
225
226     public void send_createPeer(String ipAddress, long asNumber) throws org.apache.thrift.TException
227     {
228       createPeer_args args = new createPeer_args();
229       args.setIpAddress(ipAddress);
230       args.setAsNumber(asNumber);
231       sendBase("createPeer", args);
232     }
233
234     public int recv_createPeer() throws org.apache.thrift.TException
235     {
236       createPeer_result result = new createPeer_result();
237       receiveBase(result, "createPeer");
238       if (result.isSetSuccess()) {
239         return result.success;
240       }
241       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPeer failed: unknown result");
242     }
243
244     @Override
245         public int setPeerSecret(String ipAddress, String rfc2385_sharedSecret) throws org.apache.thrift.TException
246     {
247       send_setPeerSecret(ipAddress, rfc2385_sharedSecret);
248       return recv_setPeerSecret();
249     }
250
251     public void send_setPeerSecret(String ipAddress, String rfc2385_sharedSecret) throws org.apache.thrift.TException
252     {
253       setPeerSecret_args args = new setPeerSecret_args();
254       args.setIpAddress(ipAddress);
255       args.setRfc2385_sharedSecret(rfc2385_sharedSecret);
256       sendBase("setPeerSecret", args);
257     }
258
259     public int recv_setPeerSecret() throws org.apache.thrift.TException
260     {
261       setPeerSecret_result result = new setPeerSecret_result();
262       receiveBase(result, "setPeerSecret");
263       if (result.isSetSuccess()) {
264         return result.success;
265       }
266       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setPeerSecret failed: unknown result");
267     }
268
269     @Override
270         public int deletePeer(String ipAddress) throws org.apache.thrift.TException
271     {
272       send_deletePeer(ipAddress);
273       return recv_deletePeer();
274     }
275
276     public void send_deletePeer(String ipAddress) throws org.apache.thrift.TException
277     {
278       deletePeer_args args = new deletePeer_args();
279       args.setIpAddress(ipAddress);
280       sendBase("deletePeer", args);
281     }
282
283     public int recv_deletePeer() throws org.apache.thrift.TException
284     {
285       deletePeer_result result = new deletePeer_result();
286       receiveBase(result, "deletePeer");
287       if (result.isSetSuccess()) {
288         return result.success;
289       }
290       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deletePeer failed: unknown result");
291     }
292
293     @Override
294         public int addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException
295     {
296       send_addVrf(l_type, rd, irts, erts);
297       return recv_addVrf();
298     }
299
300     public void send_addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException
301     {
302       addVrf_args args = new addVrf_args();
303       args.setL_type(l_type);
304       args.setRd(rd);
305       args.setIrts(irts);
306       args.setErts(erts);
307       sendBase("addVrf", args);
308     }
309
310     public int recv_addVrf() throws org.apache.thrift.TException
311     {
312       addVrf_result result = new addVrf_result();
313       receiveBase(result, "addVrf");
314       if (result.isSetSuccess()) {
315         return result.success;
316       }
317       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVrf failed: unknown result");
318     }
319
320     @Override
321         public int delVrf(String rd) throws org.apache.thrift.TException
322     {
323       send_delVrf(rd);
324       return recv_delVrf();
325     }
326
327     public void send_delVrf(String rd) throws org.apache.thrift.TException
328     {
329       delVrf_args args = new delVrf_args();
330       args.setRd(rd);
331       sendBase("delVrf", args);
332     }
333
334     public int recv_delVrf() throws org.apache.thrift.TException
335     {
336       delVrf_result result = new delVrf_result();
337       receiveBase(result, "delVrf");
338       if (result.isSetSuccess()) {
339         return result.success;
340       }
341       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "delVrf failed: unknown result");
342     }
343
344     @Override
345         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, af_afi afi) throws org.apache.thrift.TException
346     {
347       send_pushRoute(p_type, prefix, nexthop, rd, ethtag, esi, macaddress, l3label, l2label, enc_type, routermac, afi);
348       return recv_pushRoute();
349     }
350
351     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, af_afi afi) throws org.apache.thrift.TException
352     {
353       pushRoute_args args = new pushRoute_args();
354       args.setP_type(p_type);
355       args.setPrefix(prefix);
356       args.setNexthop(nexthop);
357       args.setRd(rd);
358       args.setEthtag(ethtag);
359       args.setEsi(esi);
360       args.setMacaddress(macaddress);
361       args.setL3label(l3label);
362       args.setL2label(l2label);
363       args.setEnc_type(enc_type);
364       args.setRoutermac(routermac);
365       args.setAfi(afi);
366       sendBase("pushRoute", args);
367     }
368
369     public int recv_pushRoute() throws org.apache.thrift.TException
370     {
371       pushRoute_result result = new pushRoute_result();
372       receiveBase(result, "pushRoute");
373       if (result.isSetSuccess()) {
374         return result.success;
375       }
376       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "pushRoute failed: unknown result");
377     }
378
379     @Override
380         public int withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, af_afi afi) throws org.apache.thrift.TException
381     {
382       send_withdrawRoute(p_type, prefix, rd, ethtag, esi, macaddress, afi);
383       return recv_withdrawRoute();
384     }
385
386     public void send_withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, af_afi afi) throws org.apache.thrift.TException
387     {
388       withdrawRoute_args args = new withdrawRoute_args();
389       args.setP_type(p_type);
390       args.setPrefix(prefix);
391       args.setRd(rd);
392       args.setEthtag(ethtag);
393       args.setEsi(esi);
394       args.setMacaddress(macaddress);
395       args.setAfi(afi);
396       sendBase("withdrawRoute", args);
397     }
398
399     public int recv_withdrawRoute() throws org.apache.thrift.TException
400     {
401       withdrawRoute_result result = new withdrawRoute_result();
402       receiveBase(result, "withdrawRoute");
403       if (result.isSetSuccess()) {
404         return result.success;
405       }
406       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "withdrawRoute failed: unknown result");
407     }
408
409     @Override
410         public int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
411     {
412       send_setEbgpMultihop(peerIp, nHops);
413       return recv_setEbgpMultihop();
414     }
415
416     public void send_setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
417     {
418       setEbgpMultihop_args args = new setEbgpMultihop_args();
419       args.setPeerIp(peerIp);
420       args.setNHops(nHops);
421       sendBase("setEbgpMultihop", args);
422     }
423
424     public int recv_setEbgpMultihop() throws org.apache.thrift.TException
425     {
426       setEbgpMultihop_result result = new setEbgpMultihop_result();
427       receiveBase(result, "setEbgpMultihop");
428       if (result.isSetSuccess()) {
429         return result.success;
430       }
431       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setEbgpMultihop failed: unknown result");
432     }
433
434     @Override
435         public int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
436     {
437       send_unsetEbgpMultihop(peerIp);
438       return recv_unsetEbgpMultihop();
439     }
440
441     public void send_unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
442     {
443       unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
444       args.setPeerIp(peerIp);
445       sendBase("unsetEbgpMultihop", args);
446     }
447
448     public int recv_unsetEbgpMultihop() throws org.apache.thrift.TException
449     {
450       unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
451       receiveBase(result, "unsetEbgpMultihop");
452       if (result.isSetSuccess()) {
453         return result.success;
454       }
455       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetEbgpMultihop failed: unknown result");
456     }
457
458     @Override
459         public int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
460     {
461       send_setUpdateSource(peerIp, srcIp);
462       return recv_setUpdateSource();
463     }
464
465     public void send_setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
466     {
467       setUpdateSource_args args = new setUpdateSource_args();
468       args.setPeerIp(peerIp);
469       args.setSrcIp(srcIp);
470       sendBase("setUpdateSource", args);
471     }
472
473     public int recv_setUpdateSource() throws org.apache.thrift.TException
474     {
475       setUpdateSource_result result = new setUpdateSource_result();
476       receiveBase(result, "setUpdateSource");
477       if (result.isSetSuccess()) {
478         return result.success;
479       }
480       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setUpdateSource failed: unknown result");
481     }
482
483     @Override
484         public int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
485     {
486       send_unsetUpdateSource(peerIp);
487       return recv_unsetUpdateSource();
488     }
489
490     public void send_unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
491     {
492       unsetUpdateSource_args args = new unsetUpdateSource_args();
493       args.setPeerIp(peerIp);
494       sendBase("unsetUpdateSource", args);
495     }
496
497     public int recv_unsetUpdateSource() throws org.apache.thrift.TException
498     {
499       unsetUpdateSource_result result = new unsetUpdateSource_result();
500       receiveBase(result, "unsetUpdateSource");
501       if (result.isSetSuccess()) {
502         return result.success;
503       }
504       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetUpdateSource failed: unknown result");
505     }
506
507     @Override
508         public int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
509     {
510       send_enableAddressFamily(peerIp, afi, safi);
511       return recv_enableAddressFamily();
512     }
513
514     public void send_enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
515     {
516       enableAddressFamily_args args = new enableAddressFamily_args();
517       args.setPeerIp(peerIp);
518       args.setAfi(afi);
519       args.setSafi(safi);
520       sendBase("enableAddressFamily", args);
521     }
522
523     public int recv_enableAddressFamily() throws org.apache.thrift.TException
524     {
525       enableAddressFamily_result result = new enableAddressFamily_result();
526       receiveBase(result, "enableAddressFamily");
527       if (result.isSetSuccess()) {
528         return result.success;
529       }
530       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableAddressFamily failed: unknown result");
531     }
532
533     @Override
534         public int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
535     {
536       send_disableAddressFamily(peerIp, afi, safi);
537       return recv_disableAddressFamily();
538     }
539
540     public void send_disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
541     {
542       disableAddressFamily_args args = new disableAddressFamily_args();
543       args.setPeerIp(peerIp);
544       args.setAfi(afi);
545       args.setSafi(safi);
546       sendBase("disableAddressFamily", args);
547     }
548
549     public int recv_disableAddressFamily() throws org.apache.thrift.TException
550     {
551       disableAddressFamily_result result = new disableAddressFamily_result();
552       receiveBase(result, "disableAddressFamily");
553       if (result.isSetSuccess()) {
554         return result.success;
555       }
556       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableAddressFamily failed: unknown result");
557     }
558
559     @Override
560         public int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
561     {
562       send_setLogConfig(logFileName, logLevel);
563       return recv_setLogConfig();
564     }
565
566     public void send_setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
567     {
568       setLogConfig_args args = new setLogConfig_args();
569       args.setLogFileName(logFileName);
570       args.setLogLevel(logLevel);
571       sendBase("setLogConfig", args);
572     }
573
574     public int recv_setLogConfig() throws org.apache.thrift.TException
575     {
576       setLogConfig_result result = new setLogConfig_result();
577       receiveBase(result, "setLogConfig");
578       if (result.isSetSuccess()) {
579         return result.success;
580       }
581       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setLogConfig failed: unknown result");
582     }
583
584     @Override
585         public int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
586     {
587       send_enableGracefulRestart(stalepathTime);
588       return recv_enableGracefulRestart();
589     }
590
591     public void send_enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
592     {
593       enableGracefulRestart_args args = new enableGracefulRestart_args();
594       args.setStalepathTime(stalepathTime);
595       sendBase("enableGracefulRestart", args);
596     }
597
598     public int recv_enableGracefulRestart() throws org.apache.thrift.TException
599     {
600       enableGracefulRestart_result result = new enableGracefulRestart_result();
601       receiveBase(result, "enableGracefulRestart");
602       if (result.isSetSuccess()) {
603         return result.success;
604       }
605       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableGracefulRestart failed: unknown result");
606     }
607
608     @Override
609         public int disableGracefulRestart() throws org.apache.thrift.TException
610     {
611       send_disableGracefulRestart();
612       return recv_disableGracefulRestart();
613     }
614
615     public void send_disableGracefulRestart() throws org.apache.thrift.TException
616     {
617       disableGracefulRestart_args args = new disableGracefulRestart_args();
618       sendBase("disableGracefulRestart", args);
619     }
620
621     public int recv_disableGracefulRestart() throws org.apache.thrift.TException
622     {
623       disableGracefulRestart_result result = new disableGracefulRestart_result();
624       receiveBase(result, "disableGracefulRestart");
625       if (result.isSetSuccess()) {
626         return result.success;
627       }
628       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableGracefulRestart failed: unknown result");
629     }
630
631     @Override
632         public Routes getRoutes(protocol_type p_type, int optype, int winSize, af_afi afi) throws org.apache.thrift.TException
633     {
634       send_getRoutes(p_type, optype, winSize, afi);
635       return recv_getRoutes();
636     }
637
638     public void send_getRoutes(protocol_type p_type, int optype, int winSize, af_afi afi) throws org.apache.thrift.TException
639     {
640       getRoutes_args args = new getRoutes_args();
641       args.setP_type(p_type);
642       args.setOptype(optype);
643       args.setWinSize(winSize);
644       args.setAfi(afi);
645       sendBase("getRoutes", args);
646     }
647
648     public Routes recv_getRoutes() throws org.apache.thrift.TException
649     {
650       getRoutes_result result = new getRoutes_result();
651       receiveBase(result, "getRoutes");
652       if (result.isSetSuccess()) {
653         return result.success;
654       }
655       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoutes failed: unknown result");
656     }
657
658     @Override
659         public int enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
660     {
661       send_enableMultipath(afi, safi);
662       return recv_enableMultipath();
663     }
664
665     public void send_enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
666     {
667       enableMultipath_args args = new enableMultipath_args();
668       args.setAfi(afi);
669       args.setSafi(safi);
670       sendBase("enableMultipath", args);
671     }
672
673     public int recv_enableMultipath() throws org.apache.thrift.TException
674     {
675       enableMultipath_result result = new enableMultipath_result();
676       receiveBase(result, "enableMultipath");
677       if (result.isSetSuccess()) {
678         return result.success;
679       }
680       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableMultipath failed: unknown result");
681     }
682
683     @Override
684         public int disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
685     {
686       send_disableMultipath(afi, safi);
687       return recv_disableMultipath();
688     }
689
690     public void send_disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
691     {
692       disableMultipath_args args = new disableMultipath_args();
693       args.setAfi(afi);
694       args.setSafi(safi);
695       sendBase("disableMultipath", args);
696     }
697
698     public int recv_disableMultipath() throws org.apache.thrift.TException
699     {
700       disableMultipath_result result = new disableMultipath_result();
701       receiveBase(result, "disableMultipath");
702       if (result.isSetSuccess()) {
703         return result.success;
704       }
705       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableMultipath failed: unknown result");
706     }
707
708     @Override
709         public int multipaths(String rd, int maxPath) throws org.apache.thrift.TException
710     {
711       send_multipaths(rd, maxPath);
712       return recv_multipaths();
713     }
714
715     public void send_multipaths(String rd, int maxPath) throws org.apache.thrift.TException
716     {
717       multipaths_args args = new multipaths_args();
718       args.setRd(rd);
719       args.setMaxPath(maxPath);
720       sendBase("multipaths", args);
721     }
722
723     public int recv_multipaths() throws org.apache.thrift.TException
724     {
725       multipaths_result result = new multipaths_result();
726       receiveBase(result, "multipaths");
727       if (result.isSetSuccess()) {
728         return result.success;
729       }
730       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "multipaths failed: unknown result");
731     }
732
733     public int enableEORDelay(int delay) throws org.apache.thrift.TException
734     {
735       send_enableEORDelay(delay);
736       return recv_enableEORDelay();
737     }
738
739     public void send_enableEORDelay(int delay) throws org.apache.thrift.TException
740     {
741       enableEORDelay_args args = new enableEORDelay_args();
742       args.setDelay(delay);
743       sendBase("enableEORDelay", args);
744     }
745
746     public int recv_enableEORDelay() throws org.apache.thrift.TException
747     {
748       enableEORDelay_result result = new enableEORDelay_result();
749       receiveBase(result, "enableEORDelay");
750       if (result.isSetSuccess()) {
751         return result.success;
752       }
753       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableEORDelay failed: unknown result");
754     }
755
756     public int sendEOR() throws org.apache.thrift.TException
757     {
758       send_sendEOR();
759       return recv_sendEOR();
760     }
761
762     public void send_sendEOR() throws org.apache.thrift.TException
763     {
764       sendEOR_args args = new sendEOR_args();
765       sendBase("sendEOR", args);
766     }
767
768     public int recv_sendEOR() throws org.apache.thrift.TException
769     {
770       sendEOR_result result = new sendEOR_result();
771       receiveBase(result, "sendEOR");
772       if (result.isSetSuccess()) {
773         return result.success;
774       }
775       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sendEOR failed: unknown result");
776     }
777
778   }
779   public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
780     public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
781       private final org.apache.thrift.async.TAsyncClientManager clientManager;
782       private final org.apache.thrift.protocol.TProtocolFactory protocolFactory;
783       public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
784         this.clientManager = clientManager;
785         this.protocolFactory = protocolFactory;
786       }
787       @Override
788         public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
789         return new AsyncClient(protocolFactory, clientManager, transport);
790       }
791     }
792
793     public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
794       super(protocolFactory, clientManager, transport);
795     }
796
797     @Override
798         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 {
799       checkReady();
800       startBgp_call method_call = new startBgp_call(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFlush, resultHandler, this, ___protocolFactory, ___transport);
801       this.___currentMethod = method_call;
802       ___manager.call(method_call);
803     }
804
805     public static class startBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
806       private final long asNumber;
807       private final String routerId;
808       private final int port;
809       private final int holdTime;
810       private final int keepAliveTime;
811       private final int stalepathTime;
812       private final boolean announceFlush;
813       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 {
814         super(client, protocolFactory, transport, resultHandler, false);
815         this.asNumber = asNumber;
816         this.routerId = routerId;
817         this.port = port;
818         this.holdTime = holdTime;
819         this.keepAliveTime = keepAliveTime;
820         this.stalepathTime = stalepathTime;
821         this.announceFlush = announceFlush;
822       }
823
824       @Override
825         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
826         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
827         startBgp_args args = new startBgp_args();
828         args.setAsNumber(asNumber);
829         args.setRouterId(routerId);
830         args.setPort(port);
831         args.setHoldTime(holdTime);
832         args.setKeepAliveTime(keepAliveTime);
833         args.setStalepathTime(stalepathTime);
834         args.setAnnounceFlush(announceFlush);
835         args.write(prot);
836         prot.writeMessageEnd();
837       }
838
839       public int getResult() throws org.apache.thrift.TException {
840         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
841           throw new IllegalStateException("Method call not finished!");
842         }
843         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
844         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
845         return (new Client(prot)).recv_startBgp();
846       }
847     }
848
849     @Override
850         public void stopBgp(long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
851       checkReady();
852       stopBgp_call method_call = new stopBgp_call(asNumber, resultHandler, this, ___protocolFactory, ___transport);
853       this.___currentMethod = method_call;
854       ___manager.call(method_call);
855     }
856
857     public static class stopBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
858       private final long asNumber;
859       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 {
860         super(client, protocolFactory, transport, resultHandler, false);
861         this.asNumber = asNumber;
862       }
863
864       @Override
865         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
866         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("stopBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
867         stopBgp_args args = new stopBgp_args();
868         args.setAsNumber(asNumber);
869         args.write(prot);
870         prot.writeMessageEnd();
871       }
872
873       public int getResult() throws org.apache.thrift.TException {
874         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
875           throw new IllegalStateException("Method call not finished!");
876         }
877         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
878         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
879         return (new Client(prot)).recv_stopBgp();
880       }
881     }
882
883     @Override
884         public void createPeer(String ipAddress, long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
885       checkReady();
886       createPeer_call method_call = new createPeer_call(ipAddress, asNumber, resultHandler, this, ___protocolFactory, ___transport);
887       this.___currentMethod = method_call;
888       ___manager.call(method_call);
889     }
890
891     public static class createPeer_call extends org.apache.thrift.async.TAsyncMethodCall {
892       private final String ipAddress;
893       private final long asNumber;
894       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 {
895         super(client, protocolFactory, transport, resultHandler, false);
896         this.ipAddress = ipAddress;
897         this.asNumber = asNumber;
898       }
899
900       @Override
901         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
902         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
903         createPeer_args args = new createPeer_args();
904         args.setIpAddress(ipAddress);
905         args.setAsNumber(asNumber);
906         args.write(prot);
907         prot.writeMessageEnd();
908       }
909
910       public int getResult() throws org.apache.thrift.TException {
911         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
912           throw new IllegalStateException("Method call not finished!");
913         }
914         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
915         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
916         return (new Client(prot)).recv_createPeer();
917       }
918     }
919
920     @Override
921         public void setPeerSecret(String ipAddress, String rfc2385_sharedSecret, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
922       checkReady();
923       setPeerSecret_call method_call = new setPeerSecret_call(ipAddress, rfc2385_sharedSecret, resultHandler, this, ___protocolFactory, ___transport);
924       this.___currentMethod = method_call;
925       ___manager.call(method_call);
926     }
927
928     public static class setPeerSecret_call extends org.apache.thrift.async.TAsyncMethodCall {
929       private final String ipAddress;
930       private final String rfc2385_sharedSecret;
931       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 {
932         super(client, protocolFactory, transport, resultHandler, false);
933         this.ipAddress = ipAddress;
934         this.rfc2385_sharedSecret = rfc2385_sharedSecret;
935       }
936
937       @Override
938         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
939         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setPeerSecret", org.apache.thrift.protocol.TMessageType.CALL, 0));
940         setPeerSecret_args args = new setPeerSecret_args();
941         args.setIpAddress(ipAddress);
942         args.setRfc2385_sharedSecret(rfc2385_sharedSecret);
943         args.write(prot);
944         prot.writeMessageEnd();
945       }
946
947       public int getResult() throws org.apache.thrift.TException {
948         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
949           throw new IllegalStateException("Method call not finished!");
950         }
951         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
952         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
953         return (new Client(prot)).recv_setPeerSecret();
954       }
955     }
956
957     @Override
958         public void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
959       checkReady();
960       deletePeer_call method_call = new deletePeer_call(ipAddress, resultHandler, this, ___protocolFactory, ___transport);
961       this.___currentMethod = method_call;
962       ___manager.call(method_call);
963     }
964
965     public static class deletePeer_call extends org.apache.thrift.async.TAsyncMethodCall {
966       private final String ipAddress;
967       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 {
968         super(client, protocolFactory, transport, resultHandler, false);
969         this.ipAddress = ipAddress;
970       }
971
972       @Override
973         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
974         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deletePeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
975         deletePeer_args args = new deletePeer_args();
976         args.setIpAddress(ipAddress);
977         args.write(prot);
978         prot.writeMessageEnd();
979       }
980
981       public int getResult() throws org.apache.thrift.TException {
982         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
983           throw new IllegalStateException("Method call not finished!");
984         }
985         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
986         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
987         return (new Client(prot)).recv_deletePeer();
988       }
989     }
990
991     @Override
992         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 {
993       checkReady();
994       addVrf_call method_call = new addVrf_call(l_type, rd, irts, erts, resultHandler, this, ___protocolFactory, ___transport);
995       this.___currentMethod = method_call;
996       ___manager.call(method_call);
997     }
998
999     public static class addVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
1000       private final layer_type l_type;
1001       private final String rd;
1002       private final List<String> irts;
1003       private final List<String> erts;
1004       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 {
1005         super(client, protocolFactory, transport, resultHandler, false);
1006         this.l_type = l_type;
1007         this.rd = rd;
1008         this.irts = irts;
1009         this.erts = erts;
1010       }
1011
1012       @Override
1013         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1014         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
1015         addVrf_args args = new addVrf_args();
1016         args.setL_type(l_type);
1017         args.setRd(rd);
1018         args.setIrts(irts);
1019         args.setErts(erts);
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_addVrf();
1031       }
1032     }
1033
1034     @Override
1035         public void delVrf(String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1036       checkReady();
1037       delVrf_call method_call = new delVrf_call(rd, resultHandler, this, ___protocolFactory, ___transport);
1038       this.___currentMethod = method_call;
1039       ___manager.call(method_call);
1040     }
1041
1042     public static class delVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
1043       private final String rd;
1044       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 {
1045         super(client, protocolFactory, transport, resultHandler, false);
1046         this.rd = rd;
1047       }
1048
1049       @Override
1050         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1051         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("delVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
1052         delVrf_args args = new delVrf_args();
1053         args.setRd(rd);
1054         args.write(prot);
1055         prot.writeMessageEnd();
1056       }
1057
1058       public int getResult() throws org.apache.thrift.TException {
1059         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1060           throw new IllegalStateException("Method call not finished!");
1061         }
1062         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1063         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1064         return (new Client(prot)).recv_delVrf();
1065       }
1066     }
1067
1068     @Override
1069         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, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1070       checkReady();
1071       pushRoute_call method_call = new pushRoute_call(p_type, prefix, nexthop, rd, ethtag, esi, macaddress, l3label, l2label, enc_type, routermac, afi, resultHandler, this, ___protocolFactory, ___transport);
1072       this.___currentMethod = method_call;
1073       ___manager.call(method_call);
1074     }
1075
1076     public static class pushRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
1077       private final protocol_type p_type;
1078       private final String prefix;
1079       private final String nexthop;
1080       private final String rd;
1081       private final int ethtag;
1082       private final String esi;
1083       private final String macaddress;
1084       private final int l3label;
1085       private final int l2label;
1086       private final encap_type enc_type;
1087       private final String routermac;
1088       private final af_afi afi;
1089       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, af_afi afi, 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 {
1090         super(client, protocolFactory, transport, resultHandler, false);
1091         this.p_type = p_type;
1092         this.prefix = prefix;
1093         this.nexthop = nexthop;
1094         this.rd = rd;
1095         this.ethtag = ethtag;
1096         this.esi = esi;
1097         this.macaddress = macaddress;
1098         this.l3label = l3label;
1099         this.l2label = l2label;
1100         this.enc_type = enc_type;
1101         this.routermac = routermac;
1102         this.afi = afi;
1103       }
1104
1105       @Override
1106         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1107         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("pushRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
1108         pushRoute_args args = new pushRoute_args();
1109         args.setP_type(p_type);
1110         args.setPrefix(prefix);
1111         args.setNexthop(nexthop);
1112         args.setRd(rd);
1113         args.setEthtag(ethtag);
1114         args.setEsi(esi);
1115         args.setMacaddress(macaddress);
1116         args.setL3label(l3label);
1117         args.setL2label(l2label);
1118         args.setEnc_type(enc_type);
1119         args.setRoutermac(routermac);
1120         args.setAfi(afi);
1121         args.write(prot);
1122         prot.writeMessageEnd();
1123       }
1124
1125       public int getResult() throws org.apache.thrift.TException {
1126         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1127           throw new IllegalStateException("Method call not finished!");
1128         }
1129         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1130         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1131         return (new Client(prot)).recv_pushRoute();
1132       }
1133     }
1134
1135     @Override
1136         public void withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1137       checkReady();
1138       withdrawRoute_call method_call = new withdrawRoute_call(p_type, prefix, rd, ethtag, esi, macaddress, afi, resultHandler, this, ___protocolFactory, ___transport);
1139       this.___currentMethod = method_call;
1140       ___manager.call(method_call);
1141     }
1142
1143     public static class withdrawRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
1144       private final protocol_type p_type;
1145       private final String prefix;
1146       private final String rd;
1147       private final int ethtag;
1148       private final String esi;
1149       private final String macaddress;
1150       private final af_afi afi;
1151       public withdrawRoute_call(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, af_afi afi, 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 {
1152         super(client, protocolFactory, transport, resultHandler, false);
1153         this.p_type = p_type;
1154         this.prefix = prefix;
1155         this.rd = rd;
1156         this.ethtag = ethtag;
1157         this.esi = esi;
1158         this.macaddress = macaddress;
1159         this.afi = afi;
1160       }
1161
1162       @Override
1163         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1164         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("withdrawRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
1165         withdrawRoute_args args = new withdrawRoute_args();
1166         args.setP_type(p_type);
1167         args.setPrefix(prefix);
1168         args.setRd(rd);
1169         args.setEthtag(ethtag);
1170         args.setEsi(esi);
1171         args.setMacaddress(macaddress);
1172         args.setAfi(afi);
1173         args.write(prot);
1174         prot.writeMessageEnd();
1175       }
1176
1177       public int getResult() throws org.apache.thrift.TException {
1178         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1179           throw new IllegalStateException("Method call not finished!");
1180         }
1181         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1182         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1183         return (new Client(prot)).recv_withdrawRoute();
1184       }
1185     }
1186
1187     @Override
1188         public void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1189       checkReady();
1190       setEbgpMultihop_call method_call = new setEbgpMultihop_call(peerIp, nHops, resultHandler, this, ___protocolFactory, ___transport);
1191       this.___currentMethod = method_call;
1192       ___manager.call(method_call);
1193     }
1194
1195     public static class setEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
1196       private final String peerIp;
1197       private final int nHops;
1198       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 {
1199         super(client, protocolFactory, transport, resultHandler, false);
1200         this.peerIp = peerIp;
1201         this.nHops = nHops;
1202       }
1203
1204       @Override
1205         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1206         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
1207         setEbgpMultihop_args args = new setEbgpMultihop_args();
1208         args.setPeerIp(peerIp);
1209         args.setNHops(nHops);
1210         args.write(prot);
1211         prot.writeMessageEnd();
1212       }
1213
1214       public int getResult() throws org.apache.thrift.TException {
1215         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1216           throw new IllegalStateException("Method call not finished!");
1217         }
1218         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1219         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1220         return (new Client(prot)).recv_setEbgpMultihop();
1221       }
1222     }
1223
1224     @Override
1225         public void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1226       checkReady();
1227       unsetEbgpMultihop_call method_call = new unsetEbgpMultihop_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
1228       this.___currentMethod = method_call;
1229       ___manager.call(method_call);
1230     }
1231
1232     public static class unsetEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
1233       private final String peerIp;
1234       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 {
1235         super(client, protocolFactory, transport, resultHandler, false);
1236         this.peerIp = peerIp;
1237       }
1238
1239       @Override
1240         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1241         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
1242         unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
1243         args.setPeerIp(peerIp);
1244         args.write(prot);
1245         prot.writeMessageEnd();
1246       }
1247
1248       public int getResult() throws org.apache.thrift.TException {
1249         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1250           throw new IllegalStateException("Method call not finished!");
1251         }
1252         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1253         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1254         return (new Client(prot)).recv_unsetEbgpMultihop();
1255       }
1256     }
1257
1258     @Override
1259         public void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1260       checkReady();
1261       setUpdateSource_call method_call = new setUpdateSource_call(peerIp, srcIp, resultHandler, this, ___protocolFactory, ___transport);
1262       this.___currentMethod = method_call;
1263       ___manager.call(method_call);
1264     }
1265
1266     public static class setUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
1267       private final String peerIp;
1268       private final String srcIp;
1269       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 {
1270         super(client, protocolFactory, transport, resultHandler, false);
1271         this.peerIp = peerIp;
1272         this.srcIp = srcIp;
1273       }
1274
1275       @Override
1276         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1277         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
1278         setUpdateSource_args args = new setUpdateSource_args();
1279         args.setPeerIp(peerIp);
1280         args.setSrcIp(srcIp);
1281         args.write(prot);
1282         prot.writeMessageEnd();
1283       }
1284
1285       public int getResult() throws org.apache.thrift.TException {
1286         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1287           throw new IllegalStateException("Method call not finished!");
1288         }
1289         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1290         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1291         return (new Client(prot)).recv_setUpdateSource();
1292       }
1293     }
1294
1295     @Override
1296         public void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1297       checkReady();
1298       unsetUpdateSource_call method_call = new unsetUpdateSource_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
1299       this.___currentMethod = method_call;
1300       ___manager.call(method_call);
1301     }
1302
1303     public static class unsetUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
1304       private final String peerIp;
1305       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 {
1306         super(client, protocolFactory, transport, resultHandler, false);
1307         this.peerIp = peerIp;
1308       }
1309
1310       @Override
1311         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1312         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
1313         unsetUpdateSource_args args = new unsetUpdateSource_args();
1314         args.setPeerIp(peerIp);
1315         args.write(prot);
1316         prot.writeMessageEnd();
1317       }
1318
1319       public int getResult() throws org.apache.thrift.TException {
1320         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1321           throw new IllegalStateException("Method call not finished!");
1322         }
1323         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1324         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1325         return (new Client(prot)).recv_unsetUpdateSource();
1326       }
1327     }
1328
1329     @Override
1330         public void enableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1331       checkReady();
1332       enableAddressFamily_call method_call = new enableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1333       this.___currentMethod = method_call;
1334       ___manager.call(method_call);
1335     }
1336
1337     public static class enableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1338       private final String peerIp;
1339       private final af_afi afi;
1340       private final af_safi safi;
1341       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 {
1342         super(client, protocolFactory, transport, resultHandler, false);
1343         this.peerIp = peerIp;
1344         this.afi = afi;
1345         this.safi = safi;
1346       }
1347
1348       @Override
1349         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1350         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1351         enableAddressFamily_args args = new enableAddressFamily_args();
1352         args.setPeerIp(peerIp);
1353         args.setAfi(afi);
1354         args.setSafi(safi);
1355         args.write(prot);
1356         prot.writeMessageEnd();
1357       }
1358
1359       public int getResult() throws org.apache.thrift.TException {
1360         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1361           throw new IllegalStateException("Method call not finished!");
1362         }
1363         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1364         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1365         return (new Client(prot)).recv_enableAddressFamily();
1366       }
1367     }
1368
1369     @Override
1370         public void disableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1371       checkReady();
1372       disableAddressFamily_call method_call = new disableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1373       this.___currentMethod = method_call;
1374       ___manager.call(method_call);
1375     }
1376
1377     public static class disableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1378       private final String peerIp;
1379       private final af_afi afi;
1380       private final af_safi safi;
1381       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 {
1382         super(client, protocolFactory, transport, resultHandler, false);
1383         this.peerIp = peerIp;
1384         this.afi = afi;
1385         this.safi = safi;
1386       }
1387
1388       @Override
1389         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1390         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1391         disableAddressFamily_args args = new disableAddressFamily_args();
1392         args.setPeerIp(peerIp);
1393         args.setAfi(afi);
1394         args.setSafi(safi);
1395         args.write(prot);
1396         prot.writeMessageEnd();
1397       }
1398
1399       public int getResult() throws org.apache.thrift.TException {
1400         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1401           throw new IllegalStateException("Method call not finished!");
1402         }
1403         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1404         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1405         return (new Client(prot)).recv_disableAddressFamily();
1406       }
1407     }
1408
1409     @Override
1410         public void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1411       checkReady();
1412       setLogConfig_call method_call = new setLogConfig_call(logFileName, logLevel, resultHandler, this, ___protocolFactory, ___transport);
1413       this.___currentMethod = method_call;
1414       ___manager.call(method_call);
1415     }
1416
1417     public static class setLogConfig_call extends org.apache.thrift.async.TAsyncMethodCall {
1418       private final String logFileName;
1419       private final String logLevel;
1420       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 {
1421         super(client, protocolFactory, transport, resultHandler, false);
1422         this.logFileName = logFileName;
1423         this.logLevel = logLevel;
1424       }
1425
1426       @Override
1427         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1428         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setLogConfig", org.apache.thrift.protocol.TMessageType.CALL, 0));
1429         setLogConfig_args args = new setLogConfig_args();
1430         args.setLogFileName(logFileName);
1431         args.setLogLevel(logLevel);
1432         args.write(prot);
1433         prot.writeMessageEnd();
1434       }
1435
1436       public int getResult() throws org.apache.thrift.TException {
1437         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1438           throw new IllegalStateException("Method call not finished!");
1439         }
1440         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1441         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1442         return (new Client(prot)).recv_setLogConfig();
1443       }
1444     }
1445
1446     @Override
1447         public void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1448       checkReady();
1449       enableGracefulRestart_call method_call = new enableGracefulRestart_call(stalepathTime, resultHandler, this, ___protocolFactory, ___transport);
1450       this.___currentMethod = method_call;
1451       ___manager.call(method_call);
1452     }
1453
1454     public static class enableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1455       private final int stalepathTime;
1456       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 {
1457         super(client, protocolFactory, transport, resultHandler, false);
1458         this.stalepathTime = stalepathTime;
1459       }
1460
1461       @Override
1462         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1463         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1464         enableGracefulRestart_args args = new enableGracefulRestart_args();
1465         args.setStalepathTime(stalepathTime);
1466         args.write(prot);
1467         prot.writeMessageEnd();
1468       }
1469
1470       public int getResult() throws org.apache.thrift.TException {
1471         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1472           throw new IllegalStateException("Method call not finished!");
1473         }
1474         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1475         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1476         return (new Client(prot)).recv_enableGracefulRestart();
1477       }
1478     }
1479
1480     @Override
1481         public void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1482       checkReady();
1483       disableGracefulRestart_call method_call = new disableGracefulRestart_call(resultHandler, this, ___protocolFactory, ___transport);
1484       this.___currentMethod = method_call;
1485       ___manager.call(method_call);
1486     }
1487
1488     public static class disableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1489       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 {
1490         super(client, protocolFactory, transport, resultHandler, false);
1491       }
1492
1493       @Override
1494         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1495         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1496         disableGracefulRestart_args args = new disableGracefulRestart_args();
1497         args.write(prot);
1498         prot.writeMessageEnd();
1499       }
1500
1501       public int getResult() throws org.apache.thrift.TException {
1502         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1503           throw new IllegalStateException("Method call not finished!");
1504         }
1505         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1506         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1507         return (new Client(prot)).recv_disableGracefulRestart();
1508       }
1509     }
1510
1511     @Override
1512         public void getRoutes(protocol_type p_type, int optype, int winSize, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1513       checkReady();
1514       getRoutes_call method_call = new getRoutes_call(p_type, optype, winSize, afi, resultHandler, this, ___protocolFactory, ___transport);
1515       this.___currentMethod = method_call;
1516       ___manager.call(method_call);
1517     }
1518
1519     public static class getRoutes_call extends org.apache.thrift.async.TAsyncMethodCall {
1520       private final protocol_type p_type;
1521       private final int optype;
1522       private final int winSize;
1523       private final af_afi afi;
1524       public getRoutes_call(protocol_type p_type, int optype, int winSize, af_afi afi, 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 {
1525         super(client, protocolFactory, transport, resultHandler, false);
1526         this.p_type = p_type;
1527         this.optype = optype;
1528         this.winSize = winSize;
1529         this.afi = afi;
1530       }
1531
1532       @Override
1533         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1534         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoutes", org.apache.thrift.protocol.TMessageType.CALL, 0));
1535         getRoutes_args args = new getRoutes_args();
1536         args.setP_type(p_type);
1537         args.setOptype(optype);
1538         args.setWinSize(winSize);
1539         args.setAfi(afi);
1540         args.write(prot);
1541         prot.writeMessageEnd();
1542       }
1543
1544       public Routes getResult() throws org.apache.thrift.TException {
1545         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1546           throw new IllegalStateException("Method call not finished!");
1547         }
1548         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1549         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1550         return (new Client(prot)).recv_getRoutes();
1551       }
1552     }
1553
1554     @Override
1555         public void enableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1556       checkReady();
1557       enableMultipath_call method_call = new enableMultipath_call(afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1558       this.___currentMethod = method_call;
1559       ___manager.call(method_call);
1560     }
1561
1562     public static class enableMultipath_call extends org.apache.thrift.async.TAsyncMethodCall {
1563       private final af_afi afi;
1564       private final af_safi safi;
1565       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 {
1566         super(client, protocolFactory, transport, resultHandler, false);
1567         this.afi = afi;
1568         this.safi = safi;
1569       }
1570
1571       @Override
1572         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1573         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableMultipath", org.apache.thrift.protocol.TMessageType.CALL, 0));
1574         enableMultipath_args args = new enableMultipath_args();
1575         args.setAfi(afi);
1576         args.setSafi(safi);
1577         args.write(prot);
1578         prot.writeMessageEnd();
1579       }
1580
1581       public int getResult() throws org.apache.thrift.TException {
1582         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1583           throw new IllegalStateException("Method call not finished!");
1584         }
1585         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1586         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1587         return (new Client(prot)).recv_enableMultipath();
1588       }
1589     }
1590
1591     @Override
1592         public void disableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1593       checkReady();
1594       disableMultipath_call method_call = new disableMultipath_call(afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1595       this.___currentMethod = method_call;
1596       ___manager.call(method_call);
1597     }
1598
1599     public static class disableMultipath_call extends org.apache.thrift.async.TAsyncMethodCall {
1600       private final af_afi afi;
1601       private final af_safi safi;
1602       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 {
1603         super(client, protocolFactory, transport, resultHandler, false);
1604         this.afi = afi;
1605         this.safi = safi;
1606       }
1607
1608       @Override
1609         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1610         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableMultipath", org.apache.thrift.protocol.TMessageType.CALL, 0));
1611         disableMultipath_args args = new disableMultipath_args();
1612         args.setAfi(afi);
1613         args.setSafi(safi);
1614         args.write(prot);
1615         prot.writeMessageEnd();
1616       }
1617
1618       public int getResult() throws org.apache.thrift.TException {
1619         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1620           throw new IllegalStateException("Method call not finished!");
1621         }
1622         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1623         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1624         return (new Client(prot)).recv_disableMultipath();
1625       }
1626     }
1627
1628     @Override
1629         public void multipaths(String rd, int maxPath, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1630       checkReady();
1631       multipaths_call method_call = new multipaths_call(rd, maxPath, resultHandler, this, ___protocolFactory, ___transport);
1632       this.___currentMethod = method_call;
1633       ___manager.call(method_call);
1634     }
1635
1636     public static class multipaths_call extends org.apache.thrift.async.TAsyncMethodCall {
1637       private final String rd;
1638       private final int maxPath;
1639       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 {
1640         super(client, protocolFactory, transport, resultHandler, false);
1641         this.rd = rd;
1642         this.maxPath = maxPath;
1643       }
1644
1645       @Override
1646         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1647         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("multipaths", org.apache.thrift.protocol.TMessageType.CALL, 0));
1648         multipaths_args args = new multipaths_args();
1649         args.setRd(rd);
1650         args.setMaxPath(maxPath);
1651         args.write(prot);
1652         prot.writeMessageEnd();
1653       }
1654
1655       public int getResult() throws org.apache.thrift.TException {
1656         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1657           throw new IllegalStateException("Method call not finished!");
1658         }
1659         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1660         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1661         return (new Client(prot)).recv_multipaths();
1662       }
1663     }
1664
1665     public void enableEORDelay(int delay, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1666       checkReady();
1667       enableEORDelay_call method_call = new enableEORDelay_call(delay, resultHandler, this, ___protocolFactory, ___transport);
1668       this.___currentMethod = method_call;
1669       ___manager.call(method_call);
1670     }
1671
1672     public static class enableEORDelay_call extends org.apache.thrift.async.TAsyncMethodCall {
1673       private int delay;
1674       public enableEORDelay_call(int delay, 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 {
1675         super(client, protocolFactory, transport, resultHandler, false);
1676         this.delay = delay;
1677       }
1678
1679       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1680         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableEORDelay", org.apache.thrift.protocol.TMessageType.CALL, 0));
1681         enableEORDelay_args args = new enableEORDelay_args();
1682         args.setDelay(delay);
1683         args.write(prot);
1684         prot.writeMessageEnd();
1685       }
1686
1687       public int getResult() throws org.apache.thrift.TException {
1688         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1689           throw new IllegalStateException("Method call not finished!");
1690         }
1691         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1692         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1693         return (new Client(prot)).recv_enableEORDelay();
1694       }
1695     }
1696
1697     public void sendEOR(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1698       checkReady();
1699       sendEOR_call method_call = new sendEOR_call(resultHandler, this, ___protocolFactory, ___transport);
1700       this.___currentMethod = method_call;
1701       ___manager.call(method_call);
1702     }
1703
1704     public static class sendEOR_call extends org.apache.thrift.async.TAsyncMethodCall {
1705       public sendEOR_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 {
1706         super(client, protocolFactory, transport, resultHandler, false);
1707       }
1708
1709       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1710         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendEOR", org.apache.thrift.protocol.TMessageType.CALL, 0));
1711         sendEOR_args args = new sendEOR_args();
1712         args.write(prot);
1713         prot.writeMessageEnd();
1714       }
1715
1716       public int getResult() throws org.apache.thrift.TException {
1717         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1718           throw new IllegalStateException("Method call not finished!");
1719         }
1720         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1721         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1722         return (new Client(prot)).recv_sendEOR();
1723       }
1724     }
1725
1726   }
1727
1728   public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
1729     private static final Logger LOG = LoggerFactory.getLogger(Processor.class.getName());
1730     public Processor(I iface) {
1731       super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1732     }
1733
1734     protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1735       super(iface, getProcessMap(processMap));
1736     }
1737
1738     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) {
1739       processMap.put("startBgp", new startBgp());
1740       processMap.put("stopBgp", new stopBgp());
1741       processMap.put("createPeer", new createPeer());
1742       processMap.put("setPeerSecret", new setPeerSecret());
1743       processMap.put("deletePeer", new deletePeer());
1744       processMap.put("addVrf", new addVrf());
1745       processMap.put("delVrf", new delVrf());
1746       processMap.put("pushRoute", new pushRoute());
1747       processMap.put("withdrawRoute", new withdrawRoute());
1748       processMap.put("setEbgpMultihop", new setEbgpMultihop());
1749       processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
1750       processMap.put("setUpdateSource", new setUpdateSource());
1751       processMap.put("unsetUpdateSource", new unsetUpdateSource());
1752       processMap.put("enableAddressFamily", new enableAddressFamily());
1753       processMap.put("disableAddressFamily", new disableAddressFamily());
1754       processMap.put("setLogConfig", new setLogConfig());
1755       processMap.put("enableGracefulRestart", new enableGracefulRestart());
1756       processMap.put("disableGracefulRestart", new disableGracefulRestart());
1757       processMap.put("getRoutes", new getRoutes());
1758       processMap.put("enableMultipath", new enableMultipath());
1759       processMap.put("disableMultipath", new disableMultipath());
1760       processMap.put("multipaths", new multipaths());
1761       processMap.put("enableEORDelay", new enableEORDelay());
1762       processMap.put("sendEOR", new sendEOR());
1763       return processMap;
1764     }
1765
1766     public static class startBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, startBgp_args> {
1767       public startBgp() {
1768         super("startBgp");
1769       }
1770
1771       @Override
1772         public startBgp_args getEmptyArgsInstance() {
1773         return new startBgp_args();
1774       }
1775
1776       @Override
1777         protected boolean isOneway() {
1778         return false;
1779       }
1780
1781       @Override
1782         public startBgp_result getResult(I iface, startBgp_args args) throws org.apache.thrift.TException {
1783         startBgp_result result = new startBgp_result();
1784         result.success = iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFlush);
1785         result.setSuccessIsSet(true);
1786         return result;
1787       }
1788     }
1789
1790     public static class stopBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, stopBgp_args> {
1791       public stopBgp() {
1792         super("stopBgp");
1793       }
1794
1795       @Override
1796         public stopBgp_args getEmptyArgsInstance() {
1797         return new stopBgp_args();
1798       }
1799
1800       @Override
1801         protected boolean isOneway() {
1802         return false;
1803       }
1804
1805       @Override
1806         public stopBgp_result getResult(I iface, stopBgp_args args) throws org.apache.thrift.TException {
1807         stopBgp_result result = new stopBgp_result();
1808         result.success = iface.stopBgp(args.asNumber);
1809         result.setSuccessIsSet(true);
1810         return result;
1811       }
1812     }
1813
1814     public static class createPeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPeer_args> {
1815       public createPeer() {
1816         super("createPeer");
1817       }
1818
1819       @Override
1820         public createPeer_args getEmptyArgsInstance() {
1821         return new createPeer_args();
1822       }
1823
1824       @Override
1825         protected boolean isOneway() {
1826         return false;
1827       }
1828
1829       @Override
1830         public createPeer_result getResult(I iface, createPeer_args args) throws org.apache.thrift.TException {
1831         createPeer_result result = new createPeer_result();
1832         result.success = iface.createPeer(args.ipAddress, args.asNumber);
1833         result.setSuccessIsSet(true);
1834         return result;
1835       }
1836     }
1837
1838     public static class setPeerSecret<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setPeerSecret_args> {
1839       public setPeerSecret() {
1840         super("setPeerSecret");
1841       }
1842
1843       @Override
1844         public setPeerSecret_args getEmptyArgsInstance() {
1845         return new setPeerSecret_args();
1846       }
1847
1848       @Override
1849         protected boolean isOneway() {
1850         return false;
1851       }
1852
1853       @Override
1854         public setPeerSecret_result getResult(I iface, setPeerSecret_args args) throws org.apache.thrift.TException {
1855         setPeerSecret_result result = new setPeerSecret_result();
1856         result.success = iface.setPeerSecret(args.ipAddress, args.rfc2385_sharedSecret);
1857         result.setSuccessIsSet(true);
1858         return result;
1859       }
1860     }
1861
1862     public static class deletePeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deletePeer_args> {
1863       public deletePeer() {
1864         super("deletePeer");
1865       }
1866
1867       @Override
1868         public deletePeer_args getEmptyArgsInstance() {
1869         return new deletePeer_args();
1870       }
1871
1872       @Override
1873         protected boolean isOneway() {
1874         return false;
1875       }
1876
1877       @Override
1878         public deletePeer_result getResult(I iface, deletePeer_args args) throws org.apache.thrift.TException {
1879         deletePeer_result result = new deletePeer_result();
1880         result.success = iface.deletePeer(args.ipAddress);
1881         result.setSuccessIsSet(true);
1882         return result;
1883       }
1884     }
1885
1886     public static class addVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVrf_args> {
1887       public addVrf() {
1888         super("addVrf");
1889       }
1890
1891       @Override
1892         public addVrf_args getEmptyArgsInstance() {
1893         return new addVrf_args();
1894       }
1895
1896       @Override
1897         protected boolean isOneway() {
1898         return false;
1899       }
1900
1901       @Override
1902         public addVrf_result getResult(I iface, addVrf_args args) throws org.apache.thrift.TException {
1903         addVrf_result result = new addVrf_result();
1904         result.success = iface.addVrf(args.l_type, args.rd, args.irts, args.erts);
1905         result.setSuccessIsSet(true);
1906         return result;
1907       }
1908     }
1909
1910     public static class delVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, delVrf_args> {
1911       public delVrf() {
1912         super("delVrf");
1913       }
1914
1915       @Override
1916         public delVrf_args getEmptyArgsInstance() {
1917         return new delVrf_args();
1918       }
1919
1920       @Override
1921         protected boolean isOneway() {
1922         return false;
1923       }
1924
1925       @Override
1926         public delVrf_result getResult(I iface, delVrf_args args) throws org.apache.thrift.TException {
1927         delVrf_result result = new delVrf_result();
1928         result.success = iface.delVrf(args.rd);
1929         result.setSuccessIsSet(true);
1930         return result;
1931       }
1932     }
1933
1934     public static class pushRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, pushRoute_args> {
1935       public pushRoute() {
1936         super("pushRoute");
1937       }
1938
1939       @Override
1940         public pushRoute_args getEmptyArgsInstance() {
1941         return new pushRoute_args();
1942       }
1943
1944       @Override
1945         protected boolean isOneway() {
1946         return false;
1947       }
1948
1949       @Override
1950         public pushRoute_result getResult(I iface, pushRoute_args args) throws org.apache.thrift.TException {
1951         pushRoute_result result = new pushRoute_result();
1952         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, args.afi);
1953         result.setSuccessIsSet(true);
1954         return result;
1955       }
1956     }
1957
1958     public static class withdrawRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, withdrawRoute_args> {
1959       public withdrawRoute() {
1960         super("withdrawRoute");
1961       }
1962
1963       @Override
1964         public withdrawRoute_args getEmptyArgsInstance() {
1965         return new withdrawRoute_args();
1966       }
1967
1968       @Override
1969         protected boolean isOneway() {
1970         return false;
1971       }
1972
1973       @Override
1974         public withdrawRoute_result getResult(I iface, withdrawRoute_args args) throws org.apache.thrift.TException {
1975         withdrawRoute_result result = new withdrawRoute_result();
1976         result.success = iface.withdrawRoute(args.p_type, args.prefix, args.rd, args.ethtag, args.esi, args.macaddress, args.afi);
1977         result.setSuccessIsSet(true);
1978         return result;
1979       }
1980     }
1981
1982     public static class setEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setEbgpMultihop_args> {
1983       public setEbgpMultihop() {
1984         super("setEbgpMultihop");
1985       }
1986
1987       @Override
1988         public setEbgpMultihop_args getEmptyArgsInstance() {
1989         return new setEbgpMultihop_args();
1990       }
1991
1992       @Override
1993         protected boolean isOneway() {
1994         return false;
1995       }
1996
1997       @Override
1998         public setEbgpMultihop_result getResult(I iface, setEbgpMultihop_args args) throws org.apache.thrift.TException {
1999         setEbgpMultihop_result result = new setEbgpMultihop_result();
2000         result.success = iface.setEbgpMultihop(args.peerIp, args.nHops);
2001         result.setSuccessIsSet(true);
2002         return result;
2003       }
2004     }
2005
2006     public static class unsetEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetEbgpMultihop_args> {
2007       public unsetEbgpMultihop() {
2008         super("unsetEbgpMultihop");
2009       }
2010
2011       @Override
2012         public unsetEbgpMultihop_args getEmptyArgsInstance() {
2013         return new unsetEbgpMultihop_args();
2014       }
2015
2016       @Override
2017         protected boolean isOneway() {
2018         return false;
2019       }
2020
2021       @Override
2022         public unsetEbgpMultihop_result getResult(I iface, unsetEbgpMultihop_args args) throws org.apache.thrift.TException {
2023         unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2024         result.success = iface.unsetEbgpMultihop(args.peerIp);
2025         result.setSuccessIsSet(true);
2026         return result;
2027       }
2028     }
2029
2030     public static class setUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setUpdateSource_args> {
2031       public setUpdateSource() {
2032         super("setUpdateSource");
2033       }
2034
2035       @Override
2036         public setUpdateSource_args getEmptyArgsInstance() {
2037         return new setUpdateSource_args();
2038       }
2039
2040       @Override
2041         protected boolean isOneway() {
2042         return false;
2043       }
2044
2045       @Override
2046         public setUpdateSource_result getResult(I iface, setUpdateSource_args args) throws org.apache.thrift.TException {
2047         setUpdateSource_result result = new setUpdateSource_result();
2048         result.success = iface.setUpdateSource(args.peerIp, args.srcIp);
2049         result.setSuccessIsSet(true);
2050         return result;
2051       }
2052     }
2053
2054     public static class unsetUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetUpdateSource_args> {
2055       public unsetUpdateSource() {
2056         super("unsetUpdateSource");
2057       }
2058
2059       @Override
2060         public unsetUpdateSource_args getEmptyArgsInstance() {
2061         return new unsetUpdateSource_args();
2062       }
2063
2064       @Override
2065         protected boolean isOneway() {
2066         return false;
2067       }
2068
2069       @Override
2070         public unsetUpdateSource_result getResult(I iface, unsetUpdateSource_args args) throws org.apache.thrift.TException {
2071         unsetUpdateSource_result result = new unsetUpdateSource_result();
2072         result.success = iface.unsetUpdateSource(args.peerIp);
2073         result.setSuccessIsSet(true);
2074         return result;
2075       }
2076     }
2077
2078     public static class enableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableAddressFamily_args> {
2079       public enableAddressFamily() {
2080         super("enableAddressFamily");
2081       }
2082
2083       @Override
2084         public enableAddressFamily_args getEmptyArgsInstance() {
2085         return new enableAddressFamily_args();
2086       }
2087
2088       @Override
2089         protected boolean isOneway() {
2090         return false;
2091       }
2092
2093       @Override
2094         public enableAddressFamily_result getResult(I iface, enableAddressFamily_args args) throws org.apache.thrift.TException {
2095         enableAddressFamily_result result = new enableAddressFamily_result();
2096         result.success = iface.enableAddressFamily(args.peerIp, args.afi, args.safi);
2097         result.setSuccessIsSet(true);
2098         return result;
2099       }
2100     }
2101
2102     public static class disableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableAddressFamily_args> {
2103       public disableAddressFamily() {
2104         super("disableAddressFamily");
2105       }
2106
2107       @Override
2108         public disableAddressFamily_args getEmptyArgsInstance() {
2109         return new disableAddressFamily_args();
2110       }
2111
2112       @Override
2113         protected boolean isOneway() {
2114         return false;
2115       }
2116
2117       @Override
2118         public disableAddressFamily_result getResult(I iface, disableAddressFamily_args args) throws org.apache.thrift.TException {
2119         disableAddressFamily_result result = new disableAddressFamily_result();
2120         result.success = iface.disableAddressFamily(args.peerIp, args.afi, args.safi);
2121         result.setSuccessIsSet(true);
2122         return result;
2123       }
2124     }
2125
2126     public static class setLogConfig<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setLogConfig_args> {
2127       public setLogConfig() {
2128         super("setLogConfig");
2129       }
2130
2131       @Override
2132         public setLogConfig_args getEmptyArgsInstance() {
2133         return new setLogConfig_args();
2134       }
2135
2136       @Override
2137         protected boolean isOneway() {
2138         return false;
2139       }
2140
2141       @Override
2142         public setLogConfig_result getResult(I iface, setLogConfig_args args) throws org.apache.thrift.TException {
2143         setLogConfig_result result = new setLogConfig_result();
2144         result.success = iface.setLogConfig(args.logFileName, args.logLevel);
2145         result.setSuccessIsSet(true);
2146         return result;
2147       }
2148     }
2149
2150     public static class enableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableGracefulRestart_args> {
2151       public enableGracefulRestart() {
2152         super("enableGracefulRestart");
2153       }
2154
2155       @Override
2156         public enableGracefulRestart_args getEmptyArgsInstance() {
2157         return new enableGracefulRestart_args();
2158       }
2159
2160       @Override
2161         protected boolean isOneway() {
2162         return false;
2163       }
2164
2165       @Override
2166         public enableGracefulRestart_result getResult(I iface, enableGracefulRestart_args args) throws org.apache.thrift.TException {
2167         enableGracefulRestart_result result = new enableGracefulRestart_result();
2168         result.success = iface.enableGracefulRestart(args.stalepathTime);
2169         result.setSuccessIsSet(true);
2170         return result;
2171       }
2172     }
2173
2174     public static class disableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableGracefulRestart_args> {
2175       public disableGracefulRestart() {
2176         super("disableGracefulRestart");
2177       }
2178
2179       @Override
2180         public disableGracefulRestart_args getEmptyArgsInstance() {
2181         return new disableGracefulRestart_args();
2182       }
2183
2184       @Override
2185         protected boolean isOneway() {
2186         return false;
2187       }
2188
2189       @Override
2190         public disableGracefulRestart_result getResult(I iface, disableGracefulRestart_args args) throws org.apache.thrift.TException {
2191         disableGracefulRestart_result result = new disableGracefulRestart_result();
2192         result.success = iface.disableGracefulRestart();
2193         result.setSuccessIsSet(true);
2194         return result;
2195       }
2196     }
2197
2198     public static class getRoutes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoutes_args> {
2199       public getRoutes() {
2200         super("getRoutes");
2201       }
2202
2203       @Override
2204         public getRoutes_args getEmptyArgsInstance() {
2205         return new getRoutes_args();
2206       }
2207
2208       @Override
2209         protected boolean isOneway() {
2210         return false;
2211       }
2212
2213       @Override
2214         public getRoutes_result getResult(I iface, getRoutes_args args) throws org.apache.thrift.TException {
2215         getRoutes_result result = new getRoutes_result();
2216         result.success = iface.getRoutes(args.p_type, args.optype, args.winSize, args.afi);
2217         return result;
2218       }
2219     }
2220
2221     public static class enableMultipath<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableMultipath_args> {
2222       public enableMultipath() {
2223         super("enableMultipath");
2224       }
2225
2226       @Override
2227         public enableMultipath_args getEmptyArgsInstance() {
2228         return new enableMultipath_args();
2229       }
2230
2231       @Override
2232         protected boolean isOneway() {
2233         return false;
2234       }
2235
2236       @Override
2237         public enableMultipath_result getResult(I iface, enableMultipath_args args) throws org.apache.thrift.TException {
2238         enableMultipath_result result = new enableMultipath_result();
2239         result.success = iface.enableMultipath(args.afi, args.safi);
2240         result.setSuccessIsSet(true);
2241         return result;
2242       }
2243     }
2244
2245     public static class disableMultipath<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableMultipath_args> {
2246       public disableMultipath() {
2247         super("disableMultipath");
2248       }
2249
2250       @Override
2251         public disableMultipath_args getEmptyArgsInstance() {
2252         return new disableMultipath_args();
2253       }
2254
2255       @Override
2256         protected boolean isOneway() {
2257         return false;
2258       }
2259
2260       @Override
2261         public disableMultipath_result getResult(I iface, disableMultipath_args args) throws org.apache.thrift.TException {
2262         disableMultipath_result result = new disableMultipath_result();
2263         result.success = iface.disableMultipath(args.afi, args.safi);
2264         result.setSuccessIsSet(true);
2265         return result;
2266       }
2267     }
2268
2269     public static class multipaths<I extends Iface> extends org.apache.thrift.ProcessFunction<I, multipaths_args> {
2270       public multipaths() {
2271         super("multipaths");
2272       }
2273
2274       @Override
2275         public multipaths_args getEmptyArgsInstance() {
2276         return new multipaths_args();
2277       }
2278
2279       @Override
2280         protected boolean isOneway() {
2281         return false;
2282       }
2283
2284       @Override
2285         public multipaths_result getResult(I iface, multipaths_args args) throws org.apache.thrift.TException {
2286         multipaths_result result = new multipaths_result();
2287         result.success = iface.multipaths(args.rd, args.maxPath);
2288         result.setSuccessIsSet(true);
2289         return result;
2290       }
2291     }
2292
2293     public static class enableEORDelay<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableEORDelay_args> {
2294       public enableEORDelay() {
2295         super("enableEORDelay");
2296       }
2297
2298       public enableEORDelay_args getEmptyArgsInstance() {
2299         return new enableEORDelay_args();
2300       }
2301
2302       protected boolean isOneway() {
2303         return false;
2304       }
2305
2306       public enableEORDelay_result getResult(I iface, enableEORDelay_args args) throws org.apache.thrift.TException {
2307         enableEORDelay_result result = new enableEORDelay_result();
2308         result.success = iface.enableEORDelay(args.delay);
2309         result.setSuccessIsSet(true);
2310         return result;
2311       }
2312     }
2313
2314     public static class sendEOR<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendEOR_args> {
2315       public sendEOR() {
2316         super("sendEOR");
2317       }
2318
2319       public sendEOR_args getEmptyArgsInstance() {
2320         return new sendEOR_args();
2321       }
2322
2323       protected boolean isOneway() {
2324         return false;
2325       }
2326
2327       public sendEOR_result getResult(I iface, sendEOR_args args) throws org.apache.thrift.TException {
2328         sendEOR_result result = new sendEOR_result();
2329         result.success = iface.sendEOR();
2330         result.setSuccessIsSet(true);
2331         return result;
2332       }
2333     }
2334
2335   }
2336
2337   public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
2338     private static final Logger LOG = LoggerFactory.getLogger(AsyncProcessor.class.getName());
2339     public AsyncProcessor(I iface) {
2340       super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
2341     }
2342
2343     protected AsyncProcessor(I iface, Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
2344       super(iface, getProcessMap(processMap));
2345     }
2346
2347     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) {
2348       processMap.put("startBgp", new startBgp());
2349       processMap.put("stopBgp", new stopBgp());
2350       processMap.put("createPeer", new createPeer());
2351       processMap.put("setPeerSecret", new setPeerSecret());
2352       processMap.put("deletePeer", new deletePeer());
2353       processMap.put("addVrf", new addVrf());
2354       processMap.put("delVrf", new delVrf());
2355       processMap.put("pushRoute", new pushRoute());
2356       processMap.put("withdrawRoute", new withdrawRoute());
2357       processMap.put("setEbgpMultihop", new setEbgpMultihop());
2358       processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
2359       processMap.put("setUpdateSource", new setUpdateSource());
2360       processMap.put("unsetUpdateSource", new unsetUpdateSource());
2361       processMap.put("enableAddressFamily", new enableAddressFamily());
2362       processMap.put("disableAddressFamily", new disableAddressFamily());
2363       processMap.put("setLogConfig", new setLogConfig());
2364       processMap.put("enableGracefulRestart", new enableGracefulRestart());
2365       processMap.put("disableGracefulRestart", new disableGracefulRestart());
2366       processMap.put("getRoutes", new getRoutes());
2367       processMap.put("enableMultipath", new enableMultipath());
2368       processMap.put("disableMultipath", new disableMultipath());
2369       processMap.put("multipaths", new multipaths());
2370       processMap.put("enableEORDelay", new enableEORDelay());
2371       processMap.put("sendEOR", new sendEOR());
2372       return processMap;
2373     }
2374
2375     public static class startBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, startBgp_args, Integer> {
2376       public startBgp() {
2377         super("startBgp");
2378       }
2379
2380       @Override
2381         public startBgp_args getEmptyArgsInstance() {
2382         return new startBgp_args();
2383       }
2384
2385       @Override
2386         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2387         final org.apache.thrift.AsyncProcessFunction fcall = this;
2388         return new AsyncMethodCallback<Integer>() {
2389           @Override
2390                 public void onComplete(Integer o) {
2391             startBgp_result result = new startBgp_result();
2392             result.success = o;
2393             result.setSuccessIsSet(true);
2394             try {
2395               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2396               return;
2397             } catch (Exception e) {
2398               LOG.error("Exception writing to internal frame buffer", e);
2399             }
2400             fb.close();
2401           }
2402           @Override
2403                 public void onError(Exception e) {
2404             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2405             org.apache.thrift.TBase msg;
2406             startBgp_result result = new startBgp_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               LOG.error("Exception writing to internal frame buffer", ex);
2416             }
2417             fb.close();
2418           }
2419         };
2420       }
2421
2422       @Override
2423         protected boolean isOneway() {
2424         return false;
2425       }
2426
2427       @Override
2428         public void start(I iface, startBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2429         iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFlush,resultHandler);
2430       }
2431     }
2432
2433     public static class stopBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, stopBgp_args, Integer> {
2434       public stopBgp() {
2435         super("stopBgp");
2436       }
2437
2438       @Override
2439         public stopBgp_args getEmptyArgsInstance() {
2440         return new stopBgp_args();
2441       }
2442
2443       @Override
2444         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2445         final org.apache.thrift.AsyncProcessFunction fcall = this;
2446         return new AsyncMethodCallback<Integer>() {
2447           @Override
2448                 public void onComplete(Integer o) {
2449             stopBgp_result result = new stopBgp_result();
2450             result.success = o;
2451             result.setSuccessIsSet(true);
2452             try {
2453               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2454               return;
2455             } catch (Exception e) {
2456               LOG.error("Exception writing to internal frame buffer", e);
2457             }
2458             fb.close();
2459           }
2460           @Override
2461                 public void onError(Exception e) {
2462             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2463             org.apache.thrift.TBase msg;
2464             stopBgp_result result = new stopBgp_result();
2465             {
2466               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2467               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2468             }
2469             try {
2470               fcall.sendResponse(fb,msg,msgType,seqid);
2471               return;
2472             } catch (Exception ex) {
2473               LOG.error("Exception writing to internal frame buffer", ex);
2474             }
2475             fb.close();
2476           }
2477         };
2478       }
2479
2480       @Override
2481         protected boolean isOneway() {
2482         return false;
2483       }
2484
2485       @Override
2486         public void start(I iface, stopBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2487         iface.stopBgp(args.asNumber,resultHandler);
2488       }
2489     }
2490
2491     public static class createPeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createPeer_args, Integer> {
2492       public createPeer() {
2493         super("createPeer");
2494       }
2495
2496       @Override
2497         public createPeer_args getEmptyArgsInstance() {
2498         return new createPeer_args();
2499       }
2500
2501       @Override
2502         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2503         final org.apache.thrift.AsyncProcessFunction fcall = this;
2504         return new AsyncMethodCallback<Integer>() {
2505           @Override
2506                 public void onComplete(Integer o) {
2507             createPeer_result result = new createPeer_result();
2508             result.success = o;
2509             result.setSuccessIsSet(true);
2510             try {
2511               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2512               return;
2513             } catch (Exception e) {
2514               LOG.error("Exception writing to internal frame buffer", e);
2515             }
2516             fb.close();
2517           }
2518           @Override
2519                 public void onError(Exception e) {
2520             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2521             org.apache.thrift.TBase msg;
2522             createPeer_result result = new createPeer_result();
2523             {
2524               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2525               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2526             }
2527             try {
2528               fcall.sendResponse(fb,msg,msgType,seqid);
2529               return;
2530             } catch (Exception ex) {
2531               LOG.error("Exception writing to internal frame buffer", ex);
2532             }
2533             fb.close();
2534           }
2535         };
2536       }
2537
2538       @Override
2539         protected boolean isOneway() {
2540         return false;
2541       }
2542
2543       @Override
2544         public void start(I iface, createPeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2545         iface.createPeer(args.ipAddress, args.asNumber,resultHandler);
2546       }
2547     }
2548
2549     public static class setPeerSecret<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setPeerSecret_args, Integer> {
2550       public setPeerSecret() {
2551         super("setPeerSecret");
2552       }
2553
2554       @Override
2555         public setPeerSecret_args getEmptyArgsInstance() {
2556         return new setPeerSecret_args();
2557       }
2558
2559       @Override
2560         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2561         final org.apache.thrift.AsyncProcessFunction fcall = this;
2562         return new AsyncMethodCallback<Integer>() {
2563           @Override
2564                 public void onComplete(Integer o) {
2565             setPeerSecret_result result = new setPeerSecret_result();
2566             result.success = o;
2567             result.setSuccessIsSet(true);
2568             try {
2569               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2570               return;
2571             } catch (Exception e) {
2572               LOG.error("Exception writing to internal frame buffer", e);
2573             }
2574             fb.close();
2575           }
2576           @Override
2577                 public void onError(Exception e) {
2578             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2579             org.apache.thrift.TBase msg;
2580             setPeerSecret_result result = new setPeerSecret_result();
2581             {
2582               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2583               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2584             }
2585             try {
2586               fcall.sendResponse(fb,msg,msgType,seqid);
2587               return;
2588             } catch (Exception ex) {
2589               LOG.error("Exception writing to internal frame buffer", ex);
2590             }
2591             fb.close();
2592           }
2593         };
2594       }
2595
2596       @Override
2597         protected boolean isOneway() {
2598         return false;
2599       }
2600
2601       @Override
2602         public void start(I iface, setPeerSecret_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2603         iface.setPeerSecret(args.ipAddress, args.rfc2385_sharedSecret,resultHandler);
2604       }
2605     }
2606
2607     public static class deletePeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, deletePeer_args, Integer> {
2608       public deletePeer() {
2609         super("deletePeer");
2610       }
2611
2612       @Override
2613         public deletePeer_args getEmptyArgsInstance() {
2614         return new deletePeer_args();
2615       }
2616
2617       @Override
2618         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2619         final org.apache.thrift.AsyncProcessFunction fcall = this;
2620         return new AsyncMethodCallback<Integer>() {
2621           @Override
2622                 public void onComplete(Integer o) {
2623             deletePeer_result result = new deletePeer_result();
2624             result.success = o;
2625             result.setSuccessIsSet(true);
2626             try {
2627               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2628               return;
2629             } catch (Exception e) {
2630               LOG.error("Exception writing to internal frame buffer", e);
2631             }
2632             fb.close();
2633           }
2634           @Override
2635                 public void onError(Exception e) {
2636             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2637             org.apache.thrift.TBase msg;
2638             deletePeer_result result = new deletePeer_result();
2639             {
2640               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2641               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2642             }
2643             try {
2644               fcall.sendResponse(fb,msg,msgType,seqid);
2645               return;
2646             } catch (Exception ex) {
2647               LOG.error("Exception writing to internal frame buffer", ex);
2648             }
2649             fb.close();
2650           }
2651         };
2652       }
2653
2654       @Override
2655         protected boolean isOneway() {
2656         return false;
2657       }
2658
2659       @Override
2660         public void start(I iface, deletePeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2661         iface.deletePeer(args.ipAddress,resultHandler);
2662       }
2663     }
2664
2665     public static class addVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, addVrf_args, Integer> {
2666       public addVrf() {
2667         super("addVrf");
2668       }
2669
2670       @Override
2671         public addVrf_args getEmptyArgsInstance() {
2672         return new addVrf_args();
2673       }
2674
2675       @Override
2676         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2677         final org.apache.thrift.AsyncProcessFunction fcall = this;
2678         return new AsyncMethodCallback<Integer>() {
2679           @Override
2680                 public void onComplete(Integer o) {
2681             addVrf_result result = new addVrf_result();
2682             result.success = o;
2683             result.setSuccessIsSet(true);
2684             try {
2685               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2686               return;
2687             } catch (Exception e) {
2688               LOG.error("Exception writing to internal frame buffer", e);
2689             }
2690             fb.close();
2691           }
2692           @Override
2693                 public void onError(Exception e) {
2694             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2695             org.apache.thrift.TBase msg;
2696             addVrf_result result = new addVrf_result();
2697             {
2698               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2699               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2700             }
2701             try {
2702               fcall.sendResponse(fb,msg,msgType,seqid);
2703               return;
2704             } catch (Exception ex) {
2705               LOG.error("Exception writing to internal frame buffer", ex);
2706             }
2707             fb.close();
2708           }
2709         };
2710       }
2711
2712       @Override
2713         protected boolean isOneway() {
2714         return false;
2715       }
2716
2717       @Override
2718         public void start(I iface, addVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2719         iface.addVrf(args.l_type, args.rd, args.irts, args.erts,resultHandler);
2720       }
2721     }
2722
2723     public static class delVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, delVrf_args, Integer> {
2724       public delVrf() {
2725         super("delVrf");
2726       }
2727
2728       @Override
2729         public delVrf_args getEmptyArgsInstance() {
2730         return new delVrf_args();
2731       }
2732
2733       @Override
2734         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2735         final org.apache.thrift.AsyncProcessFunction fcall = this;
2736         return new AsyncMethodCallback<Integer>() {
2737           @Override
2738                 public void onComplete(Integer o) {
2739             delVrf_result result = new delVrf_result();
2740             result.success = o;
2741             result.setSuccessIsSet(true);
2742             try {
2743               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2744               return;
2745             } catch (Exception e) {
2746               LOG.error("Exception writing to internal frame buffer", e);
2747             }
2748             fb.close();
2749           }
2750           @Override
2751                 public void onError(Exception e) {
2752             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2753             org.apache.thrift.TBase msg;
2754             delVrf_result result = new delVrf_result();
2755             {
2756               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2757               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2758             }
2759             try {
2760               fcall.sendResponse(fb,msg,msgType,seqid);
2761               return;
2762             } catch (Exception ex) {
2763               LOG.error("Exception writing to internal frame buffer", ex);
2764             }
2765             fb.close();
2766           }
2767         };
2768       }
2769
2770       @Override
2771         protected boolean isOneway() {
2772         return false;
2773       }
2774
2775       @Override
2776         public void start(I iface, delVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2777         iface.delVrf(args.rd,resultHandler);
2778       }
2779     }
2780
2781     public static class pushRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, pushRoute_args, Integer> {
2782       public pushRoute() {
2783         super("pushRoute");
2784       }
2785
2786       @Override
2787         public pushRoute_args getEmptyArgsInstance() {
2788         return new pushRoute_args();
2789       }
2790
2791       @Override
2792         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2793         final org.apache.thrift.AsyncProcessFunction fcall = this;
2794         return new AsyncMethodCallback<Integer>() {
2795           @Override
2796                 public void onComplete(Integer o) {
2797             pushRoute_result result = new pushRoute_result();
2798             result.success = o;
2799             result.setSuccessIsSet(true);
2800             try {
2801               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2802               return;
2803             } catch (Exception e) {
2804               LOG.error("Exception writing to internal frame buffer", e);
2805             }
2806             fb.close();
2807           }
2808           @Override
2809                 public void onError(Exception e) {
2810             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2811             org.apache.thrift.TBase msg;
2812             pushRoute_result result = new pushRoute_result();
2813             {
2814               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2815               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2816             }
2817             try {
2818               fcall.sendResponse(fb,msg,msgType,seqid);
2819               return;
2820             } catch (Exception ex) {
2821               LOG.error("Exception writing to internal frame buffer", ex);
2822             }
2823             fb.close();
2824           }
2825         };
2826       }
2827
2828       @Override
2829         protected boolean isOneway() {
2830         return false;
2831       }
2832
2833       @Override
2834         public void start(I iface, pushRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2835         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, args.afi,resultHandler);
2836       }
2837     }
2838
2839     public static class withdrawRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, withdrawRoute_args, Integer> {
2840       public withdrawRoute() {
2841         super("withdrawRoute");
2842       }
2843
2844       @Override
2845         public withdrawRoute_args getEmptyArgsInstance() {
2846         return new withdrawRoute_args();
2847       }
2848
2849       @Override
2850         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2851         final org.apache.thrift.AsyncProcessFunction fcall = this;
2852         return new AsyncMethodCallback<Integer>() {
2853           @Override
2854                 public void onComplete(Integer o) {
2855             withdrawRoute_result result = new withdrawRoute_result();
2856             result.success = o;
2857             result.setSuccessIsSet(true);
2858             try {
2859               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2860               return;
2861             } catch (Exception e) {
2862               LOG.error("Exception writing to internal frame buffer", e);
2863             }
2864             fb.close();
2865           }
2866           @Override
2867                 public void onError(Exception e) {
2868             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2869             org.apache.thrift.TBase msg;
2870             withdrawRoute_result result = new withdrawRoute_result();
2871             {
2872               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2873               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2874             }
2875             try {
2876               fcall.sendResponse(fb,msg,msgType,seqid);
2877               return;
2878             } catch (Exception ex) {
2879               LOG.error("Exception writing to internal frame buffer", ex);
2880             }
2881             fb.close();
2882           }
2883         };
2884       }
2885
2886       @Override
2887         protected boolean isOneway() {
2888         return false;
2889       }
2890
2891       @Override
2892         public void start(I iface, withdrawRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2893         iface.withdrawRoute(args.p_type, args.prefix, args.rd, args.ethtag, args.esi, args.macaddress, args.afi,resultHandler);
2894       }
2895     }
2896
2897     public static class setEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setEbgpMultihop_args, Integer> {
2898       public setEbgpMultihop() {
2899         super("setEbgpMultihop");
2900       }
2901
2902       @Override
2903         public setEbgpMultihop_args getEmptyArgsInstance() {
2904         return new setEbgpMultihop_args();
2905       }
2906
2907       @Override
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           @Override
2912                 public void onComplete(Integer o) {
2913             setEbgpMultihop_result result = new setEbgpMultihop_result();
2914             result.success = o;
2915             result.setSuccessIsSet(true);
2916             try {
2917               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2918               return;
2919             } catch (Exception e) {
2920               LOG.error("Exception writing to internal frame buffer", e);
2921             }
2922             fb.close();
2923           }
2924           @Override
2925                 public void onError(Exception e) {
2926             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2927             org.apache.thrift.TBase msg;
2928             setEbgpMultihop_result result = new setEbgpMultihop_result();
2929             {
2930               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2931               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2932             }
2933             try {
2934               fcall.sendResponse(fb,msg,msgType,seqid);
2935               return;
2936             } catch (Exception ex) {
2937               LOG.error("Exception writing to internal frame buffer", ex);
2938             }
2939             fb.close();
2940           }
2941         };
2942       }
2943
2944       @Override
2945         protected boolean isOneway() {
2946         return false;
2947       }
2948
2949       @Override
2950         public void start(I iface, setEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2951         iface.setEbgpMultihop(args.peerIp, args.nHops,resultHandler);
2952       }
2953     }
2954
2955     public static class unsetEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetEbgpMultihop_args, Integer> {
2956       public unsetEbgpMultihop() {
2957         super("unsetEbgpMultihop");
2958       }
2959
2960       @Override
2961         public unsetEbgpMultihop_args getEmptyArgsInstance() {
2962         return new unsetEbgpMultihop_args();
2963       }
2964
2965       @Override
2966         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2967         final org.apache.thrift.AsyncProcessFunction fcall = this;
2968         return new AsyncMethodCallback<Integer>() {
2969           @Override
2970                 public void onComplete(Integer o) {
2971             unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2972             result.success = o;
2973             result.setSuccessIsSet(true);
2974             try {
2975               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2976               return;
2977             } catch (Exception e) {
2978               LOG.error("Exception writing to internal frame buffer", e);
2979             }
2980             fb.close();
2981           }
2982           @Override
2983                 public void onError(Exception e) {
2984             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2985             org.apache.thrift.TBase msg;
2986             unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2987             {
2988               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2989               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2990             }
2991             try {
2992               fcall.sendResponse(fb,msg,msgType,seqid);
2993               return;
2994             } catch (Exception ex) {
2995               LOG.error("Exception writing to internal frame buffer", ex);
2996             }
2997             fb.close();
2998           }
2999         };
3000       }
3001
3002       @Override
3003         protected boolean isOneway() {
3004         return false;
3005       }
3006
3007       @Override
3008         public void start(I iface, unsetEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3009         iface.unsetEbgpMultihop(args.peerIp,resultHandler);
3010       }
3011     }
3012
3013     public static class setUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setUpdateSource_args, Integer> {
3014       public setUpdateSource() {
3015         super("setUpdateSource");
3016       }
3017
3018       @Override
3019         public setUpdateSource_args getEmptyArgsInstance() {
3020         return new setUpdateSource_args();
3021       }
3022
3023       @Override
3024         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3025         final org.apache.thrift.AsyncProcessFunction fcall = this;
3026         return new AsyncMethodCallback<Integer>() {
3027           @Override
3028                 public void onComplete(Integer o) {
3029             setUpdateSource_result result = new setUpdateSource_result();
3030             result.success = o;
3031             result.setSuccessIsSet(true);
3032             try {
3033               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3034               return;
3035             } catch (Exception e) {
3036               LOG.error("Exception writing to internal frame buffer", e);
3037             }
3038             fb.close();
3039           }
3040           @Override
3041                 public void onError(Exception e) {
3042             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3043             org.apache.thrift.TBase msg;
3044             setUpdateSource_result result = new setUpdateSource_result();
3045             {
3046               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3047               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3048             }
3049             try {
3050               fcall.sendResponse(fb,msg,msgType,seqid);
3051               return;
3052             } catch (Exception ex) {
3053               LOG.error("Exception writing to internal frame buffer", ex);
3054             }
3055             fb.close();
3056           }
3057         };
3058       }
3059
3060       @Override
3061         protected boolean isOneway() {
3062         return false;
3063       }
3064
3065       @Override
3066         public void start(I iface, setUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3067         iface.setUpdateSource(args.peerIp, args.srcIp,resultHandler);
3068       }
3069     }
3070
3071     public static class unsetUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetUpdateSource_args, Integer> {
3072       public unsetUpdateSource() {
3073         super("unsetUpdateSource");
3074       }
3075
3076       @Override
3077         public unsetUpdateSource_args getEmptyArgsInstance() {
3078         return new unsetUpdateSource_args();
3079       }
3080
3081       @Override
3082         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3083         final org.apache.thrift.AsyncProcessFunction fcall = this;
3084         return new AsyncMethodCallback<Integer>() {
3085           @Override
3086                 public void onComplete(Integer o) {
3087             unsetUpdateSource_result result = new unsetUpdateSource_result();
3088             result.success = o;
3089             result.setSuccessIsSet(true);
3090             try {
3091               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3092               return;
3093             } catch (Exception e) {
3094               LOG.error("Exception writing to internal frame buffer", e);
3095             }
3096             fb.close();
3097           }
3098           @Override
3099                 public void onError(Exception e) {
3100             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3101             org.apache.thrift.TBase msg;
3102             unsetUpdateSource_result result = new unsetUpdateSource_result();
3103             {
3104               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3105               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3106             }
3107             try {
3108               fcall.sendResponse(fb,msg,msgType,seqid);
3109               return;
3110             } catch (Exception ex) {
3111               LOG.error("Exception writing to internal frame buffer", ex);
3112             }
3113             fb.close();
3114           }
3115         };
3116       }
3117
3118       @Override
3119         protected boolean isOneway() {
3120         return false;
3121       }
3122
3123       @Override
3124         public void start(I iface, unsetUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3125         iface.unsetUpdateSource(args.peerIp,resultHandler);
3126       }
3127     }
3128
3129     public static class enableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableAddressFamily_args, Integer> {
3130       public enableAddressFamily() {
3131         super("enableAddressFamily");
3132       }
3133
3134       @Override
3135         public enableAddressFamily_args getEmptyArgsInstance() {
3136         return new enableAddressFamily_args();
3137       }
3138
3139       @Override
3140         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3141         final org.apache.thrift.AsyncProcessFunction fcall = this;
3142         return new AsyncMethodCallback<Integer>() {
3143           @Override
3144                 public void onComplete(Integer o) {
3145             enableAddressFamily_result result = new enableAddressFamily_result();
3146             result.success = o;
3147             result.setSuccessIsSet(true);
3148             try {
3149               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3150               return;
3151             } catch (Exception e) {
3152               LOG.error("Exception writing to internal frame buffer", e);
3153             }
3154             fb.close();
3155           }
3156           @Override
3157                 public void onError(Exception e) {
3158             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3159             org.apache.thrift.TBase msg;
3160             enableAddressFamily_result result = new enableAddressFamily_result();
3161             {
3162               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3163               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3164             }
3165             try {
3166               fcall.sendResponse(fb,msg,msgType,seqid);
3167               return;
3168             } catch (Exception ex) {
3169               LOG.error("Exception writing to internal frame buffer", ex);
3170             }
3171             fb.close();
3172           }
3173         };
3174       }
3175
3176       @Override
3177         protected boolean isOneway() {
3178         return false;
3179       }
3180
3181       @Override
3182         public void start(I iface, enableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3183         iface.enableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
3184       }
3185     }
3186
3187     public static class disableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableAddressFamily_args, Integer> {
3188       public disableAddressFamily() {
3189         super("disableAddressFamily");
3190       }
3191
3192       @Override
3193         public disableAddressFamily_args getEmptyArgsInstance() {
3194         return new disableAddressFamily_args();
3195       }
3196
3197       @Override
3198         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3199         final org.apache.thrift.AsyncProcessFunction fcall = this;
3200         return new AsyncMethodCallback<Integer>() {
3201           @Override
3202                 public void onComplete(Integer o) {
3203             disableAddressFamily_result result = new disableAddressFamily_result();
3204             result.success = o;
3205             result.setSuccessIsSet(true);
3206             try {
3207               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3208               return;
3209             } catch (Exception e) {
3210               LOG.error("Exception writing to internal frame buffer", e);
3211             }
3212             fb.close();
3213           }
3214           @Override
3215                 public void onError(Exception e) {
3216             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3217             org.apache.thrift.TBase msg;
3218             disableAddressFamily_result result = new disableAddressFamily_result();
3219             {
3220               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3221               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3222             }
3223             try {
3224               fcall.sendResponse(fb,msg,msgType,seqid);
3225               return;
3226             } catch (Exception ex) {
3227               LOG.error("Exception writing to internal frame buffer", ex);
3228             }
3229             fb.close();
3230           }
3231         };
3232       }
3233
3234       @Override
3235         protected boolean isOneway() {
3236         return false;
3237       }
3238
3239       @Override
3240         public void start(I iface, disableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3241         iface.disableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
3242       }
3243     }
3244
3245     public static class setLogConfig<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setLogConfig_args, Integer> {
3246       public setLogConfig() {
3247         super("setLogConfig");
3248       }
3249
3250       @Override
3251         public setLogConfig_args getEmptyArgsInstance() {
3252         return new setLogConfig_args();
3253       }
3254
3255       @Override
3256         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3257         final org.apache.thrift.AsyncProcessFunction fcall = this;
3258         return new AsyncMethodCallback<Integer>() {
3259           @Override
3260                 public void onComplete(Integer o) {
3261             setLogConfig_result result = new setLogConfig_result();
3262             result.success = o;
3263             result.setSuccessIsSet(true);
3264             try {
3265               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3266               return;
3267             } catch (Exception e) {
3268               LOG.error("Exception writing to internal frame buffer", e);
3269             }
3270             fb.close();
3271           }
3272           @Override
3273                 public void onError(Exception e) {
3274             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3275             org.apache.thrift.TBase msg;
3276             setLogConfig_result result = new setLogConfig_result();
3277             {
3278               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3279               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3280             }
3281             try {
3282               fcall.sendResponse(fb,msg,msgType,seqid);
3283               return;
3284             } catch (Exception ex) {
3285               LOG.error("Exception writing to internal frame buffer", ex);
3286             }
3287             fb.close();
3288           }
3289         };
3290       }
3291
3292       @Override
3293         protected boolean isOneway() {
3294         return false;
3295       }
3296
3297       @Override
3298         public void start(I iface, setLogConfig_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3299         iface.setLogConfig(args.logFileName, args.logLevel,resultHandler);
3300       }
3301     }
3302
3303     public static class enableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableGracefulRestart_args, Integer> {
3304       public enableGracefulRestart() {
3305         super("enableGracefulRestart");
3306       }
3307
3308       @Override
3309         public enableGracefulRestart_args getEmptyArgsInstance() {
3310         return new enableGracefulRestart_args();
3311       }
3312
3313       @Override
3314         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3315         final org.apache.thrift.AsyncProcessFunction fcall = this;
3316         return new AsyncMethodCallback<Integer>() {
3317           @Override
3318                 public void onComplete(Integer o) {
3319             enableGracefulRestart_result result = new enableGracefulRestart_result();
3320             result.success = o;
3321             result.setSuccessIsSet(true);
3322             try {
3323               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3324               return;
3325             } catch (Exception e) {
3326               LOG.error("Exception writing to internal frame buffer", e);
3327             }
3328             fb.close();
3329           }
3330           @Override
3331                 public void onError(Exception e) {
3332             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3333             org.apache.thrift.TBase msg;
3334             enableGracefulRestart_result result = new enableGracefulRestart_result();
3335             {
3336               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3337               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3338             }
3339             try {
3340               fcall.sendResponse(fb,msg,msgType,seqid);
3341               return;
3342             } catch (Exception ex) {
3343               LOG.error("Exception writing to internal frame buffer", ex);
3344             }
3345             fb.close();
3346           }
3347         };
3348       }
3349
3350       @Override
3351         protected boolean isOneway() {
3352         return false;
3353       }
3354
3355       @Override
3356         public void start(I iface, enableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3357         iface.enableGracefulRestart(args.stalepathTime,resultHandler);
3358       }
3359     }
3360
3361     public static class disableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableGracefulRestart_args, Integer> {
3362       public disableGracefulRestart() {
3363         super("disableGracefulRestart");
3364       }
3365
3366       @Override
3367         public disableGracefulRestart_args getEmptyArgsInstance() {
3368         return new disableGracefulRestart_args();
3369       }
3370
3371       @Override
3372         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3373         final org.apache.thrift.AsyncProcessFunction fcall = this;
3374         return new AsyncMethodCallback<Integer>() {
3375           @Override
3376                 public void onComplete(Integer o) {
3377             disableGracefulRestart_result result = new disableGracefulRestart_result();
3378             result.success = o;
3379             result.setSuccessIsSet(true);
3380             try {
3381               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3382               return;
3383             } catch (Exception e) {
3384               LOG.error("Exception writing to internal frame buffer", e);
3385             }
3386             fb.close();
3387           }
3388           @Override
3389                 public void onError(Exception e) {
3390             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3391             org.apache.thrift.TBase msg;
3392             disableGracefulRestart_result result = new disableGracefulRestart_result();
3393             {
3394               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3395               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3396             }
3397             try {
3398               fcall.sendResponse(fb,msg,msgType,seqid);
3399               return;
3400             } catch (Exception ex) {
3401               LOG.error("Exception writing to internal frame buffer", ex);
3402             }
3403             fb.close();
3404           }
3405         };
3406       }
3407
3408       @Override
3409         protected boolean isOneway() {
3410         return false;
3411       }
3412
3413       @Override
3414         public void start(I iface, disableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3415         iface.disableGracefulRestart(resultHandler);
3416       }
3417     }
3418
3419     public static class getRoutes<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getRoutes_args, Routes> {
3420       public getRoutes() {
3421         super("getRoutes");
3422       }
3423
3424       @Override
3425         public getRoutes_args getEmptyArgsInstance() {
3426         return new getRoutes_args();
3427       }
3428
3429       @Override
3430         public AsyncMethodCallback<Routes> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3431         final org.apache.thrift.AsyncProcessFunction fcall = this;
3432         return new AsyncMethodCallback<Routes>() {
3433           @Override
3434                 public void onComplete(Routes o) {
3435             getRoutes_result result = new getRoutes_result();
3436             result.success = o;
3437             try {
3438               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3439               return;
3440             } catch (Exception e) {
3441               LOG.error("Exception writing to internal frame buffer", e);
3442             }
3443             fb.close();
3444           }
3445           @Override
3446                 public void onError(Exception e) {
3447             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3448             org.apache.thrift.TBase msg;
3449             getRoutes_result result = new getRoutes_result();
3450             {
3451               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3452               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3453             }
3454             try {
3455               fcall.sendResponse(fb,msg,msgType,seqid);
3456               return;
3457             } catch (Exception ex) {
3458               LOG.error("Exception writing to internal frame buffer", ex);
3459             }
3460             fb.close();
3461           }
3462         };
3463       }
3464
3465       @Override
3466         protected boolean isOneway() {
3467         return false;
3468       }
3469
3470       @Override
3471         public void start(I iface, getRoutes_args args, org.apache.thrift.async.AsyncMethodCallback<Routes> resultHandler) throws TException {
3472         iface.getRoutes(args.p_type, args.optype, args.winSize, args.afi,resultHandler);
3473       }
3474     }
3475
3476     public static class enableMultipath<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableMultipath_args, Integer> {
3477       public enableMultipath() {
3478         super("enableMultipath");
3479       }
3480
3481       @Override
3482         public enableMultipath_args getEmptyArgsInstance() {
3483         return new enableMultipath_args();
3484       }
3485
3486       @Override
3487         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3488         final org.apache.thrift.AsyncProcessFunction fcall = this;
3489         return new AsyncMethodCallback<Integer>() {
3490           @Override
3491                 public void onComplete(Integer o) {
3492             enableMultipath_result result = new enableMultipath_result();
3493             result.success = o;
3494             result.setSuccessIsSet(true);
3495             try {
3496               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3497               return;
3498             } catch (Exception e) {
3499               LOG.error("Exception writing to internal frame buffer", e);
3500             }
3501             fb.close();
3502           }
3503           @Override
3504                 public void onError(Exception e) {
3505             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3506             org.apache.thrift.TBase msg;
3507             enableMultipath_result result = new enableMultipath_result();
3508             {
3509               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3510               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3511             }
3512             try {
3513               fcall.sendResponse(fb,msg,msgType,seqid);
3514               return;
3515             } catch (Exception ex) {
3516               LOG.error("Exception writing to internal frame buffer", ex);
3517             }
3518             fb.close();
3519           }
3520         };
3521       }
3522
3523       @Override
3524         protected boolean isOneway() {
3525         return false;
3526       }
3527
3528       @Override
3529         public void start(I iface, enableMultipath_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3530         iface.enableMultipath(args.afi, args.safi,resultHandler);
3531       }
3532     }
3533
3534     public static class disableMultipath<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableMultipath_args, Integer> {
3535       public disableMultipath() {
3536         super("disableMultipath");
3537       }
3538
3539       @Override
3540         public disableMultipath_args getEmptyArgsInstance() {
3541         return new disableMultipath_args();
3542       }
3543
3544       @Override
3545         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3546         final org.apache.thrift.AsyncProcessFunction fcall = this;
3547         return new AsyncMethodCallback<Integer>() {
3548           @Override
3549                 public void onComplete(Integer o) {
3550             disableMultipath_result result = new disableMultipath_result();
3551             result.success = o;
3552             result.setSuccessIsSet(true);
3553             try {
3554               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3555               return;
3556             } catch (Exception e) {
3557               LOG.error("Exception writing to internal frame buffer", e);
3558             }
3559             fb.close();
3560           }
3561           @Override
3562                 public void onError(Exception e) {
3563             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3564             org.apache.thrift.TBase msg;
3565             disableMultipath_result result = new disableMultipath_result();
3566             {
3567               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3568               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3569             }
3570             try {
3571               fcall.sendResponse(fb,msg,msgType,seqid);
3572               return;
3573             } catch (Exception ex) {
3574               LOG.error("Exception writing to internal frame buffer", ex);
3575             }
3576             fb.close();
3577           }
3578         };
3579       }
3580
3581       @Override
3582         protected boolean isOneway() {
3583         return false;
3584       }
3585
3586       @Override
3587         public void start(I iface, disableMultipath_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3588         iface.disableMultipath(args.afi, args.safi,resultHandler);
3589       }
3590     }
3591
3592     public static class multipaths<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, multipaths_args, Integer> {
3593       public multipaths() {
3594         super("multipaths");
3595       }
3596
3597       @Override
3598         public multipaths_args getEmptyArgsInstance() {
3599         return new multipaths_args();
3600       }
3601
3602       @Override
3603         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3604         final org.apache.thrift.AsyncProcessFunction fcall = this;
3605         return new AsyncMethodCallback<Integer>() {
3606           @Override
3607                 public void onComplete(Integer o) {
3608             multipaths_result result = new multipaths_result();
3609             result.success = o;
3610             result.setSuccessIsSet(true);
3611             try {
3612               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3613               return;
3614             } catch (Exception e) {
3615               LOG.error("Exception writing to internal frame buffer", e);
3616             }
3617             fb.close();
3618           }
3619           @Override
3620                 public void onError(Exception e) {
3621             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3622             org.apache.thrift.TBase msg;
3623             multipaths_result result = new multipaths_result();
3624             {
3625               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3626               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3627             }
3628             try {
3629               fcall.sendResponse(fb,msg,msgType,seqid);
3630               return;
3631             } catch (Exception ex) {
3632               LOG.error("Exception writing to internal frame buffer", ex);
3633             }
3634             fb.close();
3635           }
3636         };
3637       }
3638
3639       @Override
3640         protected boolean isOneway() {
3641         return false;
3642       }
3643
3644       @Override
3645         public void start(I iface, multipaths_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3646         iface.multipaths(args.rd, args.maxPath,resultHandler);
3647       }
3648     }
3649
3650     public static class enableEORDelay<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableEORDelay_args, Integer> {
3651       public enableEORDelay() {
3652         super("enableEORDelay");
3653       }
3654
3655       public enableEORDelay_args getEmptyArgsInstance() {
3656         return new enableEORDelay_args();
3657       }
3658
3659       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3660         final org.apache.thrift.AsyncProcessFunction fcall = this;
3661         return new AsyncMethodCallback<Integer>() {
3662           public void onComplete(Integer o) {
3663             enableEORDelay_result result = new enableEORDelay_result();
3664             result.success = o;
3665             result.setSuccessIsSet(true);
3666             try {
3667               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3668               return;
3669             } catch (Exception e) {
3670               LOG.error("Exception writing to internal frame buffer", e);
3671             }
3672             fb.close();
3673           }
3674           public void onError(Exception e) {
3675             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3676             org.apache.thrift.TBase msg;
3677             enableEORDelay_result result = new enableEORDelay_result();
3678             {
3679               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3680               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3681             }
3682             try {
3683               fcall.sendResponse(fb,msg,msgType,seqid);
3684               return;
3685             } catch (Exception ex) {
3686               LOG.error("Exception writing to internal frame buffer", ex);
3687             }
3688             fb.close();
3689           }
3690         };
3691       }
3692
3693       protected boolean isOneway() {
3694         return false;
3695       }
3696
3697       public void start(I iface, enableEORDelay_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3698         iface.enableEORDelay(args.delay,resultHandler);
3699       }
3700     }
3701
3702     public static class sendEOR<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, sendEOR_args, Integer> {
3703       public sendEOR() {
3704         super("sendEOR");
3705       }
3706
3707       public sendEOR_args getEmptyArgsInstance() {
3708         return new sendEOR_args();
3709       }
3710
3711       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3712         final org.apache.thrift.AsyncProcessFunction fcall = this;
3713         return new AsyncMethodCallback<Integer>() {
3714           public void onComplete(Integer o) {
3715             sendEOR_result result = new sendEOR_result();
3716             result.success = o;
3717             result.setSuccessIsSet(true);
3718             try {
3719               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3720               return;
3721             } catch (Exception e) {
3722               LOG.error("Exception writing to internal frame buffer", e);
3723             }
3724             fb.close();
3725           }
3726           public void onError(Exception e) {
3727             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3728             org.apache.thrift.TBase msg;
3729             sendEOR_result result = new sendEOR_result();
3730             {
3731               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3732               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3733             }
3734             try {
3735               fcall.sendResponse(fb,msg,msgType,seqid);
3736               return;
3737             } catch (Exception ex) {
3738               LOG.error("Exception writing to internal frame buffer", ex);
3739             }
3740             fb.close();
3741           }
3742         };
3743       }
3744
3745       protected boolean isOneway() {
3746         return false;
3747       }
3748
3749       public void start(I iface, sendEOR_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3750         iface.sendEOR(resultHandler);
3751       }
3752     }
3753
3754   }
3755
3756   public static class startBgp_args implements org.apache.thrift.TBase<startBgp_args, startBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_args>   {
3757     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_args");
3758
3759     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);
3760     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);
3761     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);
3762     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);
3763     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);
3764     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);
3765     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);
3766
3767     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3768     static {
3769       schemes.put(StandardScheme.class, new startBgp_argsStandardSchemeFactory());
3770       schemes.put(TupleScheme.class, new startBgp_argsTupleSchemeFactory());
3771     }
3772
3773     public long asNumber; // required
3774     public String routerId; // required
3775     public int port; // required
3776     public int holdTime; // required
3777     public int keepAliveTime; // required
3778     public int stalepathTime; // required
3779     public boolean announceFlush; // required
3780
3781     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3782     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3783       AS_NUMBER((short)1, "asNumber"),
3784       ROUTER_ID((short)2, "routerId"),
3785       PORT((short)3, "port"),
3786       HOLD_TIME((short)4, "holdTime"),
3787       KEEP_ALIVE_TIME((short)5, "keepAliveTime"),
3788       STALEPATH_TIME((short)6, "stalepathTime"),
3789       ANNOUNCE_FLUSH((short)7, "announceFlush");
3790
3791       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3792
3793       static {
3794         for (_Fields field : EnumSet.allOf(_Fields.class)) {
3795           byName.put(field.getFieldName(), field);
3796         }
3797       }
3798
3799       /**
3800        * Find the _Fields constant that matches fieldId, or null if its not found.
3801        */
3802       public static _Fields findByThriftId(int fieldId) {
3803         switch(fieldId) {
3804           case 1: // AS_NUMBER
3805             return AS_NUMBER;
3806           case 2: // ROUTER_ID
3807             return ROUTER_ID;
3808           case 3: // PORT
3809             return PORT;
3810           case 4: // HOLD_TIME
3811             return HOLD_TIME;
3812           case 5: // KEEP_ALIVE_TIME
3813             return KEEP_ALIVE_TIME;
3814           case 6: // STALEPATH_TIME
3815             return STALEPATH_TIME;
3816           case 7: // ANNOUNCE_FLUSH
3817             return ANNOUNCE_FLUSH;
3818           default:
3819             return null;
3820         }
3821       }
3822
3823       /**
3824        * Find the _Fields constant that matches fieldId, throwing an exception
3825        * if it is not found.
3826        */
3827       public static _Fields findByThriftIdOrThrow(int fieldId) {
3828         _Fields fields = findByThriftId(fieldId);
3829         if (fields == null) {
3830                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3831                 }
3832         return fields;
3833       }
3834
3835       /**
3836        * Find the _Fields constant that matches name, or null if its not found.
3837        */
3838       public static _Fields findByName(String name) {
3839         return byName.get(name);
3840       }
3841
3842       private final short _thriftId;
3843       private final String _fieldName;
3844
3845       _Fields(short thriftId, String fieldName) {
3846         _thriftId = thriftId;
3847         _fieldName = fieldName;
3848       }
3849
3850       @Override
3851         public short getThriftFieldId() {
3852         return _thriftId;
3853       }
3854
3855       @Override
3856         public String getFieldName() {
3857         return _fieldName;
3858       }
3859     }
3860
3861     // isset id assignments
3862     private static final int __ASNUMBER_ISSET_ID = 0;
3863     private static final int __PORT_ISSET_ID = 1;
3864     private static final int __HOLDTIME_ISSET_ID = 2;
3865     private static final int __KEEPALIVETIME_ISSET_ID = 3;
3866     private static final int __STALEPATHTIME_ISSET_ID = 4;
3867     private static final int __ANNOUNCEFLUSH_ISSET_ID = 5;
3868     private byte __isset_bitfield = 0;
3869     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3870     static {
3871       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3872       tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
3873           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3874       tmpMap.put(_Fields.ROUTER_ID, new org.apache.thrift.meta_data.FieldMetaData("routerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
3875           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3876       tmpMap.put(_Fields.PORT, new org.apache.thrift.meta_data.FieldMetaData("port", org.apache.thrift.TFieldRequirementType.DEFAULT,
3877           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3878       tmpMap.put(_Fields.HOLD_TIME, new org.apache.thrift.meta_data.FieldMetaData("holdTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
3879           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3880       tmpMap.put(_Fields.KEEP_ALIVE_TIME, new org.apache.thrift.meta_data.FieldMetaData("keepAliveTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
3881           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3882       tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
3883           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3884       tmpMap.put(_Fields.ANNOUNCE_FLUSH, new org.apache.thrift.meta_data.FieldMetaData("announceFlush", org.apache.thrift.TFieldRequirementType.DEFAULT,
3885           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3886       metaDataMap = Collections.unmodifiableMap(tmpMap);
3887       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_args.class, metaDataMap);
3888     }
3889
3890     public startBgp_args() {
3891     }
3892
3893     public startBgp_args(
3894       long asNumber,
3895       String routerId,
3896       int port,
3897       int holdTime,
3898       int keepAliveTime,
3899       int stalepathTime,
3900       boolean announceFlush)
3901     {
3902       this();
3903       this.asNumber = asNumber;
3904       setAsNumberIsSet(true);
3905       this.routerId = routerId;
3906       this.port = port;
3907       setPortIsSet(true);
3908       this.holdTime = holdTime;
3909       setHoldTimeIsSet(true);
3910       this.keepAliveTime = keepAliveTime;
3911       setKeepAliveTimeIsSet(true);
3912       this.stalepathTime = stalepathTime;
3913       setStalepathTimeIsSet(true);
3914       this.announceFlush = announceFlush;
3915       setAnnounceFlushIsSet(true);
3916     }
3917
3918     /**
3919      * Performs a deep copy on <i>other</i>.
3920      */
3921     public startBgp_args(startBgp_args other) {
3922       __isset_bitfield = other.__isset_bitfield;
3923       this.asNumber = other.asNumber;
3924       if (other.isSetRouterId()) {
3925         this.routerId = other.routerId;
3926       }
3927       this.port = other.port;
3928       this.holdTime = other.holdTime;
3929       this.keepAliveTime = other.keepAliveTime;
3930       this.stalepathTime = other.stalepathTime;
3931       this.announceFlush = other.announceFlush;
3932     }
3933
3934     @Override
3935         public startBgp_args deepCopy() {
3936       return new startBgp_args(this);
3937     }
3938
3939     @Override
3940     public void clear() {
3941       setAsNumberIsSet(false);
3942       this.asNumber = 0;
3943       this.routerId = null;
3944       setPortIsSet(false);
3945       this.port = 0;
3946       setHoldTimeIsSet(false);
3947       this.holdTime = 0;
3948       setKeepAliveTimeIsSet(false);
3949       this.keepAliveTime = 0;
3950       setStalepathTimeIsSet(false);
3951       this.stalepathTime = 0;
3952       setAnnounceFlushIsSet(false);
3953       this.announceFlush = false;
3954     }
3955
3956     public long getAsNumber() {
3957       return this.asNumber;
3958     }
3959
3960     public startBgp_args setAsNumber(long asNumber) {
3961       this.asNumber = asNumber;
3962       setAsNumberIsSet(true);
3963       return this;
3964     }
3965
3966     public void unsetAsNumber() {
3967       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
3968     }
3969
3970     /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
3971     public boolean isSetAsNumber() {
3972       return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
3973     }
3974
3975     public void setAsNumberIsSet(boolean value) {
3976       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
3977     }
3978
3979     public String getRouterId() {
3980       return this.routerId;
3981     }
3982
3983     public startBgp_args setRouterId(String routerId) {
3984       this.routerId = routerId;
3985       return this;
3986     }
3987
3988     public void unsetRouterId() {
3989       this.routerId = null;
3990     }
3991
3992     /** Returns true if field routerId is set (has been assigned a value) and false otherwise */
3993     public boolean isSetRouterId() {
3994       return this.routerId != null;
3995     }
3996
3997     public void setRouterIdIsSet(boolean value) {
3998       if (!value) {
3999         this.routerId = null;
4000       }
4001     }
4002
4003     public int getPort() {
4004       return this.port;
4005     }
4006
4007     public startBgp_args setPort(int port) {
4008       this.port = port;
4009       setPortIsSet(true);
4010       return this;
4011     }
4012
4013     public void unsetPort() {
4014       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PORT_ISSET_ID);
4015     }
4016
4017     /** Returns true if field port is set (has been assigned a value) and false otherwise */
4018     public boolean isSetPort() {
4019       return EncodingUtils.testBit(__isset_bitfield, __PORT_ISSET_ID);
4020     }
4021
4022     public void setPortIsSet(boolean value) {
4023       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PORT_ISSET_ID, value);
4024     }
4025
4026     public int getHoldTime() {
4027       return this.holdTime;
4028     }
4029
4030     public startBgp_args setHoldTime(int holdTime) {
4031       this.holdTime = holdTime;
4032       setHoldTimeIsSet(true);
4033       return this;
4034     }
4035
4036     public void unsetHoldTime() {
4037       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
4038     }
4039
4040     /** Returns true if field holdTime is set (has been assigned a value) and false otherwise */
4041     public boolean isSetHoldTime() {
4042       return EncodingUtils.testBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
4043     }
4044
4045     public void setHoldTimeIsSet(boolean value) {
4046       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HOLDTIME_ISSET_ID, value);
4047     }
4048
4049     public int getKeepAliveTime() {
4050       return this.keepAliveTime;
4051     }
4052
4053     public startBgp_args setKeepAliveTime(int keepAliveTime) {
4054       this.keepAliveTime = keepAliveTime;
4055       setKeepAliveTimeIsSet(true);
4056       return this;
4057     }
4058
4059     public void unsetKeepAliveTime() {
4060       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
4061     }
4062
4063     /** Returns true if field keepAliveTime is set (has been assigned a value) and false otherwise */
4064     public boolean isSetKeepAliveTime() {
4065       return EncodingUtils.testBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
4066     }
4067
4068     public void setKeepAliveTimeIsSet(boolean value) {
4069       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID, value);
4070     }
4071
4072     public int getStalepathTime() {
4073       return this.stalepathTime;
4074     }
4075
4076     public startBgp_args setStalepathTime(int stalepathTime) {
4077       this.stalepathTime = stalepathTime;
4078       setStalepathTimeIsSet(true);
4079       return this;
4080     }
4081
4082     public void unsetStalepathTime() {
4083       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
4084     }
4085
4086     /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
4087     public boolean isSetStalepathTime() {
4088       return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
4089     }
4090
4091     public void setStalepathTimeIsSet(boolean value) {
4092       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
4093     }
4094
4095     public boolean isAnnounceFlush() {
4096       return this.announceFlush;
4097     }
4098
4099     public startBgp_args setAnnounceFlush(boolean announceFlush) {
4100       this.announceFlush = announceFlush;
4101       setAnnounceFlushIsSet(true);
4102       return this;
4103     }
4104
4105     public void unsetAnnounceFlush() {
4106       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID);
4107     }
4108
4109     /** Returns true if field announceFlush is set (has been assigned a value) and false otherwise */
4110     public boolean isSetAnnounceFlush() {
4111       return EncodingUtils.testBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID);
4112     }
4113
4114     public void setAnnounceFlushIsSet(boolean value) {
4115       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID, value);
4116     }
4117
4118     @Override
4119         public void setFieldValue(_Fields field, Object value) {
4120       switch (field) {
4121       case AS_NUMBER:
4122         if (value == null) {
4123           unsetAsNumber();
4124         } else {
4125           setAsNumber((Long)value);
4126         }
4127         break;
4128
4129       case ROUTER_ID:
4130         if (value == null) {
4131           unsetRouterId();
4132         } else {
4133           setRouterId((String)value);
4134         }
4135         break;
4136
4137       case PORT:
4138         if (value == null) {
4139           unsetPort();
4140         } else {
4141           setPort((Integer)value);
4142         }
4143         break;
4144
4145       case HOLD_TIME:
4146         if (value == null) {
4147           unsetHoldTime();
4148         } else {
4149           setHoldTime((Integer)value);
4150         }
4151         break;
4152
4153       case KEEP_ALIVE_TIME:
4154         if (value == null) {
4155           unsetKeepAliveTime();
4156         } else {
4157           setKeepAliveTime((Integer)value);
4158         }
4159         break;
4160
4161       case STALEPATH_TIME:
4162         if (value == null) {
4163           unsetStalepathTime();
4164         } else {
4165           setStalepathTime((Integer)value);
4166         }
4167         break;
4168
4169       case ANNOUNCE_FLUSH:
4170         if (value == null) {
4171           unsetAnnounceFlush();
4172         } else {
4173           setAnnounceFlush((Boolean)value);
4174         }
4175         break;
4176
4177       }
4178     }
4179
4180     @Override
4181         public Object getFieldValue(_Fields field) {
4182       switch (field) {
4183       case AS_NUMBER:
4184         return Long.valueOf(getAsNumber());
4185
4186       case ROUTER_ID:
4187         return getRouterId();
4188
4189       case PORT:
4190         return Integer.valueOf(getPort());
4191
4192       case HOLD_TIME:
4193         return Integer.valueOf(getHoldTime());
4194
4195       case KEEP_ALIVE_TIME:
4196         return Integer.valueOf(getKeepAliveTime());
4197
4198       case STALEPATH_TIME:
4199         return Integer.valueOf(getStalepathTime());
4200
4201       case ANNOUNCE_FLUSH:
4202         return Boolean.valueOf(isAnnounceFlush());
4203
4204       }
4205       throw new IllegalStateException();
4206     }
4207
4208     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4209     @Override
4210         public boolean isSet(_Fields field) {
4211       if (field == null) {
4212         throw new IllegalArgumentException();
4213       }
4214
4215       switch (field) {
4216       case AS_NUMBER:
4217         return isSetAsNumber();
4218       case ROUTER_ID:
4219         return isSetRouterId();
4220       case PORT:
4221         return isSetPort();
4222       case HOLD_TIME:
4223         return isSetHoldTime();
4224       case KEEP_ALIVE_TIME:
4225         return isSetKeepAliveTime();
4226       case STALEPATH_TIME:
4227         return isSetStalepathTime();
4228       case ANNOUNCE_FLUSH:
4229         return isSetAnnounceFlush();
4230       }
4231       throw new IllegalStateException();
4232     }
4233
4234     @Override
4235     public boolean equals(Object that) {
4236       if (that == null) {
4237                 return false;
4238         }
4239       if (that instanceof startBgp_args) {
4240                 return this.equals((startBgp_args)that);
4241         }
4242       return false;
4243     }
4244
4245     public boolean equals(startBgp_args that) {
4246       if (that == null) {
4247                 return false;
4248         }
4249
4250       boolean this_present_asNumber = true;
4251       boolean that_present_asNumber = true;
4252       if (this_present_asNumber || that_present_asNumber) {
4253         if (!(this_present_asNumber && that_present_asNumber)) {
4254                         return false;
4255                 }
4256         if (this.asNumber != that.asNumber) {
4257                         return false;
4258                 }
4259       }
4260
4261       boolean this_present_routerId = true && this.isSetRouterId();
4262       boolean that_present_routerId = true && that.isSetRouterId();
4263       if (this_present_routerId || that_present_routerId) {
4264         if (!(this_present_routerId && that_present_routerId)) {
4265                         return false;
4266                 }
4267         if (!this.routerId.equals(that.routerId)) {
4268                         return false;
4269                 }
4270       }
4271
4272       boolean this_present_port = true;
4273       boolean that_present_port = true;
4274       if (this_present_port || that_present_port) {
4275         if (!(this_present_port && that_present_port)) {
4276                         return false;
4277                 }
4278         if (this.port != that.port) {
4279                         return false;
4280                 }
4281       }
4282
4283       boolean this_present_holdTime = true;
4284       boolean that_present_holdTime = true;
4285       if (this_present_holdTime || that_present_holdTime) {
4286         if (!(this_present_holdTime && that_present_holdTime)) {
4287                         return false;
4288                 }
4289         if (this.holdTime != that.holdTime) {
4290                         return false;
4291                 }
4292       }
4293
4294       boolean this_present_keepAliveTime = true;
4295       boolean that_present_keepAliveTime = true;
4296       if (this_present_keepAliveTime || that_present_keepAliveTime) {
4297         if (!(this_present_keepAliveTime && that_present_keepAliveTime)) {
4298                         return false;
4299                 }
4300         if (this.keepAliveTime != that.keepAliveTime) {
4301                         return false;
4302                 }
4303       }
4304
4305       boolean this_present_stalepathTime = true;
4306       boolean that_present_stalepathTime = true;
4307       if (this_present_stalepathTime || that_present_stalepathTime) {
4308         if (!(this_present_stalepathTime && that_present_stalepathTime)) {
4309                         return false;
4310                 }
4311         if (this.stalepathTime != that.stalepathTime) {
4312                         return false;
4313                 }
4314       }
4315
4316       boolean this_present_announceFlush = true;
4317       boolean that_present_announceFlush = true;
4318       if (this_present_announceFlush || that_present_announceFlush) {
4319         if (!(this_present_announceFlush && that_present_announceFlush)) {
4320                         return false;
4321                 }
4322         if (this.announceFlush != that.announceFlush) {
4323                         return false;
4324                 }
4325       }
4326
4327       return true;
4328     }
4329
4330     @Override
4331     public int hashCode() {
4332       List<Object> list = new ArrayList<Object>();
4333
4334       boolean present_asNumber = true;
4335       list.add(present_asNumber);
4336       if (present_asNumber)
4337         list.add(asNumber);
4338       boolean present_routerId = true && (isSetRouterId());
4339       list.add(present_routerId);
4340       if (present_routerId)
4341         list.add(routerId);
4342       boolean present_port = true;
4343       list.add(present_port);
4344       if (present_port)
4345         list.add(port);
4346       boolean present_holdTime = true;
4347       list.add(present_holdTime);
4348       if (present_holdTime)
4349         list.add(holdTime);
4350       boolean present_keepAliveTime = true;
4351       list.add(present_keepAliveTime);
4352       if (present_keepAliveTime)
4353         list.add(keepAliveTime);
4354       boolean present_stalepathTime = true;
4355       list.add(present_stalepathTime);
4356       if (present_stalepathTime)
4357         list.add(stalepathTime);
4358       boolean present_announceFlush = true;
4359       list.add(present_announceFlush);
4360       if (present_announceFlush)
4361         list.add(announceFlush);
4362       return list.hashCode();
4363     }
4364
4365     @Override
4366     public int compareTo(startBgp_args other) {
4367       if (!getClass().equals(other.getClass())) {
4368         return getClass().getName().compareTo(other.getClass().getName());
4369       }
4370
4371       int lastComparison = 0;
4372
4373       lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
4374       if (lastComparison != 0) {
4375         return lastComparison;
4376       }
4377       if (isSetAsNumber()) {
4378         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
4379         if (lastComparison != 0) {
4380           return lastComparison;
4381         }
4382       }
4383       lastComparison = Boolean.valueOf(isSetRouterId()).compareTo(other.isSetRouterId());
4384       if (lastComparison != 0) {
4385         return lastComparison;
4386       }
4387       if (isSetRouterId()) {
4388         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routerId, other.routerId);
4389         if (lastComparison != 0) {
4390           return lastComparison;
4391         }
4392       }
4393       lastComparison = Boolean.valueOf(isSetPort()).compareTo(other.isSetPort());
4394       if (lastComparison != 0) {
4395         return lastComparison;
4396       }
4397       if (isSetPort()) {
4398         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, other.port);
4399         if (lastComparison != 0) {
4400           return lastComparison;
4401         }
4402       }
4403       lastComparison = Boolean.valueOf(isSetHoldTime()).compareTo(other.isSetHoldTime());
4404       if (lastComparison != 0) {
4405         return lastComparison;
4406       }
4407       if (isSetHoldTime()) {
4408         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdTime, other.holdTime);
4409         if (lastComparison != 0) {
4410           return lastComparison;
4411         }
4412       }
4413       lastComparison = Boolean.valueOf(isSetKeepAliveTime()).compareTo(other.isSetKeepAliveTime());
4414       if (lastComparison != 0) {
4415         return lastComparison;
4416       }
4417       if (isSetKeepAliveTime()) {
4418         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keepAliveTime, other.keepAliveTime);
4419         if (lastComparison != 0) {
4420           return lastComparison;
4421         }
4422       }
4423       lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
4424       if (lastComparison != 0) {
4425         return lastComparison;
4426       }
4427       if (isSetStalepathTime()) {
4428         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
4429         if (lastComparison != 0) {
4430           return lastComparison;
4431         }
4432       }
4433       lastComparison = Boolean.valueOf(isSetAnnounceFlush()).compareTo(other.isSetAnnounceFlush());
4434       if (lastComparison != 0) {
4435         return lastComparison;
4436       }
4437       if (isSetAnnounceFlush()) {
4438         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.announceFlush, other.announceFlush);
4439         if (lastComparison != 0) {
4440           return lastComparison;
4441         }
4442       }
4443       return 0;
4444     }
4445
4446     @Override
4447         public _Fields fieldForId(int fieldId) {
4448       return _Fields.findByThriftId(fieldId);
4449     }
4450
4451     @Override
4452         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4453       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4454     }
4455
4456     @Override
4457         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4458       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4459     }
4460
4461     @Override
4462     public String toString() {
4463       StringBuilder sb = new StringBuilder("startBgp_args(");
4464       boolean first = true;
4465
4466       sb.append("asNumber:");
4467       sb.append(this.asNumber);
4468       first = false;
4469       if (!first) {
4470                 sb.append(", ");
4471         }
4472       sb.append("routerId:");
4473       if (this.routerId == null) {
4474         sb.append("null");
4475       } else {
4476         sb.append(this.routerId);
4477       }
4478       first = false;
4479       if (!first) {
4480                 sb.append(", ");
4481         }
4482       sb.append("port:");
4483       sb.append(this.port);
4484       first = false;
4485       if (!first) {
4486                 sb.append(", ");
4487         }
4488       sb.append("holdTime:");
4489       sb.append(this.holdTime);
4490       first = false;
4491       if (!first) {
4492                 sb.append(", ");
4493         }
4494       sb.append("keepAliveTime:");
4495       sb.append(this.keepAliveTime);
4496       first = false;
4497       if (!first) {
4498                 sb.append(", ");
4499         }
4500       sb.append("stalepathTime:");
4501       sb.append(this.stalepathTime);
4502       first = false;
4503       if (!first) {
4504                 sb.append(", ");
4505         }
4506       sb.append("announceFlush:");
4507       sb.append(this.announceFlush);
4508       first = false;
4509       sb.append(")");
4510       return sb.toString();
4511     }
4512
4513     public void validate() throws org.apache.thrift.TException {
4514       // check for required fields
4515       // check for sub-struct validity
4516     }
4517
4518     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4519       try {
4520         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4521       } catch (org.apache.thrift.TException te) {
4522         throw new java.io.IOException(te);
4523       }
4524     }
4525
4526     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4527       try {
4528         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4529         __isset_bitfield = 0;
4530         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4531       } catch (org.apache.thrift.TException te) {
4532         throw new java.io.IOException(te);
4533       }
4534     }
4535
4536     private static class startBgp_argsStandardSchemeFactory implements SchemeFactory {
4537       @Override
4538         public startBgp_argsStandardScheme getScheme() {
4539         return new startBgp_argsStandardScheme();
4540       }
4541     }
4542
4543     private static class startBgp_argsStandardScheme extends StandardScheme<startBgp_args> {
4544
4545       @Override
4546         public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_args struct) throws org.apache.thrift.TException {
4547         org.apache.thrift.protocol.TField schemeField;
4548         iprot.readStructBegin();
4549         while (true)
4550         {
4551           schemeField = iprot.readFieldBegin();
4552           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4553             break;
4554           }
4555           switch (schemeField.id) {
4556             case 1: // AS_NUMBER
4557               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
4558                 struct.asNumber = iprot.readI64();
4559                 struct.setAsNumberIsSet(true);
4560               } else {
4561                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4562               }
4563               break;
4564             case 2: // ROUTER_ID
4565               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
4566                 struct.routerId = iprot.readString();
4567                 struct.setRouterIdIsSet(true);
4568               } else {
4569                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4570               }
4571               break;
4572             case 3: // PORT
4573               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4574                 struct.port = iprot.readI32();
4575                 struct.setPortIsSet(true);
4576               } else {
4577                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4578               }
4579               break;
4580             case 4: // HOLD_TIME
4581               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4582                 struct.holdTime = iprot.readI32();
4583                 struct.setHoldTimeIsSet(true);
4584               } else {
4585                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4586               }
4587               break;
4588             case 5: // KEEP_ALIVE_TIME
4589               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4590                 struct.keepAliveTime = iprot.readI32();
4591                 struct.setKeepAliveTimeIsSet(true);
4592               } else {
4593                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4594               }
4595               break;
4596             case 6: // STALEPATH_TIME
4597               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4598                 struct.stalepathTime = iprot.readI32();
4599                 struct.setStalepathTimeIsSet(true);
4600               } else {
4601                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4602               }
4603               break;
4604             case 7: // ANNOUNCE_FLUSH
4605               if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
4606                 struct.announceFlush = iprot.readBool();
4607                 struct.setAnnounceFlushIsSet(true);
4608               } else {
4609                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4610               }
4611               break;
4612             default:
4613               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4614           }
4615           iprot.readFieldEnd();
4616         }
4617         iprot.readStructEnd();
4618
4619         // check for required fields of primitive type, which can't be checked in the validate method
4620         struct.validate();
4621       }
4622
4623       @Override
4624         public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_args struct) throws org.apache.thrift.TException {
4625         struct.validate();
4626
4627         oprot.writeStructBegin(STRUCT_DESC);
4628         oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
4629         oprot.writeI64(struct.asNumber);
4630         oprot.writeFieldEnd();
4631         if (struct.routerId != null) {
4632           oprot.writeFieldBegin(ROUTER_ID_FIELD_DESC);
4633           oprot.writeString(struct.routerId);
4634           oprot.writeFieldEnd();
4635         }
4636         oprot.writeFieldBegin(PORT_FIELD_DESC);
4637         oprot.writeI32(struct.port);
4638         oprot.writeFieldEnd();
4639         oprot.writeFieldBegin(HOLD_TIME_FIELD_DESC);
4640         oprot.writeI32(struct.holdTime);
4641         oprot.writeFieldEnd();
4642         oprot.writeFieldBegin(KEEP_ALIVE_TIME_FIELD_DESC);
4643         oprot.writeI32(struct.keepAliveTime);
4644         oprot.writeFieldEnd();
4645         oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
4646         oprot.writeI32(struct.stalepathTime);
4647         oprot.writeFieldEnd();
4648         oprot.writeFieldBegin(ANNOUNCE_FLUSH_FIELD_DESC);
4649         oprot.writeBool(struct.announceFlush);
4650         oprot.writeFieldEnd();
4651         oprot.writeFieldStop();
4652         oprot.writeStructEnd();
4653       }
4654
4655     }
4656
4657     private static class startBgp_argsTupleSchemeFactory implements SchemeFactory {
4658       @Override
4659         public startBgp_argsTupleScheme getScheme() {
4660         return new startBgp_argsTupleScheme();
4661       }
4662     }
4663
4664     private static class startBgp_argsTupleScheme extends TupleScheme<startBgp_args> {
4665
4666       @Override
4667       public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
4668         TTupleProtocol oprot = (TTupleProtocol) prot;
4669         BitSet optionals = new BitSet();
4670         if (struct.isSetAsNumber()) {
4671           optionals.set(0);
4672         }
4673         if (struct.isSetRouterId()) {
4674           optionals.set(1);
4675         }
4676         if (struct.isSetPort()) {
4677           optionals.set(2);
4678         }
4679         if (struct.isSetHoldTime()) {
4680           optionals.set(3);
4681         }
4682         if (struct.isSetKeepAliveTime()) {
4683           optionals.set(4);
4684         }
4685         if (struct.isSetStalepathTime()) {
4686           optionals.set(5);
4687         }
4688         if (struct.isSetAnnounceFlush()) {
4689           optionals.set(6);
4690         }
4691         oprot.writeBitSet(optionals, 7);
4692         if (struct.isSetAsNumber()) {
4693           oprot.writeI64(struct.asNumber);
4694         }
4695         if (struct.isSetRouterId()) {
4696           oprot.writeString(struct.routerId);
4697         }
4698         if (struct.isSetPort()) {
4699           oprot.writeI32(struct.port);
4700         }
4701         if (struct.isSetHoldTime()) {
4702           oprot.writeI32(struct.holdTime);
4703         }
4704         if (struct.isSetKeepAliveTime()) {
4705           oprot.writeI32(struct.keepAliveTime);
4706         }
4707         if (struct.isSetStalepathTime()) {
4708           oprot.writeI32(struct.stalepathTime);
4709         }
4710         if (struct.isSetAnnounceFlush()) {
4711           oprot.writeBool(struct.announceFlush);
4712         }
4713       }
4714
4715       @Override
4716       public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
4717         TTupleProtocol iprot = (TTupleProtocol) prot;
4718         BitSet incoming = iprot.readBitSet(7);
4719         if (incoming.get(0)) {
4720           struct.asNumber = iprot.readI64();
4721           struct.setAsNumberIsSet(true);
4722         }
4723         if (incoming.get(1)) {
4724           struct.routerId = iprot.readString();
4725           struct.setRouterIdIsSet(true);
4726         }
4727         if (incoming.get(2)) {
4728           struct.port = iprot.readI32();
4729           struct.setPortIsSet(true);
4730         }
4731         if (incoming.get(3)) {
4732           struct.holdTime = iprot.readI32();
4733           struct.setHoldTimeIsSet(true);
4734         }
4735         if (incoming.get(4)) {
4736           struct.keepAliveTime = iprot.readI32();
4737           struct.setKeepAliveTimeIsSet(true);
4738         }
4739         if (incoming.get(5)) {
4740           struct.stalepathTime = iprot.readI32();
4741           struct.setStalepathTimeIsSet(true);
4742         }
4743         if (incoming.get(6)) {
4744           struct.announceFlush = iprot.readBool();
4745           struct.setAnnounceFlushIsSet(true);
4746         }
4747       }
4748     }
4749
4750   }
4751
4752   public static class startBgp_result implements org.apache.thrift.TBase<startBgp_result, startBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_result>   {
4753     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_result");
4754
4755     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);
4756
4757     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4758     static {
4759       schemes.put(StandardScheme.class, new startBgp_resultStandardSchemeFactory());
4760       schemes.put(TupleScheme.class, new startBgp_resultTupleSchemeFactory());
4761     }
4762
4763     public int success; // required
4764
4765     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4766     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4767       SUCCESS((short)0, "success");
4768
4769       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4770
4771       static {
4772         for (_Fields field : EnumSet.allOf(_Fields.class)) {
4773           byName.put(field.getFieldName(), field);
4774         }
4775       }
4776
4777       /**
4778        * Find the _Fields constant that matches fieldId, or null if its not found.
4779        */
4780       public static _Fields findByThriftId(int fieldId) {
4781         switch(fieldId) {
4782           case 0: // SUCCESS
4783             return SUCCESS;
4784           default:
4785             return null;
4786         }
4787       }
4788
4789       /**
4790        * Find the _Fields constant that matches fieldId, throwing an exception
4791        * if it is not found.
4792        */
4793       public static _Fields findByThriftIdOrThrow(int fieldId) {
4794         _Fields fields = findByThriftId(fieldId);
4795         if (fields == null) {
4796                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4797                 }
4798         return fields;
4799       }
4800
4801       /**
4802        * Find the _Fields constant that matches name, or null if its not found.
4803        */
4804       public static _Fields findByName(String name) {
4805         return byName.get(name);
4806       }
4807
4808       private final short _thriftId;
4809       private final String _fieldName;
4810
4811       _Fields(short thriftId, String fieldName) {
4812         _thriftId = thriftId;
4813         _fieldName = fieldName;
4814       }
4815
4816       @Override
4817         public short getThriftFieldId() {
4818         return _thriftId;
4819       }
4820
4821       @Override
4822         public String getFieldName() {
4823         return _fieldName;
4824       }
4825     }
4826
4827     // isset id assignments
4828     private static final int __SUCCESS_ISSET_ID = 0;
4829     private byte __isset_bitfield = 0;
4830     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4831     static {
4832       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4833       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
4834           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4835       metaDataMap = Collections.unmodifiableMap(tmpMap);
4836       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_result.class, metaDataMap);
4837     }
4838
4839     public startBgp_result() {
4840     }
4841
4842     public startBgp_result(
4843       int success)
4844     {
4845       this();
4846       this.success = success;
4847       setSuccessIsSet(true);
4848     }
4849
4850     /**
4851      * Performs a deep copy on <i>other</i>.
4852      */
4853     public startBgp_result(startBgp_result other) {
4854       __isset_bitfield = other.__isset_bitfield;
4855       this.success = other.success;
4856     }
4857
4858     @Override
4859         public startBgp_result deepCopy() {
4860       return new startBgp_result(this);
4861     }
4862
4863     @Override
4864     public void clear() {
4865       setSuccessIsSet(false);
4866       this.success = 0;
4867     }
4868
4869     public int getSuccess() {
4870       return this.success;
4871     }
4872
4873     public startBgp_result setSuccess(int success) {
4874       this.success = success;
4875       setSuccessIsSet(true);
4876       return this;
4877     }
4878
4879     public void unsetSuccess() {
4880       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4881     }
4882
4883     /** Returns true if field success is set (has been assigned a value) and false otherwise */
4884     public boolean isSetSuccess() {
4885       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4886     }
4887
4888     public void setSuccessIsSet(boolean value) {
4889       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
4890     }
4891
4892     @Override
4893         public void setFieldValue(_Fields field, Object value) {
4894       switch (field) {
4895       case SUCCESS:
4896         if (value == null) {
4897           unsetSuccess();
4898         } else {
4899           setSuccess((Integer)value);
4900         }
4901         break;
4902
4903       }
4904     }
4905
4906     @Override
4907         public Object getFieldValue(_Fields field) {
4908       switch (field) {
4909       case SUCCESS:
4910         return Integer.valueOf(getSuccess());
4911
4912       }
4913       throw new IllegalStateException();
4914     }
4915
4916     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4917     @Override
4918         public boolean isSet(_Fields field) {
4919       if (field == null) {
4920         throw new IllegalArgumentException();
4921       }
4922
4923       switch (field) {
4924       case SUCCESS:
4925         return isSetSuccess();
4926       }
4927       throw new IllegalStateException();
4928     }
4929
4930     @Override
4931     public boolean equals(Object that) {
4932       if (that == null) {
4933                 return false;
4934         }
4935       if (that instanceof startBgp_result) {
4936                 return this.equals((startBgp_result)that);
4937         }
4938       return false;
4939     }
4940
4941     public boolean equals(startBgp_result that) {
4942       if (that == null) {
4943                 return false;
4944         }
4945
4946       boolean this_present_success = true;
4947       boolean that_present_success = true;
4948       if (this_present_success || that_present_success) {
4949         if (!(this_present_success && that_present_success)) {
4950                         return false;
4951                 }
4952         if (this.success != that.success) {
4953                         return false;
4954                 }
4955       }
4956
4957       return true;
4958     }
4959
4960     @Override
4961     public int hashCode() {
4962       List<Object> list = new ArrayList<Object>();
4963
4964       boolean present_success = true;
4965       list.add(present_success);
4966       if (present_success)
4967         list.add(success);
4968       return list.hashCode();
4969     }
4970
4971     @Override
4972     public int compareTo(startBgp_result other) {
4973       if (!getClass().equals(other.getClass())) {
4974         return getClass().getName().compareTo(other.getClass().getName());
4975       }
4976
4977       int lastComparison = 0;
4978
4979       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
4980       if (lastComparison != 0) {
4981         return lastComparison;
4982       }
4983       if (isSetSuccess()) {
4984         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
4985         if (lastComparison != 0) {
4986           return lastComparison;
4987         }
4988       }
4989       return 0;
4990     }
4991
4992     @Override
4993         public _Fields fieldForId(int fieldId) {
4994       return _Fields.findByThriftId(fieldId);
4995     }
4996
4997     @Override
4998         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4999       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5000     }
5001
5002     @Override
5003         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5004       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5005       }
5006
5007     @Override
5008     public String toString() {
5009       StringBuilder sb = new StringBuilder("startBgp_result(");
5010       boolean first = true;
5011
5012       sb.append("success:");
5013       sb.append(this.success);
5014       first = false;
5015       sb.append(")");
5016       return sb.toString();
5017     }
5018
5019     public void validate() throws org.apache.thrift.TException {
5020       // check for required fields
5021       // check for sub-struct validity
5022     }
5023
5024     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5025       try {
5026         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5027       } catch (org.apache.thrift.TException te) {
5028         throw new java.io.IOException(te);
5029       }
5030     }
5031
5032     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5033       try {
5034         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5035         __isset_bitfield = 0;
5036         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5037       } catch (org.apache.thrift.TException te) {
5038         throw new java.io.IOException(te);
5039       }
5040     }
5041
5042     private static class startBgp_resultStandardSchemeFactory implements SchemeFactory {
5043       @Override
5044         public startBgp_resultStandardScheme getScheme() {
5045         return new startBgp_resultStandardScheme();
5046       }
5047     }
5048
5049     private static class startBgp_resultStandardScheme extends StandardScheme<startBgp_result> {
5050
5051       @Override
5052         public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_result struct) throws org.apache.thrift.TException {
5053         org.apache.thrift.protocol.TField schemeField;
5054         iprot.readStructBegin();
5055         while (true)
5056         {
5057           schemeField = iprot.readFieldBegin();
5058           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5059             break;
5060           }
5061           switch (schemeField.id) {
5062             case 0: // SUCCESS
5063               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
5064                 struct.success = iprot.readI32();
5065                 struct.setSuccessIsSet(true);
5066               } else {
5067                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5068               }
5069               break;
5070             default:
5071               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5072           }
5073           iprot.readFieldEnd();
5074         }
5075         iprot.readStructEnd();
5076
5077         // check for required fields of primitive type, which can't be checked in the validate method
5078         struct.validate();
5079       }
5080
5081       @Override
5082         public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_result struct) throws org.apache.thrift.TException {
5083         struct.validate();
5084
5085         oprot.writeStructBegin(STRUCT_DESC);
5086         if (struct.isSetSuccess()) {
5087           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5088           oprot.writeI32(struct.success);
5089           oprot.writeFieldEnd();
5090         }
5091         oprot.writeFieldStop();
5092         oprot.writeStructEnd();
5093       }
5094
5095     }
5096
5097     private static class startBgp_resultTupleSchemeFactory implements SchemeFactory {
5098       @Override
5099         public startBgp_resultTupleScheme getScheme() {
5100         return new startBgp_resultTupleScheme();
5101       }
5102     }
5103
5104     private static class startBgp_resultTupleScheme extends TupleScheme<startBgp_result> {
5105
5106       @Override
5107       public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
5108         TTupleProtocol oprot = (TTupleProtocol) prot;
5109         BitSet optionals = new BitSet();
5110         if (struct.isSetSuccess()) {
5111           optionals.set(0);
5112         }
5113         oprot.writeBitSet(optionals, 1);
5114         if (struct.isSetSuccess()) {
5115           oprot.writeI32(struct.success);
5116         }
5117       }
5118
5119       @Override
5120       public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
5121         TTupleProtocol iprot = (TTupleProtocol) prot;
5122         BitSet incoming = iprot.readBitSet(1);
5123         if (incoming.get(0)) {
5124           struct.success = iprot.readI32();
5125           struct.setSuccessIsSet(true);
5126         }
5127       }
5128     }
5129
5130   }
5131
5132   public static class stopBgp_args implements org.apache.thrift.TBase<stopBgp_args, stopBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_args>   {
5133     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_args");
5134
5135     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);
5136
5137     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5138     static {
5139       schemes.put(StandardScheme.class, new stopBgp_argsStandardSchemeFactory());
5140       schemes.put(TupleScheme.class, new stopBgp_argsTupleSchemeFactory());
5141     }
5142
5143     public long asNumber; // required
5144
5145     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5146     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5147       AS_NUMBER((short)1, "asNumber");
5148
5149       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5150
5151       static {
5152         for (_Fields field : EnumSet.allOf(_Fields.class)) {
5153           byName.put(field.getFieldName(), field);
5154         }
5155       }
5156
5157       /**
5158        * Find the _Fields constant that matches fieldId, or null if its not found.
5159        */
5160       public static _Fields findByThriftId(int fieldId) {
5161         switch(fieldId) {
5162           case 1: // AS_NUMBER
5163             return AS_NUMBER;
5164           default:
5165             return null;
5166         }
5167       }
5168
5169       /**
5170        * Find the _Fields constant that matches fieldId, throwing an exception
5171        * if it is not found.
5172        */
5173       public static _Fields findByThriftIdOrThrow(int fieldId) {
5174         _Fields fields = findByThriftId(fieldId);
5175         if (fields == null) {
5176                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5177                 }
5178         return fields;
5179       }
5180
5181       /**
5182        * Find the _Fields constant that matches name, or null if its not found.
5183        */
5184       public static _Fields findByName(String name) {
5185         return byName.get(name);
5186       }
5187
5188       private final short _thriftId;
5189       private final String _fieldName;
5190
5191       _Fields(short thriftId, String fieldName) {
5192         _thriftId = thriftId;
5193         _fieldName = fieldName;
5194       }
5195
5196       @Override
5197         public short getThriftFieldId() {
5198         return _thriftId;
5199       }
5200
5201       @Override
5202         public String getFieldName() {
5203         return _fieldName;
5204       }
5205     }
5206
5207     // isset id assignments
5208     private static final int __ASNUMBER_ISSET_ID = 0;
5209     private byte __isset_bitfield = 0;
5210     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5211     static {
5212       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5213       tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
5214           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5215       metaDataMap = Collections.unmodifiableMap(tmpMap);
5216       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_args.class, metaDataMap);
5217     }
5218
5219     public stopBgp_args() {
5220     }
5221
5222     public stopBgp_args(
5223       long asNumber)
5224     {
5225       this();
5226       this.asNumber = asNumber;
5227       setAsNumberIsSet(true);
5228     }
5229
5230     /**
5231      * Performs a deep copy on <i>other</i>.
5232      */
5233     public stopBgp_args(stopBgp_args other) {
5234       __isset_bitfield = other.__isset_bitfield;
5235       this.asNumber = other.asNumber;
5236     }
5237
5238     @Override
5239         public stopBgp_args deepCopy() {
5240       return new stopBgp_args(this);
5241     }
5242
5243     @Override
5244     public void clear() {
5245       setAsNumberIsSet(false);
5246       this.asNumber = 0;
5247     }
5248
5249     public long getAsNumber() {
5250       return this.asNumber;
5251     }
5252
5253     public stopBgp_args setAsNumber(long asNumber) {
5254       this.asNumber = asNumber;
5255       setAsNumberIsSet(true);
5256       return this;
5257     }
5258
5259     public void unsetAsNumber() {
5260       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
5261     }
5262
5263     /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
5264     public boolean isSetAsNumber() {
5265       return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
5266     }
5267
5268     public void setAsNumberIsSet(boolean value) {
5269       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
5270     }
5271
5272     @Override
5273         public void setFieldValue(_Fields field, Object value) {
5274       switch (field) {
5275       case AS_NUMBER:
5276         if (value == null) {
5277           unsetAsNumber();
5278         } else {
5279           setAsNumber((Long)value);
5280         }
5281         break;
5282
5283       }
5284     }
5285
5286     @Override
5287         public Object getFieldValue(_Fields field) {
5288       switch (field) {
5289       case AS_NUMBER:
5290         return Long.valueOf(getAsNumber());
5291
5292       }
5293       throw new IllegalStateException();
5294     }
5295
5296     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5297     @Override
5298         public boolean isSet(_Fields field) {
5299       if (field == null) {
5300         throw new IllegalArgumentException();
5301       }
5302
5303       switch (field) {
5304       case AS_NUMBER:
5305         return isSetAsNumber();
5306       }
5307       throw new IllegalStateException();
5308     }
5309
5310     @Override
5311     public boolean equals(Object that) {
5312       if (that == null) {
5313                 return false;
5314         }
5315       if (that instanceof stopBgp_args) {
5316                 return this.equals((stopBgp_args)that);
5317         }
5318       return false;
5319     }
5320
5321     public boolean equals(stopBgp_args that) {
5322       if (that == null) {
5323                 return false;
5324         }
5325
5326       boolean this_present_asNumber = true;
5327       boolean that_present_asNumber = true;
5328       if (this_present_asNumber || that_present_asNumber) {
5329         if (!(this_present_asNumber && that_present_asNumber)) {
5330                         return false;
5331                 }
5332         if (this.asNumber != that.asNumber) {
5333                         return false;
5334                 }
5335       }
5336
5337       return true;
5338     }
5339
5340     @Override
5341     public int hashCode() {
5342       List<Object> list = new ArrayList<Object>();
5343
5344       boolean present_asNumber = true;
5345       list.add(present_asNumber);
5346       if (present_asNumber)
5347         list.add(asNumber);
5348       return list.hashCode();
5349     }
5350
5351     @Override
5352     public int compareTo(stopBgp_args other) {
5353       if (!getClass().equals(other.getClass())) {
5354         return getClass().getName().compareTo(other.getClass().getName());
5355       }
5356
5357       int lastComparison = 0;
5358
5359       lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
5360       if (lastComparison != 0) {
5361         return lastComparison;
5362       }
5363       if (isSetAsNumber()) {
5364         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
5365         if (lastComparison != 0) {
5366           return lastComparison;
5367         }
5368       }
5369       return 0;
5370     }
5371
5372     @Override
5373         public _Fields fieldForId(int fieldId) {
5374       return _Fields.findByThriftId(fieldId);
5375     }
5376
5377     @Override
5378         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5379       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5380     }
5381
5382     @Override
5383         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5384       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5385     }
5386
5387     @Override
5388     public String toString() {
5389       StringBuilder sb = new StringBuilder("stopBgp_args(");
5390       boolean first = true;
5391
5392       sb.append("asNumber:");
5393       sb.append(this.asNumber);
5394       first = false;
5395       sb.append(")");
5396       return sb.toString();
5397     }
5398
5399     public void validate() throws org.apache.thrift.TException {
5400       // check for required fields
5401       // check for sub-struct validity
5402     }
5403
5404     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5405       try {
5406         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5407       } catch (org.apache.thrift.TException te) {
5408         throw new java.io.IOException(te);
5409       }
5410     }
5411
5412     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5413       try {
5414         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5415         __isset_bitfield = 0;
5416         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5417       } catch (org.apache.thrift.TException te) {
5418         throw new java.io.IOException(te);
5419       }
5420     }
5421
5422     private static class stopBgp_argsStandardSchemeFactory implements SchemeFactory {
5423       @Override
5424         public stopBgp_argsStandardScheme getScheme() {
5425         return new stopBgp_argsStandardScheme();
5426       }
5427     }
5428
5429     private static class stopBgp_argsStandardScheme extends StandardScheme<stopBgp_args> {
5430
5431       @Override
5432         public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_args struct) throws org.apache.thrift.TException {
5433         org.apache.thrift.protocol.TField schemeField;
5434         iprot.readStructBegin();
5435         while (true)
5436         {
5437           schemeField = iprot.readFieldBegin();
5438           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5439             break;
5440           }
5441           switch (schemeField.id) {
5442             case 1: // AS_NUMBER
5443               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
5444                 struct.asNumber = iprot.readI64();
5445                 struct.setAsNumberIsSet(true);
5446               } else {
5447                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5448               }
5449               break;
5450             default:
5451               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5452           }
5453           iprot.readFieldEnd();
5454         }
5455         iprot.readStructEnd();
5456
5457         // check for required fields of primitive type, which can't be checked in the validate method
5458         struct.validate();
5459       }
5460
5461       @Override
5462         public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_args struct) throws org.apache.thrift.TException {
5463         struct.validate();
5464
5465         oprot.writeStructBegin(STRUCT_DESC);
5466         oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
5467         oprot.writeI64(struct.asNumber);
5468         oprot.writeFieldEnd();
5469         oprot.writeFieldStop();
5470         oprot.writeStructEnd();
5471       }
5472
5473     }
5474
5475     private static class stopBgp_argsTupleSchemeFactory implements SchemeFactory {
5476       @Override
5477         public stopBgp_argsTupleScheme getScheme() {
5478         return new stopBgp_argsTupleScheme();
5479       }
5480     }
5481
5482     private static class stopBgp_argsTupleScheme extends TupleScheme<stopBgp_args> {
5483
5484       @Override
5485       public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
5486         TTupleProtocol oprot = (TTupleProtocol) prot;
5487         BitSet optionals = new BitSet();
5488         if (struct.isSetAsNumber()) {
5489           optionals.set(0);
5490         }
5491         oprot.writeBitSet(optionals, 1);
5492         if (struct.isSetAsNumber()) {
5493           oprot.writeI64(struct.asNumber);
5494         }
5495       }
5496
5497       @Override
5498       public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
5499         TTupleProtocol iprot = (TTupleProtocol) prot;
5500         BitSet incoming = iprot.readBitSet(1);
5501         if (incoming.get(0)) {
5502           struct.asNumber = iprot.readI64();
5503           struct.setAsNumberIsSet(true);
5504         }
5505       }
5506     }
5507
5508   }
5509
5510   public static class stopBgp_result implements org.apache.thrift.TBase<stopBgp_result, stopBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_result>   {
5511     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_result");
5512
5513     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);
5514
5515     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5516     static {
5517       schemes.put(StandardScheme.class, new stopBgp_resultStandardSchemeFactory());
5518       schemes.put(TupleScheme.class, new stopBgp_resultTupleSchemeFactory());
5519     }
5520
5521     public int success; // required
5522
5523     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5524     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5525       SUCCESS((short)0, "success");
5526
5527       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5528
5529       static {
5530         for (_Fields field : EnumSet.allOf(_Fields.class)) {
5531           byName.put(field.getFieldName(), field);
5532         }
5533       }
5534
5535       /**
5536        * Find the _Fields constant that matches fieldId, or null if its not found.
5537        */
5538       public static _Fields findByThriftId(int fieldId) {
5539         switch(fieldId) {
5540           case 0: // SUCCESS
5541             return SUCCESS;
5542           default:
5543             return null;
5544         }
5545       }
5546
5547       /**
5548        * Find the _Fields constant that matches fieldId, throwing an exception
5549        * if it is not found.
5550        */
5551       public static _Fields findByThriftIdOrThrow(int fieldId) {
5552         _Fields fields = findByThriftId(fieldId);
5553         if (fields == null) {
5554                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5555                 }
5556         return fields;
5557       }
5558
5559       /**
5560        * Find the _Fields constant that matches name, or null if its not found.
5561        */
5562       public static _Fields findByName(String name) {
5563         return byName.get(name);
5564       }
5565
5566       private final short _thriftId;
5567       private final String _fieldName;
5568
5569       _Fields(short thriftId, String fieldName) {
5570         _thriftId = thriftId;
5571         _fieldName = fieldName;
5572       }
5573
5574       @Override
5575         public short getThriftFieldId() {
5576         return _thriftId;
5577       }
5578
5579       @Override
5580         public String getFieldName() {
5581         return _fieldName;
5582       }
5583     }
5584
5585     // isset id assignments
5586     private static final int __SUCCESS_ISSET_ID = 0;
5587     private byte __isset_bitfield = 0;
5588     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5589     static {
5590       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5591       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
5592           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
5593       metaDataMap = Collections.unmodifiableMap(tmpMap);
5594       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_result.class, metaDataMap);
5595     }
5596
5597     public stopBgp_result() {
5598     }
5599
5600     public stopBgp_result(
5601       int success)
5602     {
5603       this();
5604       this.success = success;
5605       setSuccessIsSet(true);
5606     }
5607
5608     /**
5609      * Performs a deep copy on <i>other</i>.
5610      */
5611     public stopBgp_result(stopBgp_result other) {
5612       __isset_bitfield = other.__isset_bitfield;
5613       this.success = other.success;
5614     }
5615
5616     @Override
5617         public stopBgp_result deepCopy() {
5618       return new stopBgp_result(this);
5619     }
5620
5621     @Override
5622     public void clear() {
5623       setSuccessIsSet(false);
5624       this.success = 0;
5625     }
5626
5627     public int getSuccess() {
5628       return this.success;
5629     }
5630
5631     public stopBgp_result setSuccess(int success) {
5632       this.success = success;
5633       setSuccessIsSet(true);
5634       return this;
5635     }
5636
5637     public void unsetSuccess() {
5638       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5639     }
5640
5641     /** Returns true if field success is set (has been assigned a value) and false otherwise */
5642     public boolean isSetSuccess() {
5643       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5644     }
5645
5646     public void setSuccessIsSet(boolean value) {
5647       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
5648     }
5649
5650     @Override
5651         public void setFieldValue(_Fields field, Object value) {
5652       switch (field) {
5653       case SUCCESS:
5654         if (value == null) {
5655           unsetSuccess();
5656         } else {
5657           setSuccess((Integer)value);
5658         }
5659         break;
5660
5661       }
5662     }
5663
5664     @Override
5665         public Object getFieldValue(_Fields field) {
5666       switch (field) {
5667       case SUCCESS:
5668         return Integer.valueOf(getSuccess());
5669
5670       }
5671       throw new IllegalStateException();
5672     }
5673
5674     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5675     @Override
5676         public boolean isSet(_Fields field) {
5677       if (field == null) {
5678         throw new IllegalArgumentException();
5679       }
5680
5681       switch (field) {
5682       case SUCCESS:
5683         return isSetSuccess();
5684       }
5685       throw new IllegalStateException();
5686     }
5687
5688     @Override
5689     public boolean equals(Object that) {
5690       if (that == null) {
5691                 return false;
5692         }
5693       if (that instanceof stopBgp_result) {
5694                 return this.equals((stopBgp_result)that);
5695         }
5696       return false;
5697     }
5698
5699     public boolean equals(stopBgp_result that) {
5700       if (that == null) {
5701                 return false;
5702         }
5703
5704       boolean this_present_success = true;
5705       boolean that_present_success = true;
5706       if (this_present_success || that_present_success) {
5707         if (!(this_present_success && that_present_success)) {
5708                         return false;
5709                 }
5710         if (this.success != that.success) {
5711                         return false;
5712                 }
5713       }
5714
5715       return true;
5716     }
5717
5718     @Override
5719     public int hashCode() {
5720       List<Object> list = new ArrayList<Object>();
5721
5722       boolean present_success = true;
5723       list.add(present_success);
5724       if (present_success)
5725         list.add(success);
5726       return list.hashCode();
5727     }
5728
5729     @Override
5730     public int compareTo(stopBgp_result other) {
5731       if (!getClass().equals(other.getClass())) {
5732         return getClass().getName().compareTo(other.getClass().getName());
5733       }
5734
5735       int lastComparison = 0;
5736
5737       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5738       if (lastComparison != 0) {
5739         return lastComparison;
5740       }
5741       if (isSetSuccess()) {
5742         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5743         if (lastComparison != 0) {
5744           return lastComparison;
5745         }
5746       }
5747       return 0;
5748     }
5749
5750     @Override
5751         public _Fields fieldForId(int fieldId) {
5752       return _Fields.findByThriftId(fieldId);
5753     }
5754
5755     @Override
5756         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5757       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5758     }
5759
5760     @Override
5761         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5762       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5763       }
5764
5765     @Override
5766     public String toString() {
5767       StringBuilder sb = new StringBuilder("stopBgp_result(");
5768       boolean first = true;
5769
5770       sb.append("success:");
5771       sb.append(this.success);
5772       first = false;
5773       sb.append(")");
5774       return sb.toString();
5775     }
5776
5777     public void validate() throws org.apache.thrift.TException {
5778       // check for required fields
5779       // check for sub-struct validity
5780     }
5781
5782     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5783       try {
5784         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5785       } catch (org.apache.thrift.TException te) {
5786         throw new java.io.IOException(te);
5787       }
5788     }
5789
5790     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5791       try {
5792         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5793         __isset_bitfield = 0;
5794         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5795       } catch (org.apache.thrift.TException te) {
5796         throw new java.io.IOException(te);
5797       }
5798     }
5799
5800     private static class stopBgp_resultStandardSchemeFactory implements SchemeFactory {
5801       @Override
5802         public stopBgp_resultStandardScheme getScheme() {
5803         return new stopBgp_resultStandardScheme();
5804       }
5805     }
5806
5807     private static class stopBgp_resultStandardScheme extends StandardScheme<stopBgp_result> {
5808
5809       @Override
5810         public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_result struct) throws org.apache.thrift.TException {
5811         org.apache.thrift.protocol.TField schemeField;
5812         iprot.readStructBegin();
5813         while (true)
5814         {
5815           schemeField = iprot.readFieldBegin();
5816           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5817             break;
5818           }
5819           switch (schemeField.id) {
5820             case 0: // SUCCESS
5821               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
5822                 struct.success = iprot.readI32();
5823                 struct.setSuccessIsSet(true);
5824               } else {
5825                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5826               }
5827               break;
5828             default:
5829               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5830           }
5831           iprot.readFieldEnd();
5832         }
5833         iprot.readStructEnd();
5834
5835         // check for required fields of primitive type, which can't be checked in the validate method
5836         struct.validate();
5837       }
5838
5839       @Override
5840         public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_result struct) throws org.apache.thrift.TException {
5841         struct.validate();
5842
5843         oprot.writeStructBegin(STRUCT_DESC);
5844         if (struct.isSetSuccess()) {
5845           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5846           oprot.writeI32(struct.success);
5847           oprot.writeFieldEnd();
5848         }
5849         oprot.writeFieldStop();
5850         oprot.writeStructEnd();
5851       }
5852
5853     }
5854
5855     private static class stopBgp_resultTupleSchemeFactory implements SchemeFactory {
5856       @Override
5857         public stopBgp_resultTupleScheme getScheme() {
5858         return new stopBgp_resultTupleScheme();
5859       }
5860     }
5861
5862     private static class stopBgp_resultTupleScheme extends TupleScheme<stopBgp_result> {
5863
5864       @Override
5865       public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
5866         TTupleProtocol oprot = (TTupleProtocol) prot;
5867         BitSet optionals = new BitSet();
5868         if (struct.isSetSuccess()) {
5869           optionals.set(0);
5870         }
5871         oprot.writeBitSet(optionals, 1);
5872         if (struct.isSetSuccess()) {
5873           oprot.writeI32(struct.success);
5874         }
5875       }
5876
5877       @Override
5878       public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
5879         TTupleProtocol iprot = (TTupleProtocol) prot;
5880         BitSet incoming = iprot.readBitSet(1);
5881         if (incoming.get(0)) {
5882           struct.success = iprot.readI32();
5883           struct.setSuccessIsSet(true);
5884         }
5885       }
5886     }
5887
5888   }
5889
5890   public static class createPeer_args implements org.apache.thrift.TBase<createPeer_args, createPeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_args>   {
5891     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_args");
5892
5893     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);
5894     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);
5895
5896     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5897     static {
5898       schemes.put(StandardScheme.class, new createPeer_argsStandardSchemeFactory());
5899       schemes.put(TupleScheme.class, new createPeer_argsTupleSchemeFactory());
5900     }
5901
5902     public String ipAddress; // required
5903     public long asNumber; // required
5904
5905     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5906     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5907       IP_ADDRESS((short)1, "ipAddress"),
5908       AS_NUMBER((short)2, "asNumber");
5909
5910       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5911
5912       static {
5913         for (_Fields field : EnumSet.allOf(_Fields.class)) {
5914           byName.put(field.getFieldName(), field);
5915         }
5916       }
5917
5918       /**
5919        * Find the _Fields constant that matches fieldId, or null if its not found.
5920        */
5921       public static _Fields findByThriftId(int fieldId) {
5922         switch(fieldId) {
5923           case 1: // IP_ADDRESS
5924             return IP_ADDRESS;
5925           case 2: // AS_NUMBER
5926             return AS_NUMBER;
5927           default:
5928             return null;
5929         }
5930       }
5931
5932       /**
5933        * Find the _Fields constant that matches fieldId, throwing an exception
5934        * if it is not found.
5935        */
5936       public static _Fields findByThriftIdOrThrow(int fieldId) {
5937         _Fields fields = findByThriftId(fieldId);
5938         if (fields == null) {
5939                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5940                 }
5941         return fields;
5942       }
5943
5944       /**
5945        * Find the _Fields constant that matches name, or null if its not found.
5946        */
5947       public static _Fields findByName(String name) {
5948         return byName.get(name);
5949       }
5950
5951       private final short _thriftId;
5952       private final String _fieldName;
5953
5954       _Fields(short thriftId, String fieldName) {
5955         _thriftId = thriftId;
5956         _fieldName = fieldName;
5957       }
5958
5959       @Override
5960         public short getThriftFieldId() {
5961         return _thriftId;
5962       }
5963
5964       @Override
5965         public String getFieldName() {
5966         return _fieldName;
5967       }
5968     }
5969
5970     // isset id assignments
5971     private static final int __ASNUMBER_ISSET_ID = 0;
5972     private byte __isset_bitfield = 0;
5973     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5974     static {
5975       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5976       tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
5977           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5978       tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
5979           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5980       metaDataMap = Collections.unmodifiableMap(tmpMap);
5981       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_args.class, metaDataMap);
5982     }
5983
5984     public createPeer_args() {
5985     }
5986
5987     public createPeer_args(
5988       String ipAddress,
5989       long asNumber)
5990     {
5991       this();
5992       this.ipAddress = ipAddress;
5993       this.asNumber = asNumber;
5994       setAsNumberIsSet(true);
5995     }
5996
5997     /**
5998      * Performs a deep copy on <i>other</i>.
5999      */
6000     public createPeer_args(createPeer_args other) {
6001       __isset_bitfield = other.__isset_bitfield;
6002       if (other.isSetIpAddress()) {
6003         this.ipAddress = other.ipAddress;
6004       }
6005       this.asNumber = other.asNumber;
6006     }
6007
6008     @Override
6009         public createPeer_args deepCopy() {
6010       return new createPeer_args(this);
6011     }
6012
6013     @Override
6014     public void clear() {
6015       this.ipAddress = null;
6016       setAsNumberIsSet(false);
6017       this.asNumber = 0;
6018     }
6019
6020     public String getIpAddress() {
6021       return this.ipAddress;
6022     }
6023
6024     public createPeer_args setIpAddress(String ipAddress) {
6025       this.ipAddress = ipAddress;
6026       return this;
6027     }
6028
6029     public void unsetIpAddress() {
6030       this.ipAddress = null;
6031     }
6032
6033     /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
6034     public boolean isSetIpAddress() {
6035       return this.ipAddress != null;
6036     }
6037
6038     public void setIpAddressIsSet(boolean value) {
6039       if (!value) {
6040         this.ipAddress = null;
6041       }
6042     }
6043
6044     public long getAsNumber() {
6045       return this.asNumber;
6046     }
6047
6048     public createPeer_args setAsNumber(long asNumber) {
6049       this.asNumber = asNumber;
6050       setAsNumberIsSet(true);
6051       return this;
6052     }
6053
6054     public void unsetAsNumber() {
6055       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
6056     }
6057
6058     /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
6059     public boolean isSetAsNumber() {
6060       return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
6061     }
6062
6063     public void setAsNumberIsSet(boolean value) {
6064       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
6065     }
6066
6067     @Override
6068         public void setFieldValue(_Fields field, Object value) {
6069       switch (field) {
6070       case IP_ADDRESS:
6071         if (value == null) {
6072           unsetIpAddress();
6073         } else {
6074           setIpAddress((String)value);
6075         }
6076         break;
6077
6078       case AS_NUMBER:
6079         if (value == null) {
6080           unsetAsNumber();
6081         } else {
6082           setAsNumber((Long)value);
6083         }
6084         break;
6085
6086       }
6087     }
6088
6089     @Override
6090         public Object getFieldValue(_Fields field) {
6091       switch (field) {
6092       case IP_ADDRESS:
6093         return getIpAddress();
6094
6095       case AS_NUMBER:
6096         return Long.valueOf(getAsNumber());
6097
6098       }
6099       throw new IllegalStateException();
6100     }
6101
6102     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6103     @Override
6104         public boolean isSet(_Fields field) {
6105       if (field == null) {
6106         throw new IllegalArgumentException();
6107       }
6108
6109       switch (field) {
6110       case IP_ADDRESS:
6111         return isSetIpAddress();
6112       case AS_NUMBER:
6113         return isSetAsNumber();
6114       }
6115       throw new IllegalStateException();
6116     }
6117
6118     @Override
6119     public boolean equals(Object that) {
6120       if (that == null) {
6121                 return false;
6122         }
6123       if (that instanceof createPeer_args) {
6124                 return this.equals((createPeer_args)that);
6125         }
6126       return false;
6127     }
6128
6129     public boolean equals(createPeer_args that) {
6130       if (that == null) {
6131                 return false;
6132         }
6133
6134       boolean this_present_ipAddress = true && this.isSetIpAddress();
6135       boolean that_present_ipAddress = true && that.isSetIpAddress();
6136       if (this_present_ipAddress || that_present_ipAddress) {
6137         if (!(this_present_ipAddress && that_present_ipAddress)) {
6138                         return false;
6139                 }
6140         if (!this.ipAddress.equals(that.ipAddress)) {
6141                         return false;
6142                 }
6143       }
6144
6145       boolean this_present_asNumber = true;
6146       boolean that_present_asNumber = true;
6147       if (this_present_asNumber || that_present_asNumber) {
6148         if (!(this_present_asNumber && that_present_asNumber)) {
6149                         return false;
6150                 }
6151         if (this.asNumber != that.asNumber) {
6152                         return false;
6153                 }
6154       }
6155
6156       return true;
6157     }
6158
6159     @Override
6160     public int hashCode() {
6161       List<Object> list = new ArrayList<Object>();
6162
6163       boolean present_ipAddress = true && (isSetIpAddress());
6164       list.add(present_ipAddress);
6165       if (present_ipAddress)
6166         list.add(ipAddress);
6167       boolean present_asNumber = true;
6168       list.add(present_asNumber);
6169       if (present_asNumber)
6170         list.add(asNumber);
6171       return list.hashCode();
6172     }
6173
6174     @Override
6175     public int compareTo(createPeer_args other) {
6176       if (!getClass().equals(other.getClass())) {
6177         return getClass().getName().compareTo(other.getClass().getName());
6178       }
6179
6180       int lastComparison = 0;
6181
6182       lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
6183       if (lastComparison != 0) {
6184         return lastComparison;
6185       }
6186       if (isSetIpAddress()) {
6187         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
6188         if (lastComparison != 0) {
6189           return lastComparison;
6190         }
6191       }
6192       lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
6193       if (lastComparison != 0) {
6194         return lastComparison;
6195       }
6196       if (isSetAsNumber()) {
6197         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
6198         if (lastComparison != 0) {
6199           return lastComparison;
6200         }
6201       }
6202       return 0;
6203     }
6204
6205     @Override
6206         public _Fields fieldForId(int fieldId) {
6207       return _Fields.findByThriftId(fieldId);
6208     }
6209
6210     @Override
6211         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6212       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6213     }
6214
6215     @Override
6216         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6217       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6218     }
6219
6220     @Override
6221     public String toString() {
6222       StringBuilder sb = new StringBuilder("createPeer_args(");
6223       boolean first = true;
6224
6225       sb.append("ipAddress:");
6226       if (this.ipAddress == null) {
6227         sb.append("null");
6228       } else {
6229         sb.append(this.ipAddress);
6230       }
6231       first = false;
6232       if (!first) {
6233                 sb.append(", ");
6234         }
6235       sb.append("asNumber:");
6236       sb.append(this.asNumber);
6237       first = false;
6238       sb.append(")");
6239       return sb.toString();
6240     }
6241
6242     public void validate() throws org.apache.thrift.TException {
6243       // check for required fields
6244       // check for sub-struct validity
6245     }
6246
6247     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6248       try {
6249         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6250       } catch (org.apache.thrift.TException te) {
6251         throw new java.io.IOException(te);
6252       }
6253     }
6254
6255     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6256       try {
6257         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6258         __isset_bitfield = 0;
6259         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6260       } catch (org.apache.thrift.TException te) {
6261         throw new java.io.IOException(te);
6262       }
6263     }
6264
6265     private static class createPeer_argsStandardSchemeFactory implements SchemeFactory {
6266       @Override
6267         public createPeer_argsStandardScheme getScheme() {
6268         return new createPeer_argsStandardScheme();
6269       }
6270     }
6271
6272     private static class createPeer_argsStandardScheme extends StandardScheme<createPeer_args> {
6273
6274       @Override
6275         public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_args struct) throws org.apache.thrift.TException {
6276         org.apache.thrift.protocol.TField schemeField;
6277         iprot.readStructBegin();
6278         while (true)
6279         {
6280           schemeField = iprot.readFieldBegin();
6281           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6282             break;
6283           }
6284           switch (schemeField.id) {
6285             case 1: // IP_ADDRESS
6286               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
6287                 struct.ipAddress = iprot.readString();
6288                 struct.setIpAddressIsSet(true);
6289               } else {
6290                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6291               }
6292               break;
6293             case 2: // AS_NUMBER
6294               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
6295                 struct.asNumber = iprot.readI64();
6296                 struct.setAsNumberIsSet(true);
6297               } else {
6298                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6299               }
6300               break;
6301             default:
6302               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6303           }
6304           iprot.readFieldEnd();
6305         }
6306         iprot.readStructEnd();
6307
6308         // check for required fields of primitive type, which can't be checked in the validate method
6309         struct.validate();
6310       }
6311
6312       @Override
6313         public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_args struct) throws org.apache.thrift.TException {
6314         struct.validate();
6315
6316         oprot.writeStructBegin(STRUCT_DESC);
6317         if (struct.ipAddress != null) {
6318           oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
6319           oprot.writeString(struct.ipAddress);
6320           oprot.writeFieldEnd();
6321         }
6322         oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
6323         oprot.writeI64(struct.asNumber);
6324         oprot.writeFieldEnd();
6325         oprot.writeFieldStop();
6326         oprot.writeStructEnd();
6327       }
6328
6329     }
6330
6331     private static class createPeer_argsTupleSchemeFactory implements SchemeFactory {
6332       @Override
6333         public createPeer_argsTupleScheme getScheme() {
6334         return new createPeer_argsTupleScheme();
6335       }
6336     }
6337
6338     private static class createPeer_argsTupleScheme extends TupleScheme<createPeer_args> {
6339
6340       @Override
6341       public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
6342         TTupleProtocol oprot = (TTupleProtocol) prot;
6343         BitSet optionals = new BitSet();
6344         if (struct.isSetIpAddress()) {
6345           optionals.set(0);
6346         }
6347         if (struct.isSetAsNumber()) {
6348           optionals.set(1);
6349         }
6350         oprot.writeBitSet(optionals, 2);
6351         if (struct.isSetIpAddress()) {
6352           oprot.writeString(struct.ipAddress);
6353         }
6354         if (struct.isSetAsNumber()) {
6355           oprot.writeI64(struct.asNumber);
6356         }
6357       }
6358
6359       @Override
6360       public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
6361         TTupleProtocol iprot = (TTupleProtocol) prot;
6362         BitSet incoming = iprot.readBitSet(2);
6363         if (incoming.get(0)) {
6364           struct.ipAddress = iprot.readString();
6365           struct.setIpAddressIsSet(true);
6366         }
6367         if (incoming.get(1)) {
6368           struct.asNumber = iprot.readI64();
6369           struct.setAsNumberIsSet(true);
6370         }
6371       }
6372     }
6373
6374   }
6375
6376   public static class createPeer_result implements org.apache.thrift.TBase<createPeer_result, createPeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_result>   {
6377     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_result");
6378
6379     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);
6380
6381     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6382     static {
6383       schemes.put(StandardScheme.class, new createPeer_resultStandardSchemeFactory());
6384       schemes.put(TupleScheme.class, new createPeer_resultTupleSchemeFactory());
6385     }
6386
6387     public int success; // required
6388
6389     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6390     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6391       SUCCESS((short)0, "success");
6392
6393       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6394
6395       static {
6396         for (_Fields field : EnumSet.allOf(_Fields.class)) {
6397           byName.put(field.getFieldName(), field);
6398         }
6399       }
6400
6401       /**
6402        * Find the _Fields constant that matches fieldId, or null if its not found.
6403        */
6404       public static _Fields findByThriftId(int fieldId) {
6405         switch(fieldId) {
6406           case 0: // SUCCESS
6407             return SUCCESS;
6408           default:
6409             return null;
6410         }
6411       }
6412
6413       /**
6414        * Find the _Fields constant that matches fieldId, throwing an exception
6415        * if it is not found.
6416        */
6417       public static _Fields findByThriftIdOrThrow(int fieldId) {
6418         _Fields fields = findByThriftId(fieldId);
6419         if (fields == null) {
6420                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6421                 }
6422         return fields;
6423       }
6424
6425       /**
6426        * Find the _Fields constant that matches name, or null if its not found.
6427        */
6428       public static _Fields findByName(String name) {
6429         return byName.get(name);
6430       }
6431
6432       private final short _thriftId;
6433       private final String _fieldName;
6434
6435       _Fields(short thriftId, String fieldName) {
6436         _thriftId = thriftId;
6437         _fieldName = fieldName;
6438       }
6439
6440       @Override
6441         public short getThriftFieldId() {
6442         return _thriftId;
6443       }
6444
6445       @Override
6446         public String getFieldName() {
6447         return _fieldName;
6448       }
6449     }
6450
6451     // isset id assignments
6452     private static final int __SUCCESS_ISSET_ID = 0;
6453     private byte __isset_bitfield = 0;
6454     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6455     static {
6456       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6457       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
6458           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6459       metaDataMap = Collections.unmodifiableMap(tmpMap);
6460       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_result.class, metaDataMap);
6461     }
6462
6463     public createPeer_result() {
6464     }
6465
6466     public createPeer_result(
6467       int success)
6468     {
6469       this();
6470       this.success = success;
6471       setSuccessIsSet(true);
6472     }
6473
6474     /**
6475      * Performs a deep copy on <i>other</i>.
6476      */
6477     public createPeer_result(createPeer_result other) {
6478       __isset_bitfield = other.__isset_bitfield;
6479       this.success = other.success;
6480     }
6481
6482     @Override
6483         public createPeer_result deepCopy() {
6484       return new createPeer_result(this);
6485     }
6486
6487     @Override
6488     public void clear() {
6489       setSuccessIsSet(false);
6490       this.success = 0;
6491     }
6492
6493     public int getSuccess() {
6494       return this.success;
6495     }
6496
6497     public createPeer_result setSuccess(int success) {
6498       this.success = success;
6499       setSuccessIsSet(true);
6500       return this;
6501     }
6502
6503     public void unsetSuccess() {
6504       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6505     }
6506
6507     /** Returns true if field success is set (has been assigned a value) and false otherwise */
6508     public boolean isSetSuccess() {
6509       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6510     }
6511
6512     public void setSuccessIsSet(boolean value) {
6513       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
6514     }
6515
6516     @Override
6517         public void setFieldValue(_Fields field, Object value) {
6518       switch (field) {
6519       case SUCCESS:
6520         if (value == null) {
6521           unsetSuccess();
6522         } else {
6523           setSuccess((Integer)value);
6524         }
6525         break;
6526
6527       }
6528     }
6529
6530     @Override
6531         public Object getFieldValue(_Fields field) {
6532       switch (field) {
6533       case SUCCESS:
6534         return Integer.valueOf(getSuccess());
6535
6536       }
6537       throw new IllegalStateException();
6538     }
6539
6540     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6541     @Override
6542         public boolean isSet(_Fields field) {
6543       if (field == null) {
6544         throw new IllegalArgumentException();
6545       }
6546
6547       switch (field) {
6548       case SUCCESS:
6549         return isSetSuccess();
6550       }
6551       throw new IllegalStateException();
6552     }
6553
6554     @Override
6555     public boolean equals(Object that) {
6556       if (that == null) {
6557                 return false;
6558         }
6559       if (that instanceof createPeer_result) {
6560                 return this.equals((createPeer_result)that);
6561         }
6562       return false;
6563     }
6564
6565     public boolean equals(createPeer_result that) {
6566       if (that == null) {
6567                 return false;
6568         }
6569
6570       boolean this_present_success = true;
6571       boolean that_present_success = true;
6572       if (this_present_success || that_present_success) {
6573         if (!(this_present_success && that_present_success)) {
6574                         return false;
6575                 }
6576         if (this.success != that.success) {
6577                         return false;
6578                 }
6579       }
6580
6581       return true;
6582     }
6583
6584     @Override
6585     public int hashCode() {
6586       List<Object> list = new ArrayList<Object>();
6587
6588       boolean present_success = true;
6589       list.add(present_success);
6590       if (present_success)
6591         list.add(success);
6592       return list.hashCode();
6593     }
6594
6595     @Override
6596     public int compareTo(createPeer_result other) {
6597       if (!getClass().equals(other.getClass())) {
6598         return getClass().getName().compareTo(other.getClass().getName());
6599       }
6600
6601       int lastComparison = 0;
6602
6603       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
6604       if (lastComparison != 0) {
6605         return lastComparison;
6606       }
6607       if (isSetSuccess()) {
6608         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
6609         if (lastComparison != 0) {
6610           return lastComparison;
6611         }
6612       }
6613       return 0;
6614     }
6615
6616     @Override
6617         public _Fields fieldForId(int fieldId) {
6618       return _Fields.findByThriftId(fieldId);
6619     }
6620
6621     @Override
6622         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6623       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6624     }
6625
6626     @Override
6627         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6628       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6629       }
6630
6631     @Override
6632     public String toString() {
6633       StringBuilder sb = new StringBuilder("createPeer_result(");
6634       boolean first = true;
6635
6636       sb.append("success:");
6637       sb.append(this.success);
6638       first = false;
6639       sb.append(")");
6640       return sb.toString();
6641     }
6642
6643     public void validate() throws org.apache.thrift.TException {
6644       // check for required fields
6645       // check for sub-struct validity
6646     }
6647
6648     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6649       try {
6650         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6651       } catch (org.apache.thrift.TException te) {
6652         throw new java.io.IOException(te);
6653       }
6654     }
6655
6656     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6657       try {
6658         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6659         __isset_bitfield = 0;
6660         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6661       } catch (org.apache.thrift.TException te) {
6662         throw new java.io.IOException(te);
6663       }
6664     }
6665
6666     private static class createPeer_resultStandardSchemeFactory implements SchemeFactory {
6667       @Override
6668         public createPeer_resultStandardScheme getScheme() {
6669         return new createPeer_resultStandardScheme();
6670       }
6671     }
6672
6673     private static class createPeer_resultStandardScheme extends StandardScheme<createPeer_result> {
6674
6675       @Override
6676         public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_result struct) throws org.apache.thrift.TException {
6677         org.apache.thrift.protocol.TField schemeField;
6678         iprot.readStructBegin();
6679         while (true)
6680         {
6681           schemeField = iprot.readFieldBegin();
6682           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6683             break;
6684           }
6685           switch (schemeField.id) {
6686             case 0: // SUCCESS
6687               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
6688                 struct.success = iprot.readI32();
6689                 struct.setSuccessIsSet(true);
6690               } else {
6691                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6692               }
6693               break;
6694             default:
6695               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6696           }
6697           iprot.readFieldEnd();
6698         }
6699         iprot.readStructEnd();
6700
6701         // check for required fields of primitive type, which can't be checked in the validate method
6702         struct.validate();
6703       }
6704
6705       @Override
6706         public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_result struct) throws org.apache.thrift.TException {
6707         struct.validate();
6708
6709         oprot.writeStructBegin(STRUCT_DESC);
6710         if (struct.isSetSuccess()) {
6711           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6712           oprot.writeI32(struct.success);
6713           oprot.writeFieldEnd();
6714         }
6715         oprot.writeFieldStop();
6716         oprot.writeStructEnd();
6717       }
6718
6719     }
6720
6721     private static class createPeer_resultTupleSchemeFactory implements SchemeFactory {
6722       @Override
6723         public createPeer_resultTupleScheme getScheme() {
6724         return new createPeer_resultTupleScheme();
6725       }
6726     }
6727
6728     private static class createPeer_resultTupleScheme extends TupleScheme<createPeer_result> {
6729
6730       @Override
6731       public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
6732         TTupleProtocol oprot = (TTupleProtocol) prot;
6733         BitSet optionals = new BitSet();
6734         if (struct.isSetSuccess()) {
6735           optionals.set(0);
6736         }
6737         oprot.writeBitSet(optionals, 1);
6738         if (struct.isSetSuccess()) {
6739           oprot.writeI32(struct.success);
6740         }
6741       }
6742
6743       @Override
6744       public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
6745         TTupleProtocol iprot = (TTupleProtocol) prot;
6746         BitSet incoming = iprot.readBitSet(1);
6747         if (incoming.get(0)) {
6748           struct.success = iprot.readI32();
6749           struct.setSuccessIsSet(true);
6750         }
6751       }
6752     }
6753
6754   }
6755
6756   public static class setPeerSecret_args implements org.apache.thrift.TBase<setPeerSecret_args, setPeerSecret_args._Fields>, java.io.Serializable, Cloneable, Comparable<setPeerSecret_args>   {
6757     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setPeerSecret_args");
6758
6759     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);
6760     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);
6761
6762     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6763     static {
6764       schemes.put(StandardScheme.class, new setPeerSecret_argsStandardSchemeFactory());
6765       schemes.put(TupleScheme.class, new setPeerSecret_argsTupleSchemeFactory());
6766     }
6767
6768     public String ipAddress; // required
6769     public String rfc2385_sharedSecret; // required
6770
6771     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6772     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6773       IP_ADDRESS((short)1, "ipAddress"),
6774       RFC2385_SHARED_SECRET((short)2, "rfc2385_sharedSecret");
6775
6776       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6777
6778       static {
6779         for (_Fields field : EnumSet.allOf(_Fields.class)) {
6780           byName.put(field.getFieldName(), field);
6781         }
6782       }
6783
6784       /**
6785        * Find the _Fields constant that matches fieldId, or null if its not found.
6786        */
6787       public static _Fields findByThriftId(int fieldId) {
6788         switch(fieldId) {
6789           case 1: // IP_ADDRESS
6790             return IP_ADDRESS;
6791           case 2: // RFC2385_SHARED_SECRET
6792             return RFC2385_SHARED_SECRET;
6793           default:
6794             return null;
6795         }
6796       }
6797
6798       /**
6799        * Find the _Fields constant that matches fieldId, throwing an exception
6800        * if it is not found.
6801        */
6802       public static _Fields findByThriftIdOrThrow(int fieldId) {
6803         _Fields fields = findByThriftId(fieldId);
6804         if (fields == null) {
6805                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6806                 }
6807         return fields;
6808       }
6809
6810       /**
6811        * Find the _Fields constant that matches name, or null if its not found.
6812        */
6813       public static _Fields findByName(String name) {
6814         return byName.get(name);
6815       }
6816
6817       private final short _thriftId;
6818       private final String _fieldName;
6819
6820       _Fields(short thriftId, String fieldName) {
6821         _thriftId = thriftId;
6822         _fieldName = fieldName;
6823       }
6824
6825       @Override
6826         public short getThriftFieldId() {
6827         return _thriftId;
6828       }
6829
6830       @Override
6831         public String getFieldName() {
6832         return _fieldName;
6833       }
6834     }
6835
6836     // isset id assignments
6837     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6838     static {
6839       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6840       tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
6841           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6842       tmpMap.put(_Fields.RFC2385_SHARED_SECRET, new org.apache.thrift.meta_data.FieldMetaData("rfc2385_sharedSecret", org.apache.thrift.TFieldRequirementType.DEFAULT,
6843           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6844       metaDataMap = Collections.unmodifiableMap(tmpMap);
6845       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setPeerSecret_args.class, metaDataMap);
6846     }
6847
6848     public setPeerSecret_args() {
6849     }
6850
6851     public setPeerSecret_args(
6852       String ipAddress,
6853       String rfc2385_sharedSecret)
6854     {
6855       this();
6856       this.ipAddress = ipAddress;
6857       this.rfc2385_sharedSecret = rfc2385_sharedSecret;
6858     }
6859
6860     /**
6861      * Performs a deep copy on <i>other</i>.
6862      */
6863     public setPeerSecret_args(setPeerSecret_args other) {
6864       if (other.isSetIpAddress()) {
6865         this.ipAddress = other.ipAddress;
6866       }
6867       if (other.isSetRfc2385_sharedSecret()) {
6868         this.rfc2385_sharedSecret = other.rfc2385_sharedSecret;
6869       }
6870     }
6871
6872     @Override
6873         public setPeerSecret_args deepCopy() {
6874       return new setPeerSecret_args(this);
6875     }
6876
6877     @Override
6878     public void clear() {
6879       this.ipAddress = null;
6880       this.rfc2385_sharedSecret = null;
6881     }
6882
6883     public String getIpAddress() {
6884       return this.ipAddress;
6885     }
6886
6887     public setPeerSecret_args setIpAddress(String ipAddress) {
6888       this.ipAddress = ipAddress;
6889       return this;
6890     }
6891
6892     public void unsetIpAddress() {
6893       this.ipAddress = null;
6894     }
6895
6896     /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
6897     public boolean isSetIpAddress() {
6898       return this.ipAddress != null;
6899     }
6900
6901     public void setIpAddressIsSet(boolean value) {
6902       if (!value) {
6903         this.ipAddress = null;
6904       }
6905     }
6906
6907     public String getRfc2385_sharedSecret() {
6908       return this.rfc2385_sharedSecret;
6909     }
6910
6911     public setPeerSecret_args setRfc2385_sharedSecret(String rfc2385_sharedSecret) {
6912       this.rfc2385_sharedSecret = rfc2385_sharedSecret;
6913       return this;
6914     }
6915
6916     public void unsetRfc2385_sharedSecret() {
6917       this.rfc2385_sharedSecret = null;
6918     }
6919
6920     /** Returns true if field rfc2385_sharedSecret is set (has been assigned a value) and false otherwise */
6921     public boolean isSetRfc2385_sharedSecret() {
6922       return this.rfc2385_sharedSecret != null;
6923     }
6924
6925     public void setRfc2385_sharedSecretIsSet(boolean value) {
6926       if (!value) {
6927         this.rfc2385_sharedSecret = null;
6928       }
6929     }
6930
6931     @Override
6932         public void setFieldValue(_Fields field, Object value) {
6933       switch (field) {
6934       case IP_ADDRESS:
6935         if (value == null) {
6936           unsetIpAddress();
6937         } else {
6938           setIpAddress((String)value);
6939         }
6940         break;
6941
6942       case RFC2385_SHARED_SECRET:
6943         if (value == null) {
6944           unsetRfc2385_sharedSecret();
6945         } else {
6946           setRfc2385_sharedSecret((String)value);
6947         }
6948         break;
6949
6950       }
6951     }
6952
6953     @Override
6954         public Object getFieldValue(_Fields field) {
6955       switch (field) {
6956       case IP_ADDRESS:
6957         return getIpAddress();
6958
6959       case RFC2385_SHARED_SECRET:
6960         return getRfc2385_sharedSecret();
6961
6962       }
6963       throw new IllegalStateException();
6964     }
6965
6966     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6967     @Override
6968         public boolean isSet(_Fields field) {
6969       if (field == null) {
6970         throw new IllegalArgumentException();
6971       }
6972
6973       switch (field) {
6974       case IP_ADDRESS:
6975         return isSetIpAddress();
6976       case RFC2385_SHARED_SECRET:
6977         return isSetRfc2385_sharedSecret();
6978       }
6979       throw new IllegalStateException();
6980     }
6981
6982     @Override
6983     public boolean equals(Object that) {
6984       if (that == null) {
6985                 return false;
6986         }
6987       if (that instanceof setPeerSecret_args) {
6988                 return this.equals((setPeerSecret_args)that);
6989         }
6990       return false;
6991     }
6992
6993     public boolean equals(setPeerSecret_args that) {
6994       if (that == null) {
6995                 return false;
6996         }
6997
6998       boolean this_present_ipAddress = true && this.isSetIpAddress();
6999       boolean that_present_ipAddress = true && that.isSetIpAddress();
7000       if (this_present_ipAddress || that_present_ipAddress) {
7001         if (!(this_present_ipAddress && that_present_ipAddress)) {
7002                         return false;
7003                 }
7004         if (!this.ipAddress.equals(that.ipAddress)) {
7005                         return false;
7006                 }
7007       }
7008
7009       boolean this_present_rfc2385_sharedSecret = true && this.isSetRfc2385_sharedSecret();
7010       boolean that_present_rfc2385_sharedSecret = true && that.isSetRfc2385_sharedSecret();
7011       if (this_present_rfc2385_sharedSecret || that_present_rfc2385_sharedSecret) {
7012         if (!(this_present_rfc2385_sharedSecret && that_present_rfc2385_sharedSecret)) {
7013                         return false;
7014                 }
7015         if (!this.rfc2385_sharedSecret.equals(that.rfc2385_sharedSecret)) {
7016                         return false;
7017                 }
7018       }
7019
7020       return true;
7021     }
7022
7023     @Override
7024     public int hashCode() {
7025       List<Object> list = new ArrayList<Object>();
7026
7027       boolean present_ipAddress = true && (isSetIpAddress());
7028       list.add(present_ipAddress);
7029       if (present_ipAddress)
7030         list.add(ipAddress);
7031       boolean present_rfc2385_sharedSecret = true && (isSetRfc2385_sharedSecret());
7032       list.add(present_rfc2385_sharedSecret);
7033       if (present_rfc2385_sharedSecret)
7034         list.add(rfc2385_sharedSecret);
7035       return list.hashCode();
7036     }
7037
7038     @Override
7039     public int compareTo(setPeerSecret_args other) {
7040       if (!getClass().equals(other.getClass())) {
7041         return getClass().getName().compareTo(other.getClass().getName());
7042       }
7043
7044       int lastComparison = 0;
7045
7046       lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
7047       if (lastComparison != 0) {
7048         return lastComparison;
7049       }
7050       if (isSetIpAddress()) {
7051         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
7052         if (lastComparison != 0) {
7053           return lastComparison;
7054         }
7055       }
7056       lastComparison = Boolean.valueOf(isSetRfc2385_sharedSecret()).compareTo(other.isSetRfc2385_sharedSecret());
7057       if (lastComparison != 0) {
7058         return lastComparison;
7059       }
7060       if (isSetRfc2385_sharedSecret()) {
7061         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rfc2385_sharedSecret, other.rfc2385_sharedSecret);
7062         if (lastComparison != 0) {
7063           return lastComparison;
7064         }
7065       }
7066       return 0;
7067     }
7068
7069     @Override
7070         public _Fields fieldForId(int fieldId) {
7071       return _Fields.findByThriftId(fieldId);
7072     }
7073
7074     @Override
7075         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7076       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7077     }
7078
7079     @Override
7080         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7081       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7082     }
7083
7084     @Override
7085     public String toString() {
7086       StringBuilder sb = new StringBuilder("setPeerSecret_args(");
7087       boolean first = true;
7088
7089       sb.append("ipAddress:");
7090       if (this.ipAddress == null) {
7091         sb.append("null");
7092       } else {
7093         sb.append(this.ipAddress);
7094       }
7095       first = false;
7096       if (!first) {
7097                 sb.append(", ");
7098         }
7099       sb.append("rfc2385_sharedSecret:");
7100       if (this.rfc2385_sharedSecret == null) {
7101         sb.append("null");
7102       } else {
7103         sb.append(this.rfc2385_sharedSecret);
7104       }
7105       first = false;
7106       sb.append(")");
7107       return sb.toString();
7108     }
7109
7110     public void validate() throws org.apache.thrift.TException {
7111       // check for required fields
7112       // check for sub-struct validity
7113     }
7114
7115     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7116       try {
7117         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7118       } catch (org.apache.thrift.TException te) {
7119         throw new java.io.IOException(te);
7120       }
7121     }
7122
7123     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7124       try {
7125         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7126       } catch (org.apache.thrift.TException te) {
7127         throw new java.io.IOException(te);
7128       }
7129     }
7130
7131     private static class setPeerSecret_argsStandardSchemeFactory implements SchemeFactory {
7132       @Override
7133         public setPeerSecret_argsStandardScheme getScheme() {
7134         return new setPeerSecret_argsStandardScheme();
7135       }
7136     }
7137
7138     private static class setPeerSecret_argsStandardScheme extends StandardScheme<setPeerSecret_args> {
7139
7140       @Override
7141         public void read(org.apache.thrift.protocol.TProtocol iprot, setPeerSecret_args struct) throws org.apache.thrift.TException {
7142         org.apache.thrift.protocol.TField schemeField;
7143         iprot.readStructBegin();
7144         while (true)
7145         {
7146           schemeField = iprot.readFieldBegin();
7147           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7148             break;
7149           }
7150           switch (schemeField.id) {
7151             case 1: // IP_ADDRESS
7152               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7153                 struct.ipAddress = iprot.readString();
7154                 struct.setIpAddressIsSet(true);
7155               } else {
7156                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7157               }
7158               break;
7159             case 2: // RFC2385_SHARED_SECRET
7160               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7161                 struct.rfc2385_sharedSecret = iprot.readString();
7162                 struct.setRfc2385_sharedSecretIsSet(true);
7163               } else {
7164                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7165               }
7166               break;
7167             default:
7168               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7169           }
7170           iprot.readFieldEnd();
7171         }
7172         iprot.readStructEnd();
7173
7174         // check for required fields of primitive type, which can't be checked in the validate method
7175         struct.validate();
7176       }
7177
7178       @Override
7179         public void write(org.apache.thrift.protocol.TProtocol oprot, setPeerSecret_args struct) throws org.apache.thrift.TException {
7180         struct.validate();
7181
7182         oprot.writeStructBegin(STRUCT_DESC);
7183         if (struct.ipAddress != null) {
7184           oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
7185           oprot.writeString(struct.ipAddress);
7186           oprot.writeFieldEnd();
7187         }
7188         if (struct.rfc2385_sharedSecret != null) {
7189           oprot.writeFieldBegin(RFC2385_SHARED_SECRET_FIELD_DESC);
7190           oprot.writeString(struct.rfc2385_sharedSecret);
7191           oprot.writeFieldEnd();
7192         }
7193         oprot.writeFieldStop();
7194         oprot.writeStructEnd();
7195       }
7196
7197     }
7198
7199     private static class setPeerSecret_argsTupleSchemeFactory implements SchemeFactory {
7200       @Override
7201         public setPeerSecret_argsTupleScheme getScheme() {
7202         return new setPeerSecret_argsTupleScheme();
7203       }
7204     }
7205
7206     private static class setPeerSecret_argsTupleScheme extends TupleScheme<setPeerSecret_args> {
7207
7208       @Override
7209       public void write(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_args struct) throws org.apache.thrift.TException {
7210         TTupleProtocol oprot = (TTupleProtocol) prot;
7211         BitSet optionals = new BitSet();
7212         if (struct.isSetIpAddress()) {
7213           optionals.set(0);
7214         }
7215         if (struct.isSetRfc2385_sharedSecret()) {
7216           optionals.set(1);
7217         }
7218         oprot.writeBitSet(optionals, 2);
7219         if (struct.isSetIpAddress()) {
7220           oprot.writeString(struct.ipAddress);
7221         }
7222         if (struct.isSetRfc2385_sharedSecret()) {
7223           oprot.writeString(struct.rfc2385_sharedSecret);
7224         }
7225       }
7226
7227       @Override
7228       public void read(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_args struct) throws org.apache.thrift.TException {
7229         TTupleProtocol iprot = (TTupleProtocol) prot;
7230         BitSet incoming = iprot.readBitSet(2);
7231         if (incoming.get(0)) {
7232           struct.ipAddress = iprot.readString();
7233           struct.setIpAddressIsSet(true);
7234         }
7235         if (incoming.get(1)) {
7236           struct.rfc2385_sharedSecret = iprot.readString();
7237           struct.setRfc2385_sharedSecretIsSet(true);
7238         }
7239       }
7240     }
7241
7242   }
7243
7244   public static class setPeerSecret_result implements org.apache.thrift.TBase<setPeerSecret_result, setPeerSecret_result._Fields>, java.io.Serializable, Cloneable, Comparable<setPeerSecret_result>   {
7245     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setPeerSecret_result");
7246
7247     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);
7248
7249     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7250     static {
7251       schemes.put(StandardScheme.class, new setPeerSecret_resultStandardSchemeFactory());
7252       schemes.put(TupleScheme.class, new setPeerSecret_resultTupleSchemeFactory());
7253     }
7254
7255     public int success; // required
7256
7257     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7258     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7259       SUCCESS((short)0, "success");
7260
7261       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7262
7263       static {
7264         for (_Fields field : EnumSet.allOf(_Fields.class)) {
7265           byName.put(field.getFieldName(), field);
7266         }
7267       }
7268
7269       /**
7270        * Find the _Fields constant that matches fieldId, or null if its not found.
7271        */
7272       public static _Fields findByThriftId(int fieldId) {
7273         switch(fieldId) {
7274           case 0: // SUCCESS
7275             return SUCCESS;
7276           default:
7277             return null;
7278         }
7279       }
7280
7281       /**
7282        * Find the _Fields constant that matches fieldId, throwing an exception
7283        * if it is not found.
7284        */
7285       public static _Fields findByThriftIdOrThrow(int fieldId) {
7286         _Fields fields = findByThriftId(fieldId);
7287         if (fields == null) {
7288                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7289                 }
7290         return fields;
7291       }
7292
7293       /**
7294        * Find the _Fields constant that matches name, or null if its not found.
7295        */
7296       public static _Fields findByName(String name) {
7297         return byName.get(name);
7298       }
7299
7300       private final short _thriftId;
7301       private final String _fieldName;
7302
7303       _Fields(short thriftId, String fieldName) {
7304         _thriftId = thriftId;
7305         _fieldName = fieldName;
7306       }
7307
7308       @Override
7309         public short getThriftFieldId() {
7310         return _thriftId;
7311       }
7312
7313       @Override
7314         public String getFieldName() {
7315         return _fieldName;
7316       }
7317     }
7318
7319     // isset id assignments
7320     private static final int __SUCCESS_ISSET_ID = 0;
7321     private byte __isset_bitfield = 0;
7322     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7323     static {
7324       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7325       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
7326           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
7327       metaDataMap = Collections.unmodifiableMap(tmpMap);
7328       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setPeerSecret_result.class, metaDataMap);
7329     }
7330
7331     public setPeerSecret_result() {
7332     }
7333
7334     public setPeerSecret_result(
7335       int success)
7336     {
7337       this();
7338       this.success = success;
7339       setSuccessIsSet(true);
7340     }
7341
7342     /**
7343      * Performs a deep copy on <i>other</i>.
7344      */
7345     public setPeerSecret_result(setPeerSecret_result other) {
7346       __isset_bitfield = other.__isset_bitfield;
7347       this.success = other.success;
7348     }
7349
7350     @Override
7351         public setPeerSecret_result deepCopy() {
7352       return new setPeerSecret_result(this);
7353     }
7354
7355     @Override
7356     public void clear() {
7357       setSuccessIsSet(false);
7358       this.success = 0;
7359     }
7360
7361     public int getSuccess() {
7362       return this.success;
7363     }
7364
7365     public setPeerSecret_result setSuccess(int success) {
7366       this.success = success;
7367       setSuccessIsSet(true);
7368       return this;
7369     }
7370
7371     public void unsetSuccess() {
7372       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7373     }
7374
7375     /** Returns true if field success is set (has been assigned a value) and false otherwise */
7376     public boolean isSetSuccess() {
7377       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7378     }
7379
7380     public void setSuccessIsSet(boolean value) {
7381       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
7382     }
7383
7384     @Override
7385         public void setFieldValue(_Fields field, Object value) {
7386       switch (field) {
7387       case SUCCESS:
7388         if (value == null) {
7389           unsetSuccess();
7390         } else {
7391           setSuccess((Integer)value);
7392         }
7393         break;
7394
7395       }
7396     }
7397
7398     @Override
7399         public Object getFieldValue(_Fields field) {
7400       switch (field) {
7401       case SUCCESS:
7402         return Integer.valueOf(getSuccess());
7403
7404       }
7405       throw new IllegalStateException();
7406     }
7407
7408     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7409     @Override
7410         public boolean isSet(_Fields field) {
7411       if (field == null) {
7412         throw new IllegalArgumentException();
7413       }
7414
7415       switch (field) {
7416       case SUCCESS:
7417         return isSetSuccess();
7418       }
7419       throw new IllegalStateException();
7420     }
7421
7422     @Override
7423     public boolean equals(Object that) {
7424       if (that == null) {
7425                 return false;
7426         }
7427       if (that instanceof setPeerSecret_result) {
7428                 return this.equals((setPeerSecret_result)that);
7429         }
7430       return false;
7431     }
7432
7433     public boolean equals(setPeerSecret_result that) {
7434       if (that == null) {
7435                 return false;
7436         }
7437
7438       boolean this_present_success = true;
7439       boolean that_present_success = true;
7440       if (this_present_success || that_present_success) {
7441         if (!(this_present_success && that_present_success)) {
7442                         return false;
7443                 }
7444         if (this.success != that.success) {
7445                         return false;
7446                 }
7447       }
7448
7449       return true;
7450     }
7451
7452     @Override
7453     public int hashCode() {
7454       List<Object> list = new ArrayList<Object>();
7455
7456       boolean present_success = true;
7457       list.add(present_success);
7458       if (present_success)
7459         list.add(success);
7460       return list.hashCode();
7461     }
7462
7463     @Override
7464     public int compareTo(setPeerSecret_result other) {
7465       if (!getClass().equals(other.getClass())) {
7466         return getClass().getName().compareTo(other.getClass().getName());
7467       }
7468
7469       int lastComparison = 0;
7470
7471       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
7472       if (lastComparison != 0) {
7473         return lastComparison;
7474       }
7475       if (isSetSuccess()) {
7476         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
7477         if (lastComparison != 0) {
7478           return lastComparison;
7479         }
7480       }
7481       return 0;
7482     }
7483
7484     @Override
7485         public _Fields fieldForId(int fieldId) {
7486       return _Fields.findByThriftId(fieldId);
7487     }
7488
7489     @Override
7490         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7491       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7492     }
7493
7494     @Override
7495         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7496       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7497       }
7498
7499     @Override
7500     public String toString() {
7501       StringBuilder sb = new StringBuilder("setPeerSecret_result(");
7502       boolean first = true;
7503
7504       sb.append("success:");
7505       sb.append(this.success);
7506       first = false;
7507       sb.append(")");
7508       return sb.toString();
7509     }
7510
7511     public void validate() throws org.apache.thrift.TException {
7512       // check for required fields
7513       // check for sub-struct validity
7514     }
7515
7516     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7517       try {
7518         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7519       } catch (org.apache.thrift.TException te) {
7520         throw new java.io.IOException(te);
7521       }
7522     }
7523
7524     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7525       try {
7526         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7527         __isset_bitfield = 0;
7528         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7529       } catch (org.apache.thrift.TException te) {
7530         throw new java.io.IOException(te);
7531       }
7532     }
7533
7534     private static class setPeerSecret_resultStandardSchemeFactory implements SchemeFactory {
7535       @Override
7536         public setPeerSecret_resultStandardScheme getScheme() {
7537         return new setPeerSecret_resultStandardScheme();
7538       }
7539     }
7540
7541     private static class setPeerSecret_resultStandardScheme extends StandardScheme<setPeerSecret_result> {
7542
7543       @Override
7544         public void read(org.apache.thrift.protocol.TProtocol iprot, setPeerSecret_result struct) throws org.apache.thrift.TException {
7545         org.apache.thrift.protocol.TField schemeField;
7546         iprot.readStructBegin();
7547         while (true)
7548         {
7549           schemeField = iprot.readFieldBegin();
7550           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7551             break;
7552           }
7553           switch (schemeField.id) {
7554             case 0: // SUCCESS
7555               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
7556                 struct.success = iprot.readI32();
7557                 struct.setSuccessIsSet(true);
7558               } else {
7559                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7560               }
7561               break;
7562             default:
7563               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7564           }
7565           iprot.readFieldEnd();
7566         }
7567         iprot.readStructEnd();
7568
7569         // check for required fields of primitive type, which can't be checked in the validate method
7570         struct.validate();
7571       }
7572
7573       @Override
7574         public void write(org.apache.thrift.protocol.TProtocol oprot, setPeerSecret_result struct) throws org.apache.thrift.TException {
7575         struct.validate();
7576
7577         oprot.writeStructBegin(STRUCT_DESC);
7578         if (struct.isSetSuccess()) {
7579           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7580           oprot.writeI32(struct.success);
7581           oprot.writeFieldEnd();
7582         }
7583         oprot.writeFieldStop();
7584         oprot.writeStructEnd();
7585       }
7586
7587     }
7588
7589     private static class setPeerSecret_resultTupleSchemeFactory implements SchemeFactory {
7590       @Override
7591         public setPeerSecret_resultTupleScheme getScheme() {
7592         return new setPeerSecret_resultTupleScheme();
7593       }
7594     }
7595
7596     private static class setPeerSecret_resultTupleScheme extends TupleScheme<setPeerSecret_result> {
7597
7598       @Override
7599       public void write(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_result struct) throws org.apache.thrift.TException {
7600         TTupleProtocol oprot = (TTupleProtocol) prot;
7601         BitSet optionals = new BitSet();
7602         if (struct.isSetSuccess()) {
7603           optionals.set(0);
7604         }
7605         oprot.writeBitSet(optionals, 1);
7606         if (struct.isSetSuccess()) {
7607           oprot.writeI32(struct.success);
7608         }
7609       }
7610
7611       @Override
7612       public void read(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_result struct) throws org.apache.thrift.TException {
7613         TTupleProtocol iprot = (TTupleProtocol) prot;
7614         BitSet incoming = iprot.readBitSet(1);
7615         if (incoming.get(0)) {
7616           struct.success = iprot.readI32();
7617           struct.setSuccessIsSet(true);
7618         }
7619       }
7620     }
7621
7622   }
7623
7624   public static class deletePeer_args implements org.apache.thrift.TBase<deletePeer_args, deletePeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_args>   {
7625     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_args");
7626
7627     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);
7628
7629     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7630     static {
7631       schemes.put(StandardScheme.class, new deletePeer_argsStandardSchemeFactory());
7632       schemes.put(TupleScheme.class, new deletePeer_argsTupleSchemeFactory());
7633     }
7634
7635     public String ipAddress; // required
7636
7637     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7638     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7639       IP_ADDRESS((short)1, "ipAddress");
7640
7641       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7642
7643       static {
7644         for (_Fields field : EnumSet.allOf(_Fields.class)) {
7645           byName.put(field.getFieldName(), field);
7646         }
7647       }
7648
7649       /**
7650        * Find the _Fields constant that matches fieldId, or null if its not found.
7651        */
7652       public static _Fields findByThriftId(int fieldId) {
7653         switch(fieldId) {
7654           case 1: // IP_ADDRESS
7655             return IP_ADDRESS;
7656           default:
7657             return null;
7658         }
7659       }
7660
7661       /**
7662        * Find the _Fields constant that matches fieldId, throwing an exception
7663        * if it is not found.
7664        */
7665       public static _Fields findByThriftIdOrThrow(int fieldId) {
7666         _Fields fields = findByThriftId(fieldId);
7667         if (fields == null) {
7668                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7669                 }
7670         return fields;
7671       }
7672
7673       /**
7674        * Find the _Fields constant that matches name, or null if its not found.
7675        */
7676       public static _Fields findByName(String name) {
7677         return byName.get(name);
7678       }
7679
7680       private final short _thriftId;
7681       private final String _fieldName;
7682
7683       _Fields(short thriftId, String fieldName) {
7684         _thriftId = thriftId;
7685         _fieldName = fieldName;
7686       }
7687
7688       @Override
7689         public short getThriftFieldId() {
7690         return _thriftId;
7691       }
7692
7693       @Override
7694         public String getFieldName() {
7695         return _fieldName;
7696       }
7697     }
7698
7699     // isset id assignments
7700     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7701     static {
7702       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7703       tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
7704           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7705       metaDataMap = Collections.unmodifiableMap(tmpMap);
7706       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_args.class, metaDataMap);
7707     }
7708
7709     public deletePeer_args() {
7710     }
7711
7712     public deletePeer_args(
7713       String ipAddress)
7714     {
7715       this();
7716       this.ipAddress = ipAddress;
7717     }
7718
7719     /**
7720      * Performs a deep copy on <i>other</i>.
7721      */
7722     public deletePeer_args(deletePeer_args other) {
7723       if (other.isSetIpAddress()) {
7724         this.ipAddress = other.ipAddress;
7725       }
7726     }
7727
7728     @Override
7729         public deletePeer_args deepCopy() {
7730       return new deletePeer_args(this);
7731     }
7732
7733     @Override
7734     public void clear() {
7735       this.ipAddress = null;
7736     }
7737
7738     public String getIpAddress() {
7739       return this.ipAddress;
7740     }
7741
7742     public deletePeer_args setIpAddress(String ipAddress) {
7743       this.ipAddress = ipAddress;
7744       return this;
7745     }
7746
7747     public void unsetIpAddress() {
7748       this.ipAddress = null;
7749     }
7750
7751     /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
7752     public boolean isSetIpAddress() {
7753       return this.ipAddress != null;
7754     }
7755
7756     public void setIpAddressIsSet(boolean value) {
7757       if (!value) {
7758         this.ipAddress = null;
7759       }
7760     }
7761
7762     @Override
7763         public void setFieldValue(_Fields field, Object value) {
7764       switch (field) {
7765       case IP_ADDRESS:
7766         if (value == null) {
7767           unsetIpAddress();
7768         } else {
7769           setIpAddress((String)value);
7770         }
7771         break;
7772
7773       }
7774     }
7775
7776     @Override
7777         public Object getFieldValue(_Fields field) {
7778       switch (field) {
7779       case IP_ADDRESS:
7780         return getIpAddress();
7781
7782       }
7783       throw new IllegalStateException();
7784     }
7785
7786     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7787     @Override
7788         public boolean isSet(_Fields field) {
7789       if (field == null) {
7790         throw new IllegalArgumentException();
7791       }
7792
7793       switch (field) {
7794       case IP_ADDRESS:
7795         return isSetIpAddress();
7796       }
7797       throw new IllegalStateException();
7798     }
7799
7800     @Override
7801     public boolean equals(Object that) {
7802       if (that == null) {
7803                 return false;
7804         }
7805       if (that instanceof deletePeer_args) {
7806                 return this.equals((deletePeer_args)that);
7807         }
7808       return false;
7809     }
7810
7811     public boolean equals(deletePeer_args that) {
7812       if (that == null) {
7813                 return false;
7814         }
7815
7816       boolean this_present_ipAddress = true && this.isSetIpAddress();
7817       boolean that_present_ipAddress = true && that.isSetIpAddress();
7818       if (this_present_ipAddress || that_present_ipAddress) {
7819         if (!(this_present_ipAddress && that_present_ipAddress)) {
7820                         return false;
7821                 }
7822         if (!this.ipAddress.equals(that.ipAddress)) {
7823                         return false;
7824                 }
7825       }
7826
7827       return true;
7828     }
7829
7830     @Override
7831     public int hashCode() {
7832       List<Object> list = new ArrayList<Object>();
7833
7834       boolean present_ipAddress = true && (isSetIpAddress());
7835       list.add(present_ipAddress);
7836       if (present_ipAddress)
7837         list.add(ipAddress);
7838       return list.hashCode();
7839     }
7840
7841     @Override
7842     public int compareTo(deletePeer_args other) {
7843       if (!getClass().equals(other.getClass())) {
7844         return getClass().getName().compareTo(other.getClass().getName());
7845       }
7846
7847       int lastComparison = 0;
7848
7849       lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
7850       if (lastComparison != 0) {
7851         return lastComparison;
7852       }
7853       if (isSetIpAddress()) {
7854         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
7855         if (lastComparison != 0) {
7856           return lastComparison;
7857         }
7858       }
7859       return 0;
7860     }
7861
7862     @Override
7863         public _Fields fieldForId(int fieldId) {
7864       return _Fields.findByThriftId(fieldId);
7865     }
7866
7867     @Override
7868         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7869       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7870     }
7871
7872     @Override
7873         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7874       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7875     }
7876
7877     @Override
7878     public String toString() {
7879       StringBuilder sb = new StringBuilder("deletePeer_args(");
7880       boolean first = true;
7881
7882       sb.append("ipAddress:");
7883       if (this.ipAddress == null) {
7884         sb.append("null");
7885       } else {
7886         sb.append(this.ipAddress);
7887       }
7888       first = false;
7889       sb.append(")");
7890       return sb.toString();
7891     }
7892
7893     public void validate() throws org.apache.thrift.TException {
7894       // check for required fields
7895       // check for sub-struct validity
7896     }
7897
7898     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7899       try {
7900         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7901       } catch (org.apache.thrift.TException te) {
7902         throw new java.io.IOException(te);
7903       }
7904     }
7905
7906     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7907       try {
7908         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7909       } catch (org.apache.thrift.TException te) {
7910         throw new java.io.IOException(te);
7911       }
7912     }
7913
7914     private static class deletePeer_argsStandardSchemeFactory implements SchemeFactory {
7915       @Override
7916         public deletePeer_argsStandardScheme getScheme() {
7917         return new deletePeer_argsStandardScheme();
7918       }
7919     }
7920
7921     private static class deletePeer_argsStandardScheme extends StandardScheme<deletePeer_args> {
7922
7923       @Override
7924         public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_args struct) throws org.apache.thrift.TException {
7925         org.apache.thrift.protocol.TField schemeField;
7926         iprot.readStructBegin();
7927         while (true)
7928         {
7929           schemeField = iprot.readFieldBegin();
7930           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7931             break;
7932           }
7933           switch (schemeField.id) {
7934             case 1: // IP_ADDRESS
7935               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7936                 struct.ipAddress = iprot.readString();
7937                 struct.setIpAddressIsSet(true);
7938               } else {
7939                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7940               }
7941               break;
7942             default:
7943               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7944           }
7945           iprot.readFieldEnd();
7946         }
7947         iprot.readStructEnd();
7948
7949         // check for required fields of primitive type, which can't be checked in the validate method
7950         struct.validate();
7951       }
7952
7953       @Override
7954         public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_args struct) throws org.apache.thrift.TException {
7955         struct.validate();
7956
7957         oprot.writeStructBegin(STRUCT_DESC);
7958         if (struct.ipAddress != null) {
7959           oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
7960           oprot.writeString(struct.ipAddress);
7961           oprot.writeFieldEnd();
7962         }
7963         oprot.writeFieldStop();
7964         oprot.writeStructEnd();
7965       }
7966
7967     }
7968
7969     private static class deletePeer_argsTupleSchemeFactory implements SchemeFactory {
7970       @Override
7971         public deletePeer_argsTupleScheme getScheme() {
7972         return new deletePeer_argsTupleScheme();
7973       }
7974     }
7975
7976     private static class deletePeer_argsTupleScheme extends TupleScheme<deletePeer_args> {
7977
7978       @Override
7979       public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
7980         TTupleProtocol oprot = (TTupleProtocol) prot;
7981         BitSet optionals = new BitSet();
7982         if (struct.isSetIpAddress()) {
7983           optionals.set(0);
7984         }
7985         oprot.writeBitSet(optionals, 1);
7986         if (struct.isSetIpAddress()) {
7987           oprot.writeString(struct.ipAddress);
7988         }
7989       }
7990
7991       @Override
7992       public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
7993         TTupleProtocol iprot = (TTupleProtocol) prot;
7994         BitSet incoming = iprot.readBitSet(1);
7995         if (incoming.get(0)) {
7996           struct.ipAddress = iprot.readString();
7997           struct.setIpAddressIsSet(true);
7998         }
7999       }
8000     }
8001
8002   }
8003
8004   public static class deletePeer_result implements org.apache.thrift.TBase<deletePeer_result, deletePeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_result>   {
8005     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_result");
8006
8007     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);
8008
8009     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8010     static {
8011       schemes.put(StandardScheme.class, new deletePeer_resultStandardSchemeFactory());
8012       schemes.put(TupleScheme.class, new deletePeer_resultTupleSchemeFactory());
8013     }
8014
8015     public int success; // required
8016
8017     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8018     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8019       SUCCESS((short)0, "success");
8020
8021       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8022
8023       static {
8024         for (_Fields field : EnumSet.allOf(_Fields.class)) {
8025           byName.put(field.getFieldName(), field);
8026         }
8027       }
8028
8029       /**
8030        * Find the _Fields constant that matches fieldId, or null if its not found.
8031        */
8032       public static _Fields findByThriftId(int fieldId) {
8033         switch(fieldId) {
8034           case 0: // SUCCESS
8035             return SUCCESS;
8036           default:
8037             return null;
8038         }
8039       }
8040
8041       /**
8042        * Find the _Fields constant that matches fieldId, throwing an exception
8043        * if it is not found.
8044        */
8045       public static _Fields findByThriftIdOrThrow(int fieldId) {
8046         _Fields fields = findByThriftId(fieldId);
8047         if (fields == null) {
8048                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8049                 }
8050         return fields;
8051       }
8052
8053       /**
8054        * Find the _Fields constant that matches name, or null if its not found.
8055        */
8056       public static _Fields findByName(String name) {
8057         return byName.get(name);
8058       }
8059
8060       private final short _thriftId;
8061       private final String _fieldName;
8062
8063       _Fields(short thriftId, String fieldName) {
8064         _thriftId = thriftId;
8065         _fieldName = fieldName;
8066       }
8067
8068       @Override
8069         public short getThriftFieldId() {
8070         return _thriftId;
8071       }
8072
8073       @Override
8074         public String getFieldName() {
8075         return _fieldName;
8076       }
8077     }
8078
8079     // isset id assignments
8080     private static final int __SUCCESS_ISSET_ID = 0;
8081     private byte __isset_bitfield = 0;
8082     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8083     static {
8084       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8085       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
8086           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
8087       metaDataMap = Collections.unmodifiableMap(tmpMap);
8088       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_result.class, metaDataMap);
8089     }
8090
8091     public deletePeer_result() {
8092     }
8093
8094     public deletePeer_result(
8095       int success)
8096     {
8097       this();
8098       this.success = success;
8099       setSuccessIsSet(true);
8100     }
8101
8102     /**
8103      * Performs a deep copy on <i>other</i>.
8104      */
8105     public deletePeer_result(deletePeer_result other) {
8106       __isset_bitfield = other.__isset_bitfield;
8107       this.success = other.success;
8108     }
8109
8110     @Override
8111         public deletePeer_result deepCopy() {
8112       return new deletePeer_result(this);
8113     }
8114
8115     @Override
8116     public void clear() {
8117       setSuccessIsSet(false);
8118       this.success = 0;
8119     }
8120
8121     public int getSuccess() {
8122       return this.success;
8123     }
8124
8125     public deletePeer_result setSuccess(int success) {
8126       this.success = success;
8127       setSuccessIsSet(true);
8128       return this;
8129     }
8130
8131     public void unsetSuccess() {
8132       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8133     }
8134
8135     /** Returns true if field success is set (has been assigned a value) and false otherwise */
8136     public boolean isSetSuccess() {
8137       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8138     }
8139
8140     public void setSuccessIsSet(boolean value) {
8141       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
8142     }
8143
8144     @Override
8145         public void setFieldValue(_Fields field, Object value) {
8146       switch (field) {
8147       case SUCCESS:
8148         if (value == null) {
8149           unsetSuccess();
8150         } else {
8151           setSuccess((Integer)value);
8152         }
8153         break;
8154
8155       }
8156     }
8157
8158     @Override
8159         public Object getFieldValue(_Fields field) {
8160       switch (field) {
8161       case SUCCESS:
8162         return Integer.valueOf(getSuccess());
8163
8164       }
8165       throw new IllegalStateException();
8166     }
8167
8168     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8169     @Override
8170         public boolean isSet(_Fields field) {
8171       if (field == null) {
8172         throw new IllegalArgumentException();
8173       }
8174
8175       switch (field) {
8176       case SUCCESS:
8177         return isSetSuccess();
8178       }
8179       throw new IllegalStateException();
8180     }
8181
8182     @Override
8183     public boolean equals(Object that) {
8184       if (that == null) {
8185                 return false;
8186         }
8187       if (that instanceof deletePeer_result) {
8188                 return this.equals((deletePeer_result)that);
8189         }
8190       return false;
8191     }
8192
8193     public boolean equals(deletePeer_result that) {
8194       if (that == null) {
8195                 return false;
8196         }
8197
8198       boolean this_present_success = true;
8199       boolean that_present_success = true;
8200       if (this_present_success || that_present_success) {
8201         if (!(this_present_success && that_present_success)) {
8202                         return false;
8203                 }
8204         if (this.success != that.success) {
8205                         return false;
8206                 }
8207       }
8208
8209       return true;
8210     }
8211
8212     @Override
8213     public int hashCode() {
8214       List<Object> list = new ArrayList<Object>();
8215
8216       boolean present_success = true;
8217       list.add(present_success);
8218       if (present_success)
8219         list.add(success);
8220       return list.hashCode();
8221     }
8222
8223     @Override
8224     public int compareTo(deletePeer_result other) {
8225       if (!getClass().equals(other.getClass())) {
8226         return getClass().getName().compareTo(other.getClass().getName());
8227       }
8228
8229       int lastComparison = 0;
8230
8231       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
8232       if (lastComparison != 0) {
8233         return lastComparison;
8234       }
8235       if (isSetSuccess()) {
8236         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
8237         if (lastComparison != 0) {
8238           return lastComparison;
8239         }
8240       }
8241       return 0;
8242     }
8243
8244     @Override
8245         public _Fields fieldForId(int fieldId) {
8246       return _Fields.findByThriftId(fieldId);
8247     }
8248
8249     @Override
8250         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8251       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8252     }
8253
8254     @Override
8255         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8256       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8257       }
8258
8259     @Override
8260     public String toString() {
8261       StringBuilder sb = new StringBuilder("deletePeer_result(");
8262       boolean first = true;
8263
8264       sb.append("success:");
8265       sb.append(this.success);
8266       first = false;
8267       sb.append(")");
8268       return sb.toString();
8269     }
8270
8271     public void validate() throws org.apache.thrift.TException {
8272       // check for required fields
8273       // check for sub-struct validity
8274     }
8275
8276     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8277       try {
8278         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8279       } catch (org.apache.thrift.TException te) {
8280         throw new java.io.IOException(te);
8281       }
8282     }
8283
8284     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8285       try {
8286         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8287         __isset_bitfield = 0;
8288         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8289       } catch (org.apache.thrift.TException te) {
8290         throw new java.io.IOException(te);
8291       }
8292     }
8293
8294     private static class deletePeer_resultStandardSchemeFactory implements SchemeFactory {
8295       @Override
8296         public deletePeer_resultStandardScheme getScheme() {
8297         return new deletePeer_resultStandardScheme();
8298       }
8299     }
8300
8301     private static class deletePeer_resultStandardScheme extends StandardScheme<deletePeer_result> {
8302
8303       @Override
8304         public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_result struct) throws org.apache.thrift.TException {
8305         org.apache.thrift.protocol.TField schemeField;
8306         iprot.readStructBegin();
8307         while (true)
8308         {
8309           schemeField = iprot.readFieldBegin();
8310           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8311             break;
8312           }
8313           switch (schemeField.id) {
8314             case 0: // SUCCESS
8315               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
8316                 struct.success = iprot.readI32();
8317                 struct.setSuccessIsSet(true);
8318               } else {
8319                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8320               }
8321               break;
8322             default:
8323               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8324           }
8325           iprot.readFieldEnd();
8326         }
8327         iprot.readStructEnd();
8328
8329         // check for required fields of primitive type, which can't be checked in the validate method
8330         struct.validate();
8331       }
8332
8333       @Override
8334         public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_result struct) throws org.apache.thrift.TException {
8335         struct.validate();
8336
8337         oprot.writeStructBegin(STRUCT_DESC);
8338         if (struct.isSetSuccess()) {
8339           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8340           oprot.writeI32(struct.success);
8341           oprot.writeFieldEnd();
8342         }
8343         oprot.writeFieldStop();
8344         oprot.writeStructEnd();
8345       }
8346
8347     }
8348
8349     private static class deletePeer_resultTupleSchemeFactory implements SchemeFactory {
8350       @Override
8351         public deletePeer_resultTupleScheme getScheme() {
8352         return new deletePeer_resultTupleScheme();
8353       }
8354     }
8355
8356     private static class deletePeer_resultTupleScheme extends TupleScheme<deletePeer_result> {
8357
8358       @Override
8359       public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
8360         TTupleProtocol oprot = (TTupleProtocol) prot;
8361         BitSet optionals = new BitSet();
8362         if (struct.isSetSuccess()) {
8363           optionals.set(0);
8364         }
8365         oprot.writeBitSet(optionals, 1);
8366         if (struct.isSetSuccess()) {
8367           oprot.writeI32(struct.success);
8368         }
8369       }
8370
8371       @Override
8372       public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
8373         TTupleProtocol iprot = (TTupleProtocol) prot;
8374         BitSet incoming = iprot.readBitSet(1);
8375         if (incoming.get(0)) {
8376           struct.success = iprot.readI32();
8377           struct.setSuccessIsSet(true);
8378         }
8379       }
8380     }
8381
8382   }
8383
8384   public static class addVrf_args implements org.apache.thrift.TBase<addVrf_args, addVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_args>   {
8385     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_args");
8386
8387     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);
8388     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);
8389     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);
8390     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);
8391
8392     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8393     static {
8394       schemes.put(StandardScheme.class, new addVrf_argsStandardSchemeFactory());
8395       schemes.put(TupleScheme.class, new addVrf_argsTupleSchemeFactory());
8396     }
8397
8398     /**
8399      *
8400      * @see layer_type
8401      */
8402     public layer_type l_type; // required
8403     public String rd; // required
8404     public List<String> irts; // required
8405     public List<String> erts; // required
8406
8407     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8408     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8409       /**
8410        *
8411        * @see layer_type
8412        */
8413       L_TYPE((short)1, "l_type"),
8414       RD((short)2, "rd"),
8415       IRTS((short)3, "irts"),
8416       ERTS((short)4, "erts");
8417
8418       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8419
8420       static {
8421         for (_Fields field : EnumSet.allOf(_Fields.class)) {
8422           byName.put(field.getFieldName(), field);
8423         }
8424       }
8425
8426       /**
8427        * Find the _Fields constant that matches fieldId, or null if its not found.
8428        */
8429       public static _Fields findByThriftId(int fieldId) {
8430         switch(fieldId) {
8431           case 1: // L_TYPE
8432             return L_TYPE;
8433           case 2: // RD
8434             return RD;
8435           case 3: // IRTS
8436             return IRTS;
8437           case 4: // ERTS
8438             return ERTS;
8439           default:
8440             return null;
8441         }
8442       }
8443
8444       /**
8445        * Find the _Fields constant that matches fieldId, throwing an exception
8446        * if it is not found.
8447        */
8448       public static _Fields findByThriftIdOrThrow(int fieldId) {
8449         _Fields fields = findByThriftId(fieldId);
8450         if (fields == null) {
8451                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8452                 }
8453         return fields;
8454       }
8455
8456       /**
8457        * Find the _Fields constant that matches name, or null if its not found.
8458        */
8459       public static _Fields findByName(String name) {
8460         return byName.get(name);
8461       }
8462
8463       private final short _thriftId;
8464       private final String _fieldName;
8465
8466       _Fields(short thriftId, String fieldName) {
8467         _thriftId = thriftId;
8468         _fieldName = fieldName;
8469       }
8470
8471       @Override
8472         public short getThriftFieldId() {
8473         return _thriftId;
8474       }
8475
8476       @Override
8477         public String getFieldName() {
8478         return _fieldName;
8479       }
8480     }
8481
8482     // isset id assignments
8483     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8484     static {
8485       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8486       tmpMap.put(_Fields.L_TYPE, new org.apache.thrift.meta_data.FieldMetaData("l_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
8487           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, layer_type.class)));
8488       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
8489           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8490       tmpMap.put(_Fields.IRTS, new org.apache.thrift.meta_data.FieldMetaData("irts", org.apache.thrift.TFieldRequirementType.DEFAULT,
8491           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
8492               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8493       tmpMap.put(_Fields.ERTS, new org.apache.thrift.meta_data.FieldMetaData("erts", org.apache.thrift.TFieldRequirementType.DEFAULT,
8494           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
8495               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8496       metaDataMap = Collections.unmodifiableMap(tmpMap);
8497       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_args.class, metaDataMap);
8498     }
8499
8500     public addVrf_args() {
8501     }
8502
8503     public addVrf_args(
8504       layer_type l_type,
8505       String rd,
8506       List<String> irts,
8507       List<String> erts)
8508     {
8509       this();
8510       this.l_type = l_type;
8511       this.rd = rd;
8512       this.irts = irts;
8513       this.erts = erts;
8514     }
8515
8516     /**
8517      * Performs a deep copy on <i>other</i>.
8518      */
8519     public addVrf_args(addVrf_args other) {
8520       if (other.isSetL_type()) {
8521         this.l_type = other.l_type;
8522       }
8523       if (other.isSetRd()) {
8524         this.rd = other.rd;
8525       }
8526       if (other.isSetIrts()) {
8527         List<String> __this__irts = new ArrayList<String>(other.irts);
8528         this.irts = __this__irts;
8529       }
8530       if (other.isSetErts()) {
8531         List<String> __this__erts = new ArrayList<String>(other.erts);
8532         this.erts = __this__erts;
8533       }
8534     }
8535
8536     @Override
8537         public addVrf_args deepCopy() {
8538       return new addVrf_args(this);
8539     }
8540
8541     @Override
8542     public void clear() {
8543       this.l_type = null;
8544       this.rd = null;
8545       this.irts = null;
8546       this.erts = null;
8547     }
8548
8549     /**
8550      *
8551      * @see layer_type
8552      */
8553     public layer_type getL_type() {
8554       return this.l_type;
8555     }
8556
8557     /**
8558      *
8559      * @see layer_type
8560      */
8561     public addVrf_args setL_type(layer_type l_type) {
8562       this.l_type = l_type;
8563       return this;
8564     }
8565
8566     public void unsetL_type() {
8567       this.l_type = null;
8568     }
8569
8570     /** Returns true if field l_type is set (has been assigned a value) and false otherwise */
8571     public boolean isSetL_type() {
8572       return this.l_type != null;
8573     }
8574
8575     public void setL_typeIsSet(boolean value) {
8576       if (!value) {
8577         this.l_type = null;
8578       }
8579     }
8580
8581     public String getRd() {
8582       return this.rd;
8583     }
8584
8585     public addVrf_args setRd(String rd) {
8586       this.rd = rd;
8587       return this;
8588     }
8589
8590     public void unsetRd() {
8591       this.rd = null;
8592     }
8593
8594     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
8595     public boolean isSetRd() {
8596       return this.rd != null;
8597     }
8598
8599     public void setRdIsSet(boolean value) {
8600       if (!value) {
8601         this.rd = null;
8602       }
8603     }
8604
8605     public int getIrtsSize() {
8606       return (this.irts == null) ? 0 : this.irts.size();
8607     }
8608
8609     public java.util.Iterator<String> getIrtsIterator() {
8610       return (this.irts == null) ? null : this.irts.iterator();
8611     }
8612
8613     public void addToIrts(String elem) {
8614       if (this.irts == null) {
8615         this.irts = new ArrayList<String>();
8616       }
8617       this.irts.add(elem);
8618     }
8619
8620     public List<String> getIrts() {
8621       return this.irts;
8622     }
8623
8624     public addVrf_args setIrts(List<String> irts) {
8625       this.irts = irts;
8626       return this;
8627     }
8628
8629     public void unsetIrts() {
8630       this.irts = null;
8631     }
8632
8633     /** Returns true if field irts is set (has been assigned a value) and false otherwise */
8634     public boolean isSetIrts() {
8635       return this.irts != null;
8636     }
8637
8638     public void setIrtsIsSet(boolean value) {
8639       if (!value) {
8640         this.irts = null;
8641       }
8642     }
8643
8644     public int getErtsSize() {
8645       return (this.erts == null) ? 0 : this.erts.size();
8646     }
8647
8648     public java.util.Iterator<String> getErtsIterator() {
8649       return (this.erts == null) ? null : this.erts.iterator();
8650     }
8651
8652     public void addToErts(String elem) {
8653       if (this.erts == null) {
8654         this.erts = new ArrayList<String>();
8655       }
8656       this.erts.add(elem);
8657     }
8658
8659     public List<String> getErts() {
8660       return this.erts;
8661     }
8662
8663     public addVrf_args setErts(List<String> erts) {
8664       this.erts = erts;
8665       return this;
8666     }
8667
8668     public void unsetErts() {
8669       this.erts = null;
8670     }
8671
8672     /** Returns true if field erts is set (has been assigned a value) and false otherwise */
8673     public boolean isSetErts() {
8674       return this.erts != null;
8675     }
8676
8677     public void setErtsIsSet(boolean value) {
8678       if (!value) {
8679         this.erts = null;
8680       }
8681     }
8682
8683     @Override
8684         public void setFieldValue(_Fields field, Object value) {
8685       switch (field) {
8686       case L_TYPE:
8687         if (value == null) {
8688           unsetL_type();
8689         } else {
8690           setL_type((layer_type)value);
8691         }
8692         break;
8693
8694       case RD:
8695         if (value == null) {
8696           unsetRd();
8697         } else {
8698           setRd((String)value);
8699         }
8700         break;
8701
8702       case IRTS:
8703         if (value == null) {
8704           unsetIrts();
8705         } else {
8706           setIrts((List<String>)value);
8707         }
8708         break;
8709
8710       case ERTS:
8711         if (value == null) {
8712           unsetErts();
8713         } else {
8714           setErts((List<String>)value);
8715         }
8716         break;
8717
8718       }
8719     }
8720
8721     @Override
8722         public Object getFieldValue(_Fields field) {
8723       switch (field) {
8724       case L_TYPE:
8725         return getL_type();
8726
8727       case RD:
8728         return getRd();
8729
8730       case IRTS:
8731         return getIrts();
8732
8733       case ERTS:
8734         return getErts();
8735
8736       }
8737       throw new IllegalStateException();
8738     }
8739
8740     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8741     @Override
8742         public boolean isSet(_Fields field) {
8743       if (field == null) {
8744         throw new IllegalArgumentException();
8745       }
8746
8747       switch (field) {
8748       case L_TYPE:
8749         return isSetL_type();
8750       case RD:
8751         return isSetRd();
8752       case IRTS:
8753         return isSetIrts();
8754       case ERTS:
8755         return isSetErts();
8756       }
8757       throw new IllegalStateException();
8758     }
8759
8760     @Override
8761     public boolean equals(Object that) {
8762       if (that == null) {
8763                 return false;
8764         }
8765       if (that instanceof addVrf_args) {
8766                 return this.equals((addVrf_args)that);
8767         }
8768       return false;
8769     }
8770
8771     public boolean equals(addVrf_args that) {
8772       if (that == null) {
8773                 return false;
8774         }
8775
8776       boolean this_present_l_type = true && this.isSetL_type();
8777       boolean that_present_l_type = true && that.isSetL_type();
8778       if (this_present_l_type || that_present_l_type) {
8779         if (!(this_present_l_type && that_present_l_type)) {
8780                         return false;
8781                 }
8782         if (!this.l_type.equals(that.l_type)) {
8783                         return false;
8784                 }
8785       }
8786
8787       boolean this_present_rd = true && this.isSetRd();
8788       boolean that_present_rd = true && that.isSetRd();
8789       if (this_present_rd || that_present_rd) {
8790         if (!(this_present_rd && that_present_rd)) {
8791                         return false;
8792                 }
8793         if (!this.rd.equals(that.rd)) {
8794                         return false;
8795                 }
8796       }
8797
8798       boolean this_present_irts = true && this.isSetIrts();
8799       boolean that_present_irts = true && that.isSetIrts();
8800       if (this_present_irts || that_present_irts) {
8801         if (!(this_present_irts && that_present_irts)) {
8802                         return false;
8803                 }
8804         if (!this.irts.equals(that.irts)) {
8805                         return false;
8806                 }
8807       }
8808
8809       boolean this_present_erts = true && this.isSetErts();
8810       boolean that_present_erts = true && that.isSetErts();
8811       if (this_present_erts || that_present_erts) {
8812         if (!(this_present_erts && that_present_erts)) {
8813                         return false;
8814                 }
8815         if (!this.erts.equals(that.erts)) {
8816                         return false;
8817                 }
8818       }
8819
8820       return true;
8821     }
8822
8823     @Override
8824     public int hashCode() {
8825       List<Object> list = new ArrayList<Object>();
8826       boolean present_l_type = true && (isSetL_type());
8827       list.add(present_l_type);
8828       if (present_l_type)
8829         list.add(l_type.getValue());
8830       boolean present_rd = true && (isSetRd());
8831       list.add(present_rd);
8832       if (present_rd)
8833         list.add(rd);
8834       boolean present_irts = true && (isSetIrts());
8835       list.add(present_irts);
8836       if (present_irts)
8837         list.add(irts);
8838       boolean present_erts = true && (isSetErts());
8839       list.add(present_erts);
8840       if (present_erts)
8841         list.add(erts);
8842       return list.hashCode();
8843     }
8844
8845     @Override
8846     public int compareTo(addVrf_args other) {
8847       if (!getClass().equals(other.getClass())) {
8848         return getClass().getName().compareTo(other.getClass().getName());
8849       }
8850
8851       int lastComparison = 0;
8852
8853       lastComparison = Boolean.valueOf(isSetL_type()).compareTo(other.isSetL_type());
8854       if (lastComparison != 0) {
8855         return lastComparison;
8856       }
8857       if (isSetL_type()) {
8858         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l_type, other.l_type);
8859         if (lastComparison != 0) {
8860           return lastComparison;
8861         }
8862       }
8863       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
8864       if (lastComparison != 0) {
8865         return lastComparison;
8866       }
8867       if (isSetRd()) {
8868         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
8869         if (lastComparison != 0) {
8870           return lastComparison;
8871         }
8872       }
8873       lastComparison = Boolean.valueOf(isSetIrts()).compareTo(other.isSetIrts());
8874       if (lastComparison != 0) {
8875         return lastComparison;
8876       }
8877       if (isSetIrts()) {
8878         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.irts, other.irts);
8879         if (lastComparison != 0) {
8880           return lastComparison;
8881         }
8882       }
8883       lastComparison = Boolean.valueOf(isSetErts()).compareTo(other.isSetErts());
8884       if (lastComparison != 0) {
8885         return lastComparison;
8886       }
8887       if (isSetErts()) {
8888         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.erts, other.erts);
8889         if (lastComparison != 0) {
8890           return lastComparison;
8891         }
8892       }
8893       return 0;
8894     }
8895
8896     @Override
8897         public _Fields fieldForId(int fieldId) {
8898       return _Fields.findByThriftId(fieldId);
8899     }
8900
8901     @Override
8902         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8903       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8904     }
8905
8906     @Override
8907         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8908       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8909     }
8910
8911     @Override
8912     public String toString() {
8913       StringBuilder sb = new StringBuilder("addVrf_args(");
8914       boolean first = true;
8915
8916       sb.append("l_type:");
8917       if (this.l_type == null) {
8918         sb.append("null");
8919       } else {
8920         sb.append(this.l_type);
8921       }
8922       first = false;
8923       if (!first) {
8924                 sb.append(", ");
8925         }
8926       sb.append("rd:");
8927       if (this.rd == null) {
8928         sb.append("null");
8929       } else {
8930         sb.append(this.rd);
8931       }
8932       first = false;
8933       if (!first) {
8934                 sb.append(", ");
8935         }
8936       sb.append("irts:");
8937       if (this.irts == null) {
8938         sb.append("null");
8939       } else {
8940         sb.append(this.irts);
8941       }
8942       first = false;
8943       if (!first) {
8944                 sb.append(", ");
8945         }
8946       sb.append("erts:");
8947       if (this.erts == null) {
8948         sb.append("null");
8949       } else {
8950         sb.append(this.erts);
8951       }
8952       first = false;
8953       sb.append(")");
8954       return sb.toString();
8955     }
8956
8957     public void validate() throws org.apache.thrift.TException {
8958       // check for required fields
8959       // check for sub-struct validity
8960     }
8961
8962     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8963       try {
8964         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8965       } catch (org.apache.thrift.TException te) {
8966         throw new java.io.IOException(te);
8967       }
8968     }
8969
8970     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8971       try {
8972         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8973       } catch (org.apache.thrift.TException te) {
8974         throw new java.io.IOException(te);
8975       }
8976     }
8977
8978     private static class addVrf_argsStandardSchemeFactory implements SchemeFactory {
8979       @Override
8980         public addVrf_argsStandardScheme getScheme() {
8981         return new addVrf_argsStandardScheme();
8982       }
8983     }
8984
8985     private static class addVrf_argsStandardScheme extends StandardScheme<addVrf_args> {
8986
8987       @Override
8988         public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_args struct) throws org.apache.thrift.TException {
8989         org.apache.thrift.protocol.TField schemeField;
8990         iprot.readStructBegin();
8991         while (true)
8992         {
8993           schemeField = iprot.readFieldBegin();
8994           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8995             break;
8996           }
8997           switch (schemeField.id) {
8998             case 1: // L_TYPE
8999               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9000                 struct.l_type = layer_type.findByValue(iprot.readI32());
9001                 struct.setL_typeIsSet(true);
9002               } else {
9003                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9004               }
9005               break;
9006             case 2: // RD
9007               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9008                 struct.rd = iprot.readString();
9009                 struct.setRdIsSet(true);
9010               } else {
9011                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9012               }
9013               break;
9014             case 3: // IRTS
9015               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
9016                 {
9017                   org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
9018                   struct.irts = new ArrayList<>(_list8.size);
9019                   for (int _i9 = 0; _i9 < _list8.size; ++_i9)
9020                   {
9021                     String _elem10;
9022                     _elem10 = iprot.readString();
9023                     struct.irts.add(_elem10);
9024                   }
9025                   iprot.readListEnd();
9026                 }
9027                 struct.setIrtsIsSet(true);
9028               } else {
9029                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9030               }
9031               break;
9032             case 4: // ERTS
9033               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
9034                 {
9035                   org.apache.thrift.protocol.TList _list11 = iprot.readListBegin();
9036                   struct.erts = new ArrayList<>(_list11.size);
9037                   for (int _i12 = 0; _i12 < _list11.size; ++_i12)
9038                   {
9039                     String _elem13;
9040                     _elem13 = iprot.readString();
9041                     struct.erts.add(_elem13);
9042                   }
9043                   iprot.readListEnd();
9044                 }
9045                 struct.setErtsIsSet(true);
9046               } else {
9047                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9048               }
9049               break;
9050             default:
9051               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9052           }
9053           iprot.readFieldEnd();
9054         }
9055         iprot.readStructEnd();
9056
9057         // check for required fields of primitive type, which can't be checked in the validate method
9058         struct.validate();
9059       }
9060
9061       @Override
9062         public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_args struct) throws org.apache.thrift.TException {
9063         struct.validate();
9064
9065         oprot.writeStructBegin(STRUCT_DESC);
9066         if (struct.l_type != null) {
9067           oprot.writeFieldBegin(L_TYPE_FIELD_DESC);
9068           oprot.writeI32(struct.l_type.getValue());
9069           oprot.writeFieldEnd();
9070         }
9071         if (struct.rd != null) {
9072           oprot.writeFieldBegin(RD_FIELD_DESC);
9073           oprot.writeString(struct.rd);
9074           oprot.writeFieldEnd();
9075         }
9076         if (struct.irts != null) {
9077           oprot.writeFieldBegin(IRTS_FIELD_DESC);
9078           {
9079             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.irts.size()));
9080             for (String _iter14 : struct.irts)
9081             {
9082               oprot.writeString(_iter14);
9083             }
9084             oprot.writeListEnd();
9085           }
9086           oprot.writeFieldEnd();
9087         }
9088         if (struct.erts != null) {
9089           oprot.writeFieldBegin(ERTS_FIELD_DESC);
9090           {
9091             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.erts.size()));
9092             for (String _iter15 : struct.erts)
9093             {
9094               oprot.writeString(_iter15);
9095             }
9096             oprot.writeListEnd();
9097           }
9098           oprot.writeFieldEnd();
9099         }
9100         oprot.writeFieldStop();
9101         oprot.writeStructEnd();
9102       }
9103
9104     }
9105
9106     private static class addVrf_argsTupleSchemeFactory implements SchemeFactory {
9107       @Override
9108         public addVrf_argsTupleScheme getScheme() {
9109         return new addVrf_argsTupleScheme();
9110       }
9111     }
9112
9113     private static class addVrf_argsTupleScheme extends TupleScheme<addVrf_args> {
9114
9115       @Override
9116       public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
9117         TTupleProtocol oprot = (TTupleProtocol) prot;
9118         BitSet optionals = new BitSet();
9119         if (struct.isSetL_type()) {
9120           optionals.set(0);
9121         }
9122         if (struct.isSetRd()) {
9123           optionals.set(1);
9124         }
9125         if (struct.isSetIrts()) {
9126           optionals.set(2);
9127         }
9128         if (struct.isSetErts()) {
9129           optionals.set(3);
9130         }
9131         oprot.writeBitSet(optionals, 4);
9132         if (struct.isSetL_type()) {
9133           oprot.writeI32(struct.l_type.getValue());
9134         }
9135         if (struct.isSetRd()) {
9136           oprot.writeString(struct.rd);
9137         }
9138         if (struct.isSetIrts()) {
9139           {
9140             oprot.writeI32(struct.irts.size());
9141             for (String _iter16 : struct.irts)
9142             {
9143               oprot.writeString(_iter16);
9144             }
9145           }
9146         }
9147         if (struct.isSetErts()) {
9148           {
9149             oprot.writeI32(struct.erts.size());
9150             for (String _iter17 : struct.erts)
9151             {
9152               oprot.writeString(_iter17);
9153             }
9154           }
9155         }
9156       }
9157
9158       @Override
9159       public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
9160         TTupleProtocol iprot = (TTupleProtocol) prot;
9161         BitSet incoming = iprot.readBitSet(4);
9162         if (incoming.get(0)) {
9163           struct.l_type = layer_type.findByValue(iprot.readI32());
9164           struct.setL_typeIsSet(true);
9165         }
9166         if (incoming.get(1)) {
9167           struct.rd = iprot.readString();
9168           struct.setRdIsSet(true);
9169         }
9170         if (incoming.get(2)) {
9171           {
9172             org.apache.thrift.protocol.TList _list18 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
9173             struct.irts = new ArrayList<>(_list18.size);
9174             for (int _i19 = 0; _i19 < _list18.size; ++_i19)
9175             {
9176               String _elem20;
9177               _elem20 = iprot.readString();
9178               struct.irts.add(_elem20);
9179             }
9180           }
9181           struct.setIrtsIsSet(true);
9182         }
9183         if (incoming.get(3)) {
9184           {
9185             org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
9186             struct.erts = new ArrayList<>(_list21.size);
9187             for (int _i22 = 0; _i22 < _list21.size; ++_i22)
9188             {
9189               String _elem23;
9190               _elem23 = iprot.readString();
9191               struct.erts.add(_elem23);
9192             }
9193           }
9194           struct.setErtsIsSet(true);
9195         }
9196       }
9197     }
9198
9199   }
9200
9201   public static class addVrf_result implements org.apache.thrift.TBase<addVrf_result, addVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_result>   {
9202     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_result");
9203
9204     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);
9205
9206     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9207     static {
9208       schemes.put(StandardScheme.class, new addVrf_resultStandardSchemeFactory());
9209       schemes.put(TupleScheme.class, new addVrf_resultTupleSchemeFactory());
9210     }
9211
9212     public int success; // required
9213
9214     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9215     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9216       SUCCESS((short)0, "success");
9217
9218       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9219
9220       static {
9221         for (_Fields field : EnumSet.allOf(_Fields.class)) {
9222           byName.put(field.getFieldName(), field);
9223         }
9224       }
9225
9226       /**
9227        * Find the _Fields constant that matches fieldId, or null if its not found.
9228        */
9229       public static _Fields findByThriftId(int fieldId) {
9230         switch(fieldId) {
9231           case 0: // SUCCESS
9232             return SUCCESS;
9233           default:
9234             return null;
9235         }
9236       }
9237
9238       /**
9239        * Find the _Fields constant that matches fieldId, throwing an exception
9240        * if it is not found.
9241        */
9242       public static _Fields findByThriftIdOrThrow(int fieldId) {
9243         _Fields fields = findByThriftId(fieldId);
9244         if (fields == null) {
9245                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9246                 }
9247         return fields;
9248       }
9249
9250       /**
9251        * Find the _Fields constant that matches name, or null if its not found.
9252        */
9253       public static _Fields findByName(String name) {
9254         return byName.get(name);
9255       }
9256
9257       private final short _thriftId;
9258       private final String _fieldName;
9259
9260       _Fields(short thriftId, String fieldName) {
9261         _thriftId = thriftId;
9262         _fieldName = fieldName;
9263       }
9264
9265       @Override
9266         public short getThriftFieldId() {
9267         return _thriftId;
9268       }
9269
9270       @Override
9271         public String getFieldName() {
9272         return _fieldName;
9273       }
9274     }
9275
9276     // isset id assignments
9277     private static final int __SUCCESS_ISSET_ID = 0;
9278     private byte __isset_bitfield = 0;
9279     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9280     static {
9281       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9282       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
9283           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9284       metaDataMap = Collections.unmodifiableMap(tmpMap);
9285       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_result.class, metaDataMap);
9286     }
9287
9288     public addVrf_result() {
9289     }
9290
9291     public addVrf_result(
9292       int success)
9293     {
9294       this();
9295       this.success = success;
9296       setSuccessIsSet(true);
9297     }
9298
9299     /**
9300      * Performs a deep copy on <i>other</i>.
9301      */
9302     public addVrf_result(addVrf_result other) {
9303       __isset_bitfield = other.__isset_bitfield;
9304       this.success = other.success;
9305     }
9306
9307     @Override
9308         public addVrf_result deepCopy() {
9309       return new addVrf_result(this);
9310     }
9311
9312     @Override
9313     public void clear() {
9314       setSuccessIsSet(false);
9315       this.success = 0;
9316     }
9317
9318     public int getSuccess() {
9319       return this.success;
9320     }
9321
9322     public addVrf_result setSuccess(int success) {
9323       this.success = success;
9324       setSuccessIsSet(true);
9325       return this;
9326     }
9327
9328     public void unsetSuccess() {
9329       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9330     }
9331
9332     /** Returns true if field success is set (has been assigned a value) and false otherwise */
9333     public boolean isSetSuccess() {
9334       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9335     }
9336
9337     public void setSuccessIsSet(boolean value) {
9338       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
9339     }
9340
9341     @Override
9342         public void setFieldValue(_Fields field, Object value) {
9343       switch (field) {
9344       case SUCCESS:
9345         if (value == null) {
9346           unsetSuccess();
9347         } else {
9348           setSuccess((Integer)value);
9349         }
9350         break;
9351
9352       }
9353     }
9354
9355     @Override
9356         public Object getFieldValue(_Fields field) {
9357       switch (field) {
9358       case SUCCESS:
9359         return Integer.valueOf(getSuccess());
9360
9361       }
9362       throw new IllegalStateException();
9363     }
9364
9365     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9366     @Override
9367         public boolean isSet(_Fields field) {
9368       if (field == null) {
9369         throw new IllegalArgumentException();
9370       }
9371
9372       switch (field) {
9373       case SUCCESS:
9374         return isSetSuccess();
9375       }
9376       throw new IllegalStateException();
9377     }
9378
9379     @Override
9380     public boolean equals(Object that) {
9381       if (that == null) {
9382                 return false;
9383         }
9384       if (that instanceof addVrf_result) {
9385                 return this.equals((addVrf_result)that);
9386         }
9387       return false;
9388     }
9389
9390     public boolean equals(addVrf_result that) {
9391       if (that == null) {
9392                 return false;
9393         }
9394
9395       boolean this_present_success = true;
9396       boolean that_present_success = true;
9397       if (this_present_success || that_present_success) {
9398         if (!(this_present_success && that_present_success)) {
9399                         return false;
9400                 }
9401         if (this.success != that.success) {
9402                         return false;
9403                 }
9404       }
9405
9406       return true;
9407     }
9408
9409     @Override
9410     public int hashCode() {
9411       List<Object> list = new ArrayList<Object>();
9412
9413       boolean present_success = true;
9414       list.add(present_success);
9415       if (present_success)
9416         list.add(success);
9417       return list.hashCode();
9418     }
9419
9420     @Override
9421     public int compareTo(addVrf_result other) {
9422       if (!getClass().equals(other.getClass())) {
9423         return getClass().getName().compareTo(other.getClass().getName());
9424       }
9425
9426       int lastComparison = 0;
9427
9428       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
9429       if (lastComparison != 0) {
9430         return lastComparison;
9431       }
9432       if (isSetSuccess()) {
9433         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
9434         if (lastComparison != 0) {
9435           return lastComparison;
9436         }
9437       }
9438       return 0;
9439     }
9440
9441     @Override
9442         public _Fields fieldForId(int fieldId) {
9443       return _Fields.findByThriftId(fieldId);
9444     }
9445
9446     @Override
9447         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9448       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9449     }
9450
9451     @Override
9452         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9453       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9454       }
9455
9456     @Override
9457     public String toString() {
9458       StringBuilder sb = new StringBuilder("addVrf_result(");
9459       boolean first = true;
9460
9461       sb.append("success:");
9462       sb.append(this.success);
9463       first = false;
9464       sb.append(")");
9465       return sb.toString();
9466     }
9467
9468     public void validate() throws org.apache.thrift.TException {
9469       // check for required fields
9470       // check for sub-struct validity
9471     }
9472
9473     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9474       try {
9475         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9476       } catch (org.apache.thrift.TException te) {
9477         throw new java.io.IOException(te);
9478       }
9479     }
9480
9481     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9482       try {
9483         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9484         __isset_bitfield = 0;
9485         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9486       } catch (org.apache.thrift.TException te) {
9487         throw new java.io.IOException(te);
9488       }
9489     }
9490
9491     private static class addVrf_resultStandardSchemeFactory implements SchemeFactory {
9492       @Override
9493         public addVrf_resultStandardScheme getScheme() {
9494         return new addVrf_resultStandardScheme();
9495       }
9496     }
9497
9498     private static class addVrf_resultStandardScheme extends StandardScheme<addVrf_result> {
9499
9500       @Override
9501         public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_result struct) throws org.apache.thrift.TException {
9502         org.apache.thrift.protocol.TField schemeField;
9503         iprot.readStructBegin();
9504         while (true)
9505         {
9506           schemeField = iprot.readFieldBegin();
9507           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9508             break;
9509           }
9510           switch (schemeField.id) {
9511             case 0: // SUCCESS
9512               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9513                 struct.success = iprot.readI32();
9514                 struct.setSuccessIsSet(true);
9515               } else {
9516                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9517               }
9518               break;
9519             default:
9520               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9521           }
9522           iprot.readFieldEnd();
9523         }
9524         iprot.readStructEnd();
9525
9526         // check for required fields of primitive type, which can't be checked in the validate method
9527         struct.validate();
9528       }
9529
9530       @Override
9531         public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_result struct) throws org.apache.thrift.TException {
9532         struct.validate();
9533
9534         oprot.writeStructBegin(STRUCT_DESC);
9535         if (struct.isSetSuccess()) {
9536           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9537           oprot.writeI32(struct.success);
9538           oprot.writeFieldEnd();
9539         }
9540         oprot.writeFieldStop();
9541         oprot.writeStructEnd();
9542       }
9543
9544     }
9545
9546     private static class addVrf_resultTupleSchemeFactory implements SchemeFactory {
9547       @Override
9548         public addVrf_resultTupleScheme getScheme() {
9549         return new addVrf_resultTupleScheme();
9550       }
9551     }
9552
9553     private static class addVrf_resultTupleScheme extends TupleScheme<addVrf_result> {
9554
9555       @Override
9556       public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
9557         TTupleProtocol oprot = (TTupleProtocol) prot;
9558         BitSet optionals = new BitSet();
9559         if (struct.isSetSuccess()) {
9560           optionals.set(0);
9561         }
9562         oprot.writeBitSet(optionals, 1);
9563         if (struct.isSetSuccess()) {
9564           oprot.writeI32(struct.success);
9565         }
9566       }
9567
9568       @Override
9569       public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
9570         TTupleProtocol iprot = (TTupleProtocol) prot;
9571         BitSet incoming = iprot.readBitSet(1);
9572         if (incoming.get(0)) {
9573           struct.success = iprot.readI32();
9574           struct.setSuccessIsSet(true);
9575         }
9576       }
9577     }
9578
9579   }
9580
9581   public static class delVrf_args implements org.apache.thrift.TBase<delVrf_args, delVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_args>   {
9582     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_args");
9583
9584     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);
9585
9586     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9587     static {
9588       schemes.put(StandardScheme.class, new delVrf_argsStandardSchemeFactory());
9589       schemes.put(TupleScheme.class, new delVrf_argsTupleSchemeFactory());
9590     }
9591
9592     public String rd; // required
9593
9594     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9595     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9596       RD((short)1, "rd");
9597
9598       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9599
9600       static {
9601         for (_Fields field : EnumSet.allOf(_Fields.class)) {
9602           byName.put(field.getFieldName(), field);
9603         }
9604       }
9605
9606       /**
9607        * Find the _Fields constant that matches fieldId, or null if its not found.
9608        */
9609       public static _Fields findByThriftId(int fieldId) {
9610         switch(fieldId) {
9611           case 1: // RD
9612             return RD;
9613           default:
9614             return null;
9615         }
9616       }
9617
9618       /**
9619        * Find the _Fields constant that matches fieldId, throwing an exception
9620        * if it is not found.
9621        */
9622       public static _Fields findByThriftIdOrThrow(int fieldId) {
9623         _Fields fields = findByThriftId(fieldId);
9624         if (fields == null) {
9625                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9626                 }
9627         return fields;
9628       }
9629
9630       /**
9631        * Find the _Fields constant that matches name, or null if its not found.
9632        */
9633       public static _Fields findByName(String name) {
9634         return byName.get(name);
9635       }
9636
9637       private final short _thriftId;
9638       private final String _fieldName;
9639
9640       _Fields(short thriftId, String fieldName) {
9641         _thriftId = thriftId;
9642         _fieldName = fieldName;
9643       }
9644
9645       @Override
9646         public short getThriftFieldId() {
9647         return _thriftId;
9648       }
9649
9650       @Override
9651         public String getFieldName() {
9652         return _fieldName;
9653       }
9654     }
9655
9656     // isset id assignments
9657     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9658     static {
9659       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9660       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
9661           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9662       metaDataMap = Collections.unmodifiableMap(tmpMap);
9663       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_args.class, metaDataMap);
9664     }
9665
9666     public delVrf_args() {
9667     }
9668
9669     public delVrf_args(
9670       String rd)
9671     {
9672       this();
9673       this.rd = rd;
9674     }
9675
9676     /**
9677      * Performs a deep copy on <i>other</i>.
9678      */
9679     public delVrf_args(delVrf_args other) {
9680       if (other.isSetRd()) {
9681         this.rd = other.rd;
9682       }
9683     }
9684
9685     @Override
9686         public delVrf_args deepCopy() {
9687       return new delVrf_args(this);
9688     }
9689
9690     @Override
9691     public void clear() {
9692       this.rd = null;
9693     }
9694
9695     public String getRd() {
9696       return this.rd;
9697     }
9698
9699     public delVrf_args setRd(String rd) {
9700       this.rd = rd;
9701       return this;
9702     }
9703
9704     public void unsetRd() {
9705       this.rd = null;
9706     }
9707
9708     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
9709     public boolean isSetRd() {
9710       return this.rd != null;
9711     }
9712
9713     public void setRdIsSet(boolean value) {
9714       if (!value) {
9715         this.rd = null;
9716       }
9717     }
9718
9719     @Override
9720         public void setFieldValue(_Fields field, Object value) {
9721       switch (field) {
9722       case RD:
9723         if (value == null) {
9724           unsetRd();
9725         } else {
9726           setRd((String)value);
9727         }
9728         break;
9729
9730       }
9731     }
9732
9733     @Override
9734         public Object getFieldValue(_Fields field) {
9735       switch (field) {
9736       case RD:
9737         return getRd();
9738
9739       }
9740       throw new IllegalStateException();
9741     }
9742
9743     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9744     @Override
9745         public boolean isSet(_Fields field) {
9746       if (field == null) {
9747         throw new IllegalArgumentException();
9748       }
9749
9750       switch (field) {
9751       case RD:
9752         return isSetRd();
9753       }
9754       throw new IllegalStateException();
9755     }
9756
9757     @Override
9758     public boolean equals(Object that) {
9759       if (that == null) {
9760                 return false;
9761         }
9762       if (that instanceof delVrf_args) {
9763                 return this.equals((delVrf_args)that);
9764         }
9765       return false;
9766     }
9767
9768     public boolean equals(delVrf_args that) {
9769       if (that == null) {
9770                 return false;
9771         }
9772
9773       boolean this_present_rd = true && this.isSetRd();
9774       boolean that_present_rd = true && that.isSetRd();
9775       if (this_present_rd || that_present_rd) {
9776         if (!(this_present_rd && that_present_rd)) {
9777                         return false;
9778                 }
9779         if (!this.rd.equals(that.rd)) {
9780                         return false;
9781                 }
9782       }
9783
9784       return true;
9785     }
9786
9787     @Override
9788     public int hashCode() {
9789       List<Object> list = new ArrayList<Object>();
9790       boolean present_rd = true && (isSetRd());
9791       list.add(present_rd);
9792       if (present_rd)
9793         list.add(rd);
9794       return list.hashCode();
9795     }
9796
9797     @Override
9798     public int compareTo(delVrf_args other) {
9799       if (!getClass().equals(other.getClass())) {
9800         return getClass().getName().compareTo(other.getClass().getName());
9801       }
9802
9803       int lastComparison = 0;
9804
9805       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
9806       if (lastComparison != 0) {
9807         return lastComparison;
9808       }
9809       if (isSetRd()) {
9810         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
9811         if (lastComparison != 0) {
9812           return lastComparison;
9813         }
9814       }
9815       return 0;
9816     }
9817
9818     @Override
9819         public _Fields fieldForId(int fieldId) {
9820       return _Fields.findByThriftId(fieldId);
9821     }
9822
9823     @Override
9824         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9825       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9826     }
9827
9828     @Override
9829         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9830       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9831     }
9832
9833     @Override
9834     public String toString() {
9835       StringBuilder sb = new StringBuilder("delVrf_args(");
9836       boolean first = true;
9837
9838       sb.append("rd:");
9839       if (this.rd == null) {
9840         sb.append("null");
9841       } else {
9842         sb.append(this.rd);
9843       }
9844       first = false;
9845       sb.append(")");
9846       return sb.toString();
9847     }
9848
9849     public void validate() throws org.apache.thrift.TException {
9850       // check for required fields
9851       // check for sub-struct validity
9852     }
9853
9854     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9855       try {
9856         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9857       } catch (org.apache.thrift.TException te) {
9858         throw new java.io.IOException(te);
9859       }
9860     }
9861
9862     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9863       try {
9864         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9865       } catch (org.apache.thrift.TException te) {
9866         throw new java.io.IOException(te);
9867       }
9868     }
9869
9870     private static class delVrf_argsStandardSchemeFactory implements SchemeFactory {
9871       @Override
9872         public delVrf_argsStandardScheme getScheme() {
9873         return new delVrf_argsStandardScheme();
9874       }
9875     }
9876
9877     private static class delVrf_argsStandardScheme extends StandardScheme<delVrf_args> {
9878
9879       @Override
9880         public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_args struct) throws org.apache.thrift.TException {
9881         org.apache.thrift.protocol.TField schemeField;
9882         iprot.readStructBegin();
9883         while (true)
9884         {
9885           schemeField = iprot.readFieldBegin();
9886           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9887             break;
9888           }
9889           switch (schemeField.id) {
9890             case 1: // RD
9891               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9892                 struct.rd = iprot.readString();
9893                 struct.setRdIsSet(true);
9894               } else {
9895                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9896               }
9897               break;
9898             default:
9899               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9900           }
9901           iprot.readFieldEnd();
9902         }
9903         iprot.readStructEnd();
9904
9905         // check for required fields of primitive type, which can't be checked in the validate method
9906         struct.validate();
9907       }
9908
9909       @Override
9910         public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_args struct) throws org.apache.thrift.TException {
9911         struct.validate();
9912
9913         oprot.writeStructBegin(STRUCT_DESC);
9914         if (struct.rd != null) {
9915           oprot.writeFieldBegin(RD_FIELD_DESC);
9916           oprot.writeString(struct.rd);
9917           oprot.writeFieldEnd();
9918         }
9919         oprot.writeFieldStop();
9920         oprot.writeStructEnd();
9921       }
9922
9923     }
9924
9925     private static class delVrf_argsTupleSchemeFactory implements SchemeFactory {
9926       @Override
9927         public delVrf_argsTupleScheme getScheme() {
9928         return new delVrf_argsTupleScheme();
9929       }
9930     }
9931
9932     private static class delVrf_argsTupleScheme extends TupleScheme<delVrf_args> {
9933
9934       @Override
9935       public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
9936         TTupleProtocol oprot = (TTupleProtocol) prot;
9937         BitSet optionals = new BitSet();
9938         if (struct.isSetRd()) {
9939           optionals.set(0);
9940         }
9941         oprot.writeBitSet(optionals, 1);
9942         if (struct.isSetRd()) {
9943           oprot.writeString(struct.rd);
9944         }
9945       }
9946
9947       @Override
9948       public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
9949         TTupleProtocol iprot = (TTupleProtocol) prot;
9950         BitSet incoming = iprot.readBitSet(1);
9951         if (incoming.get(0)) {
9952           struct.rd = iprot.readString();
9953           struct.setRdIsSet(true);
9954         }
9955       }
9956     }
9957
9958   }
9959
9960   public static class delVrf_result implements org.apache.thrift.TBase<delVrf_result, delVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_result>   {
9961     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_result");
9962
9963     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);
9964
9965     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9966     static {
9967       schemes.put(StandardScheme.class, new delVrf_resultStandardSchemeFactory());
9968       schemes.put(TupleScheme.class, new delVrf_resultTupleSchemeFactory());
9969     }
9970
9971     public int success; // required
9972
9973     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9974     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9975       SUCCESS((short)0, "success");
9976
9977       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9978
9979       static {
9980         for (_Fields field : EnumSet.allOf(_Fields.class)) {
9981           byName.put(field.getFieldName(), field);
9982         }
9983       }
9984
9985       /**
9986        * Find the _Fields constant that matches fieldId, or null if its not found.
9987        */
9988       public static _Fields findByThriftId(int fieldId) {
9989         switch(fieldId) {
9990           case 0: // SUCCESS
9991             return SUCCESS;
9992           default:
9993             return null;
9994         }
9995       }
9996
9997       /**
9998        * Find the _Fields constant that matches fieldId, throwing an exception
9999        * if it is not found.
10000        */
10001       public static _Fields findByThriftIdOrThrow(int fieldId) {
10002         _Fields fields = findByThriftId(fieldId);
10003         if (fields == null) {
10004                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10005                 }
10006         return fields;
10007       }
10008
10009       /**
10010        * Find the _Fields constant that matches name, or null if its not found.
10011        */
10012       public static _Fields findByName(String name) {
10013         return byName.get(name);
10014       }
10015
10016       private final short _thriftId;
10017       private final String _fieldName;
10018
10019       _Fields(short thriftId, String fieldName) {
10020         _thriftId = thriftId;
10021         _fieldName = fieldName;
10022       }
10023
10024       @Override
10025         public short getThriftFieldId() {
10026         return _thriftId;
10027       }
10028
10029       @Override
10030         public String getFieldName() {
10031         return _fieldName;
10032       }
10033     }
10034
10035     // isset id assignments
10036     private static final int __SUCCESS_ISSET_ID = 0;
10037     private byte __isset_bitfield = 0;
10038     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10039     static {
10040       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10041       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
10042           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10043       metaDataMap = Collections.unmodifiableMap(tmpMap);
10044       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_result.class, metaDataMap);
10045     }
10046
10047     public delVrf_result() {
10048     }
10049
10050     public delVrf_result(
10051       int success)
10052     {
10053       this();
10054       this.success = success;
10055       setSuccessIsSet(true);
10056     }
10057
10058     /**
10059      * Performs a deep copy on <i>other</i>.
10060      */
10061     public delVrf_result(delVrf_result other) {
10062       __isset_bitfield = other.__isset_bitfield;
10063       this.success = other.success;
10064     }
10065
10066     @Override
10067         public delVrf_result deepCopy() {
10068       return new delVrf_result(this);
10069     }
10070
10071     @Override
10072     public void clear() {
10073       setSuccessIsSet(false);
10074       this.success = 0;
10075     }
10076
10077     public int getSuccess() {
10078       return this.success;
10079     }
10080
10081     public delVrf_result setSuccess(int success) {
10082       this.success = success;
10083       setSuccessIsSet(true);
10084       return this;
10085     }
10086
10087     public void unsetSuccess() {
10088       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10089     }
10090
10091     /** Returns true if field success is set (has been assigned a value) and false otherwise */
10092     public boolean isSetSuccess() {
10093       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10094     }
10095
10096     public void setSuccessIsSet(boolean value) {
10097       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
10098     }
10099
10100     @Override
10101         public void setFieldValue(_Fields field, Object value) {
10102       switch (field) {
10103       case SUCCESS:
10104         if (value == null) {
10105           unsetSuccess();
10106         } else {
10107           setSuccess((Integer)value);
10108         }
10109         break;
10110
10111       }
10112     }
10113
10114     @Override
10115         public Object getFieldValue(_Fields field) {
10116       switch (field) {
10117       case SUCCESS:
10118         return Integer.valueOf(getSuccess());
10119
10120       }
10121       throw new IllegalStateException();
10122     }
10123
10124     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10125     @Override
10126         public boolean isSet(_Fields field) {
10127       if (field == null) {
10128         throw new IllegalArgumentException();
10129       }
10130
10131       switch (field) {
10132       case SUCCESS:
10133         return isSetSuccess();
10134       }
10135       throw new IllegalStateException();
10136     }
10137
10138     @Override
10139     public boolean equals(Object that) {
10140       if (that == null) {
10141                 return false;
10142         }
10143       if (that instanceof delVrf_result) {
10144                 return this.equals((delVrf_result)that);
10145         }
10146       return false;
10147     }
10148
10149     public boolean equals(delVrf_result that) {
10150       if (that == null) {
10151                 return false;
10152         }
10153
10154       boolean this_present_success = true;
10155       boolean that_present_success = true;
10156       if (this_present_success || that_present_success) {
10157         if (!(this_present_success && that_present_success)) {
10158                         return false;
10159                 }
10160         if (this.success != that.success) {
10161                         return false;
10162                 }
10163       }
10164
10165       return true;
10166     }
10167
10168     @Override
10169     public int hashCode() {
10170       List<Object> list = new ArrayList<Object>();
10171
10172       boolean present_success = true;
10173       list.add(present_success);
10174       if (present_success)
10175         list.add(success);
10176       return list.hashCode();
10177     }
10178
10179     @Override
10180     public int compareTo(delVrf_result other) {
10181       if (!getClass().equals(other.getClass())) {
10182         return getClass().getName().compareTo(other.getClass().getName());
10183       }
10184
10185       int lastComparison = 0;
10186
10187       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
10188       if (lastComparison != 0) {
10189         return lastComparison;
10190       }
10191       if (isSetSuccess()) {
10192         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
10193         if (lastComparison != 0) {
10194           return lastComparison;
10195         }
10196       }
10197       return 0;
10198     }
10199
10200     @Override
10201         public _Fields fieldForId(int fieldId) {
10202       return _Fields.findByThriftId(fieldId);
10203     }
10204
10205     @Override
10206         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10207       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10208     }
10209
10210     @Override
10211         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10212       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10213       }
10214
10215     @Override
10216     public String toString() {
10217       StringBuilder sb = new StringBuilder("delVrf_result(");
10218       boolean first = true;
10219
10220       sb.append("success:");
10221       sb.append(this.success);
10222       first = false;
10223       sb.append(")");
10224       return sb.toString();
10225     }
10226
10227     public void validate() throws org.apache.thrift.TException {
10228       // check for required fields
10229       // check for sub-struct validity
10230     }
10231
10232     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10233       try {
10234         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10235       } catch (org.apache.thrift.TException te) {
10236         throw new java.io.IOException(te);
10237       }
10238     }
10239
10240     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10241       try {
10242         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10243         __isset_bitfield = 0;
10244         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10245       } catch (org.apache.thrift.TException te) {
10246         throw new java.io.IOException(te);
10247       }
10248     }
10249
10250     private static class delVrf_resultStandardSchemeFactory implements SchemeFactory {
10251       @Override
10252         public delVrf_resultStandardScheme getScheme() {
10253         return new delVrf_resultStandardScheme();
10254       }
10255     }
10256
10257     private static class delVrf_resultStandardScheme extends StandardScheme<delVrf_result> {
10258
10259       @Override
10260         public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_result struct) throws org.apache.thrift.TException {
10261         org.apache.thrift.protocol.TField schemeField;
10262         iprot.readStructBegin();
10263         while (true)
10264         {
10265           schemeField = iprot.readFieldBegin();
10266           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10267             break;
10268           }
10269           switch (schemeField.id) {
10270             case 0: // SUCCESS
10271               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10272                 struct.success = iprot.readI32();
10273                 struct.setSuccessIsSet(true);
10274               } else {
10275                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10276               }
10277               break;
10278             default:
10279               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10280           }
10281           iprot.readFieldEnd();
10282         }
10283         iprot.readStructEnd();
10284
10285         // check for required fields of primitive type, which can't be checked in the validate method
10286         struct.validate();
10287       }
10288
10289       @Override
10290         public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_result struct) throws org.apache.thrift.TException {
10291         struct.validate();
10292
10293         oprot.writeStructBegin(STRUCT_DESC);
10294         if (struct.isSetSuccess()) {
10295           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10296           oprot.writeI32(struct.success);
10297           oprot.writeFieldEnd();
10298         }
10299         oprot.writeFieldStop();
10300         oprot.writeStructEnd();
10301       }
10302
10303     }
10304
10305     private static class delVrf_resultTupleSchemeFactory implements SchemeFactory {
10306       @Override
10307         public delVrf_resultTupleScheme getScheme() {
10308         return new delVrf_resultTupleScheme();
10309       }
10310     }
10311
10312     private static class delVrf_resultTupleScheme extends TupleScheme<delVrf_result> {
10313
10314       @Override
10315       public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
10316         TTupleProtocol oprot = (TTupleProtocol) prot;
10317         BitSet optionals = new BitSet();
10318         if (struct.isSetSuccess()) {
10319           optionals.set(0);
10320         }
10321         oprot.writeBitSet(optionals, 1);
10322         if (struct.isSetSuccess()) {
10323           oprot.writeI32(struct.success);
10324         }
10325       }
10326
10327       @Override
10328       public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
10329         TTupleProtocol iprot = (TTupleProtocol) prot;
10330         BitSet incoming = iprot.readBitSet(1);
10331         if (incoming.get(0)) {
10332           struct.success = iprot.readI32();
10333           struct.setSuccessIsSet(true);
10334         }
10335       }
10336     }
10337
10338   }
10339
10340   public static class pushRoute_args implements org.apache.thrift.TBase<pushRoute_args, pushRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_args>   {
10341     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_args");
10342
10343     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);
10344     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);
10345     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);
10346     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);
10347     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);
10348     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);
10349     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);
10350     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);
10351     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);
10352     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);
10353     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);
10354     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)12);
10355
10356     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10357     static {
10358       schemes.put(StandardScheme.class, new pushRoute_argsStandardSchemeFactory());
10359       schemes.put(TupleScheme.class, new pushRoute_argsTupleSchemeFactory());
10360     }
10361
10362     /**
10363      *
10364      * @see protocol_type
10365      */
10366     public protocol_type p_type; // required
10367     public String prefix; // required
10368     public String nexthop; // required
10369     public String rd; // required
10370     public int ethtag; // required
10371     public String esi; // required
10372     public String macaddress; // required
10373     public int l3label; // required
10374     public int l2label; // required
10375     /**
10376      *
10377      * @see encap_type
10378      */
10379     public encap_type enc_type; // required
10380     public String routermac; // required
10381     /**
10382      *
10383      * @see af_afi
10384      */
10385     public af_afi afi; // required
10386
10387     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10388     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10389       /**
10390        *
10391        * @see protocol_type
10392        */
10393       P_TYPE((short)1, "p_type"),
10394       PREFIX((short)2, "prefix"),
10395       NEXTHOP((short)3, "nexthop"),
10396       RD((short)4, "rd"),
10397       ETHTAG((short)5, "ethtag"),
10398       ESI((short)6, "esi"),
10399       MACADDRESS((short)7, "macaddress"),
10400       L3LABEL((short)8, "l3label"),
10401       L2LABEL((short)9, "l2label"),
10402       /**
10403        *
10404        * @see encap_type
10405        */
10406       ENC_TYPE((short)10, "enc_type"),
10407       ROUTERMAC((short)11, "routermac"),
10408       /**
10409        *
10410        * @see af_afi
10411        */
10412       AFI((short)12, "afi");
10413
10414       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10415
10416       static {
10417         for (_Fields field : EnumSet.allOf(_Fields.class)) {
10418           byName.put(field.getFieldName(), field);
10419         }
10420       }
10421
10422       /**
10423        * Find the _Fields constant that matches fieldId, or null if its not found.
10424        */
10425       public static _Fields findByThriftId(int fieldId) {
10426         switch(fieldId) {
10427           case 1: // P_TYPE
10428             return P_TYPE;
10429           case 2: // PREFIX
10430             return PREFIX;
10431           case 3: // NEXTHOP
10432             return NEXTHOP;
10433           case 4: // RD
10434             return RD;
10435           case 5: // ETHTAG
10436             return ETHTAG;
10437           case 6: // ESI
10438             return ESI;
10439           case 7: // MACADDRESS
10440             return MACADDRESS;
10441           case 8: // L3LABEL
10442             return L3LABEL;
10443           case 9: // L2LABEL
10444             return L2LABEL;
10445           case 10: // ENC_TYPE
10446             return ENC_TYPE;
10447           case 11: // ROUTERMAC
10448             return ROUTERMAC;
10449           case 12: // AFI
10450             return AFI;
10451           default:
10452             return null;
10453         }
10454       }
10455
10456       /**
10457        * Find the _Fields constant that matches fieldId, throwing an exception
10458        * if it is not found.
10459        */
10460       public static _Fields findByThriftIdOrThrow(int fieldId) {
10461         _Fields fields = findByThriftId(fieldId);
10462         if (fields == null) {
10463                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10464                 }
10465         return fields;
10466       }
10467
10468       /**
10469        * Find the _Fields constant that matches name, or null if its not found.
10470        */
10471       public static _Fields findByName(String name) {
10472         return byName.get(name);
10473       }
10474
10475       private final short _thriftId;
10476       private final String _fieldName;
10477
10478       _Fields(short thriftId, String fieldName) {
10479         _thriftId = thriftId;
10480         _fieldName = fieldName;
10481       }
10482
10483       @Override
10484         public short getThriftFieldId() {
10485         return _thriftId;
10486       }
10487
10488       @Override
10489         public String getFieldName() {
10490         return _fieldName;
10491       }
10492     }
10493
10494     // isset id assignments
10495     private static final int __ETHTAG_ISSET_ID = 0;
10496     private static final int __L3LABEL_ISSET_ID = 1;
10497     private static final int __L2LABEL_ISSET_ID = 2;
10498     private byte __isset_bitfield = 0;
10499     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10500     static {
10501       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10502       tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
10503           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
10504       tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
10505           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10506       tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT,
10507           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10508       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
10509           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10510       tmpMap.put(_Fields.ETHTAG, new org.apache.thrift.meta_data.FieldMetaData("ethtag", org.apache.thrift.TFieldRequirementType.DEFAULT,
10511           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10512       tmpMap.put(_Fields.ESI, new org.apache.thrift.meta_data.FieldMetaData("esi", org.apache.thrift.TFieldRequirementType.DEFAULT,
10513           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10514       tmpMap.put(_Fields.MACADDRESS, new org.apache.thrift.meta_data.FieldMetaData("macaddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
10515           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10516       tmpMap.put(_Fields.L3LABEL, new org.apache.thrift.meta_data.FieldMetaData("l3label", org.apache.thrift.TFieldRequirementType.DEFAULT,
10517           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10518       tmpMap.put(_Fields.L2LABEL, new org.apache.thrift.meta_data.FieldMetaData("l2label", org.apache.thrift.TFieldRequirementType.DEFAULT,
10519           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10520       tmpMap.put(_Fields.ENC_TYPE, new org.apache.thrift.meta_data.FieldMetaData("enc_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
10521           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, encap_type.class)));
10522       tmpMap.put(_Fields.ROUTERMAC, new org.apache.thrift.meta_data.FieldMetaData("routermac", org.apache.thrift.TFieldRequirementType.DEFAULT,
10523           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10524       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
10525           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
10526       metaDataMap = Collections.unmodifiableMap(tmpMap);
10527       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_args.class, metaDataMap);
10528     }
10529
10530     public pushRoute_args() {
10531     }
10532
10533     public pushRoute_args(
10534       protocol_type p_type,
10535       String prefix,
10536       String nexthop,
10537       String rd,
10538       int ethtag,
10539       String esi,
10540       String macaddress,
10541       int l3label,
10542       int l2label,
10543       encap_type enc_type,
10544       String routermac,
10545       af_afi afi)
10546     {
10547       this();
10548       this.p_type = p_type;
10549       this.prefix = prefix;
10550       this.nexthop = nexthop;
10551       this.rd = rd;
10552       this.ethtag = ethtag;
10553       setEthtagIsSet(true);
10554       this.esi = esi;
10555       this.macaddress = macaddress;
10556       this.l3label = l3label;
10557       setL3labelIsSet(true);
10558       this.l2label = l2label;
10559       setL2labelIsSet(true);
10560       this.enc_type = enc_type;
10561       this.routermac = routermac;
10562       this.afi = afi;
10563     }
10564
10565     /**
10566      * Performs a deep copy on <i>other</i>.
10567      */
10568     public pushRoute_args(pushRoute_args other) {
10569       __isset_bitfield = other.__isset_bitfield;
10570       if (other.isSetP_type()) {
10571         this.p_type = other.p_type;
10572       }
10573       if (other.isSetPrefix()) {
10574         this.prefix = other.prefix;
10575       }
10576       if (other.isSetNexthop()) {
10577         this.nexthop = other.nexthop;
10578       }
10579       if (other.isSetRd()) {
10580         this.rd = other.rd;
10581       }
10582       this.ethtag = other.ethtag;
10583       if (other.isSetEsi()) {
10584         this.esi = other.esi;
10585       }
10586       if (other.isSetMacaddress()) {
10587         this.macaddress = other.macaddress;
10588       }
10589       this.l3label = other.l3label;
10590       this.l2label = other.l2label;
10591       if (other.isSetEnc_type()) {
10592         this.enc_type = other.enc_type;
10593       }
10594       if (other.isSetRoutermac()) {
10595         this.routermac = other.routermac;
10596       }
10597       if (other.isSetAfi()) {
10598         this.afi = other.afi;
10599       }
10600     }
10601
10602     @Override
10603         public pushRoute_args deepCopy() {
10604       return new pushRoute_args(this);
10605     }
10606
10607     @Override
10608     public void clear() {
10609       this.p_type = null;
10610       this.prefix = null;
10611       this.nexthop = null;
10612       this.rd = null;
10613       setEthtagIsSet(false);
10614       this.ethtag = 0;
10615       this.esi = null;
10616       this.macaddress = null;
10617       setL3labelIsSet(false);
10618       this.l3label = 0;
10619       setL2labelIsSet(false);
10620       this.l2label = 0;
10621       this.enc_type = null;
10622       this.routermac = null;
10623       this.afi = null;
10624     }
10625
10626     /**
10627      *
10628      * @see protocol_type
10629      */
10630     public protocol_type getP_type() {
10631       return this.p_type;
10632     }
10633
10634     /**
10635      *
10636      * @see protocol_type
10637      */
10638     public pushRoute_args setP_type(protocol_type p_type) {
10639       this.p_type = p_type;
10640       return this;
10641     }
10642
10643     public void unsetP_type() {
10644       this.p_type = null;
10645     }
10646
10647     /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
10648     public boolean isSetP_type() {
10649       return this.p_type != null;
10650     }
10651
10652     public void setP_typeIsSet(boolean value) {
10653       if (!value) {
10654         this.p_type = null;
10655       }
10656     }
10657
10658     public String getPrefix() {
10659       return this.prefix;
10660     }
10661
10662     public pushRoute_args setPrefix(String prefix) {
10663       this.prefix = prefix;
10664       return this;
10665     }
10666
10667     public void unsetPrefix() {
10668       this.prefix = null;
10669     }
10670
10671     /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
10672     public boolean isSetPrefix() {
10673       return this.prefix != null;
10674     }
10675
10676     public void setPrefixIsSet(boolean value) {
10677       if (!value) {
10678         this.prefix = null;
10679       }
10680     }
10681
10682     public String getNexthop() {
10683       return this.nexthop;
10684     }
10685
10686     public pushRoute_args setNexthop(String nexthop) {
10687       this.nexthop = nexthop;
10688       return this;
10689     }
10690
10691     public void unsetNexthop() {
10692       this.nexthop = null;
10693     }
10694
10695     /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
10696     public boolean isSetNexthop() {
10697       return this.nexthop != null;
10698     }
10699
10700     public void setNexthopIsSet(boolean value) {
10701       if (!value) {
10702         this.nexthop = null;
10703       }
10704     }
10705
10706     public String getRd() {
10707       return this.rd;
10708     }
10709
10710     public pushRoute_args setRd(String rd) {
10711       this.rd = rd;
10712       return this;
10713     }
10714
10715     public void unsetRd() {
10716       this.rd = null;
10717     }
10718
10719     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
10720     public boolean isSetRd() {
10721       return this.rd != null;
10722     }
10723
10724     public void setRdIsSet(boolean value) {
10725       if (!value) {
10726         this.rd = null;
10727       }
10728     }
10729
10730     public int getEthtag() {
10731       return this.ethtag;
10732     }
10733
10734     public pushRoute_args setEthtag(int ethtag) {
10735       this.ethtag = ethtag;
10736       setEthtagIsSet(true);
10737       return this;
10738     }
10739
10740     public void unsetEthtag() {
10741       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ETHTAG_ISSET_ID);
10742     }
10743
10744     /** Returns true if field ethtag is set (has been assigned a value) and false otherwise */
10745     public boolean isSetEthtag() {
10746       return EncodingUtils.testBit(__isset_bitfield, __ETHTAG_ISSET_ID);
10747     }
10748
10749     public void setEthtagIsSet(boolean value) {
10750       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ETHTAG_ISSET_ID, value);
10751     }
10752
10753     public String getEsi() {
10754       return this.esi;
10755     }
10756
10757     public pushRoute_args setEsi(String esi) {
10758       this.esi = esi;
10759       return this;
10760     }
10761
10762     public void unsetEsi() {
10763       this.esi = null;
10764     }
10765
10766     /** Returns true if field esi is set (has been assigned a value) and false otherwise */
10767     public boolean isSetEsi() {
10768       return this.esi != null;
10769     }
10770
10771     public void setEsiIsSet(boolean value) {
10772       if (!value) {
10773         this.esi = null;
10774       }
10775     }
10776
10777     public String getMacaddress() {
10778       return this.macaddress;
10779     }
10780
10781     public pushRoute_args setMacaddress(String macaddress) {
10782       this.macaddress = macaddress;
10783       return this;
10784     }
10785
10786     public void unsetMacaddress() {
10787       this.macaddress = null;
10788     }
10789
10790     /** Returns true if field macaddress is set (has been assigned a value) and false otherwise */
10791     public boolean isSetMacaddress() {
10792       return this.macaddress != null;
10793     }
10794
10795     public void setMacaddressIsSet(boolean value) {
10796       if (!value) {
10797         this.macaddress = null;
10798       }
10799     }
10800
10801     public int getL3label() {
10802       return this.l3label;
10803     }
10804
10805     public pushRoute_args setL3label(int l3label) {
10806       this.l3label = l3label;
10807       setL3labelIsSet(true);
10808       return this;
10809     }
10810
10811     public void unsetL3label() {
10812       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L3LABEL_ISSET_ID);
10813     }
10814
10815     /** Returns true if field l3label is set (has been assigned a value) and false otherwise */
10816     public boolean isSetL3label() {
10817       return EncodingUtils.testBit(__isset_bitfield, __L3LABEL_ISSET_ID);
10818     }
10819
10820     public void setL3labelIsSet(boolean value) {
10821       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L3LABEL_ISSET_ID, value);
10822     }
10823
10824     public int getL2label() {
10825       return this.l2label;
10826     }
10827
10828     public pushRoute_args setL2label(int l2label) {
10829       this.l2label = l2label;
10830       setL2labelIsSet(true);
10831       return this;
10832     }
10833
10834     public void unsetL2label() {
10835       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L2LABEL_ISSET_ID);
10836     }
10837
10838     /** Returns true if field l2label is set (has been assigned a value) and false otherwise */
10839     public boolean isSetL2label() {
10840       return EncodingUtils.testBit(__isset_bitfield, __L2LABEL_ISSET_ID);
10841     }
10842
10843     public void setL2labelIsSet(boolean value) {
10844       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L2LABEL_ISSET_ID, value);
10845     }
10846
10847     /**
10848      *
10849      * @see encap_type
10850      */
10851     public encap_type getEnc_type() {
10852       return this.enc_type;
10853     }
10854
10855     /**
10856      *
10857      * @see encap_type
10858      */
10859     public pushRoute_args setEnc_type(encap_type enc_type) {
10860       this.enc_type = enc_type;
10861       return this;
10862     }
10863
10864     public void unsetEnc_type() {
10865       this.enc_type = null;
10866     }
10867
10868     /** Returns true if field enc_type is set (has been assigned a value) and false otherwise */
10869     public boolean isSetEnc_type() {
10870       return this.enc_type != null;
10871     }
10872
10873     public void setEnc_typeIsSet(boolean value) {
10874       if (!value) {
10875         this.enc_type = null;
10876       }
10877     }
10878
10879     public String getRoutermac() {
10880       return this.routermac;
10881     }
10882
10883     public pushRoute_args setRoutermac(String routermac) {
10884       this.routermac = routermac;
10885       return this;
10886     }
10887
10888     public void unsetRoutermac() {
10889       this.routermac = null;
10890     }
10891
10892     /** Returns true if field routermac is set (has been assigned a value) and false otherwise */
10893     public boolean isSetRoutermac() {
10894       return this.routermac != null;
10895     }
10896
10897     public void setRoutermacIsSet(boolean value) {
10898       if (!value) {
10899         this.routermac = null;
10900       }
10901     }
10902
10903     /**
10904      *
10905      * @see af_afi
10906      */
10907     public af_afi getAfi() {
10908       return this.afi;
10909     }
10910
10911     /**
10912      *
10913      * @see af_afi
10914      */
10915     public pushRoute_args setAfi(af_afi afi) {
10916       this.afi = afi;
10917       return this;
10918     }
10919
10920     public void unsetAfi() {
10921       this.afi = null;
10922     }
10923
10924     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
10925     public boolean isSetAfi() {
10926       return this.afi != null;
10927     }
10928
10929     public void setAfiIsSet(boolean value) {
10930       if (!value) {
10931         this.afi = null;
10932       }
10933     }
10934
10935     @Override
10936         public void setFieldValue(_Fields field, Object value) {
10937       switch (field) {
10938       case P_TYPE:
10939         if (value == null) {
10940           unsetP_type();
10941         } else {
10942           setP_type((protocol_type)value);
10943         }
10944         break;
10945
10946       case PREFIX:
10947         if (value == null) {
10948           unsetPrefix();
10949         } else {
10950           setPrefix((String)value);
10951         }
10952         break;
10953
10954       case NEXTHOP:
10955         if (value == null) {
10956           unsetNexthop();
10957         } else {
10958           setNexthop((String)value);
10959         }
10960         break;
10961
10962       case RD:
10963         if (value == null) {
10964           unsetRd();
10965         } else {
10966           setRd((String)value);
10967         }
10968         break;
10969
10970       case ETHTAG:
10971         if (value == null) {
10972           unsetEthtag();
10973         } else {
10974           setEthtag((Integer)value);
10975         }
10976         break;
10977
10978       case ESI:
10979         if (value == null) {
10980           unsetEsi();
10981         } else {
10982           setEsi((String)value);
10983         }
10984         break;
10985
10986       case MACADDRESS:
10987         if (value == null) {
10988           unsetMacaddress();
10989         } else {
10990           setMacaddress((String)value);
10991         }
10992         break;
10993
10994       case L3LABEL:
10995         if (value == null) {
10996           unsetL3label();
10997         } else {
10998           setL3label((Integer)value);
10999         }
11000         break;
11001
11002       case L2LABEL:
11003         if (value == null) {
11004           unsetL2label();
11005         } else {
11006           setL2label((Integer)value);
11007         }
11008         break;
11009
11010       case ENC_TYPE:
11011         if (value == null) {
11012           unsetEnc_type();
11013         } else {
11014           setEnc_type((encap_type)value);
11015         }
11016         break;
11017
11018       case ROUTERMAC:
11019         if (value == null) {
11020           unsetRoutermac();
11021         } else {
11022           setRoutermac((String)value);
11023         }
11024         break;
11025
11026       case AFI:
11027         if (value == null) {
11028           unsetAfi();
11029         } else {
11030           setAfi((af_afi)value);
11031         }
11032         break;
11033
11034       }
11035     }
11036
11037     @Override
11038         public Object getFieldValue(_Fields field) {
11039       switch (field) {
11040       case P_TYPE:
11041         return getP_type();
11042
11043       case PREFIX:
11044         return getPrefix();
11045
11046       case NEXTHOP:
11047         return getNexthop();
11048
11049       case RD:
11050         return getRd();
11051
11052       case ETHTAG:
11053         return Integer.valueOf(getEthtag());
11054
11055       case ESI:
11056         return getEsi();
11057
11058       case MACADDRESS:
11059         return getMacaddress();
11060
11061       case L3LABEL:
11062         return Integer.valueOf(getL3label());
11063
11064       case L2LABEL:
11065         return Integer.valueOf(getL2label());
11066
11067       case ENC_TYPE:
11068         return getEnc_type();
11069
11070       case ROUTERMAC:
11071         return getRoutermac();
11072
11073       case AFI:
11074         return getAfi();
11075
11076       }
11077       throw new IllegalStateException();
11078     }
11079
11080     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11081     @Override
11082         public boolean isSet(_Fields field) {
11083       if (field == null) {
11084         throw new IllegalArgumentException();
11085       }
11086
11087       switch (field) {
11088       case P_TYPE:
11089         return isSetP_type();
11090       case PREFIX:
11091         return isSetPrefix();
11092       case NEXTHOP:
11093         return isSetNexthop();
11094       case RD:
11095         return isSetRd();
11096       case ETHTAG:
11097         return isSetEthtag();
11098       case ESI:
11099         return isSetEsi();
11100       case MACADDRESS:
11101         return isSetMacaddress();
11102       case L3LABEL:
11103         return isSetL3label();
11104       case L2LABEL:
11105         return isSetL2label();
11106       case ENC_TYPE:
11107         return isSetEnc_type();
11108       case ROUTERMAC:
11109         return isSetRoutermac();
11110       case AFI:
11111         return isSetAfi();
11112       }
11113       throw new IllegalStateException();
11114     }
11115
11116     @Override
11117     public boolean equals(Object that) {
11118       if (that == null) {
11119                 return false;
11120         }
11121       if (that instanceof pushRoute_args) {
11122                 return this.equals((pushRoute_args)that);
11123         }
11124       return false;
11125     }
11126
11127     public boolean equals(pushRoute_args that) {
11128       if (that == null) {
11129                 return false;
11130         }
11131
11132       boolean this_present_p_type = true && this.isSetP_type();
11133       boolean that_present_p_type = true && that.isSetP_type();
11134       if (this_present_p_type || that_present_p_type) {
11135         if (!(this_present_p_type && that_present_p_type)) {
11136                         return false;
11137                 }
11138         if (!this.p_type.equals(that.p_type)) {
11139                         return false;
11140                 }
11141       }
11142
11143       boolean this_present_prefix = true && this.isSetPrefix();
11144       boolean that_present_prefix = true && that.isSetPrefix();
11145       if (this_present_prefix || that_present_prefix) {
11146         if (!(this_present_prefix && that_present_prefix)) {
11147                         return false;
11148                 }
11149         if (!this.prefix.equals(that.prefix)) {
11150                         return false;
11151                 }
11152       }
11153
11154       boolean this_present_nexthop = true && this.isSetNexthop();
11155       boolean that_present_nexthop = true && that.isSetNexthop();
11156       if (this_present_nexthop || that_present_nexthop) {
11157         if (!(this_present_nexthop && that_present_nexthop)) {
11158                         return false;
11159                 }
11160         if (!this.nexthop.equals(that.nexthop)) {
11161                         return false;
11162                 }
11163       }
11164
11165       boolean this_present_rd = true && this.isSetRd();
11166       boolean that_present_rd = true && that.isSetRd();
11167       if (this_present_rd || that_present_rd) {
11168         if (!(this_present_rd && that_present_rd)) {
11169                         return false;
11170                 }
11171         if (!this.rd.equals(that.rd)) {
11172                         return false;
11173                 }
11174       }
11175
11176       boolean this_present_ethtag = true;
11177       boolean that_present_ethtag = true;
11178       if (this_present_ethtag || that_present_ethtag) {
11179         if (!(this_present_ethtag && that_present_ethtag)) {
11180                         return false;
11181                 }
11182         if (this.ethtag != that.ethtag) {
11183                         return false;
11184                 }
11185       }
11186
11187       boolean this_present_esi = true && this.isSetEsi();
11188       boolean that_present_esi = true && that.isSetEsi();
11189       if (this_present_esi || that_present_esi) {
11190         if (!(this_present_esi && that_present_esi)) {
11191                         return false;
11192                 }
11193         if (!this.esi.equals(that.esi)) {
11194                         return false;
11195                 }
11196       }
11197
11198       boolean this_present_macaddress = true && this.isSetMacaddress();
11199       boolean that_present_macaddress = true && that.isSetMacaddress();
11200       if (this_present_macaddress || that_present_macaddress) {
11201         if (!(this_present_macaddress && that_present_macaddress)) {
11202                         return false;
11203                 }
11204         if (!this.macaddress.equals(that.macaddress)) {
11205                         return false;
11206                 }
11207       }
11208
11209       boolean this_present_l3label = true;
11210       boolean that_present_l3label = true;
11211       if (this_present_l3label || that_present_l3label) {
11212         if (!(this_present_l3label && that_present_l3label)) {
11213                         return false;
11214                 }
11215         if (this.l3label != that.l3label) {
11216                         return false;
11217                 }
11218       }
11219
11220       boolean this_present_l2label = true;
11221       boolean that_present_l2label = true;
11222       if (this_present_l2label || that_present_l2label) {
11223         if (!(this_present_l2label && that_present_l2label)) {
11224                         return false;
11225                 }
11226         if (this.l2label != that.l2label) {
11227                         return false;
11228                 }
11229       }
11230
11231       boolean this_present_enc_type = true && this.isSetEnc_type();
11232       boolean that_present_enc_type = true && that.isSetEnc_type();
11233       if (this_present_enc_type || that_present_enc_type) {
11234         if (!(this_present_enc_type && that_present_enc_type)) {
11235                         return false;
11236                 }
11237         if (!this.enc_type.equals(that.enc_type)) {
11238                         return false;
11239                 }
11240       }
11241
11242       boolean this_present_routermac = true && this.isSetRoutermac();
11243       boolean that_present_routermac = true && that.isSetRoutermac();
11244       if (this_present_routermac || that_present_routermac) {
11245         if (!(this_present_routermac && that_present_routermac)) {
11246                         return false;
11247                 }
11248         if (!this.routermac.equals(that.routermac)) {
11249                         return false;
11250                 }
11251       }
11252
11253       boolean this_present_afi = true && this.isSetAfi();
11254       boolean that_present_afi = true && that.isSetAfi();
11255       if (this_present_afi || that_present_afi) {
11256         if (!(this_present_afi && that_present_afi)) {
11257                         return false;
11258                 }
11259         if (!this.afi.equals(that.afi)) {
11260                         return false;
11261                 }
11262       }
11263
11264       return true;
11265     }
11266
11267     @Override
11268     public int hashCode() {
11269       List<Object> list = new ArrayList<Object>();
11270       boolean present_p_type = true && (isSetP_type());
11271       list.add(present_p_type);
11272       if (present_p_type)
11273         list.add(p_type.getValue());
11274       boolean present_prefix = true && (isSetPrefix());
11275       list.add(present_prefix);
11276       if (present_prefix)
11277         list.add(prefix);
11278       boolean present_nexthop = true && (isSetNexthop());
11279       list.add(present_nexthop);
11280       if (present_nexthop)
11281         list.add(nexthop);
11282       boolean present_rd = true && (isSetRd());
11283       list.add(present_rd);
11284       if (present_rd)
11285         list.add(rd);
11286       boolean present_ethtag = true;
11287       list.add(present_ethtag);
11288       if (present_ethtag)
11289         list.add(ethtag);
11290       boolean present_esi = true && (isSetEsi());
11291       list.add(present_esi);
11292       if (present_esi)
11293         list.add(esi);
11294       boolean present_macaddress = true && (isSetMacaddress());
11295       list.add(present_macaddress);
11296       if (present_macaddress)
11297         list.add(macaddress);
11298       boolean present_l3label = true;
11299       list.add(present_l3label);
11300       if (present_l3label)
11301         list.add(l3label);
11302       boolean present_l2label = true;
11303       list.add(present_l2label);
11304       if (present_l2label)
11305         list.add(l2label);
11306       boolean present_enc_type = true && (isSetEnc_type());
11307       list.add(present_enc_type);
11308       if (present_enc_type)
11309         list.add(enc_type.getValue());
11310       boolean present_routermac = true && (isSetRoutermac());
11311       list.add(present_routermac);
11312       if (present_routermac)
11313         list.add(routermac);
11314       boolean present_afi = true && (isSetAfi());
11315       list.add(present_afi);
11316       if (present_afi)
11317         list.add(afi.getValue());
11318       return list.hashCode();
11319     }
11320
11321     @Override
11322     public int compareTo(pushRoute_args other) {
11323       if (!getClass().equals(other.getClass())) {
11324         return getClass().getName().compareTo(other.getClass().getName());
11325       }
11326
11327       int lastComparison = 0;
11328
11329       lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
11330       if (lastComparison != 0) {
11331         return lastComparison;
11332       }
11333       if (isSetP_type()) {
11334         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
11335         if (lastComparison != 0) {
11336           return lastComparison;
11337         }
11338       }
11339       lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
11340       if (lastComparison != 0) {
11341         return lastComparison;
11342       }
11343       if (isSetPrefix()) {
11344         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
11345         if (lastComparison != 0) {
11346           return lastComparison;
11347         }
11348       }
11349       lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
11350       if (lastComparison != 0) {
11351         return lastComparison;
11352       }
11353       if (isSetNexthop()) {
11354         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
11355         if (lastComparison != 0) {
11356           return lastComparison;
11357         }
11358       }
11359       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
11360       if (lastComparison != 0) {
11361         return lastComparison;
11362       }
11363       if (isSetRd()) {
11364         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
11365         if (lastComparison != 0) {
11366           return lastComparison;
11367         }
11368       }
11369       lastComparison = Boolean.valueOf(isSetEthtag()).compareTo(other.isSetEthtag());
11370       if (lastComparison != 0) {
11371         return lastComparison;
11372       }
11373       if (isSetEthtag()) {
11374         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ethtag, other.ethtag);
11375         if (lastComparison != 0) {
11376           return lastComparison;
11377         }
11378       }
11379       lastComparison = Boolean.valueOf(isSetEsi()).compareTo(other.isSetEsi());
11380       if (lastComparison != 0) {
11381         return lastComparison;
11382       }
11383       if (isSetEsi()) {
11384         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.esi, other.esi);
11385         if (lastComparison != 0) {
11386           return lastComparison;
11387         }
11388       }
11389       lastComparison = Boolean.valueOf(isSetMacaddress()).compareTo(other.isSetMacaddress());
11390       if (lastComparison != 0) {
11391         return lastComparison;
11392       }
11393       if (isSetMacaddress()) {
11394         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.macaddress, other.macaddress);
11395         if (lastComparison != 0) {
11396           return lastComparison;
11397         }
11398       }
11399       lastComparison = Boolean.valueOf(isSetL3label()).compareTo(other.isSetL3label());
11400       if (lastComparison != 0) {
11401         return lastComparison;
11402       }
11403       if (isSetL3label()) {
11404         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l3label, other.l3label);
11405         if (lastComparison != 0) {
11406           return lastComparison;
11407         }
11408       }
11409       lastComparison = Boolean.valueOf(isSetL2label()).compareTo(other.isSetL2label());
11410       if (lastComparison != 0) {
11411         return lastComparison;
11412       }
11413       if (isSetL2label()) {
11414         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l2label, other.l2label);
11415         if (lastComparison != 0) {
11416           return lastComparison;
11417         }
11418       }
11419       lastComparison = Boolean.valueOf(isSetEnc_type()).compareTo(other.isSetEnc_type());
11420       if (lastComparison != 0) {
11421         return lastComparison;
11422       }
11423       if (isSetEnc_type()) {
11424         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.enc_type, other.enc_type);
11425         if (lastComparison != 0) {
11426           return lastComparison;
11427         }
11428       }
11429       lastComparison = Boolean.valueOf(isSetRoutermac()).compareTo(other.isSetRoutermac());
11430       if (lastComparison != 0) {
11431         return lastComparison;
11432       }
11433       if (isSetRoutermac()) {
11434         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routermac, other.routermac);
11435         if (lastComparison != 0) {
11436           return lastComparison;
11437         }
11438       }
11439       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
11440       if (lastComparison != 0) {
11441         return lastComparison;
11442       }
11443       if (isSetAfi()) {
11444         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
11445         if (lastComparison != 0) {
11446           return lastComparison;
11447         }
11448       }
11449       return 0;
11450     }
11451
11452     @Override
11453         public _Fields fieldForId(int fieldId) {
11454       return _Fields.findByThriftId(fieldId);
11455     }
11456
11457     @Override
11458         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11459       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11460     }
11461
11462     @Override
11463         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11464       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11465     }
11466
11467     @Override
11468     public String toString() {
11469       StringBuilder sb = new StringBuilder("pushRoute_args(");
11470       boolean first = true;
11471
11472       sb.append("p_type:");
11473       if (this.p_type == null) {
11474         sb.append("null");
11475       } else {
11476         sb.append(this.p_type);
11477       }
11478       first = false;
11479       if (!first) {
11480                 sb.append(", ");
11481         }
11482       sb.append("prefix:");
11483       if (this.prefix == null) {
11484         sb.append("null");
11485       } else {
11486         sb.append(this.prefix);
11487       }
11488       first = false;
11489       if (!first) {
11490                 sb.append(", ");
11491         }
11492       sb.append("nexthop:");
11493       if (this.nexthop == null) {
11494         sb.append("null");
11495       } else {
11496         sb.append(this.nexthop);
11497       }
11498       first = false;
11499       if (!first) {
11500                 sb.append(", ");
11501         }
11502       sb.append("rd:");
11503       if (this.rd == null) {
11504         sb.append("null");
11505       } else {
11506         sb.append(this.rd);
11507       }
11508       first = false;
11509       if (!first) {
11510                 sb.append(", ");
11511         }
11512       sb.append("ethtag:");
11513       sb.append(this.ethtag);
11514       first = false;
11515       if (!first) {
11516                 sb.append(", ");
11517         }
11518       sb.append("esi:");
11519       if (this.esi == null) {
11520         sb.append("null");
11521       } else {
11522         sb.append(this.esi);
11523       }
11524       first = false;
11525       if (!first) {
11526                 sb.append(", ");
11527         }
11528       sb.append("macaddress:");
11529       if (this.macaddress == null) {
11530         sb.append("null");
11531       } else {
11532         sb.append(this.macaddress);
11533       }
11534       first = false;
11535       if (!first) {
11536                 sb.append(", ");
11537         }
11538       sb.append("l3label:");
11539       sb.append(this.l3label);
11540       first = false;
11541       if (!first) {
11542                 sb.append(", ");
11543         }
11544       sb.append("l2label:");
11545       sb.append(this.l2label);
11546       first = false;
11547       if (!first) {
11548                 sb.append(", ");
11549         }
11550       sb.append("enc_type:");
11551       if (this.enc_type == null) {
11552         sb.append("null");
11553       } else {
11554         sb.append(this.enc_type);
11555       }
11556       first = false;
11557       if (!first) {
11558                 sb.append(", ");
11559         }
11560       sb.append("routermac:");
11561       if (this.routermac == null) {
11562         sb.append("null");
11563       } else {
11564         sb.append(this.routermac);
11565       }
11566       first = false;
11567       if (!first) {
11568                 sb.append(", ");
11569         }
11570       sb.append("afi:");
11571       if (this.afi == null) {
11572         sb.append("null");
11573       } else {
11574         sb.append(this.afi);
11575       }
11576       first = false;
11577       sb.append(")");
11578       return sb.toString();
11579     }
11580
11581     public void validate() throws org.apache.thrift.TException {
11582       // check for required fields
11583       // check for sub-struct validity
11584     }
11585
11586     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11587       try {
11588         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11589       } catch (org.apache.thrift.TException te) {
11590         throw new java.io.IOException(te);
11591       }
11592     }
11593
11594     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11595       try {
11596         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11597         __isset_bitfield = 0;
11598         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11599       } catch (org.apache.thrift.TException te) {
11600         throw new java.io.IOException(te);
11601       }
11602     }
11603
11604     private static class pushRoute_argsStandardSchemeFactory implements SchemeFactory {
11605       @Override
11606         public pushRoute_argsStandardScheme getScheme() {
11607         return new pushRoute_argsStandardScheme();
11608       }
11609     }
11610
11611     private static class pushRoute_argsStandardScheme extends StandardScheme<pushRoute_args> {
11612
11613       @Override
11614         public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_args struct) throws org.apache.thrift.TException {
11615         org.apache.thrift.protocol.TField schemeField;
11616         iprot.readStructBegin();
11617         while (true)
11618         {
11619           schemeField = iprot.readFieldBegin();
11620           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11621             break;
11622           }
11623           switch (schemeField.id) {
11624             case 1: // P_TYPE
11625               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11626                 struct.p_type = protocol_type.findByValue(iprot.readI32());
11627                 struct.setP_typeIsSet(true);
11628               } else {
11629                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11630               }
11631               break;
11632             case 2: // PREFIX
11633               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11634                 struct.prefix = iprot.readString();
11635                 struct.setPrefixIsSet(true);
11636               } else {
11637                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11638               }
11639               break;
11640             case 3: // NEXTHOP
11641               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11642                 struct.nexthop = iprot.readString();
11643                 struct.setNexthopIsSet(true);
11644               } else {
11645                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11646               }
11647               break;
11648             case 4: // RD
11649               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11650                 struct.rd = iprot.readString();
11651                 struct.setRdIsSet(true);
11652               } else {
11653                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11654               }
11655               break;
11656             case 5: // ETHTAG
11657               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11658                 struct.ethtag = iprot.readI32();
11659                 struct.setEthtagIsSet(true);
11660               } else {
11661                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11662               }
11663               break;
11664             case 6: // ESI
11665               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11666                 struct.esi = iprot.readString();
11667                 struct.setEsiIsSet(true);
11668               } else {
11669                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11670               }
11671               break;
11672             case 7: // MACADDRESS
11673               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11674                 struct.macaddress = iprot.readString();
11675                 struct.setMacaddressIsSet(true);
11676               } else {
11677                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11678               }
11679               break;
11680             case 8: // L3LABEL
11681               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11682                 struct.l3label = iprot.readI32();
11683                 struct.setL3labelIsSet(true);
11684               } else {
11685                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11686               }
11687               break;
11688             case 9: // L2LABEL
11689               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11690                 struct.l2label = iprot.readI32();
11691                 struct.setL2labelIsSet(true);
11692               } else {
11693                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11694               }
11695               break;
11696             case 10: // ENC_TYPE
11697               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11698                 struct.enc_type = encap_type.findByValue(iprot.readI32());
11699                 struct.setEnc_typeIsSet(true);
11700               } else {
11701                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11702               }
11703               break;
11704             case 11: // ROUTERMAC
11705               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11706                 struct.routermac = iprot.readString();
11707                 struct.setRoutermacIsSet(true);
11708               } else {
11709                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11710               }
11711               break;
11712             case 12: // AFI
11713               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11714                 struct.afi = af_afi.findByValue(iprot.readI32());
11715                 struct.setAfiIsSet(true);
11716               } else {
11717                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11718               }
11719               break;
11720             default:
11721               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11722           }
11723           iprot.readFieldEnd();
11724         }
11725         iprot.readStructEnd();
11726
11727         // check for required fields of primitive type, which can't be checked in the validate method
11728         struct.validate();
11729       }
11730
11731       @Override
11732         public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_args struct) throws org.apache.thrift.TException {
11733         struct.validate();
11734
11735         oprot.writeStructBegin(STRUCT_DESC);
11736         if (struct.p_type != null) {
11737           oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
11738           oprot.writeI32(struct.p_type.getValue());
11739           oprot.writeFieldEnd();
11740         }
11741         if (struct.prefix != null) {
11742           oprot.writeFieldBegin(PREFIX_FIELD_DESC);
11743           oprot.writeString(struct.prefix);
11744           oprot.writeFieldEnd();
11745         }
11746         if (struct.nexthop != null) {
11747           oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
11748           oprot.writeString(struct.nexthop);
11749           oprot.writeFieldEnd();
11750         }
11751         if (struct.rd != null) {
11752           oprot.writeFieldBegin(RD_FIELD_DESC);
11753           oprot.writeString(struct.rd);
11754           oprot.writeFieldEnd();
11755         }
11756         oprot.writeFieldBegin(ETHTAG_FIELD_DESC);
11757         oprot.writeI32(struct.ethtag);
11758         oprot.writeFieldEnd();
11759         if (struct.esi != null) {
11760           oprot.writeFieldBegin(ESI_FIELD_DESC);
11761           oprot.writeString(struct.esi);
11762           oprot.writeFieldEnd();
11763         }
11764         if (struct.macaddress != null) {
11765           oprot.writeFieldBegin(MACADDRESS_FIELD_DESC);
11766           oprot.writeString(struct.macaddress);
11767           oprot.writeFieldEnd();
11768         }
11769         oprot.writeFieldBegin(L3LABEL_FIELD_DESC);
11770         oprot.writeI32(struct.l3label);
11771         oprot.writeFieldEnd();
11772         oprot.writeFieldBegin(L2LABEL_FIELD_DESC);
11773         oprot.writeI32(struct.l2label);
11774         oprot.writeFieldEnd();
11775         if (struct.enc_type != null) {
11776           oprot.writeFieldBegin(ENC_TYPE_FIELD_DESC);
11777           oprot.writeI32(struct.enc_type.getValue());
11778           oprot.writeFieldEnd();
11779         }
11780         if (struct.routermac != null) {
11781           oprot.writeFieldBegin(ROUTERMAC_FIELD_DESC);
11782           oprot.writeString(struct.routermac);
11783           oprot.writeFieldEnd();
11784         }
11785         if (struct.afi != null) {
11786           oprot.writeFieldBegin(AFI_FIELD_DESC);
11787           oprot.writeI32(struct.afi.getValue());
11788           oprot.writeFieldEnd();
11789         }
11790         oprot.writeFieldStop();
11791         oprot.writeStructEnd();
11792       }
11793
11794     }
11795
11796     private static class pushRoute_argsTupleSchemeFactory implements SchemeFactory {
11797       @Override
11798         public pushRoute_argsTupleScheme getScheme() {
11799         return new pushRoute_argsTupleScheme();
11800       }
11801     }
11802
11803     private static class pushRoute_argsTupleScheme extends TupleScheme<pushRoute_args> {
11804
11805       @Override
11806       public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
11807         TTupleProtocol oprot = (TTupleProtocol) prot;
11808         BitSet optionals = new BitSet();
11809         if (struct.isSetP_type()) {
11810           optionals.set(0);
11811         }
11812         if (struct.isSetPrefix()) {
11813           optionals.set(1);
11814         }
11815         if (struct.isSetNexthop()) {
11816           optionals.set(2);
11817         }
11818         if (struct.isSetRd()) {
11819           optionals.set(3);
11820         }
11821         if (struct.isSetEthtag()) {
11822           optionals.set(4);
11823         }
11824         if (struct.isSetEsi()) {
11825           optionals.set(5);
11826         }
11827         if (struct.isSetMacaddress()) {
11828           optionals.set(6);
11829         }
11830         if (struct.isSetL3label()) {
11831           optionals.set(7);
11832         }
11833         if (struct.isSetL2label()) {
11834           optionals.set(8);
11835         }
11836         if (struct.isSetEnc_type()) {
11837           optionals.set(9);
11838         }
11839         if (struct.isSetRoutermac()) {
11840           optionals.set(10);
11841         }
11842         if (struct.isSetAfi()) {
11843           optionals.set(11);
11844         }
11845         oprot.writeBitSet(optionals, 12);
11846         if (struct.isSetP_type()) {
11847           oprot.writeI32(struct.p_type.getValue());
11848         }
11849         if (struct.isSetPrefix()) {
11850           oprot.writeString(struct.prefix);
11851         }
11852         if (struct.isSetNexthop()) {
11853           oprot.writeString(struct.nexthop);
11854         }
11855         if (struct.isSetRd()) {
11856           oprot.writeString(struct.rd);
11857         }
11858         if (struct.isSetEthtag()) {
11859           oprot.writeI32(struct.ethtag);
11860         }
11861         if (struct.isSetEsi()) {
11862           oprot.writeString(struct.esi);
11863         }
11864         if (struct.isSetMacaddress()) {
11865           oprot.writeString(struct.macaddress);
11866         }
11867         if (struct.isSetL3label()) {
11868           oprot.writeI32(struct.l3label);
11869         }
11870         if (struct.isSetL2label()) {
11871           oprot.writeI32(struct.l2label);
11872         }
11873         if (struct.isSetEnc_type()) {
11874           oprot.writeI32(struct.enc_type.getValue());
11875         }
11876         if (struct.isSetRoutermac()) {
11877           oprot.writeString(struct.routermac);
11878         }
11879         if (struct.isSetAfi()) {
11880           oprot.writeI32(struct.afi.getValue());
11881         }
11882       }
11883
11884       @Override
11885       public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
11886         TTupleProtocol iprot = (TTupleProtocol) prot;
11887         BitSet incoming = iprot.readBitSet(12);
11888         if (incoming.get(0)) {
11889           struct.p_type = protocol_type.findByValue(iprot.readI32());
11890           struct.setP_typeIsSet(true);
11891         }
11892         if (incoming.get(1)) {
11893           struct.prefix = iprot.readString();
11894           struct.setPrefixIsSet(true);
11895         }
11896         if (incoming.get(2)) {
11897           struct.nexthop = iprot.readString();
11898           struct.setNexthopIsSet(true);
11899         }
11900         if (incoming.get(3)) {
11901           struct.rd = iprot.readString();
11902           struct.setRdIsSet(true);
11903         }
11904         if (incoming.get(4)) {
11905           struct.ethtag = iprot.readI32();
11906           struct.setEthtagIsSet(true);
11907         }
11908         if (incoming.get(5)) {
11909           struct.esi = iprot.readString();
11910           struct.setEsiIsSet(true);
11911         }
11912         if (incoming.get(6)) {
11913           struct.macaddress = iprot.readString();
11914           struct.setMacaddressIsSet(true);
11915         }
11916         if (incoming.get(7)) {
11917           struct.l3label = iprot.readI32();
11918           struct.setL3labelIsSet(true);
11919         }
11920         if (incoming.get(8)) {
11921           struct.l2label = iprot.readI32();
11922           struct.setL2labelIsSet(true);
11923         }
11924         if (incoming.get(9)) {
11925           struct.enc_type = encap_type.findByValue(iprot.readI32());
11926           struct.setEnc_typeIsSet(true);
11927         }
11928         if (incoming.get(10)) {
11929           struct.routermac = iprot.readString();
11930           struct.setRoutermacIsSet(true);
11931         }
11932         if (incoming.get(11)) {
11933           struct.afi = af_afi.findByValue(iprot.readI32());
11934           struct.setAfiIsSet(true);
11935         }
11936       }
11937     }
11938
11939   }
11940
11941   public static class pushRoute_result implements org.apache.thrift.TBase<pushRoute_result, pushRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_result>   {
11942     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_result");
11943
11944     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);
11945
11946     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11947     static {
11948       schemes.put(StandardScheme.class, new pushRoute_resultStandardSchemeFactory());
11949       schemes.put(TupleScheme.class, new pushRoute_resultTupleSchemeFactory());
11950     }
11951
11952     public int success; // required
11953
11954     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11955     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11956       SUCCESS((short)0, "success");
11957
11958       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11959
11960       static {
11961         for (_Fields field : EnumSet.allOf(_Fields.class)) {
11962           byName.put(field.getFieldName(), field);
11963         }
11964       }
11965
11966       /**
11967        * Find the _Fields constant that matches fieldId, or null if its not found.
11968        */
11969       public static _Fields findByThriftId(int fieldId) {
11970         switch(fieldId) {
11971           case 0: // SUCCESS
11972             return SUCCESS;
11973           default:
11974             return null;
11975         }
11976       }
11977
11978       /**
11979        * Find the _Fields constant that matches fieldId, throwing an exception
11980        * if it is not found.
11981        */
11982       public static _Fields findByThriftIdOrThrow(int fieldId) {
11983         _Fields fields = findByThriftId(fieldId);
11984         if (fields == null) {
11985                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11986                 }
11987         return fields;
11988       }
11989
11990       /**
11991        * Find the _Fields constant that matches name, or null if its not found.
11992        */
11993       public static _Fields findByName(String name) {
11994         return byName.get(name);
11995       }
11996
11997       private final short _thriftId;
11998       private final String _fieldName;
11999
12000       _Fields(short thriftId, String fieldName) {
12001         _thriftId = thriftId;
12002         _fieldName = fieldName;
12003       }
12004
12005       @Override
12006         public short getThriftFieldId() {
12007         return _thriftId;
12008       }
12009
12010       @Override
12011         public String getFieldName() {
12012         return _fieldName;
12013       }
12014     }
12015
12016     // isset id assignments
12017     private static final int __SUCCESS_ISSET_ID = 0;
12018     private byte __isset_bitfield = 0;
12019     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12020     static {
12021       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12022       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
12023           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12024       metaDataMap = Collections.unmodifiableMap(tmpMap);
12025       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_result.class, metaDataMap);
12026     }
12027
12028     public pushRoute_result() {
12029     }
12030
12031     public pushRoute_result(
12032       int success)
12033     {
12034       this();
12035       this.success = success;
12036       setSuccessIsSet(true);
12037     }
12038
12039     /**
12040      * Performs a deep copy on <i>other</i>.
12041      */
12042     public pushRoute_result(pushRoute_result other) {
12043       __isset_bitfield = other.__isset_bitfield;
12044       this.success = other.success;
12045     }
12046
12047     @Override
12048         public pushRoute_result deepCopy() {
12049       return new pushRoute_result(this);
12050     }
12051
12052     @Override
12053     public void clear() {
12054       setSuccessIsSet(false);
12055       this.success = 0;
12056     }
12057
12058     public int getSuccess() {
12059       return this.success;
12060     }
12061
12062     public pushRoute_result setSuccess(int success) {
12063       this.success = success;
12064       setSuccessIsSet(true);
12065       return this;
12066     }
12067
12068     public void unsetSuccess() {
12069       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12070     }
12071
12072     /** Returns true if field success is set (has been assigned a value) and false otherwise */
12073     public boolean isSetSuccess() {
12074       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12075     }
12076
12077     public void setSuccessIsSet(boolean value) {
12078       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
12079     }
12080
12081     @Override
12082         public void setFieldValue(_Fields field, Object value) {
12083       switch (field) {
12084       case SUCCESS:
12085         if (value == null) {
12086           unsetSuccess();
12087         } else {
12088           setSuccess((Integer)value);
12089         }
12090         break;
12091
12092       }
12093     }
12094
12095     @Override
12096         public Object getFieldValue(_Fields field) {
12097       switch (field) {
12098       case SUCCESS:
12099         return Integer.valueOf(getSuccess());
12100
12101       }
12102       throw new IllegalStateException();
12103     }
12104
12105     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12106     @Override
12107         public boolean isSet(_Fields field) {
12108       if (field == null) {
12109         throw new IllegalArgumentException();
12110       }
12111
12112       switch (field) {
12113       case SUCCESS:
12114         return isSetSuccess();
12115       }
12116       throw new IllegalStateException();
12117     }
12118
12119     @Override
12120     public boolean equals(Object that) {
12121       if (that == null) {
12122                 return false;
12123         }
12124       if (that instanceof pushRoute_result) {
12125                 return this.equals((pushRoute_result)that);
12126         }
12127       return false;
12128     }
12129
12130     public boolean equals(pushRoute_result that) {
12131       if (that == null) {
12132                 return false;
12133         }
12134
12135       boolean this_present_success = true;
12136       boolean that_present_success = true;
12137       if (this_present_success || that_present_success) {
12138         if (!(this_present_success && that_present_success)) {
12139                         return false;
12140                 }
12141         if (this.success != that.success) {
12142                         return false;
12143                 }
12144       }
12145
12146       return true;
12147     }
12148
12149     @Override
12150     public int hashCode() {
12151       List<Object> list = new ArrayList<Object>();
12152
12153       boolean present_success = true;
12154       list.add(present_success);
12155       if (present_success)
12156         list.add(success);
12157       return list.hashCode();
12158     }
12159
12160     @Override
12161     public int compareTo(pushRoute_result other) {
12162       if (!getClass().equals(other.getClass())) {
12163         return getClass().getName().compareTo(other.getClass().getName());
12164       }
12165
12166       int lastComparison = 0;
12167
12168       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
12169       if (lastComparison != 0) {
12170         return lastComparison;
12171       }
12172       if (isSetSuccess()) {
12173         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
12174         if (lastComparison != 0) {
12175           return lastComparison;
12176         }
12177       }
12178       return 0;
12179     }
12180
12181     @Override
12182         public _Fields fieldForId(int fieldId) {
12183       return _Fields.findByThriftId(fieldId);
12184     }
12185
12186     @Override
12187         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12188       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12189     }
12190
12191     @Override
12192         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12193       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12194       }
12195
12196     @Override
12197     public String toString() {
12198       StringBuilder sb = new StringBuilder("pushRoute_result(");
12199       boolean first = true;
12200
12201       sb.append("success:");
12202       sb.append(this.success);
12203       first = false;
12204       sb.append(")");
12205       return sb.toString();
12206     }
12207
12208     public void validate() throws org.apache.thrift.TException {
12209       // check for required fields
12210       // check for sub-struct validity
12211     }
12212
12213     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12214       try {
12215         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12216       } catch (org.apache.thrift.TException te) {
12217         throw new java.io.IOException(te);
12218       }
12219     }
12220
12221     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12222       try {
12223         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12224         __isset_bitfield = 0;
12225         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12226       } catch (org.apache.thrift.TException te) {
12227         throw new java.io.IOException(te);
12228       }
12229     }
12230
12231     private static class pushRoute_resultStandardSchemeFactory implements SchemeFactory {
12232       @Override
12233         public pushRoute_resultStandardScheme getScheme() {
12234         return new pushRoute_resultStandardScheme();
12235       }
12236     }
12237
12238     private static class pushRoute_resultStandardScheme extends StandardScheme<pushRoute_result> {
12239
12240       @Override
12241         public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_result struct) throws org.apache.thrift.TException {
12242         org.apache.thrift.protocol.TField schemeField;
12243         iprot.readStructBegin();
12244         while (true)
12245         {
12246           schemeField = iprot.readFieldBegin();
12247           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12248             break;
12249           }
12250           switch (schemeField.id) {
12251             case 0: // SUCCESS
12252               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12253                 struct.success = iprot.readI32();
12254                 struct.setSuccessIsSet(true);
12255               } else {
12256                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12257               }
12258               break;
12259             default:
12260               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12261           }
12262           iprot.readFieldEnd();
12263         }
12264         iprot.readStructEnd();
12265
12266         // check for required fields of primitive type, which can't be checked in the validate method
12267         struct.validate();
12268       }
12269
12270       @Override
12271         public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_result struct) throws org.apache.thrift.TException {
12272         struct.validate();
12273
12274         oprot.writeStructBegin(STRUCT_DESC);
12275         if (struct.isSetSuccess()) {
12276           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12277           oprot.writeI32(struct.success);
12278           oprot.writeFieldEnd();
12279         }
12280         oprot.writeFieldStop();
12281         oprot.writeStructEnd();
12282       }
12283
12284     }
12285
12286     private static class pushRoute_resultTupleSchemeFactory implements SchemeFactory {
12287       @Override
12288         public pushRoute_resultTupleScheme getScheme() {
12289         return new pushRoute_resultTupleScheme();
12290       }
12291     }
12292
12293     private static class pushRoute_resultTupleScheme extends TupleScheme<pushRoute_result> {
12294
12295       @Override
12296       public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
12297         TTupleProtocol oprot = (TTupleProtocol) prot;
12298         BitSet optionals = new BitSet();
12299         if (struct.isSetSuccess()) {
12300           optionals.set(0);
12301         }
12302         oprot.writeBitSet(optionals, 1);
12303         if (struct.isSetSuccess()) {
12304           oprot.writeI32(struct.success);
12305         }
12306       }
12307
12308       @Override
12309       public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
12310         TTupleProtocol iprot = (TTupleProtocol) prot;
12311         BitSet incoming = iprot.readBitSet(1);
12312         if (incoming.get(0)) {
12313           struct.success = iprot.readI32();
12314           struct.setSuccessIsSet(true);
12315         }
12316       }
12317     }
12318
12319   }
12320
12321   public static class withdrawRoute_args implements org.apache.thrift.TBase<withdrawRoute_args, withdrawRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_args>   {
12322     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_args");
12323
12324     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);
12325     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);
12326     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);
12327     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);
12328     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);
12329     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);
12330     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)7);
12331
12332     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12333     static {
12334       schemes.put(StandardScheme.class, new withdrawRoute_argsStandardSchemeFactory());
12335       schemes.put(TupleScheme.class, new withdrawRoute_argsTupleSchemeFactory());
12336     }
12337
12338     /**
12339      *
12340      * @see protocol_type
12341      */
12342     public protocol_type p_type; // required
12343     public String prefix; // required
12344     public String rd; // required
12345     public int ethtag; // required
12346     public String esi; // required
12347     public String macaddress; // required
12348     /**
12349      *
12350      * @see af_afi
12351      */
12352     public af_afi afi; // required
12353
12354     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12355     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12356       /**
12357        *
12358        * @see protocol_type
12359        */
12360       P_TYPE((short)1, "p_type"),
12361       PREFIX((short)2, "prefix"),
12362       RD((short)3, "rd"),
12363       ETHTAG((short)4, "ethtag"),
12364       ESI((short)5, "esi"),
12365       MACADDRESS((short)6, "macaddress"),
12366       /**
12367        *
12368        * @see af_afi
12369        */
12370       AFI((short)7, "afi");
12371
12372       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12373
12374       static {
12375         for (_Fields field : EnumSet.allOf(_Fields.class)) {
12376           byName.put(field.getFieldName(), field);
12377         }
12378       }
12379
12380       /**
12381        * Find the _Fields constant that matches fieldId, or null if its not found.
12382        */
12383       public static _Fields findByThriftId(int fieldId) {
12384         switch(fieldId) {
12385           case 1: // P_TYPE
12386             return P_TYPE;
12387           case 2: // PREFIX
12388             return PREFIX;
12389           case 3: // RD
12390             return RD;
12391           case 4: // ETHTAG
12392             return ETHTAG;
12393           case 5: // ESI
12394             return ESI;
12395           case 6: // MACADDRESS
12396             return MACADDRESS;
12397           case 7: // AFI
12398             return AFI;
12399           default:
12400             return null;
12401         }
12402       }
12403
12404       /**
12405        * Find the _Fields constant that matches fieldId, throwing an exception
12406        * if it is not found.
12407        */
12408       public static _Fields findByThriftIdOrThrow(int fieldId) {
12409         _Fields fields = findByThriftId(fieldId);
12410         if (fields == null) {
12411                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12412                 }
12413         return fields;
12414       }
12415
12416       /**
12417        * Find the _Fields constant that matches name, or null if its not found.
12418        */
12419       public static _Fields findByName(String name) {
12420         return byName.get(name);
12421       }
12422
12423       private final short _thriftId;
12424       private final String _fieldName;
12425
12426       _Fields(short thriftId, String fieldName) {
12427         _thriftId = thriftId;
12428         _fieldName = fieldName;
12429       }
12430
12431       @Override
12432         public short getThriftFieldId() {
12433         return _thriftId;
12434       }
12435
12436       @Override
12437         public String getFieldName() {
12438         return _fieldName;
12439       }
12440     }
12441
12442     // isset id assignments
12443     private static final int __ETHTAG_ISSET_ID = 0;
12444     private byte __isset_bitfield = 0;
12445     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12446     static {
12447       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12448       tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
12449           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
12450       tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
12451           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12452       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
12453           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12454       tmpMap.put(_Fields.ETHTAG, new org.apache.thrift.meta_data.FieldMetaData("ethtag", org.apache.thrift.TFieldRequirementType.DEFAULT,
12455           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12456       tmpMap.put(_Fields.ESI, new org.apache.thrift.meta_data.FieldMetaData("esi", org.apache.thrift.TFieldRequirementType.DEFAULT,
12457           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12458       tmpMap.put(_Fields.MACADDRESS, new org.apache.thrift.meta_data.FieldMetaData("macaddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
12459           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12460       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
12461           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
12462       metaDataMap = Collections.unmodifiableMap(tmpMap);
12463       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_args.class, metaDataMap);
12464     }
12465
12466     public withdrawRoute_args() {
12467     }
12468
12469     public withdrawRoute_args(
12470       protocol_type p_type,
12471       String prefix,
12472       String rd,
12473       int ethtag,
12474       String esi,
12475       String macaddress,
12476       af_afi afi)
12477     {
12478       this();
12479       this.p_type = p_type;
12480       this.prefix = prefix;
12481       this.rd = rd;
12482       this.ethtag = ethtag;
12483       setEthtagIsSet(true);
12484       this.esi = esi;
12485       this.macaddress = macaddress;
12486       this.afi = afi;
12487     }
12488
12489     /**
12490      * Performs a deep copy on <i>other</i>.
12491      */
12492     public withdrawRoute_args(withdrawRoute_args other) {
12493       __isset_bitfield = other.__isset_bitfield;
12494       if (other.isSetP_type()) {
12495         this.p_type = other.p_type;
12496       }
12497       if (other.isSetPrefix()) {
12498         this.prefix = other.prefix;
12499       }
12500       if (other.isSetRd()) {
12501         this.rd = other.rd;
12502       }
12503       this.ethtag = other.ethtag;
12504       if (other.isSetEsi()) {
12505         this.esi = other.esi;
12506       }
12507       if (other.isSetMacaddress()) {
12508         this.macaddress = other.macaddress;
12509       }
12510       if (other.isSetAfi()) {
12511         this.afi = other.afi;
12512       }
12513     }
12514
12515     @Override
12516         public withdrawRoute_args deepCopy() {
12517       return new withdrawRoute_args(this);
12518     }
12519
12520     @Override
12521     public void clear() {
12522       this.p_type = null;
12523       this.prefix = null;
12524       this.rd = null;
12525       setEthtagIsSet(false);
12526       this.ethtag = 0;
12527       this.esi = null;
12528       this.macaddress = null;
12529       this.afi = null;
12530     }
12531
12532     /**
12533      *
12534      * @see protocol_type
12535      */
12536     public protocol_type getP_type() {
12537       return this.p_type;
12538     }
12539
12540     /**
12541      *
12542      * @see protocol_type
12543      */
12544     public withdrawRoute_args setP_type(protocol_type p_type) {
12545       this.p_type = p_type;
12546       return this;
12547     }
12548
12549     public void unsetP_type() {
12550       this.p_type = null;
12551     }
12552
12553     /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
12554     public boolean isSetP_type() {
12555       return this.p_type != null;
12556     }
12557
12558     public void setP_typeIsSet(boolean value) {
12559       if (!value) {
12560         this.p_type = null;
12561       }
12562     }
12563
12564     public String getPrefix() {
12565       return this.prefix;
12566     }
12567
12568     public withdrawRoute_args setPrefix(String prefix) {
12569       this.prefix = prefix;
12570       return this;
12571     }
12572
12573     public void unsetPrefix() {
12574       this.prefix = null;
12575     }
12576
12577     /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
12578     public boolean isSetPrefix() {
12579       return this.prefix != null;
12580     }
12581
12582     public void setPrefixIsSet(boolean value) {
12583       if (!value) {
12584         this.prefix = null;
12585       }
12586     }
12587
12588     public String getRd() {
12589       return this.rd;
12590     }
12591
12592     public withdrawRoute_args setRd(String rd) {
12593       this.rd = rd;
12594       return this;
12595     }
12596
12597     public void unsetRd() {
12598       this.rd = null;
12599     }
12600
12601     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
12602     public boolean isSetRd() {
12603       return this.rd != null;
12604     }
12605
12606     public void setRdIsSet(boolean value) {
12607       if (!value) {
12608         this.rd = null;
12609       }
12610     }
12611
12612     public int getEthtag() {
12613       return this.ethtag;
12614     }
12615
12616     public withdrawRoute_args setEthtag(int ethtag) {
12617       this.ethtag = ethtag;
12618       setEthtagIsSet(true);
12619       return this;
12620     }
12621
12622     public void unsetEthtag() {
12623       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ETHTAG_ISSET_ID);
12624     }
12625
12626     /** Returns true if field ethtag is set (has been assigned a value) and false otherwise */
12627     public boolean isSetEthtag() {
12628       return EncodingUtils.testBit(__isset_bitfield, __ETHTAG_ISSET_ID);
12629     }
12630
12631     public void setEthtagIsSet(boolean value) {
12632       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ETHTAG_ISSET_ID, value);
12633     }
12634
12635     public String getEsi() {
12636       return this.esi;
12637     }
12638
12639     public withdrawRoute_args setEsi(String esi) {
12640       this.esi = esi;
12641       return this;
12642     }
12643
12644     public void unsetEsi() {
12645       this.esi = null;
12646     }
12647
12648     /** Returns true if field esi is set (has been assigned a value) and false otherwise */
12649     public boolean isSetEsi() {
12650       return this.esi != null;
12651     }
12652
12653     public void setEsiIsSet(boolean value) {
12654       if (!value) {
12655         this.esi = null;
12656       }
12657     }
12658
12659     public String getMacaddress() {
12660       return this.macaddress;
12661     }
12662
12663     public withdrawRoute_args setMacaddress(String macaddress) {
12664       this.macaddress = macaddress;
12665       return this;
12666     }
12667
12668     public void unsetMacaddress() {
12669       this.macaddress = null;
12670     }
12671
12672     /** Returns true if field macaddress is set (has been assigned a value) and false otherwise */
12673     public boolean isSetMacaddress() {
12674       return this.macaddress != null;
12675     }
12676
12677     public void setMacaddressIsSet(boolean value) {
12678       if (!value) {
12679         this.macaddress = null;
12680       }
12681     }
12682
12683     /**
12684      *
12685      * @see af_afi
12686      */
12687     public af_afi getAfi() {
12688       return this.afi;
12689     }
12690
12691     /**
12692      *
12693      * @see af_afi
12694      */
12695     public withdrawRoute_args setAfi(af_afi afi) {
12696       this.afi = afi;
12697       return this;
12698     }
12699
12700     public void unsetAfi() {
12701       this.afi = null;
12702     }
12703
12704     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
12705     public boolean isSetAfi() {
12706       return this.afi != null;
12707     }
12708
12709     public void setAfiIsSet(boolean value) {
12710       if (!value) {
12711         this.afi = null;
12712       }
12713     }
12714
12715     @Override
12716         public void setFieldValue(_Fields field, Object value) {
12717       switch (field) {
12718       case P_TYPE:
12719         if (value == null) {
12720           unsetP_type();
12721         } else {
12722           setP_type((protocol_type)value);
12723         }
12724         break;
12725
12726       case PREFIX:
12727         if (value == null) {
12728           unsetPrefix();
12729         } else {
12730           setPrefix((String)value);
12731         }
12732         break;
12733
12734       case RD:
12735         if (value == null) {
12736           unsetRd();
12737         } else {
12738           setRd((String)value);
12739         }
12740         break;
12741
12742       case ETHTAG:
12743         if (value == null) {
12744           unsetEthtag();
12745         } else {
12746           setEthtag((Integer)value);
12747         }
12748         break;
12749
12750       case ESI:
12751         if (value == null) {
12752           unsetEsi();
12753         } else {
12754           setEsi((String)value);
12755         }
12756         break;
12757
12758       case MACADDRESS:
12759         if (value == null) {
12760           unsetMacaddress();
12761         } else {
12762           setMacaddress((String)value);
12763         }
12764         break;
12765
12766       case AFI:
12767         if (value == null) {
12768           unsetAfi();
12769         } else {
12770           setAfi((af_afi)value);
12771         }
12772         break;
12773
12774       }
12775     }
12776
12777     @Override
12778         public Object getFieldValue(_Fields field) {
12779       switch (field) {
12780       case P_TYPE:
12781         return getP_type();
12782
12783       case PREFIX:
12784         return getPrefix();
12785
12786       case RD:
12787         return getRd();
12788
12789       case ETHTAG:
12790         return Integer.valueOf(getEthtag());
12791
12792       case ESI:
12793         return getEsi();
12794
12795       case MACADDRESS:
12796         return getMacaddress();
12797
12798       case AFI:
12799         return getAfi();
12800
12801       }
12802       throw new IllegalStateException();
12803     }
12804
12805     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12806     @Override
12807         public boolean isSet(_Fields field) {
12808       if (field == null) {
12809         throw new IllegalArgumentException();
12810       }
12811
12812       switch (field) {
12813       case P_TYPE:
12814         return isSetP_type();
12815       case PREFIX:
12816         return isSetPrefix();
12817       case RD:
12818         return isSetRd();
12819       case ETHTAG:
12820         return isSetEthtag();
12821       case ESI:
12822         return isSetEsi();
12823       case MACADDRESS:
12824         return isSetMacaddress();
12825       case AFI:
12826         return isSetAfi();
12827       }
12828       throw new IllegalStateException();
12829     }
12830
12831     @Override
12832     public boolean equals(Object that) {
12833       if (that == null) {
12834                 return false;
12835         }
12836       if (that instanceof withdrawRoute_args) {
12837                 return this.equals((withdrawRoute_args)that);
12838         }
12839       return false;
12840     }
12841
12842     public boolean equals(withdrawRoute_args that) {
12843       if (that == null) {
12844                 return false;
12845         }
12846
12847       boolean this_present_p_type = true && this.isSetP_type();
12848       boolean that_present_p_type = true && that.isSetP_type();
12849       if (this_present_p_type || that_present_p_type) {
12850         if (!(this_present_p_type && that_present_p_type)) {
12851                         return false;
12852                 }
12853         if (!this.p_type.equals(that.p_type)) {
12854                         return false;
12855                 }
12856       }
12857
12858       boolean this_present_prefix = true && this.isSetPrefix();
12859       boolean that_present_prefix = true && that.isSetPrefix();
12860       if (this_present_prefix || that_present_prefix) {
12861         if (!(this_present_prefix && that_present_prefix)) {
12862                         return false;
12863                 }
12864         if (!this.prefix.equals(that.prefix)) {
12865                         return false;
12866                 }
12867       }
12868
12869       boolean this_present_rd = true && this.isSetRd();
12870       boolean that_present_rd = true && that.isSetRd();
12871       if (this_present_rd || that_present_rd) {
12872         if (!(this_present_rd && that_present_rd)) {
12873                         return false;
12874                 }
12875         if (!this.rd.equals(that.rd)) {
12876                         return false;
12877                 }
12878       }
12879
12880       boolean this_present_ethtag = true;
12881       boolean that_present_ethtag = true;
12882       if (this_present_ethtag || that_present_ethtag) {
12883         if (!(this_present_ethtag && that_present_ethtag)) {
12884                         return false;
12885                 }
12886         if (this.ethtag != that.ethtag) {
12887                         return false;
12888                 }
12889       }
12890
12891       boolean this_present_esi = true && this.isSetEsi();
12892       boolean that_present_esi = true && that.isSetEsi();
12893       if (this_present_esi || that_present_esi) {
12894         if (!(this_present_esi && that_present_esi)) {
12895                         return false;
12896                 }
12897         if (!this.esi.equals(that.esi)) {
12898                         return false;
12899                 }
12900       }
12901
12902       boolean this_present_macaddress = true && this.isSetMacaddress();
12903       boolean that_present_macaddress = true && that.isSetMacaddress();
12904       if (this_present_macaddress || that_present_macaddress) {
12905         if (!(this_present_macaddress && that_present_macaddress)) {
12906                         return false;
12907                 }
12908         if (!this.macaddress.equals(that.macaddress)) {
12909                         return false;
12910                 }
12911       }
12912
12913       boolean this_present_afi = true && this.isSetAfi();
12914       boolean that_present_afi = true && that.isSetAfi();
12915       if (this_present_afi || that_present_afi) {
12916         if (!(this_present_afi && that_present_afi)) {
12917                         return false;
12918                 }
12919         if (!this.afi.equals(that.afi)) {
12920                         return false;
12921                 }
12922       }
12923
12924       return true;
12925     }
12926
12927     @Override
12928     public int hashCode() {
12929       List<Object> list = new ArrayList<Object>();
12930       boolean present_p_type = true && (isSetP_type());
12931       list.add(present_p_type);
12932       if (present_p_type)
12933         list.add(p_type.getValue());
12934       boolean present_prefix = true && (isSetPrefix());
12935       list.add(present_prefix);
12936       if (present_prefix)
12937         list.add(prefix);
12938       boolean present_rd = true && (isSetRd());
12939       list.add(present_rd);
12940       if (present_rd)
12941         list.add(rd);
12942       boolean present_ethtag = true;
12943       list.add(present_ethtag);
12944       if (present_ethtag)
12945         list.add(ethtag);
12946       boolean present_esi = true && (isSetEsi());
12947       list.add(present_esi);
12948       if (present_esi)
12949         list.add(esi);
12950       boolean present_macaddress = true && (isSetMacaddress());
12951       list.add(present_macaddress);
12952       if (present_macaddress)
12953         list.add(macaddress);
12954       boolean present_afi = true && (isSetAfi());
12955       list.add(present_afi);
12956       if (present_afi)
12957         list.add(afi.getValue());
12958       return list.hashCode();
12959     }
12960
12961     @Override
12962     public int compareTo(withdrawRoute_args other) {
12963       if (!getClass().equals(other.getClass())) {
12964         return getClass().getName().compareTo(other.getClass().getName());
12965       }
12966
12967       int lastComparison = 0;
12968
12969       lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
12970       if (lastComparison != 0) {
12971         return lastComparison;
12972       }
12973       if (isSetP_type()) {
12974         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
12975         if (lastComparison != 0) {
12976           return lastComparison;
12977         }
12978       }
12979       lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
12980       if (lastComparison != 0) {
12981         return lastComparison;
12982       }
12983       if (isSetPrefix()) {
12984         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
12985         if (lastComparison != 0) {
12986           return lastComparison;
12987         }
12988       }
12989       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
12990       if (lastComparison != 0) {
12991         return lastComparison;
12992       }
12993       if (isSetRd()) {
12994         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
12995         if (lastComparison != 0) {
12996           return lastComparison;
12997         }
12998       }
12999       lastComparison = Boolean.valueOf(isSetEthtag()).compareTo(other.isSetEthtag());
13000       if (lastComparison != 0) {
13001         return lastComparison;
13002       }
13003       if (isSetEthtag()) {
13004         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ethtag, other.ethtag);
13005         if (lastComparison != 0) {
13006           return lastComparison;
13007         }
13008       }
13009       lastComparison = Boolean.valueOf(isSetEsi()).compareTo(other.isSetEsi());
13010       if (lastComparison != 0) {
13011         return lastComparison;
13012       }
13013       if (isSetEsi()) {
13014         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.esi, other.esi);
13015         if (lastComparison != 0) {
13016           return lastComparison;
13017         }
13018       }
13019       lastComparison = Boolean.valueOf(isSetMacaddress()).compareTo(other.isSetMacaddress());
13020       if (lastComparison != 0) {
13021         return lastComparison;
13022       }
13023       if (isSetMacaddress()) {
13024         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.macaddress, other.macaddress);
13025         if (lastComparison != 0) {
13026           return lastComparison;
13027         }
13028       }
13029       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
13030       if (lastComparison != 0) {
13031         return lastComparison;
13032       }
13033       if (isSetAfi()) {
13034         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
13035         if (lastComparison != 0) {
13036           return lastComparison;
13037         }
13038       }
13039       return 0;
13040     }
13041
13042     @Override
13043         public _Fields fieldForId(int fieldId) {
13044       return _Fields.findByThriftId(fieldId);
13045     }
13046
13047     @Override
13048         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13049       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13050     }
13051
13052     @Override
13053         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13054       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13055     }
13056
13057     @Override
13058     public String toString() {
13059       StringBuilder sb = new StringBuilder("withdrawRoute_args(");
13060       boolean first = true;
13061
13062       sb.append("p_type:");
13063       if (this.p_type == null) {
13064         sb.append("null");
13065       } else {
13066         sb.append(this.p_type);
13067       }
13068       first = false;
13069       if (!first) {
13070                 sb.append(", ");
13071         }
13072       sb.append("prefix:");
13073       if (this.prefix == null) {
13074         sb.append("null");
13075       } else {
13076         sb.append(this.prefix);
13077       }
13078       first = false;
13079       if (!first) {
13080                 sb.append(", ");
13081         }
13082       sb.append("rd:");
13083       if (this.rd == null) {
13084         sb.append("null");
13085       } else {
13086         sb.append(this.rd);
13087       }
13088       first = false;
13089       if (!first) {
13090                 sb.append(", ");
13091         }
13092       sb.append("ethtag:");
13093       sb.append(this.ethtag);
13094       first = false;
13095       if (!first) {
13096                 sb.append(", ");
13097         }
13098       sb.append("esi:");
13099       if (this.esi == null) {
13100         sb.append("null");
13101       } else {
13102         sb.append(this.esi);
13103       }
13104       first = false;
13105       if (!first) {
13106                 sb.append(", ");
13107         }
13108       sb.append("macaddress:");
13109       if (this.macaddress == null) {
13110         sb.append("null");
13111       } else {
13112         sb.append(this.macaddress);
13113       }
13114       first = false;
13115       if (!first) {
13116                 sb.append(", ");
13117         }
13118       sb.append("afi:");
13119       if (this.afi == null) {
13120         sb.append("null");
13121       } else {
13122         sb.append(this.afi);
13123       }
13124       first = false;
13125       sb.append(")");
13126       return sb.toString();
13127     }
13128
13129     public void validate() throws org.apache.thrift.TException {
13130       // check for required fields
13131       // check for sub-struct validity
13132     }
13133
13134     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13135       try {
13136         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13137       } catch (org.apache.thrift.TException te) {
13138         throw new java.io.IOException(te);
13139       }
13140     }
13141
13142     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13143       try {
13144         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13145         __isset_bitfield = 0;
13146         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13147       } catch (org.apache.thrift.TException te) {
13148         throw new java.io.IOException(te);
13149       }
13150     }
13151
13152     private static class withdrawRoute_argsStandardSchemeFactory implements SchemeFactory {
13153       @Override
13154         public withdrawRoute_argsStandardScheme getScheme() {
13155         return new withdrawRoute_argsStandardScheme();
13156       }
13157     }
13158
13159     private static class withdrawRoute_argsStandardScheme extends StandardScheme<withdrawRoute_args> {
13160
13161       @Override
13162         public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
13163         org.apache.thrift.protocol.TField schemeField;
13164         iprot.readStructBegin();
13165         while (true)
13166         {
13167           schemeField = iprot.readFieldBegin();
13168           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13169             break;
13170           }
13171           switch (schemeField.id) {
13172             case 1: // P_TYPE
13173               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13174                 struct.p_type = protocol_type.findByValue(iprot.readI32());
13175                 struct.setP_typeIsSet(true);
13176               } else {
13177                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13178               }
13179               break;
13180             case 2: // PREFIX
13181               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13182                 struct.prefix = iprot.readString();
13183                 struct.setPrefixIsSet(true);
13184               } else {
13185                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13186               }
13187               break;
13188             case 3: // RD
13189               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13190                 struct.rd = iprot.readString();
13191                 struct.setRdIsSet(true);
13192               } else {
13193                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13194               }
13195               break;
13196             case 4: // ETHTAG
13197               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13198                 struct.ethtag = iprot.readI32();
13199                 struct.setEthtagIsSet(true);
13200               } else {
13201                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13202               }
13203               break;
13204             case 5: // ESI
13205               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13206                 struct.esi = iprot.readString();
13207                 struct.setEsiIsSet(true);
13208               } else {
13209                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13210               }
13211               break;
13212             case 6: // MACADDRESS
13213               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13214                 struct.macaddress = iprot.readString();
13215                 struct.setMacaddressIsSet(true);
13216               } else {
13217                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13218               }
13219               break;
13220             case 7: // AFI
13221               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13222                 struct.afi = af_afi.findByValue(iprot.readI32());
13223                 struct.setAfiIsSet(true);
13224               } else {
13225                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13226               }
13227               break;
13228             default:
13229               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13230           }
13231           iprot.readFieldEnd();
13232         }
13233         iprot.readStructEnd();
13234
13235         // check for required fields of primitive type, which can't be checked in the validate method
13236         struct.validate();
13237       }
13238
13239       @Override
13240         public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
13241         struct.validate();
13242
13243         oprot.writeStructBegin(STRUCT_DESC);
13244         if (struct.p_type != null) {
13245           oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
13246           oprot.writeI32(struct.p_type.getValue());
13247           oprot.writeFieldEnd();
13248         }
13249         if (struct.prefix != null) {
13250           oprot.writeFieldBegin(PREFIX_FIELD_DESC);
13251           oprot.writeString(struct.prefix);
13252           oprot.writeFieldEnd();
13253         }
13254         if (struct.rd != null) {
13255           oprot.writeFieldBegin(RD_FIELD_DESC);
13256           oprot.writeString(struct.rd);
13257           oprot.writeFieldEnd();
13258         }
13259         oprot.writeFieldBegin(ETHTAG_FIELD_DESC);
13260         oprot.writeI32(struct.ethtag);
13261         oprot.writeFieldEnd();
13262         if (struct.esi != null) {
13263           oprot.writeFieldBegin(ESI_FIELD_DESC);
13264           oprot.writeString(struct.esi);
13265           oprot.writeFieldEnd();
13266         }
13267         if (struct.macaddress != null) {
13268           oprot.writeFieldBegin(MACADDRESS_FIELD_DESC);
13269           oprot.writeString(struct.macaddress);
13270           oprot.writeFieldEnd();
13271         }
13272         if (struct.afi != null) {
13273           oprot.writeFieldBegin(AFI_FIELD_DESC);
13274           oprot.writeI32(struct.afi.getValue());
13275           oprot.writeFieldEnd();
13276         }
13277         oprot.writeFieldStop();
13278         oprot.writeStructEnd();
13279       }
13280
13281     }
13282
13283     private static class withdrawRoute_argsTupleSchemeFactory implements SchemeFactory {
13284       @Override
13285         public withdrawRoute_argsTupleScheme getScheme() {
13286         return new withdrawRoute_argsTupleScheme();
13287       }
13288     }
13289
13290     private static class withdrawRoute_argsTupleScheme extends TupleScheme<withdrawRoute_args> {
13291
13292       @Override
13293       public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
13294         TTupleProtocol oprot = (TTupleProtocol) prot;
13295         BitSet optionals = new BitSet();
13296         if (struct.isSetP_type()) {
13297           optionals.set(0);
13298         }
13299         if (struct.isSetPrefix()) {
13300           optionals.set(1);
13301         }
13302         if (struct.isSetRd()) {
13303           optionals.set(2);
13304         }
13305         if (struct.isSetEthtag()) {
13306           optionals.set(3);
13307         }
13308         if (struct.isSetEsi()) {
13309           optionals.set(4);
13310         }
13311         if (struct.isSetMacaddress()) {
13312           optionals.set(5);
13313         }
13314         if (struct.isSetAfi()) {
13315           optionals.set(6);
13316         }
13317         oprot.writeBitSet(optionals, 7);
13318         if (struct.isSetP_type()) {
13319           oprot.writeI32(struct.p_type.getValue());
13320         }
13321         if (struct.isSetPrefix()) {
13322           oprot.writeString(struct.prefix);
13323         }
13324         if (struct.isSetRd()) {
13325           oprot.writeString(struct.rd);
13326         }
13327         if (struct.isSetEthtag()) {
13328           oprot.writeI32(struct.ethtag);
13329         }
13330         if (struct.isSetEsi()) {
13331           oprot.writeString(struct.esi);
13332         }
13333         if (struct.isSetMacaddress()) {
13334           oprot.writeString(struct.macaddress);
13335         }
13336         if (struct.isSetAfi()) {
13337           oprot.writeI32(struct.afi.getValue());
13338         }
13339       }
13340
13341       @Override
13342       public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
13343         TTupleProtocol iprot = (TTupleProtocol) prot;
13344         BitSet incoming = iprot.readBitSet(7);
13345         if (incoming.get(0)) {
13346           struct.p_type = protocol_type.findByValue(iprot.readI32());
13347           struct.setP_typeIsSet(true);
13348         }
13349         if (incoming.get(1)) {
13350           struct.prefix = iprot.readString();
13351           struct.setPrefixIsSet(true);
13352         }
13353         if (incoming.get(2)) {
13354           struct.rd = iprot.readString();
13355           struct.setRdIsSet(true);
13356         }
13357         if (incoming.get(3)) {
13358           struct.ethtag = iprot.readI32();
13359           struct.setEthtagIsSet(true);
13360         }
13361         if (incoming.get(4)) {
13362           struct.esi = iprot.readString();
13363           struct.setEsiIsSet(true);
13364         }
13365         if (incoming.get(5)) {
13366           struct.macaddress = iprot.readString();
13367           struct.setMacaddressIsSet(true);
13368         }
13369         if (incoming.get(6)) {
13370           struct.afi = af_afi.findByValue(iprot.readI32());
13371           struct.setAfiIsSet(true);
13372         }
13373       }
13374     }
13375
13376   }
13377
13378   public static class withdrawRoute_result implements org.apache.thrift.TBase<withdrawRoute_result, withdrawRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_result>   {
13379     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_result");
13380
13381     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);
13382
13383     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13384     static {
13385       schemes.put(StandardScheme.class, new withdrawRoute_resultStandardSchemeFactory());
13386       schemes.put(TupleScheme.class, new withdrawRoute_resultTupleSchemeFactory());
13387     }
13388
13389     public int success; // required
13390
13391     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13392     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13393       SUCCESS((short)0, "success");
13394
13395       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13396
13397       static {
13398         for (_Fields field : EnumSet.allOf(_Fields.class)) {
13399           byName.put(field.getFieldName(), field);
13400         }
13401       }
13402
13403       /**
13404        * Find the _Fields constant that matches fieldId, or null if its not found.
13405        */
13406       public static _Fields findByThriftId(int fieldId) {
13407         switch(fieldId) {
13408           case 0: // SUCCESS
13409             return SUCCESS;
13410           default:
13411             return null;
13412         }
13413       }
13414
13415       /**
13416        * Find the _Fields constant that matches fieldId, throwing an exception
13417        * if it is not found.
13418        */
13419       public static _Fields findByThriftIdOrThrow(int fieldId) {
13420         _Fields fields = findByThriftId(fieldId);
13421         if (fields == null) {
13422                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13423                 }
13424         return fields;
13425       }
13426
13427       /**
13428        * Find the _Fields constant that matches name, or null if its not found.
13429        */
13430       public static _Fields findByName(String name) {
13431         return byName.get(name);
13432       }
13433
13434       private final short _thriftId;
13435       private final String _fieldName;
13436
13437       _Fields(short thriftId, String fieldName) {
13438         _thriftId = thriftId;
13439         _fieldName = fieldName;
13440       }
13441
13442       @Override
13443         public short getThriftFieldId() {
13444         return _thriftId;
13445       }
13446
13447       @Override
13448         public String getFieldName() {
13449         return _fieldName;
13450       }
13451     }
13452
13453     // isset id assignments
13454     private static final int __SUCCESS_ISSET_ID = 0;
13455     private byte __isset_bitfield = 0;
13456     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13457     static {
13458       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13459       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
13460           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
13461       metaDataMap = Collections.unmodifiableMap(tmpMap);
13462       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_result.class, metaDataMap);
13463     }
13464
13465     public withdrawRoute_result() {
13466     }
13467
13468     public withdrawRoute_result(
13469       int success)
13470     {
13471       this();
13472       this.success = success;
13473       setSuccessIsSet(true);
13474     }
13475
13476     /**
13477      * Performs a deep copy on <i>other</i>.
13478      */
13479     public withdrawRoute_result(withdrawRoute_result other) {
13480       __isset_bitfield = other.__isset_bitfield;
13481       this.success = other.success;
13482     }
13483
13484     @Override
13485         public withdrawRoute_result deepCopy() {
13486       return new withdrawRoute_result(this);
13487     }
13488
13489     @Override
13490     public void clear() {
13491       setSuccessIsSet(false);
13492       this.success = 0;
13493     }
13494
13495     public int getSuccess() {
13496       return this.success;
13497     }
13498
13499     public withdrawRoute_result setSuccess(int success) {
13500       this.success = success;
13501       setSuccessIsSet(true);
13502       return this;
13503     }
13504
13505     public void unsetSuccess() {
13506       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13507     }
13508
13509     /** Returns true if field success is set (has been assigned a value) and false otherwise */
13510     public boolean isSetSuccess() {
13511       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13512     }
13513
13514     public void setSuccessIsSet(boolean value) {
13515       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
13516     }
13517
13518     @Override
13519         public void setFieldValue(_Fields field, Object value) {
13520       switch (field) {
13521       case SUCCESS:
13522         if (value == null) {
13523           unsetSuccess();
13524         } else {
13525           setSuccess((Integer)value);
13526         }
13527         break;
13528
13529       }
13530     }
13531
13532     @Override
13533         public Object getFieldValue(_Fields field) {
13534       switch (field) {
13535       case SUCCESS:
13536         return Integer.valueOf(getSuccess());
13537
13538       }
13539       throw new IllegalStateException();
13540     }
13541
13542     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13543     @Override
13544         public boolean isSet(_Fields field) {
13545       if (field == null) {
13546         throw new IllegalArgumentException();
13547       }
13548
13549       switch (field) {
13550       case SUCCESS:
13551         return isSetSuccess();
13552       }
13553       throw new IllegalStateException();
13554     }
13555
13556     @Override
13557     public boolean equals(Object that) {
13558       if (that == null) {
13559                 return false;
13560         }
13561       if (that instanceof withdrawRoute_result) {
13562                 return this.equals((withdrawRoute_result)that);
13563         }
13564       return false;
13565     }
13566
13567     public boolean equals(withdrawRoute_result that) {
13568       if (that == null) {
13569                 return false;
13570         }
13571
13572       boolean this_present_success = true;
13573       boolean that_present_success = true;
13574       if (this_present_success || that_present_success) {
13575         if (!(this_present_success && that_present_success)) {
13576                         return false;
13577                 }
13578         if (this.success != that.success) {
13579                         return false;
13580                 }
13581       }
13582
13583       return true;
13584     }
13585
13586     @Override
13587     public int hashCode() {
13588       List<Object> list = new ArrayList<Object>();
13589
13590       boolean present_success = true;
13591       list.add(present_success);
13592       if (present_success)
13593         list.add(success);
13594       return list.hashCode();
13595     }
13596
13597     @Override
13598     public int compareTo(withdrawRoute_result other) {
13599       if (!getClass().equals(other.getClass())) {
13600         return getClass().getName().compareTo(other.getClass().getName());
13601       }
13602
13603       int lastComparison = 0;
13604
13605       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
13606       if (lastComparison != 0) {
13607         return lastComparison;
13608       }
13609       if (isSetSuccess()) {
13610         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
13611         if (lastComparison != 0) {
13612           return lastComparison;
13613         }
13614       }
13615       return 0;
13616     }
13617
13618     @Override
13619         public _Fields fieldForId(int fieldId) {
13620       return _Fields.findByThriftId(fieldId);
13621     }
13622
13623     @Override
13624         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13625       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13626     }
13627
13628     @Override
13629         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13630       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13631       }
13632
13633     @Override
13634     public String toString() {
13635       StringBuilder sb = new StringBuilder("withdrawRoute_result(");
13636       boolean first = true;
13637
13638       sb.append("success:");
13639       sb.append(this.success);
13640       first = false;
13641       sb.append(")");
13642       return sb.toString();
13643     }
13644
13645     public void validate() throws org.apache.thrift.TException {
13646       // check for required fields
13647       // check for sub-struct validity
13648     }
13649
13650     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13651       try {
13652         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13653       } catch (org.apache.thrift.TException te) {
13654         throw new java.io.IOException(te);
13655       }
13656     }
13657
13658     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13659       try {
13660         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13661         __isset_bitfield = 0;
13662         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13663       } catch (org.apache.thrift.TException te) {
13664         throw new java.io.IOException(te);
13665       }
13666     }
13667
13668     private static class withdrawRoute_resultStandardSchemeFactory implements SchemeFactory {
13669       @Override
13670         public withdrawRoute_resultStandardScheme getScheme() {
13671         return new withdrawRoute_resultStandardScheme();
13672       }
13673     }
13674
13675     private static class withdrawRoute_resultStandardScheme extends StandardScheme<withdrawRoute_result> {
13676
13677       @Override
13678         public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
13679         org.apache.thrift.protocol.TField schemeField;
13680         iprot.readStructBegin();
13681         while (true)
13682         {
13683           schemeField = iprot.readFieldBegin();
13684           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13685             break;
13686           }
13687           switch (schemeField.id) {
13688             case 0: // SUCCESS
13689               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13690                 struct.success = iprot.readI32();
13691                 struct.setSuccessIsSet(true);
13692               } else {
13693                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13694               }
13695               break;
13696             default:
13697               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13698           }
13699           iprot.readFieldEnd();
13700         }
13701         iprot.readStructEnd();
13702
13703         // check for required fields of primitive type, which can't be checked in the validate method
13704         struct.validate();
13705       }
13706
13707       @Override
13708         public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
13709         struct.validate();
13710
13711         oprot.writeStructBegin(STRUCT_DESC);
13712         if (struct.isSetSuccess()) {
13713           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13714           oprot.writeI32(struct.success);
13715           oprot.writeFieldEnd();
13716         }
13717         oprot.writeFieldStop();
13718         oprot.writeStructEnd();
13719       }
13720
13721     }
13722
13723     private static class withdrawRoute_resultTupleSchemeFactory implements SchemeFactory {
13724       @Override
13725         public withdrawRoute_resultTupleScheme getScheme() {
13726         return new withdrawRoute_resultTupleScheme();
13727       }
13728     }
13729
13730     private static class withdrawRoute_resultTupleScheme extends TupleScheme<withdrawRoute_result> {
13731
13732       @Override
13733       public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
13734         TTupleProtocol oprot = (TTupleProtocol) prot;
13735         BitSet optionals = new BitSet();
13736         if (struct.isSetSuccess()) {
13737           optionals.set(0);
13738         }
13739         oprot.writeBitSet(optionals, 1);
13740         if (struct.isSetSuccess()) {
13741           oprot.writeI32(struct.success);
13742         }
13743       }
13744
13745       @Override
13746       public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
13747         TTupleProtocol iprot = (TTupleProtocol) prot;
13748         BitSet incoming = iprot.readBitSet(1);
13749         if (incoming.get(0)) {
13750           struct.success = iprot.readI32();
13751           struct.setSuccessIsSet(true);
13752         }
13753       }
13754     }
13755
13756   }
13757
13758   public static class setEbgpMultihop_args implements org.apache.thrift.TBase<setEbgpMultihop_args, setEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_args>   {
13759     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_args");
13760
13761     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);
13762     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);
13763
13764     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13765     static {
13766       schemes.put(StandardScheme.class, new setEbgpMultihop_argsStandardSchemeFactory());
13767       schemes.put(TupleScheme.class, new setEbgpMultihop_argsTupleSchemeFactory());
13768     }
13769
13770     public String peerIp; // required
13771     public int nHops; // required
13772
13773     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13774     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13775       PEER_IP((short)1, "peerIp"),
13776       N_HOPS((short)2, "nHops");
13777
13778       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13779
13780       static {
13781         for (_Fields field : EnumSet.allOf(_Fields.class)) {
13782           byName.put(field.getFieldName(), field);
13783         }
13784       }
13785
13786       /**
13787        * Find the _Fields constant that matches fieldId, or null if its not found.
13788        */
13789       public static _Fields findByThriftId(int fieldId) {
13790         switch(fieldId) {
13791           case 1: // PEER_IP
13792             return PEER_IP;
13793           case 2: // N_HOPS
13794             return N_HOPS;
13795           default:
13796             return null;
13797         }
13798       }
13799
13800       /**
13801        * Find the _Fields constant that matches fieldId, throwing an exception
13802        * if it is not found.
13803        */
13804       public static _Fields findByThriftIdOrThrow(int fieldId) {
13805         _Fields fields = findByThriftId(fieldId);
13806         if (fields == null) {
13807                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13808                 }
13809         return fields;
13810       }
13811
13812       /**
13813        * Find the _Fields constant that matches name, or null if its not found.
13814        */
13815       public static _Fields findByName(String name) {
13816         return byName.get(name);
13817       }
13818
13819       private final short _thriftId;
13820       private final String _fieldName;
13821
13822       _Fields(short thriftId, String fieldName) {
13823         _thriftId = thriftId;
13824         _fieldName = fieldName;
13825       }
13826
13827       @Override
13828         public short getThriftFieldId() {
13829         return _thriftId;
13830       }
13831
13832       @Override
13833         public String getFieldName() {
13834         return _fieldName;
13835       }
13836     }
13837
13838     // isset id assignments
13839     private static final int __NHOPS_ISSET_ID = 0;
13840     private byte __isset_bitfield = 0;
13841     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13842     static {
13843       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13844       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
13845           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13846       tmpMap.put(_Fields.N_HOPS, new org.apache.thrift.meta_data.FieldMetaData("nHops", org.apache.thrift.TFieldRequirementType.DEFAULT,
13847           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
13848       metaDataMap = Collections.unmodifiableMap(tmpMap);
13849       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_args.class, metaDataMap);
13850     }
13851
13852     public setEbgpMultihop_args() {
13853     }
13854
13855     public setEbgpMultihop_args(
13856       String peerIp,
13857       int nHops)
13858     {
13859       this();
13860       this.peerIp = peerIp;
13861       this.nHops = nHops;
13862       setNHopsIsSet(true);
13863     }
13864
13865     /**
13866      * Performs a deep copy on <i>other</i>.
13867      */
13868     public setEbgpMultihop_args(setEbgpMultihop_args other) {
13869       __isset_bitfield = other.__isset_bitfield;
13870       if (other.isSetPeerIp()) {
13871         this.peerIp = other.peerIp;
13872       }
13873       this.nHops = other.nHops;
13874     }
13875
13876     @Override
13877         public setEbgpMultihop_args deepCopy() {
13878       return new setEbgpMultihop_args(this);
13879     }
13880
13881     @Override
13882     public void clear() {
13883       this.peerIp = null;
13884       setNHopsIsSet(false);
13885       this.nHops = 0;
13886     }
13887
13888     public String getPeerIp() {
13889       return this.peerIp;
13890     }
13891
13892     public setEbgpMultihop_args setPeerIp(String peerIp) {
13893       this.peerIp = peerIp;
13894       return this;
13895     }
13896
13897     public void unsetPeerIp() {
13898       this.peerIp = null;
13899     }
13900
13901     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
13902     public boolean isSetPeerIp() {
13903       return this.peerIp != null;
13904     }
13905
13906     public void setPeerIpIsSet(boolean value) {
13907       if (!value) {
13908         this.peerIp = null;
13909       }
13910     }
13911
13912     public int getNHops() {
13913       return this.nHops;
13914     }
13915
13916     public setEbgpMultihop_args setNHops(int nHops) {
13917       this.nHops = nHops;
13918       setNHopsIsSet(true);
13919       return this;
13920     }
13921
13922     public void unsetNHops() {
13923       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NHOPS_ISSET_ID);
13924     }
13925
13926     /** Returns true if field nHops is set (has been assigned a value) and false otherwise */
13927     public boolean isSetNHops() {
13928       return EncodingUtils.testBit(__isset_bitfield, __NHOPS_ISSET_ID);
13929     }
13930
13931     public void setNHopsIsSet(boolean value) {
13932       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NHOPS_ISSET_ID, value);
13933     }
13934
13935     @Override
13936         public void setFieldValue(_Fields field, Object value) {
13937       switch (field) {
13938       case PEER_IP:
13939         if (value == null) {
13940           unsetPeerIp();
13941         } else {
13942           setPeerIp((String)value);
13943         }
13944         break;
13945
13946       case N_HOPS:
13947         if (value == null) {
13948           unsetNHops();
13949         } else {
13950           setNHops((Integer)value);
13951         }
13952         break;
13953
13954       }
13955     }
13956
13957     @Override
13958         public Object getFieldValue(_Fields field) {
13959       switch (field) {
13960       case PEER_IP:
13961         return getPeerIp();
13962
13963       case N_HOPS:
13964         return Integer.valueOf(getNHops());
13965
13966       }
13967       throw new IllegalStateException();
13968     }
13969
13970     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13971     @Override
13972         public boolean isSet(_Fields field) {
13973       if (field == null) {
13974         throw new IllegalArgumentException();
13975       }
13976
13977       switch (field) {
13978       case PEER_IP:
13979         return isSetPeerIp();
13980       case N_HOPS:
13981         return isSetNHops();
13982       }
13983       throw new IllegalStateException();
13984     }
13985
13986     @Override
13987     public boolean equals(Object that) {
13988       if (that == null) {
13989                 return false;
13990         }
13991       if (that instanceof setEbgpMultihop_args) {
13992                 return this.equals((setEbgpMultihop_args)that);
13993         }
13994       return false;
13995     }
13996
13997     public boolean equals(setEbgpMultihop_args that) {
13998       if (that == null) {
13999                 return false;
14000         }
14001
14002       boolean this_present_peerIp = true && this.isSetPeerIp();
14003       boolean that_present_peerIp = true && that.isSetPeerIp();
14004       if (this_present_peerIp || that_present_peerIp) {
14005         if (!(this_present_peerIp && that_present_peerIp)) {
14006                         return false;
14007                 }
14008         if (!this.peerIp.equals(that.peerIp)) {
14009                         return false;
14010                 }
14011       }
14012
14013       boolean this_present_nHops = true;
14014       boolean that_present_nHops = true;
14015       if (this_present_nHops || that_present_nHops) {
14016         if (!(this_present_nHops && that_present_nHops)) {
14017                         return false;
14018                 }
14019         if (this.nHops != that.nHops) {
14020                         return false;
14021                 }
14022       }
14023
14024       return true;
14025     }
14026
14027     @Override
14028     public int hashCode() {
14029       List<Object> list = new ArrayList<Object>();
14030
14031       boolean present_peerIp = true && (isSetPeerIp());
14032       list.add(present_peerIp);
14033       if (present_peerIp)
14034         list.add(peerIp);
14035       boolean present_nHops = true;
14036       list.add(present_nHops);
14037       if (present_nHops)
14038         list.add(nHops);
14039       return list.hashCode();
14040     }
14041
14042     @Override
14043     public int compareTo(setEbgpMultihop_args other) {
14044       if (!getClass().equals(other.getClass())) {
14045         return getClass().getName().compareTo(other.getClass().getName());
14046       }
14047
14048       int lastComparison = 0;
14049
14050       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
14051       if (lastComparison != 0) {
14052         return lastComparison;
14053       }
14054       if (isSetPeerIp()) {
14055         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
14056         if (lastComparison != 0) {
14057           return lastComparison;
14058         }
14059       }
14060       lastComparison = Boolean.valueOf(isSetNHops()).compareTo(other.isSetNHops());
14061       if (lastComparison != 0) {
14062         return lastComparison;
14063       }
14064       if (isSetNHops()) {
14065         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nHops, other.nHops);
14066         if (lastComparison != 0) {
14067           return lastComparison;
14068         }
14069       }
14070       return 0;
14071     }
14072
14073     @Override
14074         public _Fields fieldForId(int fieldId) {
14075       return _Fields.findByThriftId(fieldId);
14076     }
14077
14078     @Override
14079         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14080       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14081     }
14082
14083     @Override
14084         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14085       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14086     }
14087
14088     @Override
14089     public String toString() {
14090       StringBuilder sb = new StringBuilder("setEbgpMultihop_args(");
14091       boolean first = true;
14092
14093       sb.append("peerIp:");
14094       if (this.peerIp == null) {
14095         sb.append("null");
14096       } else {
14097         sb.append(this.peerIp);
14098       }
14099       first = false;
14100       if (!first) {
14101                 sb.append(", ");
14102         }
14103       sb.append("nHops:");
14104       sb.append(this.nHops);
14105       first = false;
14106       sb.append(")");
14107       return sb.toString();
14108     }
14109
14110     public void validate() throws org.apache.thrift.TException {
14111       // check for required fields
14112       // check for sub-struct validity
14113     }
14114
14115     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14116       try {
14117         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14118       } catch (org.apache.thrift.TException te) {
14119         throw new java.io.IOException(te);
14120       }
14121     }
14122
14123     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14124       try {
14125         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14126         __isset_bitfield = 0;
14127         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14128       } catch (org.apache.thrift.TException te) {
14129         throw new java.io.IOException(te);
14130       }
14131     }
14132
14133     private static class setEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
14134       @Override
14135         public setEbgpMultihop_argsStandardScheme getScheme() {
14136         return new setEbgpMultihop_argsStandardScheme();
14137       }
14138     }
14139
14140     private static class setEbgpMultihop_argsStandardScheme extends StandardScheme<setEbgpMultihop_args> {
14141
14142       @Override
14143         public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
14144         org.apache.thrift.protocol.TField schemeField;
14145         iprot.readStructBegin();
14146         while (true)
14147         {
14148           schemeField = iprot.readFieldBegin();
14149           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14150             break;
14151           }
14152           switch (schemeField.id) {
14153             case 1: // PEER_IP
14154               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14155                 struct.peerIp = iprot.readString();
14156                 struct.setPeerIpIsSet(true);
14157               } else {
14158                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14159               }
14160               break;
14161             case 2: // N_HOPS
14162               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14163                 struct.nHops = iprot.readI32();
14164                 struct.setNHopsIsSet(true);
14165               } else {
14166                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14167               }
14168               break;
14169             default:
14170               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14171           }
14172           iprot.readFieldEnd();
14173         }
14174         iprot.readStructEnd();
14175
14176         // check for required fields of primitive type, which can't be checked in the validate method
14177         struct.validate();
14178       }
14179
14180       @Override
14181         public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
14182         struct.validate();
14183
14184         oprot.writeStructBegin(STRUCT_DESC);
14185         if (struct.peerIp != null) {
14186           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
14187           oprot.writeString(struct.peerIp);
14188           oprot.writeFieldEnd();
14189         }
14190         oprot.writeFieldBegin(N_HOPS_FIELD_DESC);
14191         oprot.writeI32(struct.nHops);
14192         oprot.writeFieldEnd();
14193         oprot.writeFieldStop();
14194         oprot.writeStructEnd();
14195       }
14196
14197     }
14198
14199     private static class setEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
14200       @Override
14201         public setEbgpMultihop_argsTupleScheme getScheme() {
14202         return new setEbgpMultihop_argsTupleScheme();
14203       }
14204     }
14205
14206     private static class setEbgpMultihop_argsTupleScheme extends TupleScheme<setEbgpMultihop_args> {
14207
14208       @Override
14209       public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
14210         TTupleProtocol oprot = (TTupleProtocol) prot;
14211         BitSet optionals = new BitSet();
14212         if (struct.isSetPeerIp()) {
14213           optionals.set(0);
14214         }
14215         if (struct.isSetNHops()) {
14216           optionals.set(1);
14217         }
14218         oprot.writeBitSet(optionals, 2);
14219         if (struct.isSetPeerIp()) {
14220           oprot.writeString(struct.peerIp);
14221         }
14222         if (struct.isSetNHops()) {
14223           oprot.writeI32(struct.nHops);
14224         }
14225       }
14226
14227       @Override
14228       public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
14229         TTupleProtocol iprot = (TTupleProtocol) prot;
14230         BitSet incoming = iprot.readBitSet(2);
14231         if (incoming.get(0)) {
14232           struct.peerIp = iprot.readString();
14233           struct.setPeerIpIsSet(true);
14234         }
14235         if (incoming.get(1)) {
14236           struct.nHops = iprot.readI32();
14237           struct.setNHopsIsSet(true);
14238         }
14239       }
14240     }
14241
14242   }
14243
14244   public static class setEbgpMultihop_result implements org.apache.thrift.TBase<setEbgpMultihop_result, setEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_result>   {
14245     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_result");
14246
14247     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);
14248
14249     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14250     static {
14251       schemes.put(StandardScheme.class, new setEbgpMultihop_resultStandardSchemeFactory());
14252       schemes.put(TupleScheme.class, new setEbgpMultihop_resultTupleSchemeFactory());
14253     }
14254
14255     public int success; // required
14256
14257     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14258     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14259       SUCCESS((short)0, "success");
14260
14261       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14262
14263       static {
14264         for (_Fields field : EnumSet.allOf(_Fields.class)) {
14265           byName.put(field.getFieldName(), field);
14266         }
14267       }
14268
14269       /**
14270        * Find the _Fields constant that matches fieldId, or null if its not found.
14271        */
14272       public static _Fields findByThriftId(int fieldId) {
14273         switch(fieldId) {
14274           case 0: // SUCCESS
14275             return SUCCESS;
14276           default:
14277             return null;
14278         }
14279       }
14280
14281       /**
14282        * Find the _Fields constant that matches fieldId, throwing an exception
14283        * if it is not found.
14284        */
14285       public static _Fields findByThriftIdOrThrow(int fieldId) {
14286         _Fields fields = findByThriftId(fieldId);
14287         if (fields == null) {
14288                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14289                 }
14290         return fields;
14291       }
14292
14293       /**
14294        * Find the _Fields constant that matches name, or null if its not found.
14295        */
14296       public static _Fields findByName(String name) {
14297         return byName.get(name);
14298       }
14299
14300       private final short _thriftId;
14301       private final String _fieldName;
14302
14303       _Fields(short thriftId, String fieldName) {
14304         _thriftId = thriftId;
14305         _fieldName = fieldName;
14306       }
14307
14308       @Override
14309         public short getThriftFieldId() {
14310         return _thriftId;
14311       }
14312
14313       @Override
14314         public String getFieldName() {
14315         return _fieldName;
14316       }
14317     }
14318
14319     // isset id assignments
14320     private static final int __SUCCESS_ISSET_ID = 0;
14321     private byte __isset_bitfield = 0;
14322     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14323     static {
14324       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14325       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
14326           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
14327       metaDataMap = Collections.unmodifiableMap(tmpMap);
14328       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_result.class, metaDataMap);
14329     }
14330
14331     public setEbgpMultihop_result() {
14332     }
14333
14334     public setEbgpMultihop_result(
14335       int success)
14336     {
14337       this();
14338       this.success = success;
14339       setSuccessIsSet(true);
14340     }
14341
14342     /**
14343      * Performs a deep copy on <i>other</i>.
14344      */
14345     public setEbgpMultihop_result(setEbgpMultihop_result other) {
14346       __isset_bitfield = other.__isset_bitfield;
14347       this.success = other.success;
14348     }
14349
14350     @Override
14351         public setEbgpMultihop_result deepCopy() {
14352       return new setEbgpMultihop_result(this);
14353     }
14354
14355     @Override
14356     public void clear() {
14357       setSuccessIsSet(false);
14358       this.success = 0;
14359     }
14360
14361     public int getSuccess() {
14362       return this.success;
14363     }
14364
14365     public setEbgpMultihop_result setSuccess(int success) {
14366       this.success = success;
14367       setSuccessIsSet(true);
14368       return this;
14369     }
14370
14371     public void unsetSuccess() {
14372       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14373     }
14374
14375     /** Returns true if field success is set (has been assigned a value) and false otherwise */
14376     public boolean isSetSuccess() {
14377       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14378     }
14379
14380     public void setSuccessIsSet(boolean value) {
14381       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
14382     }
14383
14384     @Override
14385         public void setFieldValue(_Fields field, Object value) {
14386       switch (field) {
14387       case SUCCESS:
14388         if (value == null) {
14389           unsetSuccess();
14390         } else {
14391           setSuccess((Integer)value);
14392         }
14393         break;
14394
14395       }
14396     }
14397
14398     @Override
14399         public Object getFieldValue(_Fields field) {
14400       switch (field) {
14401       case SUCCESS:
14402         return Integer.valueOf(getSuccess());
14403
14404       }
14405       throw new IllegalStateException();
14406     }
14407
14408     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14409     @Override
14410         public boolean isSet(_Fields field) {
14411       if (field == null) {
14412         throw new IllegalArgumentException();
14413       }
14414
14415       switch (field) {
14416       case SUCCESS:
14417         return isSetSuccess();
14418       }
14419       throw new IllegalStateException();
14420     }
14421
14422     @Override
14423     public boolean equals(Object that) {
14424       if (that == null) {
14425                 return false;
14426         }
14427       if (that instanceof setEbgpMultihop_result) {
14428                 return this.equals((setEbgpMultihop_result)that);
14429         }
14430       return false;
14431     }
14432
14433     public boolean equals(setEbgpMultihop_result that) {
14434       if (that == null) {
14435                 return false;
14436         }
14437
14438       boolean this_present_success = true;
14439       boolean that_present_success = true;
14440       if (this_present_success || that_present_success) {
14441         if (!(this_present_success && that_present_success)) {
14442                         return false;
14443                 }
14444         if (this.success != that.success) {
14445                         return false;
14446                 }
14447       }
14448
14449       return true;
14450     }
14451
14452     @Override
14453     public int hashCode() {
14454       List<Object> list = new ArrayList<Object>();
14455
14456       boolean present_success = true;
14457       list.add(present_success);
14458       if (present_success)
14459         list.add(success);
14460       return list.hashCode();
14461     }
14462
14463     @Override
14464     public int compareTo(setEbgpMultihop_result other) {
14465       if (!getClass().equals(other.getClass())) {
14466         return getClass().getName().compareTo(other.getClass().getName());
14467       }
14468
14469       int lastComparison = 0;
14470
14471       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
14472       if (lastComparison != 0) {
14473         return lastComparison;
14474       }
14475       if (isSetSuccess()) {
14476         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
14477         if (lastComparison != 0) {
14478           return lastComparison;
14479         }
14480       }
14481       return 0;
14482     }
14483
14484     @Override
14485         public _Fields fieldForId(int fieldId) {
14486       return _Fields.findByThriftId(fieldId);
14487     }
14488
14489     @Override
14490         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14491       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14492     }
14493
14494     @Override
14495         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14496       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14497       }
14498
14499     @Override
14500     public String toString() {
14501       StringBuilder sb = new StringBuilder("setEbgpMultihop_result(");
14502       boolean first = true;
14503
14504       sb.append("success:");
14505       sb.append(this.success);
14506       first = false;
14507       sb.append(")");
14508       return sb.toString();
14509     }
14510
14511     public void validate() throws org.apache.thrift.TException {
14512       // check for required fields
14513       // check for sub-struct validity
14514     }
14515
14516     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14517       try {
14518         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14519       } catch (org.apache.thrift.TException te) {
14520         throw new java.io.IOException(te);
14521       }
14522     }
14523
14524     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14525       try {
14526         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14527         __isset_bitfield = 0;
14528         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14529       } catch (org.apache.thrift.TException te) {
14530         throw new java.io.IOException(te);
14531       }
14532     }
14533
14534     private static class setEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
14535       @Override
14536         public setEbgpMultihop_resultStandardScheme getScheme() {
14537         return new setEbgpMultihop_resultStandardScheme();
14538       }
14539     }
14540
14541     private static class setEbgpMultihop_resultStandardScheme extends StandardScheme<setEbgpMultihop_result> {
14542
14543       @Override
14544         public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
14545         org.apache.thrift.protocol.TField schemeField;
14546         iprot.readStructBegin();
14547         while (true)
14548         {
14549           schemeField = iprot.readFieldBegin();
14550           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14551             break;
14552           }
14553           switch (schemeField.id) {
14554             case 0: // SUCCESS
14555               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14556                 struct.success = iprot.readI32();
14557                 struct.setSuccessIsSet(true);
14558               } else {
14559                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14560               }
14561               break;
14562             default:
14563               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14564           }
14565           iprot.readFieldEnd();
14566         }
14567         iprot.readStructEnd();
14568
14569         // check for required fields of primitive type, which can't be checked in the validate method
14570         struct.validate();
14571       }
14572
14573       @Override
14574         public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
14575         struct.validate();
14576
14577         oprot.writeStructBegin(STRUCT_DESC);
14578         if (struct.isSetSuccess()) {
14579           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14580           oprot.writeI32(struct.success);
14581           oprot.writeFieldEnd();
14582         }
14583         oprot.writeFieldStop();
14584         oprot.writeStructEnd();
14585       }
14586
14587     }
14588
14589     private static class setEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
14590       @Override
14591         public setEbgpMultihop_resultTupleScheme getScheme() {
14592         return new setEbgpMultihop_resultTupleScheme();
14593       }
14594     }
14595
14596     private static class setEbgpMultihop_resultTupleScheme extends TupleScheme<setEbgpMultihop_result> {
14597
14598       @Override
14599       public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
14600         TTupleProtocol oprot = (TTupleProtocol) prot;
14601         BitSet optionals = new BitSet();
14602         if (struct.isSetSuccess()) {
14603           optionals.set(0);
14604         }
14605         oprot.writeBitSet(optionals, 1);
14606         if (struct.isSetSuccess()) {
14607           oprot.writeI32(struct.success);
14608         }
14609       }
14610
14611       @Override
14612       public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
14613         TTupleProtocol iprot = (TTupleProtocol) prot;
14614         BitSet incoming = iprot.readBitSet(1);
14615         if (incoming.get(0)) {
14616           struct.success = iprot.readI32();
14617           struct.setSuccessIsSet(true);
14618         }
14619       }
14620     }
14621
14622   }
14623
14624   public static class unsetEbgpMultihop_args implements org.apache.thrift.TBase<unsetEbgpMultihop_args, unsetEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_args>   {
14625     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_args");
14626
14627     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);
14628
14629     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14630     static {
14631       schemes.put(StandardScheme.class, new unsetEbgpMultihop_argsStandardSchemeFactory());
14632       schemes.put(TupleScheme.class, new unsetEbgpMultihop_argsTupleSchemeFactory());
14633     }
14634
14635     public String peerIp; // required
14636
14637     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14638     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14639       PEER_IP((short)1, "peerIp");
14640
14641       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14642
14643       static {
14644         for (_Fields field : EnumSet.allOf(_Fields.class)) {
14645           byName.put(field.getFieldName(), field);
14646         }
14647       }
14648
14649       /**
14650        * Find the _Fields constant that matches fieldId, or null if its not found.
14651        */
14652       public static _Fields findByThriftId(int fieldId) {
14653         switch(fieldId) {
14654           case 1: // PEER_IP
14655             return PEER_IP;
14656           default:
14657             return null;
14658         }
14659       }
14660
14661       /**
14662        * Find the _Fields constant that matches fieldId, throwing an exception
14663        * if it is not found.
14664        */
14665       public static _Fields findByThriftIdOrThrow(int fieldId) {
14666         _Fields fields = findByThriftId(fieldId);
14667         if (fields == null) {
14668                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14669                 }
14670         return fields;
14671       }
14672
14673       /**
14674        * Find the _Fields constant that matches name, or null if its not found.
14675        */
14676       public static _Fields findByName(String name) {
14677         return byName.get(name);
14678       }
14679
14680       private final short _thriftId;
14681       private final String _fieldName;
14682
14683       _Fields(short thriftId, String fieldName) {
14684         _thriftId = thriftId;
14685         _fieldName = fieldName;
14686       }
14687
14688       @Override
14689         public short getThriftFieldId() {
14690         return _thriftId;
14691       }
14692
14693       @Override
14694         public String getFieldName() {
14695         return _fieldName;
14696       }
14697     }
14698
14699     // isset id assignments
14700     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14701     static {
14702       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14703       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
14704           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14705       metaDataMap = Collections.unmodifiableMap(tmpMap);
14706       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_args.class, metaDataMap);
14707     }
14708
14709     public unsetEbgpMultihop_args() {
14710     }
14711
14712     public unsetEbgpMultihop_args(
14713       String peerIp)
14714     {
14715       this();
14716       this.peerIp = peerIp;
14717     }
14718
14719     /**
14720      * Performs a deep copy on <i>other</i>.
14721      */
14722     public unsetEbgpMultihop_args(unsetEbgpMultihop_args other) {
14723       if (other.isSetPeerIp()) {
14724         this.peerIp = other.peerIp;
14725       }
14726     }
14727
14728     @Override
14729         public unsetEbgpMultihop_args deepCopy() {
14730       return new unsetEbgpMultihop_args(this);
14731     }
14732
14733     @Override
14734     public void clear() {
14735       this.peerIp = null;
14736     }
14737
14738     public String getPeerIp() {
14739       return this.peerIp;
14740     }
14741
14742     public unsetEbgpMultihop_args setPeerIp(String peerIp) {
14743       this.peerIp = peerIp;
14744       return this;
14745     }
14746
14747     public void unsetPeerIp() {
14748       this.peerIp = null;
14749     }
14750
14751     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
14752     public boolean isSetPeerIp() {
14753       return this.peerIp != null;
14754     }
14755
14756     public void setPeerIpIsSet(boolean value) {
14757       if (!value) {
14758         this.peerIp = null;
14759       }
14760     }
14761
14762     @Override
14763         public void setFieldValue(_Fields field, Object value) {
14764       switch (field) {
14765       case PEER_IP:
14766         if (value == null) {
14767           unsetPeerIp();
14768         } else {
14769           setPeerIp((String)value);
14770         }
14771         break;
14772
14773       }
14774     }
14775
14776     @Override
14777         public Object getFieldValue(_Fields field) {
14778       switch (field) {
14779       case PEER_IP:
14780         return getPeerIp();
14781
14782       }
14783       throw new IllegalStateException();
14784     }
14785
14786     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14787     @Override
14788         public boolean isSet(_Fields field) {
14789       if (field == null) {
14790         throw new IllegalArgumentException();
14791       }
14792
14793       switch (field) {
14794       case PEER_IP:
14795         return isSetPeerIp();
14796       }
14797       throw new IllegalStateException();
14798     }
14799
14800     @Override
14801     public boolean equals(Object that) {
14802       if (that == null) {
14803                 return false;
14804         }
14805       if (that instanceof unsetEbgpMultihop_args) {
14806                 return this.equals((unsetEbgpMultihop_args)that);
14807         }
14808       return false;
14809     }
14810
14811     public boolean equals(unsetEbgpMultihop_args that) {
14812       if (that == null) {
14813                 return false;
14814         }
14815
14816       boolean this_present_peerIp = true && this.isSetPeerIp();
14817       boolean that_present_peerIp = true && that.isSetPeerIp();
14818       if (this_present_peerIp || that_present_peerIp) {
14819         if (!(this_present_peerIp && that_present_peerIp)) {
14820                         return false;
14821                 }
14822         if (!this.peerIp.equals(that.peerIp)) {
14823                         return false;
14824                 }
14825       }
14826
14827       return true;
14828     }
14829
14830     @Override
14831     public int hashCode() {
14832       List<Object> list = new ArrayList<Object>();
14833
14834       boolean present_peerIp = true && (isSetPeerIp());
14835       list.add(present_peerIp);
14836       if (present_peerIp)
14837         list.add(peerIp);
14838       return list.hashCode();
14839     }
14840
14841     @Override
14842     public int compareTo(unsetEbgpMultihop_args other) {
14843       if (!getClass().equals(other.getClass())) {
14844         return getClass().getName().compareTo(other.getClass().getName());
14845       }
14846
14847       int lastComparison = 0;
14848
14849       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
14850       if (lastComparison != 0) {
14851         return lastComparison;
14852       }
14853       if (isSetPeerIp()) {
14854         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
14855         if (lastComparison != 0) {
14856           return lastComparison;
14857         }
14858       }
14859       return 0;
14860     }
14861
14862     @Override
14863         public _Fields fieldForId(int fieldId) {
14864       return _Fields.findByThriftId(fieldId);
14865     }
14866
14867     @Override
14868         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14869       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14870     }
14871
14872     @Override
14873         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14874       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14875     }
14876
14877     @Override
14878     public String toString() {
14879       StringBuilder sb = new StringBuilder("unsetEbgpMultihop_args(");
14880       boolean first = true;
14881
14882       sb.append("peerIp:");
14883       if (this.peerIp == null) {
14884         sb.append("null");
14885       } else {
14886         sb.append(this.peerIp);
14887       }
14888       first = false;
14889       sb.append(")");
14890       return sb.toString();
14891     }
14892
14893     public void validate() throws org.apache.thrift.TException {
14894       // check for required fields
14895       // check for sub-struct validity
14896     }
14897
14898     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14899       try {
14900         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14901       } catch (org.apache.thrift.TException te) {
14902         throw new java.io.IOException(te);
14903       }
14904     }
14905
14906     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14907       try {
14908         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14909       } catch (org.apache.thrift.TException te) {
14910         throw new java.io.IOException(te);
14911       }
14912     }
14913
14914     private static class unsetEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
14915       @Override
14916         public unsetEbgpMultihop_argsStandardScheme getScheme() {
14917         return new unsetEbgpMultihop_argsStandardScheme();
14918       }
14919     }
14920
14921     private static class unsetEbgpMultihop_argsStandardScheme extends StandardScheme<unsetEbgpMultihop_args> {
14922
14923       @Override
14924         public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
14925         org.apache.thrift.protocol.TField schemeField;
14926         iprot.readStructBegin();
14927         while (true)
14928         {
14929           schemeField = iprot.readFieldBegin();
14930           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14931             break;
14932           }
14933           switch (schemeField.id) {
14934             case 1: // PEER_IP
14935               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14936                 struct.peerIp = iprot.readString();
14937                 struct.setPeerIpIsSet(true);
14938               } else {
14939                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14940               }
14941               break;
14942             default:
14943               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14944           }
14945           iprot.readFieldEnd();
14946         }
14947         iprot.readStructEnd();
14948
14949         // check for required fields of primitive type, which can't be checked in the validate method
14950         struct.validate();
14951       }
14952
14953       @Override
14954         public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
14955         struct.validate();
14956
14957         oprot.writeStructBegin(STRUCT_DESC);
14958         if (struct.peerIp != null) {
14959           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
14960           oprot.writeString(struct.peerIp);
14961           oprot.writeFieldEnd();
14962         }
14963         oprot.writeFieldStop();
14964         oprot.writeStructEnd();
14965       }
14966
14967     }
14968
14969     private static class unsetEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
14970       @Override
14971         public unsetEbgpMultihop_argsTupleScheme getScheme() {
14972         return new unsetEbgpMultihop_argsTupleScheme();
14973       }
14974     }
14975
14976     private static class unsetEbgpMultihop_argsTupleScheme extends TupleScheme<unsetEbgpMultihop_args> {
14977
14978       @Override
14979       public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
14980         TTupleProtocol oprot = (TTupleProtocol) prot;
14981         BitSet optionals = new BitSet();
14982         if (struct.isSetPeerIp()) {
14983           optionals.set(0);
14984         }
14985         oprot.writeBitSet(optionals, 1);
14986         if (struct.isSetPeerIp()) {
14987           oprot.writeString(struct.peerIp);
14988         }
14989       }
14990
14991       @Override
14992       public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
14993         TTupleProtocol iprot = (TTupleProtocol) prot;
14994         BitSet incoming = iprot.readBitSet(1);
14995         if (incoming.get(0)) {
14996           struct.peerIp = iprot.readString();
14997           struct.setPeerIpIsSet(true);
14998         }
14999       }
15000     }
15001
15002   }
15003
15004   public static class unsetEbgpMultihop_result implements org.apache.thrift.TBase<unsetEbgpMultihop_result, unsetEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_result>   {
15005     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_result");
15006
15007     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);
15008
15009     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15010     static {
15011       schemes.put(StandardScheme.class, new unsetEbgpMultihop_resultStandardSchemeFactory());
15012       schemes.put(TupleScheme.class, new unsetEbgpMultihop_resultTupleSchemeFactory());
15013     }
15014
15015     public int success; // required
15016
15017     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15018     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15019       SUCCESS((short)0, "success");
15020
15021       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15022
15023       static {
15024         for (_Fields field : EnumSet.allOf(_Fields.class)) {
15025           byName.put(field.getFieldName(), field);
15026         }
15027       }
15028
15029       /**
15030        * Find the _Fields constant that matches fieldId, or null if its not found.
15031        */
15032       public static _Fields findByThriftId(int fieldId) {
15033         switch(fieldId) {
15034           case 0: // SUCCESS
15035             return SUCCESS;
15036           default:
15037             return null;
15038         }
15039       }
15040
15041       /**
15042        * Find the _Fields constant that matches fieldId, throwing an exception
15043        * if it is not found.
15044        */
15045       public static _Fields findByThriftIdOrThrow(int fieldId) {
15046         _Fields fields = findByThriftId(fieldId);
15047         if (fields == null) {
15048                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15049                 }
15050         return fields;
15051       }
15052
15053       /**
15054        * Find the _Fields constant that matches name, or null if its not found.
15055        */
15056       public static _Fields findByName(String name) {
15057         return byName.get(name);
15058       }
15059
15060       private final short _thriftId;
15061       private final String _fieldName;
15062
15063       _Fields(short thriftId, String fieldName) {
15064         _thriftId = thriftId;
15065         _fieldName = fieldName;
15066       }
15067
15068       @Override
15069         public short getThriftFieldId() {
15070         return _thriftId;
15071       }
15072
15073       @Override
15074         public String getFieldName() {
15075         return _fieldName;
15076       }
15077     }
15078
15079     // isset id assignments
15080     private static final int __SUCCESS_ISSET_ID = 0;
15081     private byte __isset_bitfield = 0;
15082     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15083     static {
15084       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15085       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
15086           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15087       metaDataMap = Collections.unmodifiableMap(tmpMap);
15088       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_result.class, metaDataMap);
15089     }
15090
15091     public unsetEbgpMultihop_result() {
15092     }
15093
15094     public unsetEbgpMultihop_result(
15095       int success)
15096     {
15097       this();
15098       this.success = success;
15099       setSuccessIsSet(true);
15100     }
15101
15102     /**
15103      * Performs a deep copy on <i>other</i>.
15104      */
15105     public unsetEbgpMultihop_result(unsetEbgpMultihop_result other) {
15106       __isset_bitfield = other.__isset_bitfield;
15107       this.success = other.success;
15108     }
15109
15110     @Override
15111         public unsetEbgpMultihop_result deepCopy() {
15112       return new unsetEbgpMultihop_result(this);
15113     }
15114
15115     @Override
15116     public void clear() {
15117       setSuccessIsSet(false);
15118       this.success = 0;
15119     }
15120
15121     public int getSuccess() {
15122       return this.success;
15123     }
15124
15125     public unsetEbgpMultihop_result setSuccess(int success) {
15126       this.success = success;
15127       setSuccessIsSet(true);
15128       return this;
15129     }
15130
15131     public void unsetSuccess() {
15132       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15133     }
15134
15135     /** Returns true if field success is set (has been assigned a value) and false otherwise */
15136     public boolean isSetSuccess() {
15137       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15138     }
15139
15140     public void setSuccessIsSet(boolean value) {
15141       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
15142     }
15143
15144     @Override
15145         public void setFieldValue(_Fields field, Object value) {
15146       switch (field) {
15147       case SUCCESS:
15148         if (value == null) {
15149           unsetSuccess();
15150         } else {
15151           setSuccess((Integer)value);
15152         }
15153         break;
15154
15155       }
15156     }
15157
15158     @Override
15159         public Object getFieldValue(_Fields field) {
15160       switch (field) {
15161       case SUCCESS:
15162         return Integer.valueOf(getSuccess());
15163
15164       }
15165       throw new IllegalStateException();
15166     }
15167
15168     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15169     @Override
15170         public boolean isSet(_Fields field) {
15171       if (field == null) {
15172         throw new IllegalArgumentException();
15173       }
15174
15175       switch (field) {
15176       case SUCCESS:
15177         return isSetSuccess();
15178       }
15179       throw new IllegalStateException();
15180     }
15181
15182     @Override
15183     public boolean equals(Object that) {
15184       if (that == null) {
15185                 return false;
15186         }
15187       if (that instanceof unsetEbgpMultihop_result) {
15188                 return this.equals((unsetEbgpMultihop_result)that);
15189         }
15190       return false;
15191     }
15192
15193     public boolean equals(unsetEbgpMultihop_result that) {
15194       if (that == null) {
15195                 return false;
15196         }
15197
15198       boolean this_present_success = true;
15199       boolean that_present_success = true;
15200       if (this_present_success || that_present_success) {
15201         if (!(this_present_success && that_present_success)) {
15202                         return false;
15203                 }
15204         if (this.success != that.success) {
15205                         return false;
15206                 }
15207       }
15208
15209       return true;
15210     }
15211
15212     @Override
15213     public int hashCode() {
15214       List<Object> list = new ArrayList<Object>();
15215
15216       boolean present_success = true;
15217       list.add(present_success);
15218       if (present_success)
15219         list.add(success);
15220       return list.hashCode();
15221     }
15222
15223     @Override
15224     public int compareTo(unsetEbgpMultihop_result other) {
15225       if (!getClass().equals(other.getClass())) {
15226         return getClass().getName().compareTo(other.getClass().getName());
15227       }
15228
15229       int lastComparison = 0;
15230
15231       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15232       if (lastComparison != 0) {
15233         return lastComparison;
15234       }
15235       if (isSetSuccess()) {
15236         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15237         if (lastComparison != 0) {
15238           return lastComparison;
15239         }
15240       }
15241       return 0;
15242     }
15243
15244     @Override
15245         public _Fields fieldForId(int fieldId) {
15246       return _Fields.findByThriftId(fieldId);
15247     }
15248
15249     @Override
15250         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15251       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15252     }
15253
15254     @Override
15255         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15256       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15257       }
15258
15259     @Override
15260     public String toString() {
15261       StringBuilder sb = new StringBuilder("unsetEbgpMultihop_result(");
15262       boolean first = true;
15263
15264       sb.append("success:");
15265       sb.append(this.success);
15266       first = false;
15267       sb.append(")");
15268       return sb.toString();
15269     }
15270
15271     public void validate() throws org.apache.thrift.TException {
15272       // check for required fields
15273       // check for sub-struct validity
15274     }
15275
15276     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15277       try {
15278         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15279       } catch (org.apache.thrift.TException te) {
15280         throw new java.io.IOException(te);
15281       }
15282     }
15283
15284     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15285       try {
15286         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15287         __isset_bitfield = 0;
15288         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15289       } catch (org.apache.thrift.TException te) {
15290         throw new java.io.IOException(te);
15291       }
15292     }
15293
15294     private static class unsetEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
15295       @Override
15296         public unsetEbgpMultihop_resultStandardScheme getScheme() {
15297         return new unsetEbgpMultihop_resultStandardScheme();
15298       }
15299     }
15300
15301     private static class unsetEbgpMultihop_resultStandardScheme extends StandardScheme<unsetEbgpMultihop_result> {
15302
15303       @Override
15304         public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
15305         org.apache.thrift.protocol.TField schemeField;
15306         iprot.readStructBegin();
15307         while (true)
15308         {
15309           schemeField = iprot.readFieldBegin();
15310           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15311             break;
15312           }
15313           switch (schemeField.id) {
15314             case 0: // SUCCESS
15315               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15316                 struct.success = iprot.readI32();
15317                 struct.setSuccessIsSet(true);
15318               } else {
15319                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15320               }
15321               break;
15322             default:
15323               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15324           }
15325           iprot.readFieldEnd();
15326         }
15327         iprot.readStructEnd();
15328
15329         // check for required fields of primitive type, which can't be checked in the validate method
15330         struct.validate();
15331       }
15332
15333       @Override
15334         public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
15335         struct.validate();
15336
15337         oprot.writeStructBegin(STRUCT_DESC);
15338         if (struct.isSetSuccess()) {
15339           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15340           oprot.writeI32(struct.success);
15341           oprot.writeFieldEnd();
15342         }
15343         oprot.writeFieldStop();
15344         oprot.writeStructEnd();
15345       }
15346
15347     }
15348
15349     private static class unsetEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
15350       @Override
15351         public unsetEbgpMultihop_resultTupleScheme getScheme() {
15352         return new unsetEbgpMultihop_resultTupleScheme();
15353       }
15354     }
15355
15356     private static class unsetEbgpMultihop_resultTupleScheme extends TupleScheme<unsetEbgpMultihop_result> {
15357
15358       @Override
15359       public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
15360         TTupleProtocol oprot = (TTupleProtocol) prot;
15361         BitSet optionals = new BitSet();
15362         if (struct.isSetSuccess()) {
15363           optionals.set(0);
15364         }
15365         oprot.writeBitSet(optionals, 1);
15366         if (struct.isSetSuccess()) {
15367           oprot.writeI32(struct.success);
15368         }
15369       }
15370
15371       @Override
15372       public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
15373         TTupleProtocol iprot = (TTupleProtocol) prot;
15374         BitSet incoming = iprot.readBitSet(1);
15375         if (incoming.get(0)) {
15376           struct.success = iprot.readI32();
15377           struct.setSuccessIsSet(true);
15378         }
15379       }
15380     }
15381
15382   }
15383
15384   public static class setUpdateSource_args implements org.apache.thrift.TBase<setUpdateSource_args, setUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_args>   {
15385     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_args");
15386
15387     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);
15388     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);
15389
15390     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15391     static {
15392       schemes.put(StandardScheme.class, new setUpdateSource_argsStandardSchemeFactory());
15393       schemes.put(TupleScheme.class, new setUpdateSource_argsTupleSchemeFactory());
15394     }
15395
15396     public String peerIp; // required
15397     public String srcIp; // required
15398
15399     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15400     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15401       PEER_IP((short)1, "peerIp"),
15402       SRC_IP((short)2, "srcIp");
15403
15404       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15405
15406       static {
15407         for (_Fields field : EnumSet.allOf(_Fields.class)) {
15408           byName.put(field.getFieldName(), field);
15409         }
15410       }
15411
15412       /**
15413        * Find the _Fields constant that matches fieldId, or null if its not found.
15414        */
15415       public static _Fields findByThriftId(int fieldId) {
15416         switch(fieldId) {
15417           case 1: // PEER_IP
15418             return PEER_IP;
15419           case 2: // SRC_IP
15420             return SRC_IP;
15421           default:
15422             return null;
15423         }
15424       }
15425
15426       /**
15427        * Find the _Fields constant that matches fieldId, throwing an exception
15428        * if it is not found.
15429        */
15430       public static _Fields findByThriftIdOrThrow(int fieldId) {
15431         _Fields fields = findByThriftId(fieldId);
15432         if (fields == null) {
15433                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15434                 }
15435         return fields;
15436       }
15437
15438       /**
15439        * Find the _Fields constant that matches name, or null if its not found.
15440        */
15441       public static _Fields findByName(String name) {
15442         return byName.get(name);
15443       }
15444
15445       private final short _thriftId;
15446       private final String _fieldName;
15447
15448       _Fields(short thriftId, String fieldName) {
15449         _thriftId = thriftId;
15450         _fieldName = fieldName;
15451       }
15452
15453       @Override
15454         public short getThriftFieldId() {
15455         return _thriftId;
15456       }
15457
15458       @Override
15459         public String getFieldName() {
15460         return _fieldName;
15461       }
15462     }
15463
15464     // isset id assignments
15465     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15466     static {
15467       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15468       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
15469           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15470       tmpMap.put(_Fields.SRC_IP, new org.apache.thrift.meta_data.FieldMetaData("srcIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
15471           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15472       metaDataMap = Collections.unmodifiableMap(tmpMap);
15473       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_args.class, metaDataMap);
15474     }
15475
15476     public setUpdateSource_args() {
15477     }
15478
15479     public setUpdateSource_args(
15480       String peerIp,
15481       String srcIp)
15482     {
15483       this();
15484       this.peerIp = peerIp;
15485       this.srcIp = srcIp;
15486     }
15487
15488     /**
15489      * Performs a deep copy on <i>other</i>.
15490      */
15491     public setUpdateSource_args(setUpdateSource_args other) {
15492       if (other.isSetPeerIp()) {
15493         this.peerIp = other.peerIp;
15494       }
15495       if (other.isSetSrcIp()) {
15496         this.srcIp = other.srcIp;
15497       }
15498     }
15499
15500     @Override
15501         public setUpdateSource_args deepCopy() {
15502       return new setUpdateSource_args(this);
15503     }
15504
15505     @Override
15506     public void clear() {
15507       this.peerIp = null;
15508       this.srcIp = null;
15509     }
15510
15511     public String getPeerIp() {
15512       return this.peerIp;
15513     }
15514
15515     public setUpdateSource_args setPeerIp(String peerIp) {
15516       this.peerIp = peerIp;
15517       return this;
15518     }
15519
15520     public void unsetPeerIp() {
15521       this.peerIp = null;
15522     }
15523
15524     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
15525     public boolean isSetPeerIp() {
15526       return this.peerIp != null;
15527     }
15528
15529     public void setPeerIpIsSet(boolean value) {
15530       if (!value) {
15531         this.peerIp = null;
15532       }
15533     }
15534
15535     public String getSrcIp() {
15536       return this.srcIp;
15537     }
15538
15539     public setUpdateSource_args setSrcIp(String srcIp) {
15540       this.srcIp = srcIp;
15541       return this;
15542     }
15543
15544     public void unsetSrcIp() {
15545       this.srcIp = null;
15546     }
15547
15548     /** Returns true if field srcIp is set (has been assigned a value) and false otherwise */
15549     public boolean isSetSrcIp() {
15550       return this.srcIp != null;
15551     }
15552
15553     public void setSrcIpIsSet(boolean value) {
15554       if (!value) {
15555         this.srcIp = null;
15556       }
15557     }
15558
15559     @Override
15560         public void setFieldValue(_Fields field, Object value) {
15561       switch (field) {
15562       case PEER_IP:
15563         if (value == null) {
15564           unsetPeerIp();
15565         } else {
15566           setPeerIp((String)value);
15567         }
15568         break;
15569
15570       case SRC_IP:
15571         if (value == null) {
15572           unsetSrcIp();
15573         } else {
15574           setSrcIp((String)value);
15575         }
15576         break;
15577
15578       }
15579     }
15580
15581     @Override
15582         public Object getFieldValue(_Fields field) {
15583       switch (field) {
15584       case PEER_IP:
15585         return getPeerIp();
15586
15587       case SRC_IP:
15588         return getSrcIp();
15589
15590       }
15591       throw new IllegalStateException();
15592     }
15593
15594     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15595     @Override
15596         public boolean isSet(_Fields field) {
15597       if (field == null) {
15598         throw new IllegalArgumentException();
15599       }
15600
15601       switch (field) {
15602       case PEER_IP:
15603         return isSetPeerIp();
15604       case SRC_IP:
15605         return isSetSrcIp();
15606       }
15607       throw new IllegalStateException();
15608     }
15609
15610     @Override
15611     public boolean equals(Object that) {
15612       if (that == null) {
15613                 return false;
15614         }
15615       if (that instanceof setUpdateSource_args) {
15616                 return this.equals((setUpdateSource_args)that);
15617         }
15618       return false;
15619     }
15620
15621     public boolean equals(setUpdateSource_args that) {
15622       if (that == null) {
15623                 return false;
15624         }
15625
15626       boolean this_present_peerIp = true && this.isSetPeerIp();
15627       boolean that_present_peerIp = true && that.isSetPeerIp();
15628       if (this_present_peerIp || that_present_peerIp) {
15629         if (!(this_present_peerIp && that_present_peerIp)) {
15630                         return false;
15631                 }
15632         if (!this.peerIp.equals(that.peerIp)) {
15633                         return false;
15634                 }
15635       }
15636
15637       boolean this_present_srcIp = true && this.isSetSrcIp();
15638       boolean that_present_srcIp = true && that.isSetSrcIp();
15639       if (this_present_srcIp || that_present_srcIp) {
15640         if (!(this_present_srcIp && that_present_srcIp)) {
15641                         return false;
15642                 }
15643         if (!this.srcIp.equals(that.srcIp)) {
15644                         return false;
15645                 }
15646       }
15647
15648       return true;
15649     }
15650
15651     @Override
15652     public int hashCode() {
15653       List<Object> list = new ArrayList<Object>();
15654
15655       boolean present_peerIp = true && (isSetPeerIp());
15656       list.add(present_peerIp);
15657       if (present_peerIp)
15658         list.add(peerIp);
15659       boolean present_srcIp = true && (isSetSrcIp());
15660       list.add(present_srcIp);
15661       if (present_srcIp)
15662         list.add(srcIp);
15663       return list.hashCode();
15664     }
15665
15666     @Override
15667     public int compareTo(setUpdateSource_args other) {
15668       if (!getClass().equals(other.getClass())) {
15669         return getClass().getName().compareTo(other.getClass().getName());
15670       }
15671
15672       int lastComparison = 0;
15673
15674       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
15675       if (lastComparison != 0) {
15676         return lastComparison;
15677       }
15678       if (isSetPeerIp()) {
15679         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
15680         if (lastComparison != 0) {
15681           return lastComparison;
15682         }
15683       }
15684       lastComparison = Boolean.valueOf(isSetSrcIp()).compareTo(other.isSetSrcIp());
15685       if (lastComparison != 0) {
15686         return lastComparison;
15687       }
15688       if (isSetSrcIp()) {
15689         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.srcIp, other.srcIp);
15690         if (lastComparison != 0) {
15691           return lastComparison;
15692         }
15693       }
15694       return 0;
15695     }
15696
15697     @Override
15698         public _Fields fieldForId(int fieldId) {
15699       return _Fields.findByThriftId(fieldId);
15700     }
15701
15702     @Override
15703         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15704       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15705     }
15706
15707     @Override
15708         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15709       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15710     }
15711
15712     @Override
15713     public String toString() {
15714       StringBuilder sb = new StringBuilder("setUpdateSource_args(");
15715       boolean first = true;
15716
15717       sb.append("peerIp:");
15718       if (this.peerIp == null) {
15719         sb.append("null");
15720       } else {
15721         sb.append(this.peerIp);
15722       }
15723       first = false;
15724       if (!first) {
15725                 sb.append(", ");
15726         }
15727       sb.append("srcIp:");
15728       if (this.srcIp == null) {
15729         sb.append("null");
15730       } else {
15731         sb.append(this.srcIp);
15732       }
15733       first = false;
15734       sb.append(")");
15735       return sb.toString();
15736     }
15737
15738     public void validate() throws org.apache.thrift.TException {
15739       // check for required fields
15740       // check for sub-struct validity
15741     }
15742
15743     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15744       try {
15745         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15746       } catch (org.apache.thrift.TException te) {
15747         throw new java.io.IOException(te);
15748       }
15749     }
15750
15751     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15752       try {
15753         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15754       } catch (org.apache.thrift.TException te) {
15755         throw new java.io.IOException(te);
15756       }
15757     }
15758
15759     private static class setUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
15760       @Override
15761         public setUpdateSource_argsStandardScheme getScheme() {
15762         return new setUpdateSource_argsStandardScheme();
15763       }
15764     }
15765
15766     private static class setUpdateSource_argsStandardScheme extends StandardScheme<setUpdateSource_args> {
15767
15768       @Override
15769         public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
15770         org.apache.thrift.protocol.TField schemeField;
15771         iprot.readStructBegin();
15772         while (true)
15773         {
15774           schemeField = iprot.readFieldBegin();
15775           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15776             break;
15777           }
15778           switch (schemeField.id) {
15779             case 1: // PEER_IP
15780               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15781                 struct.peerIp = iprot.readString();
15782                 struct.setPeerIpIsSet(true);
15783               } else {
15784                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15785               }
15786               break;
15787             case 2: // SRC_IP
15788               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15789                 struct.srcIp = iprot.readString();
15790                 struct.setSrcIpIsSet(true);
15791               } else {
15792                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15793               }
15794               break;
15795             default:
15796               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15797           }
15798           iprot.readFieldEnd();
15799         }
15800         iprot.readStructEnd();
15801
15802         // check for required fields of primitive type, which can't be checked in the validate method
15803         struct.validate();
15804       }
15805
15806       @Override
15807         public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
15808         struct.validate();
15809
15810         oprot.writeStructBegin(STRUCT_DESC);
15811         if (struct.peerIp != null) {
15812           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
15813           oprot.writeString(struct.peerIp);
15814           oprot.writeFieldEnd();
15815         }
15816         if (struct.srcIp != null) {
15817           oprot.writeFieldBegin(SRC_IP_FIELD_DESC);
15818           oprot.writeString(struct.srcIp);
15819           oprot.writeFieldEnd();
15820         }
15821         oprot.writeFieldStop();
15822         oprot.writeStructEnd();
15823       }
15824
15825     }
15826
15827     private static class setUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
15828       @Override
15829         public setUpdateSource_argsTupleScheme getScheme() {
15830         return new setUpdateSource_argsTupleScheme();
15831       }
15832     }
15833
15834     private static class setUpdateSource_argsTupleScheme extends TupleScheme<setUpdateSource_args> {
15835
15836       @Override
15837       public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
15838         TTupleProtocol oprot = (TTupleProtocol) prot;
15839         BitSet optionals = new BitSet();
15840         if (struct.isSetPeerIp()) {
15841           optionals.set(0);
15842         }
15843         if (struct.isSetSrcIp()) {
15844           optionals.set(1);
15845         }
15846         oprot.writeBitSet(optionals, 2);
15847         if (struct.isSetPeerIp()) {
15848           oprot.writeString(struct.peerIp);
15849         }
15850         if (struct.isSetSrcIp()) {
15851           oprot.writeString(struct.srcIp);
15852         }
15853       }
15854
15855       @Override
15856       public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
15857         TTupleProtocol iprot = (TTupleProtocol) prot;
15858         BitSet incoming = iprot.readBitSet(2);
15859         if (incoming.get(0)) {
15860           struct.peerIp = iprot.readString();
15861           struct.setPeerIpIsSet(true);
15862         }
15863         if (incoming.get(1)) {
15864           struct.srcIp = iprot.readString();
15865           struct.setSrcIpIsSet(true);
15866         }
15867       }
15868     }
15869
15870   }
15871
15872   public static class setUpdateSource_result implements org.apache.thrift.TBase<setUpdateSource_result, setUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_result>   {
15873     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_result");
15874
15875     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);
15876
15877     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15878     static {
15879       schemes.put(StandardScheme.class, new setUpdateSource_resultStandardSchemeFactory());
15880       schemes.put(TupleScheme.class, new setUpdateSource_resultTupleSchemeFactory());
15881     }
15882
15883     public int success; // required
15884
15885     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15886     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15887       SUCCESS((short)0, "success");
15888
15889       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15890
15891       static {
15892         for (_Fields field : EnumSet.allOf(_Fields.class)) {
15893           byName.put(field.getFieldName(), field);
15894         }
15895       }
15896
15897       /**
15898        * Find the _Fields constant that matches fieldId, or null if its not found.
15899        */
15900       public static _Fields findByThriftId(int fieldId) {
15901         switch(fieldId) {
15902           case 0: // SUCCESS
15903             return SUCCESS;
15904           default:
15905             return null;
15906         }
15907       }
15908
15909       /**
15910        * Find the _Fields constant that matches fieldId, throwing an exception
15911        * if it is not found.
15912        */
15913       public static _Fields findByThriftIdOrThrow(int fieldId) {
15914         _Fields fields = findByThriftId(fieldId);
15915         if (fields == null) {
15916                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15917                 }
15918         return fields;
15919       }
15920
15921       /**
15922        * Find the _Fields constant that matches name, or null if its not found.
15923        */
15924       public static _Fields findByName(String name) {
15925         return byName.get(name);
15926       }
15927
15928       private final short _thriftId;
15929       private final String _fieldName;
15930
15931       _Fields(short thriftId, String fieldName) {
15932         _thriftId = thriftId;
15933         _fieldName = fieldName;
15934       }
15935
15936       @Override
15937         public short getThriftFieldId() {
15938         return _thriftId;
15939       }
15940
15941       @Override
15942         public String getFieldName() {
15943         return _fieldName;
15944       }
15945     }
15946
15947     // isset id assignments
15948     private static final int __SUCCESS_ISSET_ID = 0;
15949     private byte __isset_bitfield = 0;
15950     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15951     static {
15952       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15953       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
15954           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15955       metaDataMap = Collections.unmodifiableMap(tmpMap);
15956       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_result.class, metaDataMap);
15957     }
15958
15959     public setUpdateSource_result() {
15960     }
15961
15962     public setUpdateSource_result(
15963       int success)
15964     {
15965       this();
15966       this.success = success;
15967       setSuccessIsSet(true);
15968     }
15969
15970     /**
15971      * Performs a deep copy on <i>other</i>.
15972      */
15973     public setUpdateSource_result(setUpdateSource_result other) {
15974       __isset_bitfield = other.__isset_bitfield;
15975       this.success = other.success;
15976     }
15977
15978     @Override
15979         public setUpdateSource_result deepCopy() {
15980       return new setUpdateSource_result(this);
15981     }
15982
15983     @Override
15984     public void clear() {
15985       setSuccessIsSet(false);
15986       this.success = 0;
15987     }
15988
15989     public int getSuccess() {
15990       return this.success;
15991     }
15992
15993     public setUpdateSource_result setSuccess(int success) {
15994       this.success = success;
15995       setSuccessIsSet(true);
15996       return this;
15997     }
15998
15999     public void unsetSuccess() {
16000       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16001     }
16002
16003     /** Returns true if field success is set (has been assigned a value) and false otherwise */
16004     public boolean isSetSuccess() {
16005       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16006     }
16007
16008     public void setSuccessIsSet(boolean value) {
16009       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
16010     }
16011
16012     @Override
16013         public void setFieldValue(_Fields field, Object value) {
16014       switch (field) {
16015       case SUCCESS:
16016         if (value == null) {
16017           unsetSuccess();
16018         } else {
16019           setSuccess((Integer)value);
16020         }
16021         break;
16022
16023       }
16024     }
16025
16026     @Override
16027         public Object getFieldValue(_Fields field) {
16028       switch (field) {
16029       case SUCCESS:
16030         return Integer.valueOf(getSuccess());
16031
16032       }
16033       throw new IllegalStateException();
16034     }
16035
16036     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16037     @Override
16038         public boolean isSet(_Fields field) {
16039       if (field == null) {
16040         throw new IllegalArgumentException();
16041       }
16042
16043       switch (field) {
16044       case SUCCESS:
16045         return isSetSuccess();
16046       }
16047       throw new IllegalStateException();
16048     }
16049
16050     @Override
16051     public boolean equals(Object that) {
16052       if (that == null) {
16053                 return false;
16054         }
16055       if (that instanceof setUpdateSource_result) {
16056                 return this.equals((setUpdateSource_result)that);
16057         }
16058       return false;
16059     }
16060
16061     public boolean equals(setUpdateSource_result that) {
16062       if (that == null) {
16063                 return false;
16064         }
16065
16066       boolean this_present_success = true;
16067       boolean that_present_success = true;
16068       if (this_present_success || that_present_success) {
16069         if (!(this_present_success && that_present_success)) {
16070                         return false;
16071                 }
16072         if (this.success != that.success) {
16073                         return false;
16074                 }
16075       }
16076
16077       return true;
16078     }
16079
16080     @Override
16081     public int hashCode() {
16082       List<Object> list = new ArrayList<Object>();
16083
16084       boolean present_success = true;
16085       list.add(present_success);
16086       if (present_success)
16087         list.add(success);
16088       return list.hashCode();
16089     }
16090
16091     @Override
16092     public int compareTo(setUpdateSource_result other) {
16093       if (!getClass().equals(other.getClass())) {
16094         return getClass().getName().compareTo(other.getClass().getName());
16095       }
16096
16097       int lastComparison = 0;
16098
16099       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
16100       if (lastComparison != 0) {
16101         return lastComparison;
16102       }
16103       if (isSetSuccess()) {
16104         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
16105         if (lastComparison != 0) {
16106           return lastComparison;
16107         }
16108       }
16109       return 0;
16110     }
16111
16112     @Override
16113         public _Fields fieldForId(int fieldId) {
16114       return _Fields.findByThriftId(fieldId);
16115     }
16116
16117     @Override
16118         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16119       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16120     }
16121
16122     @Override
16123         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16124       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16125       }
16126
16127     @Override
16128     public String toString() {
16129       StringBuilder sb = new StringBuilder("setUpdateSource_result(");
16130       boolean first = true;
16131
16132       sb.append("success:");
16133       sb.append(this.success);
16134       first = false;
16135       sb.append(")");
16136       return sb.toString();
16137     }
16138
16139     public void validate() throws org.apache.thrift.TException {
16140       // check for required fields
16141       // check for sub-struct validity
16142     }
16143
16144     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16145       try {
16146         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16147       } catch (org.apache.thrift.TException te) {
16148         throw new java.io.IOException(te);
16149       }
16150     }
16151
16152     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16153       try {
16154         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16155         __isset_bitfield = 0;
16156         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16157       } catch (org.apache.thrift.TException te) {
16158         throw new java.io.IOException(te);
16159       }
16160     }
16161
16162     private static class setUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
16163       @Override
16164         public setUpdateSource_resultStandardScheme getScheme() {
16165         return new setUpdateSource_resultStandardScheme();
16166       }
16167     }
16168
16169     private static class setUpdateSource_resultStandardScheme extends StandardScheme<setUpdateSource_result> {
16170
16171       @Override
16172         public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
16173         org.apache.thrift.protocol.TField schemeField;
16174         iprot.readStructBegin();
16175         while (true)
16176         {
16177           schemeField = iprot.readFieldBegin();
16178           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16179             break;
16180           }
16181           switch (schemeField.id) {
16182             case 0: // SUCCESS
16183               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16184                 struct.success = iprot.readI32();
16185                 struct.setSuccessIsSet(true);
16186               } else {
16187                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16188               }
16189               break;
16190             default:
16191               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16192           }
16193           iprot.readFieldEnd();
16194         }
16195         iprot.readStructEnd();
16196
16197         // check for required fields of primitive type, which can't be checked in the validate method
16198         struct.validate();
16199       }
16200
16201       @Override
16202         public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
16203         struct.validate();
16204
16205         oprot.writeStructBegin(STRUCT_DESC);
16206         if (struct.isSetSuccess()) {
16207           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16208           oprot.writeI32(struct.success);
16209           oprot.writeFieldEnd();
16210         }
16211         oprot.writeFieldStop();
16212         oprot.writeStructEnd();
16213       }
16214
16215     }
16216
16217     private static class setUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
16218       @Override
16219         public setUpdateSource_resultTupleScheme getScheme() {
16220         return new setUpdateSource_resultTupleScheme();
16221       }
16222     }
16223
16224     private static class setUpdateSource_resultTupleScheme extends TupleScheme<setUpdateSource_result> {
16225
16226       @Override
16227       public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
16228         TTupleProtocol oprot = (TTupleProtocol) prot;
16229         BitSet optionals = new BitSet();
16230         if (struct.isSetSuccess()) {
16231           optionals.set(0);
16232         }
16233         oprot.writeBitSet(optionals, 1);
16234         if (struct.isSetSuccess()) {
16235           oprot.writeI32(struct.success);
16236         }
16237       }
16238
16239       @Override
16240       public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
16241         TTupleProtocol iprot = (TTupleProtocol) prot;
16242         BitSet incoming = iprot.readBitSet(1);
16243         if (incoming.get(0)) {
16244           struct.success = iprot.readI32();
16245           struct.setSuccessIsSet(true);
16246         }
16247       }
16248     }
16249
16250   }
16251
16252   public static class unsetUpdateSource_args implements org.apache.thrift.TBase<unsetUpdateSource_args, unsetUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_args>   {
16253     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_args");
16254
16255     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);
16256
16257     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16258     static {
16259       schemes.put(StandardScheme.class, new unsetUpdateSource_argsStandardSchemeFactory());
16260       schemes.put(TupleScheme.class, new unsetUpdateSource_argsTupleSchemeFactory());
16261     }
16262
16263     public String peerIp; // required
16264
16265     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16266     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16267       PEER_IP((short)1, "peerIp");
16268
16269       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16270
16271       static {
16272         for (_Fields field : EnumSet.allOf(_Fields.class)) {
16273           byName.put(field.getFieldName(), field);
16274         }
16275       }
16276
16277       /**
16278        * Find the _Fields constant that matches fieldId, or null if its not found.
16279        */
16280       public static _Fields findByThriftId(int fieldId) {
16281         switch(fieldId) {
16282           case 1: // PEER_IP
16283             return PEER_IP;
16284           default:
16285             return null;
16286         }
16287       }
16288
16289       /**
16290        * Find the _Fields constant that matches fieldId, throwing an exception
16291        * if it is not found.
16292        */
16293       public static _Fields findByThriftIdOrThrow(int fieldId) {
16294         _Fields fields = findByThriftId(fieldId);
16295         if (fields == null) {
16296                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16297                 }
16298         return fields;
16299       }
16300
16301       /**
16302        * Find the _Fields constant that matches name, or null if its not found.
16303        */
16304       public static _Fields findByName(String name) {
16305         return byName.get(name);
16306       }
16307
16308       private final short _thriftId;
16309       private final String _fieldName;
16310
16311       _Fields(short thriftId, String fieldName) {
16312         _thriftId = thriftId;
16313         _fieldName = fieldName;
16314       }
16315
16316       @Override
16317         public short getThriftFieldId() {
16318         return _thriftId;
16319       }
16320
16321       @Override
16322         public String getFieldName() {
16323         return _fieldName;
16324       }
16325     }
16326
16327     // isset id assignments
16328     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16329     static {
16330       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16331       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
16332           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16333       metaDataMap = Collections.unmodifiableMap(tmpMap);
16334       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_args.class, metaDataMap);
16335     }
16336
16337     public unsetUpdateSource_args() {
16338     }
16339
16340     public unsetUpdateSource_args(
16341       String peerIp)
16342     {
16343       this();
16344       this.peerIp = peerIp;
16345     }
16346
16347     /**
16348      * Performs a deep copy on <i>other</i>.
16349      */
16350     public unsetUpdateSource_args(unsetUpdateSource_args other) {
16351       if (other.isSetPeerIp()) {
16352         this.peerIp = other.peerIp;
16353       }
16354     }
16355
16356     @Override
16357         public unsetUpdateSource_args deepCopy() {
16358       return new unsetUpdateSource_args(this);
16359     }
16360
16361     @Override
16362     public void clear() {
16363       this.peerIp = null;
16364     }
16365
16366     public String getPeerIp() {
16367       return this.peerIp;
16368     }
16369
16370     public unsetUpdateSource_args setPeerIp(String peerIp) {
16371       this.peerIp = peerIp;
16372       return this;
16373     }
16374
16375     public void unsetPeerIp() {
16376       this.peerIp = null;
16377     }
16378
16379     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
16380     public boolean isSetPeerIp() {
16381       return this.peerIp != null;
16382     }
16383
16384     public void setPeerIpIsSet(boolean value) {
16385       if (!value) {
16386         this.peerIp = null;
16387       }
16388     }
16389
16390     @Override
16391         public void setFieldValue(_Fields field, Object value) {
16392       switch (field) {
16393       case PEER_IP:
16394         if (value == null) {
16395           unsetPeerIp();
16396         } else {
16397           setPeerIp((String)value);
16398         }
16399         break;
16400
16401       }
16402     }
16403
16404     @Override
16405         public Object getFieldValue(_Fields field) {
16406       switch (field) {
16407       case PEER_IP:
16408         return getPeerIp();
16409
16410       }
16411       throw new IllegalStateException();
16412     }
16413
16414     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16415     @Override
16416         public boolean isSet(_Fields field) {
16417       if (field == null) {
16418         throw new IllegalArgumentException();
16419       }
16420
16421       switch (field) {
16422       case PEER_IP:
16423         return isSetPeerIp();
16424       }
16425       throw new IllegalStateException();
16426     }
16427
16428     @Override
16429     public boolean equals(Object that) {
16430       if (that == null) {
16431                 return false;
16432         }
16433       if (that instanceof unsetUpdateSource_args) {
16434                 return this.equals((unsetUpdateSource_args)that);
16435         }
16436       return false;
16437     }
16438
16439     public boolean equals(unsetUpdateSource_args that) {
16440       if (that == null) {
16441                 return false;
16442         }
16443
16444       boolean this_present_peerIp = true && this.isSetPeerIp();
16445       boolean that_present_peerIp = true && that.isSetPeerIp();
16446       if (this_present_peerIp || that_present_peerIp) {
16447         if (!(this_present_peerIp && that_present_peerIp)) {
16448                         return false;
16449                 }
16450         if (!this.peerIp.equals(that.peerIp)) {
16451                         return false;
16452                 }
16453       }
16454
16455       return true;
16456     }
16457
16458     @Override
16459     public int hashCode() {
16460       List<Object> list = new ArrayList<Object>();
16461
16462       boolean present_peerIp = true && (isSetPeerIp());
16463       list.add(present_peerIp);
16464       if (present_peerIp)
16465         list.add(peerIp);
16466       return list.hashCode();
16467     }
16468
16469     @Override
16470     public int compareTo(unsetUpdateSource_args other) {
16471       if (!getClass().equals(other.getClass())) {
16472         return getClass().getName().compareTo(other.getClass().getName());
16473       }
16474
16475       int lastComparison = 0;
16476
16477       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
16478       if (lastComparison != 0) {
16479         return lastComparison;
16480       }
16481       if (isSetPeerIp()) {
16482         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
16483         if (lastComparison != 0) {
16484           return lastComparison;
16485         }
16486       }
16487       return 0;
16488     }
16489
16490     @Override
16491         public _Fields fieldForId(int fieldId) {
16492       return _Fields.findByThriftId(fieldId);
16493     }
16494
16495     @Override
16496         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16497       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16498     }
16499
16500     @Override
16501         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16502       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16503     }
16504
16505     @Override
16506     public String toString() {
16507       StringBuilder sb = new StringBuilder("unsetUpdateSource_args(");
16508       boolean first = true;
16509
16510       sb.append("peerIp:");
16511       if (this.peerIp == null) {
16512         sb.append("null");
16513       } else {
16514         sb.append(this.peerIp);
16515       }
16516       first = false;
16517       sb.append(")");
16518       return sb.toString();
16519     }
16520
16521     public void validate() throws org.apache.thrift.TException {
16522       // check for required fields
16523       // check for sub-struct validity
16524     }
16525
16526     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16527       try {
16528         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16529       } catch (org.apache.thrift.TException te) {
16530         throw new java.io.IOException(te);
16531       }
16532     }
16533
16534     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16535       try {
16536         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16537       } catch (org.apache.thrift.TException te) {
16538         throw new java.io.IOException(te);
16539       }
16540     }
16541
16542     private static class unsetUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
16543       @Override
16544         public unsetUpdateSource_argsStandardScheme getScheme() {
16545         return new unsetUpdateSource_argsStandardScheme();
16546       }
16547     }
16548
16549     private static class unsetUpdateSource_argsStandardScheme extends StandardScheme<unsetUpdateSource_args> {
16550
16551       @Override
16552         public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
16553         org.apache.thrift.protocol.TField schemeField;
16554         iprot.readStructBegin();
16555         while (true)
16556         {
16557           schemeField = iprot.readFieldBegin();
16558           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16559             break;
16560           }
16561           switch (schemeField.id) {
16562             case 1: // PEER_IP
16563               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16564                 struct.peerIp = iprot.readString();
16565                 struct.setPeerIpIsSet(true);
16566               } else {
16567                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16568               }
16569               break;
16570             default:
16571               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16572           }
16573           iprot.readFieldEnd();
16574         }
16575         iprot.readStructEnd();
16576
16577         // check for required fields of primitive type, which can't be checked in the validate method
16578         struct.validate();
16579       }
16580
16581       @Override
16582         public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
16583         struct.validate();
16584
16585         oprot.writeStructBegin(STRUCT_DESC);
16586         if (struct.peerIp != null) {
16587           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
16588           oprot.writeString(struct.peerIp);
16589           oprot.writeFieldEnd();
16590         }
16591         oprot.writeFieldStop();
16592         oprot.writeStructEnd();
16593       }
16594
16595     }
16596
16597     private static class unsetUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
16598       @Override
16599         public unsetUpdateSource_argsTupleScheme getScheme() {
16600         return new unsetUpdateSource_argsTupleScheme();
16601       }
16602     }
16603
16604     private static class unsetUpdateSource_argsTupleScheme extends TupleScheme<unsetUpdateSource_args> {
16605
16606       @Override
16607       public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
16608         TTupleProtocol oprot = (TTupleProtocol) prot;
16609         BitSet optionals = new BitSet();
16610         if (struct.isSetPeerIp()) {
16611           optionals.set(0);
16612         }
16613         oprot.writeBitSet(optionals, 1);
16614         if (struct.isSetPeerIp()) {
16615           oprot.writeString(struct.peerIp);
16616         }
16617       }
16618
16619       @Override
16620       public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
16621         TTupleProtocol iprot = (TTupleProtocol) prot;
16622         BitSet incoming = iprot.readBitSet(1);
16623         if (incoming.get(0)) {
16624           struct.peerIp = iprot.readString();
16625           struct.setPeerIpIsSet(true);
16626         }
16627       }
16628     }
16629
16630   }
16631
16632   public static class unsetUpdateSource_result implements org.apache.thrift.TBase<unsetUpdateSource_result, unsetUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_result>   {
16633     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_result");
16634
16635     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);
16636
16637     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16638     static {
16639       schemes.put(StandardScheme.class, new unsetUpdateSource_resultStandardSchemeFactory());
16640       schemes.put(TupleScheme.class, new unsetUpdateSource_resultTupleSchemeFactory());
16641     }
16642
16643     public int success; // required
16644
16645     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16646     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16647       SUCCESS((short)0, "success");
16648
16649       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16650
16651       static {
16652         for (_Fields field : EnumSet.allOf(_Fields.class)) {
16653           byName.put(field.getFieldName(), field);
16654         }
16655       }
16656
16657       /**
16658        * Find the _Fields constant that matches fieldId, or null if its not found.
16659        */
16660       public static _Fields findByThriftId(int fieldId) {
16661         switch(fieldId) {
16662           case 0: // SUCCESS
16663             return SUCCESS;
16664           default:
16665             return null;
16666         }
16667       }
16668
16669       /**
16670        * Find the _Fields constant that matches fieldId, throwing an exception
16671        * if it is not found.
16672        */
16673       public static _Fields findByThriftIdOrThrow(int fieldId) {
16674         _Fields fields = findByThriftId(fieldId);
16675         if (fields == null) {
16676                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16677                 }
16678         return fields;
16679       }
16680
16681       /**
16682        * Find the _Fields constant that matches name, or null if its not found.
16683        */
16684       public static _Fields findByName(String name) {
16685         return byName.get(name);
16686       }
16687
16688       private final short _thriftId;
16689       private final String _fieldName;
16690
16691       _Fields(short thriftId, String fieldName) {
16692         _thriftId = thriftId;
16693         _fieldName = fieldName;
16694       }
16695
16696       @Override
16697         public short getThriftFieldId() {
16698         return _thriftId;
16699       }
16700
16701       @Override
16702         public String getFieldName() {
16703         return _fieldName;
16704       }
16705     }
16706
16707     // isset id assignments
16708     private static final int __SUCCESS_ISSET_ID = 0;
16709     private byte __isset_bitfield = 0;
16710     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16711     static {
16712       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16713       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
16714           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16715       metaDataMap = Collections.unmodifiableMap(tmpMap);
16716       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_result.class, metaDataMap);
16717     }
16718
16719     public unsetUpdateSource_result() {
16720     }
16721
16722     public unsetUpdateSource_result(
16723       int success)
16724     {
16725       this();
16726       this.success = success;
16727       setSuccessIsSet(true);
16728     }
16729
16730     /**
16731      * Performs a deep copy on <i>other</i>.
16732      */
16733     public unsetUpdateSource_result(unsetUpdateSource_result other) {
16734       __isset_bitfield = other.__isset_bitfield;
16735       this.success = other.success;
16736     }
16737
16738     @Override
16739         public unsetUpdateSource_result deepCopy() {
16740       return new unsetUpdateSource_result(this);
16741     }
16742
16743     @Override
16744     public void clear() {
16745       setSuccessIsSet(false);
16746       this.success = 0;
16747     }
16748
16749     public int getSuccess() {
16750       return this.success;
16751     }
16752
16753     public unsetUpdateSource_result setSuccess(int success) {
16754       this.success = success;
16755       setSuccessIsSet(true);
16756       return this;
16757     }
16758
16759     public void unsetSuccess() {
16760       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16761     }
16762
16763     /** Returns true if field success is set (has been assigned a value) and false otherwise */
16764     public boolean isSetSuccess() {
16765       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16766     }
16767
16768     public void setSuccessIsSet(boolean value) {
16769       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
16770     }
16771
16772     @Override
16773         public void setFieldValue(_Fields field, Object value) {
16774       switch (field) {
16775       case SUCCESS:
16776         if (value == null) {
16777           unsetSuccess();
16778         } else {
16779           setSuccess((Integer)value);
16780         }
16781         break;
16782
16783       }
16784     }
16785
16786     @Override
16787         public Object getFieldValue(_Fields field) {
16788       switch (field) {
16789       case SUCCESS:
16790         return Integer.valueOf(getSuccess());
16791
16792       }
16793       throw new IllegalStateException();
16794     }
16795
16796     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16797     @Override
16798         public boolean isSet(_Fields field) {
16799       if (field == null) {
16800         throw new IllegalArgumentException();
16801       }
16802
16803       switch (field) {
16804       case SUCCESS:
16805         return isSetSuccess();
16806       }
16807       throw new IllegalStateException();
16808     }
16809
16810     @Override
16811     public boolean equals(Object that) {
16812       if (that == null) {
16813                 return false;
16814         }
16815       if (that instanceof unsetUpdateSource_result) {
16816                 return this.equals((unsetUpdateSource_result)that);
16817         }
16818       return false;
16819     }
16820
16821     public boolean equals(unsetUpdateSource_result that) {
16822       if (that == null) {
16823                 return false;
16824         }
16825
16826       boolean this_present_success = true;
16827       boolean that_present_success = true;
16828       if (this_present_success || that_present_success) {
16829         if (!(this_present_success && that_present_success)) {
16830                         return false;
16831                 }
16832         if (this.success != that.success) {
16833                         return false;
16834                 }
16835       }
16836
16837       return true;
16838     }
16839
16840     @Override
16841     public int hashCode() {
16842       List<Object> list = new ArrayList<Object>();
16843
16844       boolean present_success = true;
16845       list.add(present_success);
16846       if (present_success)
16847         list.add(success);
16848       return list.hashCode();
16849     }
16850
16851     @Override
16852     public int compareTo(unsetUpdateSource_result other) {
16853       if (!getClass().equals(other.getClass())) {
16854         return getClass().getName().compareTo(other.getClass().getName());
16855       }
16856
16857       int lastComparison = 0;
16858
16859       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
16860       if (lastComparison != 0) {
16861         return lastComparison;
16862       }
16863       if (isSetSuccess()) {
16864         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
16865         if (lastComparison != 0) {
16866           return lastComparison;
16867         }
16868       }
16869       return 0;
16870     }
16871
16872     @Override
16873         public _Fields fieldForId(int fieldId) {
16874       return _Fields.findByThriftId(fieldId);
16875     }
16876
16877     @Override
16878         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16879       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16880     }
16881
16882     @Override
16883         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16884       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16885       }
16886
16887     @Override
16888     public String toString() {
16889       StringBuilder sb = new StringBuilder("unsetUpdateSource_result(");
16890       boolean first = true;
16891
16892       sb.append("success:");
16893       sb.append(this.success);
16894       first = false;
16895       sb.append(")");
16896       return sb.toString();
16897     }
16898
16899     public void validate() throws org.apache.thrift.TException {
16900       // check for required fields
16901       // check for sub-struct validity
16902     }
16903
16904     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16905       try {
16906         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16907       } catch (org.apache.thrift.TException te) {
16908         throw new java.io.IOException(te);
16909       }
16910     }
16911
16912     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16913       try {
16914         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16915         __isset_bitfield = 0;
16916         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16917       } catch (org.apache.thrift.TException te) {
16918         throw new java.io.IOException(te);
16919       }
16920     }
16921
16922     private static class unsetUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
16923       @Override
16924         public unsetUpdateSource_resultStandardScheme getScheme() {
16925         return new unsetUpdateSource_resultStandardScheme();
16926       }
16927     }
16928
16929     private static class unsetUpdateSource_resultStandardScheme extends StandardScheme<unsetUpdateSource_result> {
16930
16931       @Override
16932         public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
16933         org.apache.thrift.protocol.TField schemeField;
16934         iprot.readStructBegin();
16935         while (true)
16936         {
16937           schemeField = iprot.readFieldBegin();
16938           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16939             break;
16940           }
16941           switch (schemeField.id) {
16942             case 0: // SUCCESS
16943               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16944                 struct.success = iprot.readI32();
16945                 struct.setSuccessIsSet(true);
16946               } else {
16947                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16948               }
16949               break;
16950             default:
16951               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16952           }
16953           iprot.readFieldEnd();
16954         }
16955         iprot.readStructEnd();
16956
16957         // check for required fields of primitive type, which can't be checked in the validate method
16958         struct.validate();
16959       }
16960
16961       @Override
16962         public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
16963         struct.validate();
16964
16965         oprot.writeStructBegin(STRUCT_DESC);
16966         if (struct.isSetSuccess()) {
16967           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16968           oprot.writeI32(struct.success);
16969           oprot.writeFieldEnd();
16970         }
16971         oprot.writeFieldStop();
16972         oprot.writeStructEnd();
16973       }
16974
16975     }
16976
16977     private static class unsetUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
16978       @Override
16979         public unsetUpdateSource_resultTupleScheme getScheme() {
16980         return new unsetUpdateSource_resultTupleScheme();
16981       }
16982     }
16983
16984     private static class unsetUpdateSource_resultTupleScheme extends TupleScheme<unsetUpdateSource_result> {
16985
16986       @Override
16987       public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
16988         TTupleProtocol oprot = (TTupleProtocol) prot;
16989         BitSet optionals = new BitSet();
16990         if (struct.isSetSuccess()) {
16991           optionals.set(0);
16992         }
16993         oprot.writeBitSet(optionals, 1);
16994         if (struct.isSetSuccess()) {
16995           oprot.writeI32(struct.success);
16996         }
16997       }
16998
16999       @Override
17000       public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
17001         TTupleProtocol iprot = (TTupleProtocol) prot;
17002         BitSet incoming = iprot.readBitSet(1);
17003         if (incoming.get(0)) {
17004           struct.success = iprot.readI32();
17005           struct.setSuccessIsSet(true);
17006         }
17007       }
17008     }
17009
17010   }
17011
17012   public static class enableAddressFamily_args implements org.apache.thrift.TBase<enableAddressFamily_args, enableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_args>   {
17013     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_args");
17014
17015     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);
17016     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);
17017     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);
17018
17019     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17020     static {
17021       schemes.put(StandardScheme.class, new enableAddressFamily_argsStandardSchemeFactory());
17022       schemes.put(TupleScheme.class, new enableAddressFamily_argsTupleSchemeFactory());
17023     }
17024
17025     public String peerIp; // required
17026     /**
17027      *
17028      * @see af_afi
17029      */
17030     public af_afi afi; // required
17031     /**
17032      *
17033      * @see af_safi
17034      */
17035     public af_safi safi; // required
17036
17037     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17038     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17039       PEER_IP((short)1, "peerIp"),
17040       /**
17041        *
17042        * @see af_afi
17043        */
17044       AFI((short)2, "afi"),
17045       /**
17046        *
17047        * @see af_safi
17048        */
17049       SAFI((short)3, "safi");
17050
17051       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17052
17053       static {
17054         for (_Fields field : EnumSet.allOf(_Fields.class)) {
17055           byName.put(field.getFieldName(), field);
17056         }
17057       }
17058
17059       /**
17060        * Find the _Fields constant that matches fieldId, or null if its not found.
17061        */
17062       public static _Fields findByThriftId(int fieldId) {
17063         switch(fieldId) {
17064           case 1: // PEER_IP
17065             return PEER_IP;
17066           case 2: // AFI
17067             return AFI;
17068           case 3: // SAFI
17069             return SAFI;
17070           default:
17071             return null;
17072         }
17073       }
17074
17075       /**
17076        * Find the _Fields constant that matches fieldId, throwing an exception
17077        * if it is not found.
17078        */
17079       public static _Fields findByThriftIdOrThrow(int fieldId) {
17080         _Fields fields = findByThriftId(fieldId);
17081         if (fields == null) {
17082                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17083                 }
17084         return fields;
17085       }
17086
17087       /**
17088        * Find the _Fields constant that matches name, or null if its not found.
17089        */
17090       public static _Fields findByName(String name) {
17091         return byName.get(name);
17092       }
17093
17094       private final short _thriftId;
17095       private final String _fieldName;
17096
17097       _Fields(short thriftId, String fieldName) {
17098         _thriftId = thriftId;
17099         _fieldName = fieldName;
17100       }
17101
17102       @Override
17103         public short getThriftFieldId() {
17104         return _thriftId;
17105       }
17106
17107       @Override
17108         public String getFieldName() {
17109         return _fieldName;
17110       }
17111     }
17112
17113     // isset id assignments
17114     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17115     static {
17116       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17117       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
17118           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17119       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
17120           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
17121       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
17122           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
17123       metaDataMap = Collections.unmodifiableMap(tmpMap);
17124       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_args.class, metaDataMap);
17125     }
17126
17127     public enableAddressFamily_args() {
17128     }
17129
17130     public enableAddressFamily_args(
17131       String peerIp,
17132       af_afi afi,
17133       af_safi safi)
17134     {
17135       this();
17136       this.peerIp = peerIp;
17137       this.afi = afi;
17138       this.safi = safi;
17139     }
17140
17141     /**
17142      * Performs a deep copy on <i>other</i>.
17143      */
17144     public enableAddressFamily_args(enableAddressFamily_args other) {
17145       if (other.isSetPeerIp()) {
17146         this.peerIp = other.peerIp;
17147       }
17148       if (other.isSetAfi()) {
17149         this.afi = other.afi;
17150       }
17151       if (other.isSetSafi()) {
17152         this.safi = other.safi;
17153       }
17154     }
17155
17156     @Override
17157         public enableAddressFamily_args deepCopy() {
17158       return new enableAddressFamily_args(this);
17159     }
17160
17161     @Override
17162     public void clear() {
17163       this.peerIp = null;
17164       this.afi = null;
17165       this.safi = null;
17166     }
17167
17168     public String getPeerIp() {
17169       return this.peerIp;
17170     }
17171
17172     public enableAddressFamily_args setPeerIp(String peerIp) {
17173       this.peerIp = peerIp;
17174       return this;
17175     }
17176
17177     public void unsetPeerIp() {
17178       this.peerIp = null;
17179     }
17180
17181     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
17182     public boolean isSetPeerIp() {
17183       return this.peerIp != null;
17184     }
17185
17186     public void setPeerIpIsSet(boolean value) {
17187       if (!value) {
17188         this.peerIp = null;
17189       }
17190     }
17191
17192     /**
17193      *
17194      * @see af_afi
17195      */
17196     public af_afi getAfi() {
17197       return this.afi;
17198     }
17199
17200     /**
17201      *
17202      * @see af_afi
17203      */
17204     public enableAddressFamily_args setAfi(af_afi afi) {
17205       this.afi = afi;
17206       return this;
17207     }
17208
17209     public void unsetAfi() {
17210       this.afi = null;
17211     }
17212
17213     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
17214     public boolean isSetAfi() {
17215       return this.afi != null;
17216     }
17217
17218     public void setAfiIsSet(boolean value) {
17219       if (!value) {
17220         this.afi = null;
17221       }
17222     }
17223
17224     /**
17225      *
17226      * @see af_safi
17227      */
17228     public af_safi getSafi() {
17229       return this.safi;
17230     }
17231
17232     /**
17233      *
17234      * @see af_safi
17235      */
17236     public enableAddressFamily_args setSafi(af_safi safi) {
17237       this.safi = safi;
17238       return this;
17239     }
17240
17241     public void unsetSafi() {
17242       this.safi = null;
17243     }
17244
17245     /** Returns true if field safi is set (has been assigned a value) and false otherwise */
17246     public boolean isSetSafi() {
17247       return this.safi != null;
17248     }
17249
17250     public void setSafiIsSet(boolean value) {
17251       if (!value) {
17252         this.safi = null;
17253       }
17254     }
17255
17256     @Override
17257         public void setFieldValue(_Fields field, Object value) {
17258       switch (field) {
17259       case PEER_IP:
17260         if (value == null) {
17261           unsetPeerIp();
17262         } else {
17263           setPeerIp((String)value);
17264         }
17265         break;
17266
17267       case AFI:
17268         if (value == null) {
17269           unsetAfi();
17270         } else {
17271           setAfi((af_afi)value);
17272         }
17273         break;
17274
17275       case SAFI:
17276         if (value == null) {
17277           unsetSafi();
17278         } else {
17279           setSafi((af_safi)value);
17280         }
17281         break;
17282
17283       }
17284     }
17285
17286     @Override
17287         public Object getFieldValue(_Fields field) {
17288       switch (field) {
17289       case PEER_IP:
17290         return getPeerIp();
17291
17292       case AFI:
17293         return getAfi();
17294
17295       case SAFI:
17296         return getSafi();
17297
17298       }
17299       throw new IllegalStateException();
17300     }
17301
17302     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17303     @Override
17304         public boolean isSet(_Fields field) {
17305       if (field == null) {
17306         throw new IllegalArgumentException();
17307       }
17308
17309       switch (field) {
17310       case PEER_IP:
17311         return isSetPeerIp();
17312       case AFI:
17313         return isSetAfi();
17314       case SAFI:
17315         return isSetSafi();
17316       }
17317       throw new IllegalStateException();
17318     }
17319
17320     @Override
17321     public boolean equals(Object that) {
17322       if (that == null) {
17323                 return false;
17324         }
17325       if (that instanceof enableAddressFamily_args) {
17326                 return this.equals((enableAddressFamily_args)that);
17327         }
17328       return false;
17329     }
17330
17331     public boolean equals(enableAddressFamily_args that) {
17332       if (that == null) {
17333                 return false;
17334         }
17335
17336       boolean this_present_peerIp = true && this.isSetPeerIp();
17337       boolean that_present_peerIp = true && that.isSetPeerIp();
17338       if (this_present_peerIp || that_present_peerIp) {
17339         if (!(this_present_peerIp && that_present_peerIp)) {
17340                         return false;
17341                 }
17342         if (!this.peerIp.equals(that.peerIp)) {
17343                         return false;
17344                 }
17345       }
17346
17347       boolean this_present_afi = true && this.isSetAfi();
17348       boolean that_present_afi = true && that.isSetAfi();
17349       if (this_present_afi || that_present_afi) {
17350         if (!(this_present_afi && that_present_afi)) {
17351                         return false;
17352                 }
17353         if (!this.afi.equals(that.afi)) {
17354                         return false;
17355                 }
17356       }
17357
17358       boolean this_present_safi = true && this.isSetSafi();
17359       boolean that_present_safi = true && that.isSetSafi();
17360       if (this_present_safi || that_present_safi) {
17361         if (!(this_present_safi && that_present_safi)) {
17362                         return false;
17363                 }
17364         if (!this.safi.equals(that.safi)) {
17365                         return false;
17366                 }
17367       }
17368
17369       return true;
17370     }
17371
17372     @Override
17373     public int hashCode() {
17374       List<Object> list = new ArrayList<Object>();
17375
17376       boolean present_peerIp = true && (isSetPeerIp());
17377       list.add(present_peerIp);
17378       if (present_peerIp)
17379         list.add(peerIp);
17380       boolean present_afi = true && (isSetAfi());
17381       list.add(present_afi);
17382       if (present_afi)
17383         list.add(afi.getValue());
17384       boolean present_safi = true && (isSetSafi());
17385       list.add(present_safi);
17386       if (present_safi)
17387         list.add(safi.getValue());
17388       return list.hashCode();
17389     }
17390
17391     @Override
17392     public int compareTo(enableAddressFamily_args other) {
17393       if (!getClass().equals(other.getClass())) {
17394         return getClass().getName().compareTo(other.getClass().getName());
17395       }
17396
17397       int lastComparison = 0;
17398
17399       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
17400       if (lastComparison != 0) {
17401         return lastComparison;
17402       }
17403       if (isSetPeerIp()) {
17404         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
17405         if (lastComparison != 0) {
17406           return lastComparison;
17407         }
17408       }
17409       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
17410       if (lastComparison != 0) {
17411         return lastComparison;
17412       }
17413       if (isSetAfi()) {
17414         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
17415         if (lastComparison != 0) {
17416           return lastComparison;
17417         }
17418       }
17419       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
17420       if (lastComparison != 0) {
17421         return lastComparison;
17422       }
17423       if (isSetSafi()) {
17424         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
17425         if (lastComparison != 0) {
17426           return lastComparison;
17427         }
17428       }
17429       return 0;
17430     }
17431
17432     @Override
17433         public _Fields fieldForId(int fieldId) {
17434       return _Fields.findByThriftId(fieldId);
17435     }
17436
17437     @Override
17438         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17439       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17440     }
17441
17442     @Override
17443         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17444       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17445     }
17446
17447     @Override
17448     public String toString() {
17449       StringBuilder sb = new StringBuilder("enableAddressFamily_args(");
17450       boolean first = true;
17451
17452       sb.append("peerIp:");
17453       if (this.peerIp == null) {
17454         sb.append("null");
17455       } else {
17456         sb.append(this.peerIp);
17457       }
17458       first = false;
17459       if (!first) {
17460                 sb.append(", ");
17461         }
17462       sb.append("afi:");
17463       if (this.afi == null) {
17464         sb.append("null");
17465       } else {
17466         sb.append(this.afi);
17467       }
17468       first = false;
17469       if (!first) {
17470                 sb.append(", ");
17471         }
17472       sb.append("safi:");
17473       if (this.safi == null) {
17474         sb.append("null");
17475       } else {
17476         sb.append(this.safi);
17477       }
17478       first = false;
17479       sb.append(")");
17480       return sb.toString();
17481     }
17482
17483     public void validate() throws org.apache.thrift.TException {
17484       // check for required fields
17485       // check for sub-struct validity
17486     }
17487
17488     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17489       try {
17490         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17491       } catch (org.apache.thrift.TException te) {
17492         throw new java.io.IOException(te);
17493       }
17494     }
17495
17496     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17497       try {
17498         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17499       } catch (org.apache.thrift.TException te) {
17500         throw new java.io.IOException(te);
17501       }
17502     }
17503
17504     private static class enableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
17505       @Override
17506         public enableAddressFamily_argsStandardScheme getScheme() {
17507         return new enableAddressFamily_argsStandardScheme();
17508       }
17509     }
17510
17511     private static class enableAddressFamily_argsStandardScheme extends StandardScheme<enableAddressFamily_args> {
17512
17513       @Override
17514         public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
17515         org.apache.thrift.protocol.TField schemeField;
17516         iprot.readStructBegin();
17517         while (true)
17518         {
17519           schemeField = iprot.readFieldBegin();
17520           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17521             break;
17522           }
17523           switch (schemeField.id) {
17524             case 1: // PEER_IP
17525               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
17526                 struct.peerIp = iprot.readString();
17527                 struct.setPeerIpIsSet(true);
17528               } else {
17529                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17530               }
17531               break;
17532             case 2: // AFI
17533               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17534                 struct.afi = af_afi.findByValue(iprot.readI32());
17535                 struct.setAfiIsSet(true);
17536               } else {
17537                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17538               }
17539               break;
17540             case 3: // SAFI
17541               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17542                 struct.safi = af_safi.findByValue(iprot.readI32());
17543                 struct.setSafiIsSet(true);
17544               } else {
17545                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17546               }
17547               break;
17548             default:
17549               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17550           }
17551           iprot.readFieldEnd();
17552         }
17553         iprot.readStructEnd();
17554
17555         // check for required fields of primitive type, which can't be checked in the validate method
17556         struct.validate();
17557       }
17558
17559       @Override
17560         public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
17561         struct.validate();
17562
17563         oprot.writeStructBegin(STRUCT_DESC);
17564         if (struct.peerIp != null) {
17565           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
17566           oprot.writeString(struct.peerIp);
17567           oprot.writeFieldEnd();
17568         }
17569         if (struct.afi != null) {
17570           oprot.writeFieldBegin(AFI_FIELD_DESC);
17571           oprot.writeI32(struct.afi.getValue());
17572           oprot.writeFieldEnd();
17573         }
17574         if (struct.safi != null) {
17575           oprot.writeFieldBegin(SAFI_FIELD_DESC);
17576           oprot.writeI32(struct.safi.getValue());
17577           oprot.writeFieldEnd();
17578         }
17579         oprot.writeFieldStop();
17580         oprot.writeStructEnd();
17581       }
17582
17583     }
17584
17585     private static class enableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
17586       @Override
17587         public enableAddressFamily_argsTupleScheme getScheme() {
17588         return new enableAddressFamily_argsTupleScheme();
17589       }
17590     }
17591
17592     private static class enableAddressFamily_argsTupleScheme extends TupleScheme<enableAddressFamily_args> {
17593
17594       @Override
17595       public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
17596         TTupleProtocol oprot = (TTupleProtocol) prot;
17597         BitSet optionals = new BitSet();
17598         if (struct.isSetPeerIp()) {
17599           optionals.set(0);
17600         }
17601         if (struct.isSetAfi()) {
17602           optionals.set(1);
17603         }
17604         if (struct.isSetSafi()) {
17605           optionals.set(2);
17606         }
17607         oprot.writeBitSet(optionals, 3);
17608         if (struct.isSetPeerIp()) {
17609           oprot.writeString(struct.peerIp);
17610         }
17611         if (struct.isSetAfi()) {
17612           oprot.writeI32(struct.afi.getValue());
17613         }
17614         if (struct.isSetSafi()) {
17615           oprot.writeI32(struct.safi.getValue());
17616         }
17617       }
17618
17619       @Override
17620       public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
17621         TTupleProtocol iprot = (TTupleProtocol) prot;
17622         BitSet incoming = iprot.readBitSet(3);
17623         if (incoming.get(0)) {
17624           struct.peerIp = iprot.readString();
17625           struct.setPeerIpIsSet(true);
17626         }
17627         if (incoming.get(1)) {
17628           struct.afi = af_afi.findByValue(iprot.readI32());
17629           struct.setAfiIsSet(true);
17630         }
17631         if (incoming.get(2)) {
17632           struct.safi = af_safi.findByValue(iprot.readI32());
17633           struct.setSafiIsSet(true);
17634         }
17635       }
17636     }
17637
17638   }
17639
17640   public static class enableAddressFamily_result implements org.apache.thrift.TBase<enableAddressFamily_result, enableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_result>   {
17641     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_result");
17642
17643     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);
17644
17645     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17646     static {
17647       schemes.put(StandardScheme.class, new enableAddressFamily_resultStandardSchemeFactory());
17648       schemes.put(TupleScheme.class, new enableAddressFamily_resultTupleSchemeFactory());
17649     }
17650
17651     public int success; // required
17652
17653     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17654     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17655       SUCCESS((short)0, "success");
17656
17657       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17658
17659       static {
17660         for (_Fields field : EnumSet.allOf(_Fields.class)) {
17661           byName.put(field.getFieldName(), field);
17662         }
17663       }
17664
17665       /**
17666        * Find the _Fields constant that matches fieldId, or null if its not found.
17667        */
17668       public static _Fields findByThriftId(int fieldId) {
17669         switch(fieldId) {
17670           case 0: // SUCCESS
17671             return SUCCESS;
17672           default:
17673             return null;
17674         }
17675       }
17676
17677       /**
17678        * Find the _Fields constant that matches fieldId, throwing an exception
17679        * if it is not found.
17680        */
17681       public static _Fields findByThriftIdOrThrow(int fieldId) {
17682         _Fields fields = findByThriftId(fieldId);
17683         if (fields == null) {
17684                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17685                 }
17686         return fields;
17687       }
17688
17689       /**
17690        * Find the _Fields constant that matches name, or null if its not found.
17691        */
17692       public static _Fields findByName(String name) {
17693         return byName.get(name);
17694       }
17695
17696       private final short _thriftId;
17697       private final String _fieldName;
17698
17699       _Fields(short thriftId, String fieldName) {
17700         _thriftId = thriftId;
17701         _fieldName = fieldName;
17702       }
17703
17704       @Override
17705         public short getThriftFieldId() {
17706         return _thriftId;
17707       }
17708
17709       @Override
17710         public String getFieldName() {
17711         return _fieldName;
17712       }
17713     }
17714
17715     // isset id assignments
17716     private static final int __SUCCESS_ISSET_ID = 0;
17717     private byte __isset_bitfield = 0;
17718     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17719     static {
17720       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17721       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
17722           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
17723       metaDataMap = Collections.unmodifiableMap(tmpMap);
17724       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_result.class, metaDataMap);
17725     }
17726
17727     public enableAddressFamily_result() {
17728     }
17729
17730     public enableAddressFamily_result(
17731       int success)
17732     {
17733       this();
17734       this.success = success;
17735       setSuccessIsSet(true);
17736     }
17737
17738     /**
17739      * Performs a deep copy on <i>other</i>.
17740      */
17741     public enableAddressFamily_result(enableAddressFamily_result other) {
17742       __isset_bitfield = other.__isset_bitfield;
17743       this.success = other.success;
17744     }
17745
17746     @Override
17747         public enableAddressFamily_result deepCopy() {
17748       return new enableAddressFamily_result(this);
17749     }
17750
17751     @Override
17752     public void clear() {
17753       setSuccessIsSet(false);
17754       this.success = 0;
17755     }
17756
17757     public int getSuccess() {
17758       return this.success;
17759     }
17760
17761     public enableAddressFamily_result setSuccess(int success) {
17762       this.success = success;
17763       setSuccessIsSet(true);
17764       return this;
17765     }
17766
17767     public void unsetSuccess() {
17768       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
17769     }
17770
17771     /** Returns true if field success is set (has been assigned a value) and false otherwise */
17772     public boolean isSetSuccess() {
17773       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
17774     }
17775
17776     public void setSuccessIsSet(boolean value) {
17777       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
17778     }
17779
17780     @Override
17781         public void setFieldValue(_Fields field, Object value) {
17782       switch (field) {
17783       case SUCCESS:
17784         if (value == null) {
17785           unsetSuccess();
17786         } else {
17787           setSuccess((Integer)value);
17788         }
17789         break;
17790
17791       }
17792     }
17793
17794     @Override
17795         public Object getFieldValue(_Fields field) {
17796       switch (field) {
17797       case SUCCESS:
17798         return Integer.valueOf(getSuccess());
17799
17800       }
17801       throw new IllegalStateException();
17802     }
17803
17804     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17805     @Override
17806         public boolean isSet(_Fields field) {
17807       if (field == null) {
17808         throw new IllegalArgumentException();
17809       }
17810
17811       switch (field) {
17812       case SUCCESS:
17813         return isSetSuccess();
17814       }
17815       throw new IllegalStateException();
17816     }
17817
17818     @Override
17819     public boolean equals(Object that) {
17820       if (that == null) {
17821                 return false;
17822         }
17823       if (that instanceof enableAddressFamily_result) {
17824                 return this.equals((enableAddressFamily_result)that);
17825         }
17826       return false;
17827     }
17828
17829     public boolean equals(enableAddressFamily_result that) {
17830       if (that == null) {
17831                 return false;
17832         }
17833
17834       boolean this_present_success = true;
17835       boolean that_present_success = true;
17836       if (this_present_success || that_present_success) {
17837         if (!(this_present_success && that_present_success)) {
17838                         return false;
17839                 }
17840         if (this.success != that.success) {
17841                         return false;
17842                 }
17843       }
17844
17845       return true;
17846     }
17847
17848     @Override
17849     public int hashCode() {
17850       List<Object> list = new ArrayList<Object>();
17851
17852       boolean present_success = true;
17853       list.add(present_success);
17854       if (present_success)
17855         list.add(success);
17856       return list.hashCode();
17857     }
17858
17859     @Override
17860     public int compareTo(enableAddressFamily_result other) {
17861       if (!getClass().equals(other.getClass())) {
17862         return getClass().getName().compareTo(other.getClass().getName());
17863       }
17864
17865       int lastComparison = 0;
17866
17867       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
17868       if (lastComparison != 0) {
17869         return lastComparison;
17870       }
17871       if (isSetSuccess()) {
17872         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
17873         if (lastComparison != 0) {
17874           return lastComparison;
17875         }
17876       }
17877       return 0;
17878     }
17879
17880     @Override
17881         public _Fields fieldForId(int fieldId) {
17882       return _Fields.findByThriftId(fieldId);
17883     }
17884
17885     @Override
17886         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17887       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17888     }
17889
17890     @Override
17891         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17892       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17893       }
17894
17895     @Override
17896     public String toString() {
17897       StringBuilder sb = new StringBuilder("enableAddressFamily_result(");
17898       boolean first = true;
17899
17900       sb.append("success:");
17901       sb.append(this.success);
17902       first = false;
17903       sb.append(")");
17904       return sb.toString();
17905     }
17906
17907     public void validate() throws org.apache.thrift.TException {
17908       // check for required fields
17909       // check for sub-struct validity
17910     }
17911
17912     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17913       try {
17914         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17915       } catch (org.apache.thrift.TException te) {
17916         throw new java.io.IOException(te);
17917       }
17918     }
17919
17920     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17921       try {
17922         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17923         __isset_bitfield = 0;
17924         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17925       } catch (org.apache.thrift.TException te) {
17926         throw new java.io.IOException(te);
17927       }
17928     }
17929
17930     private static class enableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
17931       @Override
17932         public enableAddressFamily_resultStandardScheme getScheme() {
17933         return new enableAddressFamily_resultStandardScheme();
17934       }
17935     }
17936
17937     private static class enableAddressFamily_resultStandardScheme extends StandardScheme<enableAddressFamily_result> {
17938
17939       @Override
17940         public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
17941         org.apache.thrift.protocol.TField schemeField;
17942         iprot.readStructBegin();
17943         while (true)
17944         {
17945           schemeField = iprot.readFieldBegin();
17946           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17947             break;
17948           }
17949           switch (schemeField.id) {
17950             case 0: // SUCCESS
17951               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17952                 struct.success = iprot.readI32();
17953                 struct.setSuccessIsSet(true);
17954               } else {
17955                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17956               }
17957               break;
17958             default:
17959               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17960           }
17961           iprot.readFieldEnd();
17962         }
17963         iprot.readStructEnd();
17964
17965         // check for required fields of primitive type, which can't be checked in the validate method
17966         struct.validate();
17967       }
17968
17969       @Override
17970         public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
17971         struct.validate();
17972
17973         oprot.writeStructBegin(STRUCT_DESC);
17974         if (struct.isSetSuccess()) {
17975           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17976           oprot.writeI32(struct.success);
17977           oprot.writeFieldEnd();
17978         }
17979         oprot.writeFieldStop();
17980         oprot.writeStructEnd();
17981       }
17982
17983     }
17984
17985     private static class enableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
17986       @Override
17987         public enableAddressFamily_resultTupleScheme getScheme() {
17988         return new enableAddressFamily_resultTupleScheme();
17989       }
17990     }
17991
17992     private static class enableAddressFamily_resultTupleScheme extends TupleScheme<enableAddressFamily_result> {
17993
17994       @Override
17995       public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
17996         TTupleProtocol oprot = (TTupleProtocol) prot;
17997         BitSet optionals = new BitSet();
17998         if (struct.isSetSuccess()) {
17999           optionals.set(0);
18000         }
18001         oprot.writeBitSet(optionals, 1);
18002         if (struct.isSetSuccess()) {
18003           oprot.writeI32(struct.success);
18004         }
18005       }
18006
18007       @Override
18008       public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
18009         TTupleProtocol iprot = (TTupleProtocol) prot;
18010         BitSet incoming = iprot.readBitSet(1);
18011         if (incoming.get(0)) {
18012           struct.success = iprot.readI32();
18013           struct.setSuccessIsSet(true);
18014         }
18015       }
18016     }
18017
18018   }
18019
18020   public static class disableAddressFamily_args implements org.apache.thrift.TBase<disableAddressFamily_args, disableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_args>   {
18021     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_args");
18022
18023     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);
18024     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);
18025     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);
18026
18027     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18028     static {
18029       schemes.put(StandardScheme.class, new disableAddressFamily_argsStandardSchemeFactory());
18030       schemes.put(TupleScheme.class, new disableAddressFamily_argsTupleSchemeFactory());
18031     }
18032
18033     public String peerIp; // required
18034     /**
18035      *
18036      * @see af_afi
18037      */
18038     public af_afi afi; // required
18039     /**
18040      *
18041      * @see af_safi
18042      */
18043     public af_safi safi; // required
18044
18045     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18046     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18047       PEER_IP((short)1, "peerIp"),
18048       /**
18049        *
18050        * @see af_afi
18051        */
18052       AFI((short)2, "afi"),
18053       /**
18054        *
18055        * @see af_safi
18056        */
18057       SAFI((short)3, "safi");
18058
18059       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18060
18061       static {
18062         for (_Fields field : EnumSet.allOf(_Fields.class)) {
18063           byName.put(field.getFieldName(), field);
18064         }
18065       }
18066
18067       /**
18068        * Find the _Fields constant that matches fieldId, or null if its not found.
18069        */
18070       public static _Fields findByThriftId(int fieldId) {
18071         switch(fieldId) {
18072           case 1: // PEER_IP
18073             return PEER_IP;
18074           case 2: // AFI
18075             return AFI;
18076           case 3: // SAFI
18077             return SAFI;
18078           default:
18079             return null;
18080         }
18081       }
18082
18083       /**
18084        * Find the _Fields constant that matches fieldId, throwing an exception
18085        * if it is not found.
18086        */
18087       public static _Fields findByThriftIdOrThrow(int fieldId) {
18088         _Fields fields = findByThriftId(fieldId);
18089         if (fields == null) {
18090                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18091                 }
18092         return fields;
18093       }
18094
18095       /**
18096        * Find the _Fields constant that matches name, or null if its not found.
18097        */
18098       public static _Fields findByName(String name) {
18099         return byName.get(name);
18100       }
18101
18102       private final short _thriftId;
18103       private final String _fieldName;
18104
18105       _Fields(short thriftId, String fieldName) {
18106         _thriftId = thriftId;
18107         _fieldName = fieldName;
18108       }
18109
18110       @Override
18111         public short getThriftFieldId() {
18112         return _thriftId;
18113       }
18114
18115       @Override
18116         public String getFieldName() {
18117         return _fieldName;
18118       }
18119     }
18120
18121     // isset id assignments
18122     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18123     static {
18124       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18125       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
18126           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18127       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
18128           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
18129       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
18130           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
18131       metaDataMap = Collections.unmodifiableMap(tmpMap);
18132       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_args.class, metaDataMap);
18133     }
18134
18135     public disableAddressFamily_args() {
18136     }
18137
18138     public disableAddressFamily_args(
18139       String peerIp,
18140       af_afi afi,
18141       af_safi safi)
18142     {
18143       this();
18144       this.peerIp = peerIp;
18145       this.afi = afi;
18146       this.safi = safi;
18147     }
18148
18149     /**
18150      * Performs a deep copy on <i>other</i>.
18151      */
18152     public disableAddressFamily_args(disableAddressFamily_args other) {
18153       if (other.isSetPeerIp()) {
18154         this.peerIp = other.peerIp;
18155       }
18156       if (other.isSetAfi()) {
18157         this.afi = other.afi;
18158       }
18159       if (other.isSetSafi()) {
18160         this.safi = other.safi;
18161       }
18162     }
18163
18164     @Override
18165         public disableAddressFamily_args deepCopy() {
18166       return new disableAddressFamily_args(this);
18167     }
18168
18169     @Override
18170     public void clear() {
18171       this.peerIp = null;
18172       this.afi = null;
18173       this.safi = null;
18174     }
18175
18176     public String getPeerIp() {
18177       return this.peerIp;
18178     }
18179
18180     public disableAddressFamily_args setPeerIp(String peerIp) {
18181       this.peerIp = peerIp;
18182       return this;
18183     }
18184
18185     public void unsetPeerIp() {
18186       this.peerIp = null;
18187     }
18188
18189     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
18190     public boolean isSetPeerIp() {
18191       return this.peerIp != null;
18192     }
18193
18194     public void setPeerIpIsSet(boolean value) {
18195       if (!value) {
18196         this.peerIp = null;
18197       }
18198     }
18199
18200     /**
18201      *
18202      * @see af_afi
18203      */
18204     public af_afi getAfi() {
18205       return this.afi;
18206     }
18207
18208     /**
18209      *
18210      * @see af_afi
18211      */
18212     public disableAddressFamily_args setAfi(af_afi afi) {
18213       this.afi = afi;
18214       return this;
18215     }
18216
18217     public void unsetAfi() {
18218       this.afi = null;
18219     }
18220
18221     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
18222     public boolean isSetAfi() {
18223       return this.afi != null;
18224     }
18225
18226     public void setAfiIsSet(boolean value) {
18227       if (!value) {
18228         this.afi = null;
18229       }
18230     }
18231
18232     /**
18233      *
18234      * @see af_safi
18235      */
18236     public af_safi getSafi() {
18237       return this.safi;
18238     }
18239
18240     /**
18241      *
18242      * @see af_safi
18243      */
18244     public disableAddressFamily_args setSafi(af_safi safi) {
18245       this.safi = safi;
18246       return this;
18247     }
18248
18249     public void unsetSafi() {
18250       this.safi = null;
18251     }
18252
18253     /** Returns true if field safi is set (has been assigned a value) and false otherwise */
18254     public boolean isSetSafi() {
18255       return this.safi != null;
18256     }
18257
18258     public void setSafiIsSet(boolean value) {
18259       if (!value) {
18260         this.safi = null;
18261       }
18262     }
18263
18264     @Override
18265         public void setFieldValue(_Fields field, Object value) {
18266       switch (field) {
18267       case PEER_IP:
18268         if (value == null) {
18269           unsetPeerIp();
18270         } else {
18271           setPeerIp((String)value);
18272         }
18273         break;
18274
18275       case AFI:
18276         if (value == null) {
18277           unsetAfi();
18278         } else {
18279           setAfi((af_afi)value);
18280         }
18281         break;
18282
18283       case SAFI:
18284         if (value == null) {
18285           unsetSafi();
18286         } else {
18287           setSafi((af_safi)value);
18288         }
18289         break;
18290
18291       }
18292     }
18293
18294     @Override
18295         public Object getFieldValue(_Fields field) {
18296       switch (field) {
18297       case PEER_IP:
18298         return getPeerIp();
18299
18300       case AFI:
18301         return getAfi();
18302
18303       case SAFI:
18304         return getSafi();
18305
18306       }
18307       throw new IllegalStateException();
18308     }
18309
18310     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18311     @Override
18312         public boolean isSet(_Fields field) {
18313       if (field == null) {
18314         throw new IllegalArgumentException();
18315       }
18316
18317       switch (field) {
18318       case PEER_IP:
18319         return isSetPeerIp();
18320       case AFI:
18321         return isSetAfi();
18322       case SAFI:
18323         return isSetSafi();
18324       }
18325       throw new IllegalStateException();
18326     }
18327
18328     @Override
18329     public boolean equals(Object that) {
18330       if (that == null) {
18331                 return false;
18332         }
18333       if (that instanceof disableAddressFamily_args) {
18334                 return this.equals((disableAddressFamily_args)that);
18335         }
18336       return false;
18337     }
18338
18339     public boolean equals(disableAddressFamily_args that) {
18340       if (that == null) {
18341                 return false;
18342         }
18343
18344       boolean this_present_peerIp = true && this.isSetPeerIp();
18345       boolean that_present_peerIp = true && that.isSetPeerIp();
18346       if (this_present_peerIp || that_present_peerIp) {
18347         if (!(this_present_peerIp && that_present_peerIp)) {
18348                         return false;
18349                 }
18350         if (!this.peerIp.equals(that.peerIp)) {
18351                         return false;
18352                 }
18353       }
18354
18355       boolean this_present_afi = true && this.isSetAfi();
18356       boolean that_present_afi = true && that.isSetAfi();
18357       if (this_present_afi || that_present_afi) {
18358         if (!(this_present_afi && that_present_afi)) {
18359                         return false;
18360                 }
18361         if (!this.afi.equals(that.afi)) {
18362                         return false;
18363                 }
18364       }
18365
18366       boolean this_present_safi = true && this.isSetSafi();
18367       boolean that_present_safi = true && that.isSetSafi();
18368       if (this_present_safi || that_present_safi) {
18369         if (!(this_present_safi && that_present_safi)) {
18370                         return false;
18371                 }
18372         if (!this.safi.equals(that.safi)) {
18373                         return false;
18374                 }
18375       }
18376
18377       return true;
18378     }
18379
18380     @Override
18381     public int hashCode() {
18382       List<Object> list = new ArrayList<Object>();
18383
18384       boolean present_peerIp = true && (isSetPeerIp());
18385       list.add(present_peerIp);
18386       if (present_peerIp)
18387         list.add(peerIp);
18388       boolean present_afi = true && (isSetAfi());
18389       list.add(present_afi);
18390       if (present_afi)
18391         list.add(afi.getValue());
18392       boolean present_safi = true && (isSetSafi());
18393       list.add(present_safi);
18394       if (present_safi)
18395         list.add(safi.getValue());
18396       return list.hashCode();
18397     }
18398
18399     @Override
18400     public int compareTo(disableAddressFamily_args other) {
18401       if (!getClass().equals(other.getClass())) {
18402         return getClass().getName().compareTo(other.getClass().getName());
18403       }
18404
18405       int lastComparison = 0;
18406
18407       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
18408       if (lastComparison != 0) {
18409         return lastComparison;
18410       }
18411       if (isSetPeerIp()) {
18412         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
18413         if (lastComparison != 0) {
18414           return lastComparison;
18415         }
18416       }
18417       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
18418       if (lastComparison != 0) {
18419         return lastComparison;
18420       }
18421       if (isSetAfi()) {
18422         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
18423         if (lastComparison != 0) {
18424           return lastComparison;
18425         }
18426       }
18427       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
18428       if (lastComparison != 0) {
18429         return lastComparison;
18430       }
18431       if (isSetSafi()) {
18432         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
18433         if (lastComparison != 0) {
18434           return lastComparison;
18435         }
18436       }
18437       return 0;
18438     }
18439
18440     @Override
18441         public _Fields fieldForId(int fieldId) {
18442       return _Fields.findByThriftId(fieldId);
18443     }
18444
18445     @Override
18446         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18447       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18448     }
18449
18450     @Override
18451         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18452       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18453     }
18454
18455     @Override
18456     public String toString() {
18457       StringBuilder sb = new StringBuilder("disableAddressFamily_args(");
18458       boolean first = true;
18459
18460       sb.append("peerIp:");
18461       if (this.peerIp == null) {
18462         sb.append("null");
18463       } else {
18464         sb.append(this.peerIp);
18465       }
18466       first = false;
18467       if (!first) {
18468                 sb.append(", ");
18469         }
18470       sb.append("afi:");
18471       if (this.afi == null) {
18472         sb.append("null");
18473       } else {
18474         sb.append(this.afi);
18475       }
18476       first = false;
18477       if (!first) {
18478                 sb.append(", ");
18479         }
18480       sb.append("safi:");
18481       if (this.safi == null) {
18482         sb.append("null");
18483       } else {
18484         sb.append(this.safi);
18485       }
18486       first = false;
18487       sb.append(")");
18488       return sb.toString();
18489     }
18490
18491     public void validate() throws org.apache.thrift.TException {
18492       // check for required fields
18493       // check for sub-struct validity
18494     }
18495
18496     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18497       try {
18498         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18499       } catch (org.apache.thrift.TException te) {
18500         throw new java.io.IOException(te);
18501       }
18502     }
18503
18504     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18505       try {
18506         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18507       } catch (org.apache.thrift.TException te) {
18508         throw new java.io.IOException(te);
18509       }
18510     }
18511
18512     private static class disableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
18513       @Override
18514         public disableAddressFamily_argsStandardScheme getScheme() {
18515         return new disableAddressFamily_argsStandardScheme();
18516       }
18517     }
18518
18519     private static class disableAddressFamily_argsStandardScheme extends StandardScheme<disableAddressFamily_args> {
18520
18521       @Override
18522         public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
18523         org.apache.thrift.protocol.TField schemeField;
18524         iprot.readStructBegin();
18525         while (true)
18526         {
18527           schemeField = iprot.readFieldBegin();
18528           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
18529             break;
18530           }
18531           switch (schemeField.id) {
18532             case 1: // PEER_IP
18533               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
18534                 struct.peerIp = iprot.readString();
18535                 struct.setPeerIpIsSet(true);
18536               } else {
18537                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18538               }
18539               break;
18540             case 2: // AFI
18541               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
18542                 struct.afi = af_afi.findByValue(iprot.readI32());
18543                 struct.setAfiIsSet(true);
18544               } else {
18545                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18546               }
18547               break;
18548             case 3: // SAFI
18549               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
18550                 struct.safi = af_safi.findByValue(iprot.readI32());
18551                 struct.setSafiIsSet(true);
18552               } else {
18553                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18554               }
18555               break;
18556             default:
18557               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18558           }
18559           iprot.readFieldEnd();
18560         }
18561         iprot.readStructEnd();
18562
18563         // check for required fields of primitive type, which can't be checked in the validate method
18564         struct.validate();
18565       }
18566
18567       @Override
18568         public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
18569         struct.validate();
18570
18571         oprot.writeStructBegin(STRUCT_DESC);
18572         if (struct.peerIp != null) {
18573           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
18574           oprot.writeString(struct.peerIp);
18575           oprot.writeFieldEnd();
18576         }
18577         if (struct.afi != null) {
18578           oprot.writeFieldBegin(AFI_FIELD_DESC);
18579           oprot.writeI32(struct.afi.getValue());
18580           oprot.writeFieldEnd();
18581         }
18582         if (struct.safi != null) {
18583           oprot.writeFieldBegin(SAFI_FIELD_DESC);
18584           oprot.writeI32(struct.safi.getValue());
18585           oprot.writeFieldEnd();
18586         }
18587         oprot.writeFieldStop();
18588         oprot.writeStructEnd();
18589       }
18590
18591     }
18592
18593     private static class disableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
18594       @Override
18595         public disableAddressFamily_argsTupleScheme getScheme() {
18596         return new disableAddressFamily_argsTupleScheme();
18597       }
18598     }
18599
18600     private static class disableAddressFamily_argsTupleScheme extends TupleScheme<disableAddressFamily_args> {
18601
18602       @Override
18603       public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
18604         TTupleProtocol oprot = (TTupleProtocol) prot;
18605         BitSet optionals = new BitSet();
18606         if (struct.isSetPeerIp()) {
18607           optionals.set(0);
18608         }
18609         if (struct.isSetAfi()) {
18610           optionals.set(1);
18611         }
18612         if (struct.isSetSafi()) {
18613           optionals.set(2);
18614         }
18615         oprot.writeBitSet(optionals, 3);
18616         if (struct.isSetPeerIp()) {
18617           oprot.writeString(struct.peerIp);
18618         }
18619         if (struct.isSetAfi()) {
18620           oprot.writeI32(struct.afi.getValue());
18621         }
18622         if (struct.isSetSafi()) {
18623           oprot.writeI32(struct.safi.getValue());
18624         }
18625       }
18626
18627       @Override
18628       public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
18629         TTupleProtocol iprot = (TTupleProtocol) prot;
18630         BitSet incoming = iprot.readBitSet(3);
18631         if (incoming.get(0)) {
18632           struct.peerIp = iprot.readString();
18633           struct.setPeerIpIsSet(true);
18634         }
18635         if (incoming.get(1)) {
18636           struct.afi = af_afi.findByValue(iprot.readI32());
18637           struct.setAfiIsSet(true);
18638         }
18639         if (incoming.get(2)) {
18640           struct.safi = af_safi.findByValue(iprot.readI32());
18641           struct.setSafiIsSet(true);
18642         }
18643       }
18644     }
18645
18646   }
18647
18648   public static class disableAddressFamily_result implements org.apache.thrift.TBase<disableAddressFamily_result, disableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_result>   {
18649     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_result");
18650
18651     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);
18652
18653     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18654     static {
18655       schemes.put(StandardScheme.class, new disableAddressFamily_resultStandardSchemeFactory());
18656       schemes.put(TupleScheme.class, new disableAddressFamily_resultTupleSchemeFactory());
18657     }
18658
18659     public int success; // required
18660
18661     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18662     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18663       SUCCESS((short)0, "success");
18664
18665       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18666
18667       static {
18668         for (_Fields field : EnumSet.allOf(_Fields.class)) {
18669           byName.put(field.getFieldName(), field);
18670         }
18671       }
18672
18673       /**
18674        * Find the _Fields constant that matches fieldId, or null if its not found.
18675        */
18676       public static _Fields findByThriftId(int fieldId) {
18677         switch(fieldId) {
18678           case 0: // SUCCESS
18679             return SUCCESS;
18680           default:
18681             return null;
18682         }
18683       }
18684
18685       /**
18686        * Find the _Fields constant that matches fieldId, throwing an exception
18687        * if it is not found.
18688        */
18689       public static _Fields findByThriftIdOrThrow(int fieldId) {
18690         _Fields fields = findByThriftId(fieldId);
18691         if (fields == null) {
18692                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18693                 }
18694         return fields;
18695       }
18696
18697       /**
18698        * Find the _Fields constant that matches name, or null if its not found.
18699        */
18700       public static _Fields findByName(String name) {
18701         return byName.get(name);
18702       }
18703
18704       private final short _thriftId;
18705       private final String _fieldName;
18706
18707       _Fields(short thriftId, String fieldName) {
18708         _thriftId = thriftId;
18709         _fieldName = fieldName;
18710       }
18711
18712       @Override
18713         public short getThriftFieldId() {
18714         return _thriftId;
18715       }
18716
18717       @Override
18718         public String getFieldName() {
18719         return _fieldName;
18720       }
18721     }
18722
18723     // isset id assignments
18724     private static final int __SUCCESS_ISSET_ID = 0;
18725     private byte __isset_bitfield = 0;
18726     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18727     static {
18728       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18729       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
18730           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
18731       metaDataMap = Collections.unmodifiableMap(tmpMap);
18732       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_result.class, metaDataMap);
18733     }
18734
18735     public disableAddressFamily_result() {
18736     }
18737
18738     public disableAddressFamily_result(
18739       int success)
18740     {
18741       this();
18742       this.success = success;
18743       setSuccessIsSet(true);
18744     }
18745
18746     /**
18747      * Performs a deep copy on <i>other</i>.
18748      */
18749     public disableAddressFamily_result(disableAddressFamily_result other) {
18750       __isset_bitfield = other.__isset_bitfield;
18751       this.success = other.success;
18752     }
18753
18754     @Override
18755         public disableAddressFamily_result deepCopy() {
18756       return new disableAddressFamily_result(this);
18757     }
18758
18759     @Override
18760     public void clear() {
18761       setSuccessIsSet(false);
18762       this.success = 0;
18763     }
18764
18765     public int getSuccess() {
18766       return this.success;
18767     }
18768
18769     public disableAddressFamily_result setSuccess(int success) {
18770       this.success = success;
18771       setSuccessIsSet(true);
18772       return this;
18773     }
18774
18775     public void unsetSuccess() {
18776       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
18777     }
18778
18779     /** Returns true if field success is set (has been assigned a value) and false otherwise */
18780     public boolean isSetSuccess() {
18781       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
18782     }
18783
18784     public void setSuccessIsSet(boolean value) {
18785       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
18786     }
18787
18788     @Override
18789         public void setFieldValue(_Fields field, Object value) {
18790       switch (field) {
18791       case SUCCESS:
18792         if (value == null) {
18793           unsetSuccess();
18794         } else {
18795           setSuccess((Integer)value);
18796         }
18797         break;
18798
18799       }
18800     }
18801
18802     @Override
18803         public Object getFieldValue(_Fields field) {
18804       switch (field) {
18805       case SUCCESS:
18806         return Integer.valueOf(getSuccess());
18807
18808       }
18809       throw new IllegalStateException();
18810     }
18811
18812     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18813     @Override
18814         public boolean isSet(_Fields field) {
18815       if (field == null) {
18816         throw new IllegalArgumentException();
18817       }
18818
18819       switch (field) {
18820       case SUCCESS:
18821         return isSetSuccess();
18822       }
18823       throw new IllegalStateException();
18824     }
18825
18826     @Override
18827     public boolean equals(Object that) {
18828       if (that == null) {
18829                 return false;
18830         }
18831       if (that instanceof disableAddressFamily_result) {
18832                 return this.equals((disableAddressFamily_result)that);
18833         }
18834       return false;
18835     }
18836
18837     public boolean equals(disableAddressFamily_result that) {
18838       if (that == null) {
18839                 return false;
18840         }
18841
18842       boolean this_present_success = true;
18843       boolean that_present_success = true;
18844       if (this_present_success || that_present_success) {
18845         if (!(this_present_success && that_present_success)) {
18846                         return false;
18847                 }
18848         if (this.success != that.success) {
18849                         return false;
18850                 }
18851       }
18852
18853       return true;
18854     }
18855
18856     @Override
18857     public int hashCode() {
18858       List<Object> list = new ArrayList<Object>();
18859
18860       boolean present_success = true;
18861       list.add(present_success);
18862       if (present_success)
18863         list.add(success);
18864       return list.hashCode();
18865     }
18866
18867     @Override
18868     public int compareTo(disableAddressFamily_result other) {
18869       if (!getClass().equals(other.getClass())) {
18870         return getClass().getName().compareTo(other.getClass().getName());
18871       }
18872
18873       int lastComparison = 0;
18874
18875       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
18876       if (lastComparison != 0) {
18877         return lastComparison;
18878       }
18879       if (isSetSuccess()) {
18880         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
18881         if (lastComparison != 0) {
18882           return lastComparison;
18883         }
18884       }
18885       return 0;
18886     }
18887
18888     @Override
18889         public _Fields fieldForId(int fieldId) {
18890       return _Fields.findByThriftId(fieldId);
18891     }
18892
18893     @Override
18894         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18895       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18896     }
18897
18898     @Override
18899         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18900       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18901       }
18902
18903     @Override
18904     public String toString() {
18905       StringBuilder sb = new StringBuilder("disableAddressFamily_result(");
18906       boolean first = true;
18907
18908       sb.append("success:");
18909       sb.append(this.success);
18910       first = false;
18911       sb.append(")");
18912       return sb.toString();
18913     }
18914
18915     public void validate() throws org.apache.thrift.TException {
18916       // check for required fields
18917       // check for sub-struct validity
18918     }
18919
18920     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18921       try {
18922         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18923       } catch (org.apache.thrift.TException te) {
18924         throw new java.io.IOException(te);
18925       }
18926     }
18927
18928     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18929       try {
18930         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18931         __isset_bitfield = 0;
18932         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18933       } catch (org.apache.thrift.TException te) {
18934         throw new java.io.IOException(te);
18935       }
18936     }
18937
18938     private static class disableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
18939       @Override
18940         public disableAddressFamily_resultStandardScheme getScheme() {
18941         return new disableAddressFamily_resultStandardScheme();
18942       }
18943     }
18944
18945     private static class disableAddressFamily_resultStandardScheme extends StandardScheme<disableAddressFamily_result> {
18946
18947       @Override
18948         public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
18949         org.apache.thrift.protocol.TField schemeField;
18950         iprot.readStructBegin();
18951         while (true)
18952         {
18953           schemeField = iprot.readFieldBegin();
18954           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
18955             break;
18956           }
18957           switch (schemeField.id) {
18958             case 0: // SUCCESS
18959               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
18960                 struct.success = iprot.readI32();
18961                 struct.setSuccessIsSet(true);
18962               } else {
18963                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18964               }
18965               break;
18966             default:
18967               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18968           }
18969           iprot.readFieldEnd();
18970         }
18971         iprot.readStructEnd();
18972
18973         // check for required fields of primitive type, which can't be checked in the validate method
18974         struct.validate();
18975       }
18976
18977       @Override
18978         public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
18979         struct.validate();
18980
18981         oprot.writeStructBegin(STRUCT_DESC);
18982         if (struct.isSetSuccess()) {
18983           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18984           oprot.writeI32(struct.success);
18985           oprot.writeFieldEnd();
18986         }
18987         oprot.writeFieldStop();
18988         oprot.writeStructEnd();
18989       }
18990
18991     }
18992
18993     private static class disableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
18994       @Override
18995         public disableAddressFamily_resultTupleScheme getScheme() {
18996         return new disableAddressFamily_resultTupleScheme();
18997       }
18998     }
18999
19000     private static class disableAddressFamily_resultTupleScheme extends TupleScheme<disableAddressFamily_result> {
19001
19002       @Override
19003       public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
19004         TTupleProtocol oprot = (TTupleProtocol) prot;
19005         BitSet optionals = new BitSet();
19006         if (struct.isSetSuccess()) {
19007           optionals.set(0);
19008         }
19009         oprot.writeBitSet(optionals, 1);
19010         if (struct.isSetSuccess()) {
19011           oprot.writeI32(struct.success);
19012         }
19013       }
19014
19015       @Override
19016       public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
19017         TTupleProtocol iprot = (TTupleProtocol) prot;
19018         BitSet incoming = iprot.readBitSet(1);
19019         if (incoming.get(0)) {
19020           struct.success = iprot.readI32();
19021           struct.setSuccessIsSet(true);
19022         }
19023       }
19024     }
19025
19026   }
19027
19028   public static class setLogConfig_args implements org.apache.thrift.TBase<setLogConfig_args, setLogConfig_args._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_args>   {
19029     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_args");
19030
19031     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);
19032     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);
19033
19034     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19035     static {
19036       schemes.put(StandardScheme.class, new setLogConfig_argsStandardSchemeFactory());
19037       schemes.put(TupleScheme.class, new setLogConfig_argsTupleSchemeFactory());
19038     }
19039
19040     public String logFileName; // required
19041     public String logLevel; // required
19042
19043     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19044     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19045       LOG_FILE_NAME((short)1, "logFileName"),
19046       LOG_LEVEL((short)2, "logLevel");
19047
19048       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19049
19050       static {
19051         for (_Fields field : EnumSet.allOf(_Fields.class)) {
19052           byName.put(field.getFieldName(), field);
19053         }
19054       }
19055
19056       /**
19057        * Find the _Fields constant that matches fieldId, or null if its not found.
19058        */
19059       public static _Fields findByThriftId(int fieldId) {
19060         switch(fieldId) {
19061           case 1: // LOG_FILE_NAME
19062             return LOG_FILE_NAME;
19063           case 2: // LOG_LEVEL
19064             return LOG_LEVEL;
19065           default:
19066             return null;
19067         }
19068       }
19069
19070       /**
19071        * Find the _Fields constant that matches fieldId, throwing an exception
19072        * if it is not found.
19073        */
19074       public static _Fields findByThriftIdOrThrow(int fieldId) {
19075         _Fields fields = findByThriftId(fieldId);
19076         if (fields == null) {
19077                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19078                 }
19079         return fields;
19080       }
19081
19082       /**
19083        * Find the _Fields constant that matches name, or null if its not found.
19084        */
19085       public static _Fields findByName(String name) {
19086         return byName.get(name);
19087       }
19088
19089       private final short _thriftId;
19090       private final String _fieldName;
19091
19092       _Fields(short thriftId, String fieldName) {
19093         _thriftId = thriftId;
19094         _fieldName = fieldName;
19095       }
19096
19097       @Override
19098         public short getThriftFieldId() {
19099         return _thriftId;
19100       }
19101
19102       @Override
19103         public String getFieldName() {
19104         return _fieldName;
19105       }
19106     }
19107
19108     // isset id assignments
19109     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19110     static {
19111       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19112       tmpMap.put(_Fields.LOG_FILE_NAME, new org.apache.thrift.meta_data.FieldMetaData("logFileName", org.apache.thrift.TFieldRequirementType.DEFAULT,
19113           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19114       tmpMap.put(_Fields.LOG_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("logLevel", org.apache.thrift.TFieldRequirementType.DEFAULT,
19115           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19116       metaDataMap = Collections.unmodifiableMap(tmpMap);
19117       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_args.class, metaDataMap);
19118     }
19119
19120     public setLogConfig_args() {
19121     }
19122
19123     public setLogConfig_args(
19124       String logFileName,
19125       String logLevel)
19126     {
19127       this();
19128       this.logFileName = logFileName;
19129       this.logLevel = logLevel;
19130     }
19131
19132     /**
19133      * Performs a deep copy on <i>other</i>.
19134      */
19135     public setLogConfig_args(setLogConfig_args other) {
19136       if (other.isSetLogFileName()) {
19137         this.logFileName = other.logFileName;
19138       }
19139       if (other.isSetLogLevel()) {
19140         this.logLevel = other.logLevel;
19141       }
19142     }
19143
19144     @Override
19145         public setLogConfig_args deepCopy() {
19146       return new setLogConfig_args(this);
19147     }
19148
19149     @Override
19150     public void clear() {
19151       this.logFileName = null;
19152       this.logLevel = null;
19153     }
19154
19155     public String getLogFileName() {
19156       return this.logFileName;
19157     }
19158
19159     public setLogConfig_args setLogFileName(String logFileName) {
19160       this.logFileName = logFileName;
19161       return this;
19162     }
19163
19164     public void unsetLogFileName() {
19165       this.logFileName = null;
19166     }
19167
19168     /** Returns true if field logFileName is set (has been assigned a value) and false otherwise */
19169     public boolean isSetLogFileName() {
19170       return this.logFileName != null;
19171     }
19172
19173     public void setLogFileNameIsSet(boolean value) {
19174       if (!value) {
19175         this.logFileName = null;
19176       }
19177     }
19178
19179     public String getLogLevel() {
19180       return this.logLevel;
19181     }
19182
19183     public setLogConfig_args setLogLevel(String logLevel) {
19184       this.logLevel = logLevel;
19185       return this;
19186     }
19187
19188     public void unsetLogLevel() {
19189       this.logLevel = null;
19190     }
19191
19192     /** Returns true if field logLevel is set (has been assigned a value) and false otherwise */
19193     public boolean isSetLogLevel() {
19194       return this.logLevel != null;
19195     }
19196
19197     public void setLogLevelIsSet(boolean value) {
19198       if (!value) {
19199         this.logLevel = null;
19200       }
19201     }
19202
19203     @Override
19204         public void setFieldValue(_Fields field, Object value) {
19205       switch (field) {
19206       case LOG_FILE_NAME:
19207         if (value == null) {
19208           unsetLogFileName();
19209         } else {
19210           setLogFileName((String)value);
19211         }
19212         break;
19213
19214       case LOG_LEVEL:
19215         if (value == null) {
19216           unsetLogLevel();
19217         } else {
19218           setLogLevel((String)value);
19219         }
19220         break;
19221
19222       }
19223     }
19224
19225     @Override
19226         public Object getFieldValue(_Fields field) {
19227       switch (field) {
19228       case LOG_FILE_NAME:
19229         return getLogFileName();
19230
19231       case LOG_LEVEL:
19232         return getLogLevel();
19233
19234       }
19235       throw new IllegalStateException();
19236     }
19237
19238     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19239     @Override
19240         public boolean isSet(_Fields field) {
19241       if (field == null) {
19242         throw new IllegalArgumentException();
19243       }
19244
19245       switch (field) {
19246       case LOG_FILE_NAME:
19247         return isSetLogFileName();
19248       case LOG_LEVEL:
19249         return isSetLogLevel();
19250       }
19251       throw new IllegalStateException();
19252     }
19253
19254     @Override
19255     public boolean equals(Object that) {
19256       if (that == null) {
19257                 return false;
19258         }
19259       if (that instanceof setLogConfig_args) {
19260                 return this.equals((setLogConfig_args)that);
19261         }
19262       return false;
19263     }
19264
19265     public boolean equals(setLogConfig_args that) {
19266       if (that == null) {
19267                 return false;
19268         }
19269
19270       boolean this_present_logFileName = true && this.isSetLogFileName();
19271       boolean that_present_logFileName = true && that.isSetLogFileName();
19272       if (this_present_logFileName || that_present_logFileName) {
19273         if (!(this_present_logFileName && that_present_logFileName)) {
19274                         return false;
19275                 }
19276         if (!this.logFileName.equals(that.logFileName)) {
19277                         return false;
19278                 }
19279       }
19280
19281       boolean this_present_logLevel = true && this.isSetLogLevel();
19282       boolean that_present_logLevel = true && that.isSetLogLevel();
19283       if (this_present_logLevel || that_present_logLevel) {
19284         if (!(this_present_logLevel && that_present_logLevel)) {
19285                         return false;
19286                 }
19287         if (!this.logLevel.equals(that.logLevel)) {
19288                         return false;
19289                 }
19290       }
19291
19292       return true;
19293     }
19294
19295     @Override
19296     public int hashCode() {
19297       List<Object> list = new ArrayList<Object>();
19298
19299       boolean present_logFileName = true && (isSetLogFileName());
19300       list.add(present_logFileName);
19301       if (present_logFileName)
19302         list.add(logFileName);
19303       boolean present_logLevel = true && (isSetLogLevel());
19304       list.add(present_logLevel);
19305       if (present_logLevel)
19306         list.add(logLevel);
19307       return list.hashCode();
19308     }
19309
19310     @Override
19311     public int compareTo(setLogConfig_args other) {
19312       if (!getClass().equals(other.getClass())) {
19313         return getClass().getName().compareTo(other.getClass().getName());
19314       }
19315
19316       int lastComparison = 0;
19317
19318       lastComparison = Boolean.valueOf(isSetLogFileName()).compareTo(other.isSetLogFileName());
19319       if (lastComparison != 0) {
19320         return lastComparison;
19321       }
19322       if (isSetLogFileName()) {
19323         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logFileName, other.logFileName);
19324         if (lastComparison != 0) {
19325           return lastComparison;
19326         }
19327       }
19328       lastComparison = Boolean.valueOf(isSetLogLevel()).compareTo(other.isSetLogLevel());
19329       if (lastComparison != 0) {
19330         return lastComparison;
19331       }
19332       if (isSetLogLevel()) {
19333         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logLevel, other.logLevel);
19334         if (lastComparison != 0) {
19335           return lastComparison;
19336         }
19337       }
19338       return 0;
19339     }
19340
19341     @Override
19342         public _Fields fieldForId(int fieldId) {
19343       return _Fields.findByThriftId(fieldId);
19344     }
19345
19346     @Override
19347         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19348       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19349     }
19350
19351     @Override
19352         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19353       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19354     }
19355
19356     @Override
19357     public String toString() {
19358       StringBuilder sb = new StringBuilder("setLogConfig_args(");
19359       boolean first = true;
19360
19361       sb.append("logFileName:");
19362       if (this.logFileName == null) {
19363         sb.append("null");
19364       } else {
19365         sb.append(this.logFileName);
19366       }
19367       first = false;
19368       if (!first) {
19369                 sb.append(", ");
19370         }
19371       sb.append("logLevel:");
19372       if (this.logLevel == null) {
19373         sb.append("null");
19374       } else {
19375         sb.append(this.logLevel);
19376       }
19377       first = false;
19378       sb.append(")");
19379       return sb.toString();
19380     }
19381
19382     public void validate() throws org.apache.thrift.TException {
19383       // check for required fields
19384       // check for sub-struct validity
19385     }
19386
19387     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19388       try {
19389         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19390       } catch (org.apache.thrift.TException te) {
19391         throw new java.io.IOException(te);
19392       }
19393     }
19394
19395     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19396       try {
19397         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19398       } catch (org.apache.thrift.TException te) {
19399         throw new java.io.IOException(te);
19400       }
19401     }
19402
19403     private static class setLogConfig_argsStandardSchemeFactory implements SchemeFactory {
19404       @Override
19405         public setLogConfig_argsStandardScheme getScheme() {
19406         return new setLogConfig_argsStandardScheme();
19407       }
19408     }
19409
19410     private static class setLogConfig_argsStandardScheme extends StandardScheme<setLogConfig_args> {
19411
19412       @Override
19413         public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_args struct) throws org.apache.thrift.TException {
19414         org.apache.thrift.protocol.TField schemeField;
19415         iprot.readStructBegin();
19416         while (true)
19417         {
19418           schemeField = iprot.readFieldBegin();
19419           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
19420             break;
19421           }
19422           switch (schemeField.id) {
19423             case 1: // LOG_FILE_NAME
19424               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19425                 struct.logFileName = iprot.readString();
19426                 struct.setLogFileNameIsSet(true);
19427               } else {
19428                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19429               }
19430               break;
19431             case 2: // LOG_LEVEL
19432               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19433                 struct.logLevel = iprot.readString();
19434                 struct.setLogLevelIsSet(true);
19435               } else {
19436                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19437               }
19438               break;
19439             default:
19440               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19441           }
19442           iprot.readFieldEnd();
19443         }
19444         iprot.readStructEnd();
19445
19446         // check for required fields of primitive type, which can't be checked in the validate method
19447         struct.validate();
19448       }
19449
19450       @Override
19451         public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_args struct) throws org.apache.thrift.TException {
19452         struct.validate();
19453
19454         oprot.writeStructBegin(STRUCT_DESC);
19455         if (struct.logFileName != null) {
19456           oprot.writeFieldBegin(LOG_FILE_NAME_FIELD_DESC);
19457           oprot.writeString(struct.logFileName);
19458           oprot.writeFieldEnd();
19459         }
19460         if (struct.logLevel != null) {
19461           oprot.writeFieldBegin(LOG_LEVEL_FIELD_DESC);
19462           oprot.writeString(struct.logLevel);
19463           oprot.writeFieldEnd();
19464         }
19465         oprot.writeFieldStop();
19466         oprot.writeStructEnd();
19467       }
19468
19469     }
19470
19471     private static class setLogConfig_argsTupleSchemeFactory implements SchemeFactory {
19472       @Override
19473         public setLogConfig_argsTupleScheme getScheme() {
19474         return new setLogConfig_argsTupleScheme();
19475       }
19476     }
19477
19478     private static class setLogConfig_argsTupleScheme extends TupleScheme<setLogConfig_args> {
19479
19480       @Override
19481       public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
19482         TTupleProtocol oprot = (TTupleProtocol) prot;
19483         BitSet optionals = new BitSet();
19484         if (struct.isSetLogFileName()) {
19485           optionals.set(0);
19486         }
19487         if (struct.isSetLogLevel()) {
19488           optionals.set(1);
19489         }
19490         oprot.writeBitSet(optionals, 2);
19491         if (struct.isSetLogFileName()) {
19492           oprot.writeString(struct.logFileName);
19493         }
19494         if (struct.isSetLogLevel()) {
19495           oprot.writeString(struct.logLevel);
19496         }
19497       }
19498
19499       @Override
19500       public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
19501         TTupleProtocol iprot = (TTupleProtocol) prot;
19502         BitSet incoming = iprot.readBitSet(2);
19503         if (incoming.get(0)) {
19504           struct.logFileName = iprot.readString();
19505           struct.setLogFileNameIsSet(true);
19506         }
19507         if (incoming.get(1)) {
19508           struct.logLevel = iprot.readString();
19509           struct.setLogLevelIsSet(true);
19510         }
19511       }
19512     }
19513
19514   }
19515
19516   public static class setLogConfig_result implements org.apache.thrift.TBase<setLogConfig_result, setLogConfig_result._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_result>   {
19517     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_result");
19518
19519     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);
19520
19521     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19522     static {
19523       schemes.put(StandardScheme.class, new setLogConfig_resultStandardSchemeFactory());
19524       schemes.put(TupleScheme.class, new setLogConfig_resultTupleSchemeFactory());
19525     }
19526
19527     public int success; // required
19528
19529     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19530     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19531       SUCCESS((short)0, "success");
19532
19533       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19534
19535       static {
19536         for (_Fields field : EnumSet.allOf(_Fields.class)) {
19537           byName.put(field.getFieldName(), field);
19538         }
19539       }
19540
19541       /**
19542        * Find the _Fields constant that matches fieldId, or null if its not found.
19543        */
19544       public static _Fields findByThriftId(int fieldId) {
19545         switch(fieldId) {
19546           case 0: // SUCCESS
19547             return SUCCESS;
19548           default:
19549             return null;
19550         }
19551       }
19552
19553       /**
19554        * Find the _Fields constant that matches fieldId, throwing an exception
19555        * if it is not found.
19556        */
19557       public static _Fields findByThriftIdOrThrow(int fieldId) {
19558         _Fields fields = findByThriftId(fieldId);
19559         if (fields == null) {
19560                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19561                 }
19562         return fields;
19563       }
19564
19565       /**
19566        * Find the _Fields constant that matches name, or null if its not found.
19567        */
19568       public static _Fields findByName(String name) {
19569         return byName.get(name);
19570       }
19571
19572       private final short _thriftId;
19573       private final String _fieldName;
19574
19575       _Fields(short thriftId, String fieldName) {
19576         _thriftId = thriftId;
19577         _fieldName = fieldName;
19578       }
19579
19580       @Override
19581         public short getThriftFieldId() {
19582         return _thriftId;
19583       }
19584
19585       @Override
19586         public String getFieldName() {
19587         return _fieldName;
19588       }
19589     }
19590
19591     // isset id assignments
19592     private static final int __SUCCESS_ISSET_ID = 0;
19593     private byte __isset_bitfield = 0;
19594     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19595     static {
19596       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19597       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
19598           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
19599       metaDataMap = Collections.unmodifiableMap(tmpMap);
19600       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_result.class, metaDataMap);
19601     }
19602
19603     public setLogConfig_result() {
19604     }
19605
19606     public setLogConfig_result(
19607       int success)
19608     {
19609       this();
19610       this.success = success;
19611       setSuccessIsSet(true);
19612     }
19613
19614     /**
19615      * Performs a deep copy on <i>other</i>.
19616      */
19617     public setLogConfig_result(setLogConfig_result other) {
19618       __isset_bitfield = other.__isset_bitfield;
19619       this.success = other.success;
19620     }
19621
19622     @Override
19623         public setLogConfig_result deepCopy() {
19624       return new setLogConfig_result(this);
19625     }
19626
19627     @Override
19628     public void clear() {
19629       setSuccessIsSet(false);
19630       this.success = 0;
19631     }
19632
19633     public int getSuccess() {
19634       return this.success;
19635     }
19636
19637     public setLogConfig_result setSuccess(int success) {
19638       this.success = success;
19639       setSuccessIsSet(true);
19640       return this;
19641     }
19642
19643     public void unsetSuccess() {
19644       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
19645     }
19646
19647     /** Returns true if field success is set (has been assigned a value) and false otherwise */
19648     public boolean isSetSuccess() {
19649       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
19650     }
19651
19652     public void setSuccessIsSet(boolean value) {
19653       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
19654     }
19655
19656     @Override
19657         public void setFieldValue(_Fields field, Object value) {
19658       switch (field) {
19659       case SUCCESS:
19660         if (value == null) {
19661           unsetSuccess();
19662         } else {
19663           setSuccess((Integer)value);
19664         }
19665         break;
19666
19667       }
19668     }
19669
19670     @Override
19671         public Object getFieldValue(_Fields field) {
19672       switch (field) {
19673       case SUCCESS:
19674         return Integer.valueOf(getSuccess());
19675
19676       }
19677       throw new IllegalStateException();
19678     }
19679
19680     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19681     @Override
19682         public boolean isSet(_Fields field) {
19683       if (field == null) {
19684         throw new IllegalArgumentException();
19685       }
19686
19687       switch (field) {
19688       case SUCCESS:
19689         return isSetSuccess();
19690       }
19691       throw new IllegalStateException();
19692     }
19693
19694     @Override
19695     public boolean equals(Object that) {
19696       if (that == null) {
19697                 return false;
19698         }
19699       if (that instanceof setLogConfig_result) {
19700                 return this.equals((setLogConfig_result)that);
19701         }
19702       return false;
19703     }
19704
19705     public boolean equals(setLogConfig_result that) {
19706       if (that == null) {
19707                 return false;
19708         }
19709
19710       boolean this_present_success = true;
19711       boolean that_present_success = true;
19712       if (this_present_success || that_present_success) {
19713         if (!(this_present_success && that_present_success)) {
19714                         return false;
19715                 }
19716         if (this.success != that.success) {
19717                         return false;
19718                 }
19719       }
19720
19721       return true;
19722     }
19723
19724     @Override
19725     public int hashCode() {
19726       List<Object> list = new ArrayList<Object>();
19727
19728       boolean present_success = true;
19729       list.add(present_success);
19730       if (present_success)
19731         list.add(success);
19732       return list.hashCode();
19733     }
19734
19735     @Override
19736     public int compareTo(setLogConfig_result other) {
19737       if (!getClass().equals(other.getClass())) {
19738         return getClass().getName().compareTo(other.getClass().getName());
19739       }
19740
19741       int lastComparison = 0;
19742
19743       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
19744       if (lastComparison != 0) {
19745         return lastComparison;
19746       }
19747       if (isSetSuccess()) {
19748         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
19749         if (lastComparison != 0) {
19750           return lastComparison;
19751         }
19752       }
19753       return 0;
19754     }
19755
19756     @Override
19757         public _Fields fieldForId(int fieldId) {
19758       return _Fields.findByThriftId(fieldId);
19759     }
19760
19761     @Override
19762         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19763       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19764     }
19765
19766     @Override
19767         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19768       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19769       }
19770
19771     @Override
19772     public String toString() {
19773       StringBuilder sb = new StringBuilder("setLogConfig_result(");
19774       boolean first = true;
19775
19776       sb.append("success:");
19777       sb.append(this.success);
19778       first = false;
19779       sb.append(")");
19780       return sb.toString();
19781     }
19782
19783     public void validate() throws org.apache.thrift.TException {
19784       // check for required fields
19785       // check for sub-struct validity
19786     }
19787
19788     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19789       try {
19790         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19791       } catch (org.apache.thrift.TException te) {
19792         throw new java.io.IOException(te);
19793       }
19794     }
19795
19796     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19797       try {
19798         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19799         __isset_bitfield = 0;
19800         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19801       } catch (org.apache.thrift.TException te) {
19802         throw new java.io.IOException(te);
19803       }
19804     }
19805
19806     private static class setLogConfig_resultStandardSchemeFactory implements SchemeFactory {
19807       @Override
19808         public setLogConfig_resultStandardScheme getScheme() {
19809         return new setLogConfig_resultStandardScheme();
19810       }
19811     }
19812
19813     private static class setLogConfig_resultStandardScheme extends StandardScheme<setLogConfig_result> {
19814
19815       @Override
19816         public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_result struct) throws org.apache.thrift.TException {
19817         org.apache.thrift.protocol.TField schemeField;
19818         iprot.readStructBegin();
19819         while (true)
19820         {
19821           schemeField = iprot.readFieldBegin();
19822           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
19823             break;
19824           }
19825           switch (schemeField.id) {
19826             case 0: // SUCCESS
19827               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
19828                 struct.success = iprot.readI32();
19829                 struct.setSuccessIsSet(true);
19830               } else {
19831                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19832               }
19833               break;
19834             default:
19835               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19836           }
19837           iprot.readFieldEnd();
19838         }
19839         iprot.readStructEnd();
19840
19841         // check for required fields of primitive type, which can't be checked in the validate method
19842         struct.validate();
19843       }
19844
19845       @Override
19846         public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_result struct) throws org.apache.thrift.TException {
19847         struct.validate();
19848
19849         oprot.writeStructBegin(STRUCT_DESC);
19850         if (struct.isSetSuccess()) {
19851           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19852           oprot.writeI32(struct.success);
19853           oprot.writeFieldEnd();
19854         }
19855         oprot.writeFieldStop();
19856         oprot.writeStructEnd();
19857       }
19858
19859     }
19860
19861     private static class setLogConfig_resultTupleSchemeFactory implements SchemeFactory {
19862       @Override
19863         public setLogConfig_resultTupleScheme getScheme() {
19864         return new setLogConfig_resultTupleScheme();
19865       }
19866     }
19867
19868     private static class setLogConfig_resultTupleScheme extends TupleScheme<setLogConfig_result> {
19869
19870       @Override
19871       public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
19872         TTupleProtocol oprot = (TTupleProtocol) prot;
19873         BitSet optionals = new BitSet();
19874         if (struct.isSetSuccess()) {
19875           optionals.set(0);
19876         }
19877         oprot.writeBitSet(optionals, 1);
19878         if (struct.isSetSuccess()) {
19879           oprot.writeI32(struct.success);
19880         }
19881       }
19882
19883       @Override
19884       public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
19885         TTupleProtocol iprot = (TTupleProtocol) prot;
19886         BitSet incoming = iprot.readBitSet(1);
19887         if (incoming.get(0)) {
19888           struct.success = iprot.readI32();
19889           struct.setSuccessIsSet(true);
19890         }
19891       }
19892     }
19893
19894   }
19895
19896   public static class enableGracefulRestart_args implements org.apache.thrift.TBase<enableGracefulRestart_args, enableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_args>   {
19897     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_args");
19898
19899     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);
19900
19901     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19902     static {
19903       schemes.put(StandardScheme.class, new enableGracefulRestart_argsStandardSchemeFactory());
19904       schemes.put(TupleScheme.class, new enableGracefulRestart_argsTupleSchemeFactory());
19905     }
19906
19907     public int stalepathTime; // required
19908
19909     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19910     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19911       STALEPATH_TIME((short)1, "stalepathTime");
19912
19913       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19914
19915       static {
19916         for (_Fields field : EnumSet.allOf(_Fields.class)) {
19917           byName.put(field.getFieldName(), field);
19918         }
19919       }
19920
19921       /**
19922        * Find the _Fields constant that matches fieldId, or null if its not found.
19923        */
19924       public static _Fields findByThriftId(int fieldId) {
19925         switch(fieldId) {
19926           case 1: // STALEPATH_TIME
19927             return STALEPATH_TIME;
19928           default:
19929             return null;
19930         }
19931       }
19932
19933       /**
19934        * Find the _Fields constant that matches fieldId, throwing an exception
19935        * if it is not found.
19936        */
19937       public static _Fields findByThriftIdOrThrow(int fieldId) {
19938         _Fields fields = findByThriftId(fieldId);
19939         if (fields == null) {
19940                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19941                 }
19942         return fields;
19943       }
19944
19945       /**
19946        * Find the _Fields constant that matches name, or null if its not found.
19947        */
19948       public static _Fields findByName(String name) {
19949         return byName.get(name);
19950       }
19951
19952       private final short _thriftId;
19953       private final String _fieldName;
19954
19955       _Fields(short thriftId, String fieldName) {
19956         _thriftId = thriftId;
19957         _fieldName = fieldName;
19958       }
19959
19960       @Override
19961         public short getThriftFieldId() {
19962         return _thriftId;
19963       }
19964
19965       @Override
19966         public String getFieldName() {
19967         return _fieldName;
19968       }
19969     }
19970
19971     // isset id assignments
19972     private static final int __STALEPATHTIME_ISSET_ID = 0;
19973     private byte __isset_bitfield = 0;
19974     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19975     static {
19976       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19977       tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
19978           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
19979       metaDataMap = Collections.unmodifiableMap(tmpMap);
19980       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_args.class, metaDataMap);
19981     }
19982
19983     public enableGracefulRestart_args() {
19984     }
19985
19986     public enableGracefulRestart_args(
19987       int stalepathTime)
19988     {
19989       this();
19990       this.stalepathTime = stalepathTime;
19991       setStalepathTimeIsSet(true);
19992     }
19993
19994     /**
19995      * Performs a deep copy on <i>other</i>.
19996      */
19997     public enableGracefulRestart_args(enableGracefulRestart_args other) {
19998       __isset_bitfield = other.__isset_bitfield;
19999       this.stalepathTime = other.stalepathTime;
20000     }
20001
20002     @Override
20003         public enableGracefulRestart_args deepCopy() {
20004       return new enableGracefulRestart_args(this);
20005     }
20006
20007     @Override
20008     public void clear() {
20009       setStalepathTimeIsSet(false);
20010       this.stalepathTime = 0;
20011     }
20012
20013     public int getStalepathTime() {
20014       return this.stalepathTime;
20015     }
20016
20017     public enableGracefulRestart_args setStalepathTime(int stalepathTime) {
20018       this.stalepathTime = stalepathTime;
20019       setStalepathTimeIsSet(true);
20020       return this;
20021     }
20022
20023     public void unsetStalepathTime() {
20024       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
20025     }
20026
20027     /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
20028     public boolean isSetStalepathTime() {
20029       return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
20030     }
20031
20032     public void setStalepathTimeIsSet(boolean value) {
20033       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
20034     }
20035
20036     @Override
20037         public void setFieldValue(_Fields field, Object value) {
20038       switch (field) {
20039       case STALEPATH_TIME:
20040         if (value == null) {
20041           unsetStalepathTime();
20042         } else {
20043           setStalepathTime((Integer)value);
20044         }
20045         break;
20046
20047       }
20048     }
20049
20050     @Override
20051         public Object getFieldValue(_Fields field) {
20052       switch (field) {
20053       case STALEPATH_TIME:
20054         return Integer.valueOf(getStalepathTime());
20055
20056       }
20057       throw new IllegalStateException();
20058     }
20059
20060     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20061     @Override
20062         public boolean isSet(_Fields field) {
20063       if (field == null) {
20064         throw new IllegalArgumentException();
20065       }
20066
20067       switch (field) {
20068       case STALEPATH_TIME:
20069         return isSetStalepathTime();
20070       }
20071       throw new IllegalStateException();
20072     }
20073
20074     @Override
20075     public boolean equals(Object that) {
20076       if (that == null) {
20077                 return false;
20078         }
20079       if (that instanceof enableGracefulRestart_args) {
20080                 return this.equals((enableGracefulRestart_args)that);
20081         }
20082       return false;
20083     }
20084
20085     public boolean equals(enableGracefulRestart_args that) {
20086       if (that == null) {
20087                 return false;
20088         }
20089
20090       boolean this_present_stalepathTime = true;
20091       boolean that_present_stalepathTime = true;
20092       if (this_present_stalepathTime || that_present_stalepathTime) {
20093         if (!(this_present_stalepathTime && that_present_stalepathTime)) {
20094                         return false;
20095                 }
20096         if (this.stalepathTime != that.stalepathTime) {
20097                         return false;
20098                 }
20099       }
20100
20101       return true;
20102     }
20103
20104     @Override
20105     public int hashCode() {
20106       List<Object> list = new ArrayList<Object>();
20107
20108       boolean present_stalepathTime = true;
20109       list.add(present_stalepathTime);
20110       if (present_stalepathTime)
20111         list.add(stalepathTime);
20112       return list.hashCode();
20113     }
20114
20115     @Override
20116     public int compareTo(enableGracefulRestart_args other) {
20117       if (!getClass().equals(other.getClass())) {
20118         return getClass().getName().compareTo(other.getClass().getName());
20119       }
20120
20121       int lastComparison = 0;
20122
20123       lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
20124       if (lastComparison != 0) {
20125         return lastComparison;
20126       }
20127       if (isSetStalepathTime()) {
20128         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
20129         if (lastComparison != 0) {
20130           return lastComparison;
20131         }
20132       }
20133       return 0;
20134     }
20135
20136     @Override
20137         public _Fields fieldForId(int fieldId) {
20138       return _Fields.findByThriftId(fieldId);
20139     }
20140
20141     @Override
20142         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20143       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20144     }
20145
20146     @Override
20147         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20148       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20149     }
20150
20151     @Override
20152     public String toString() {
20153       StringBuilder sb = new StringBuilder("enableGracefulRestart_args(");
20154       boolean first = true;
20155
20156       sb.append("stalepathTime:");
20157       sb.append(this.stalepathTime);
20158       first = false;
20159       sb.append(")");
20160       return sb.toString();
20161     }
20162
20163     public void validate() throws org.apache.thrift.TException {
20164       // check for required fields
20165       // check for sub-struct validity
20166     }
20167
20168     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20169       try {
20170         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20171       } catch (org.apache.thrift.TException te) {
20172         throw new java.io.IOException(te);
20173       }
20174     }
20175
20176     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20177       try {
20178         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20179         __isset_bitfield = 0;
20180         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20181       } catch (org.apache.thrift.TException te) {
20182         throw new java.io.IOException(te);
20183       }
20184     }
20185
20186     private static class enableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
20187       @Override
20188         public enableGracefulRestart_argsStandardScheme getScheme() {
20189         return new enableGracefulRestart_argsStandardScheme();
20190       }
20191     }
20192
20193     private static class enableGracefulRestart_argsStandardScheme extends StandardScheme<enableGracefulRestart_args> {
20194
20195       @Override
20196         public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
20197         org.apache.thrift.protocol.TField schemeField;
20198         iprot.readStructBegin();
20199         while (true)
20200         {
20201           schemeField = iprot.readFieldBegin();
20202           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20203             break;
20204           }
20205           switch (schemeField.id) {
20206             case 1: // STALEPATH_TIME
20207               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
20208                 struct.stalepathTime = iprot.readI32();
20209                 struct.setStalepathTimeIsSet(true);
20210               } else {
20211                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20212               }
20213               break;
20214             default:
20215               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20216           }
20217           iprot.readFieldEnd();
20218         }
20219         iprot.readStructEnd();
20220
20221         // check for required fields of primitive type, which can't be checked in the validate method
20222         struct.validate();
20223       }
20224
20225       @Override
20226         public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
20227         struct.validate();
20228
20229         oprot.writeStructBegin(STRUCT_DESC);
20230         oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
20231         oprot.writeI32(struct.stalepathTime);
20232         oprot.writeFieldEnd();
20233         oprot.writeFieldStop();
20234         oprot.writeStructEnd();
20235       }
20236
20237     }
20238
20239     private static class enableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
20240       @Override
20241         public enableGracefulRestart_argsTupleScheme getScheme() {
20242         return new enableGracefulRestart_argsTupleScheme();
20243       }
20244     }
20245
20246     private static class enableGracefulRestart_argsTupleScheme extends TupleScheme<enableGracefulRestart_args> {
20247
20248       @Override
20249       public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
20250         TTupleProtocol oprot = (TTupleProtocol) prot;
20251         BitSet optionals = new BitSet();
20252         if (struct.isSetStalepathTime()) {
20253           optionals.set(0);
20254         }
20255         oprot.writeBitSet(optionals, 1);
20256         if (struct.isSetStalepathTime()) {
20257           oprot.writeI32(struct.stalepathTime);
20258         }
20259       }
20260
20261       @Override
20262       public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
20263         TTupleProtocol iprot = (TTupleProtocol) prot;
20264         BitSet incoming = iprot.readBitSet(1);
20265         if (incoming.get(0)) {
20266           struct.stalepathTime = iprot.readI32();
20267           struct.setStalepathTimeIsSet(true);
20268         }
20269       }
20270     }
20271
20272   }
20273
20274   public static class enableGracefulRestart_result implements org.apache.thrift.TBase<enableGracefulRestart_result, enableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_result>   {
20275     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_result");
20276
20277     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);
20278
20279     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20280     static {
20281       schemes.put(StandardScheme.class, new enableGracefulRestart_resultStandardSchemeFactory());
20282       schemes.put(TupleScheme.class, new enableGracefulRestart_resultTupleSchemeFactory());
20283     }
20284
20285     public int success; // required
20286
20287     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20288     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20289       SUCCESS((short)0, "success");
20290
20291       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20292
20293       static {
20294         for (_Fields field : EnumSet.allOf(_Fields.class)) {
20295           byName.put(field.getFieldName(), field);
20296         }
20297       }
20298
20299       /**
20300        * Find the _Fields constant that matches fieldId, or null if its not found.
20301        */
20302       public static _Fields findByThriftId(int fieldId) {
20303         switch(fieldId) {
20304           case 0: // SUCCESS
20305             return SUCCESS;
20306           default:
20307             return null;
20308         }
20309       }
20310
20311       /**
20312        * Find the _Fields constant that matches fieldId, throwing an exception
20313        * if it is not found.
20314        */
20315       public static _Fields findByThriftIdOrThrow(int fieldId) {
20316         _Fields fields = findByThriftId(fieldId);
20317         if (fields == null) {
20318                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20319                 }
20320         return fields;
20321       }
20322
20323       /**
20324        * Find the _Fields constant that matches name, or null if its not found.
20325        */
20326       public static _Fields findByName(String name) {
20327         return byName.get(name);
20328       }
20329
20330       private final short _thriftId;
20331       private final String _fieldName;
20332
20333       _Fields(short thriftId, String fieldName) {
20334         _thriftId = thriftId;
20335         _fieldName = fieldName;
20336       }
20337
20338       @Override
20339         public short getThriftFieldId() {
20340         return _thriftId;
20341       }
20342
20343       @Override
20344         public String getFieldName() {
20345         return _fieldName;
20346       }
20347     }
20348
20349     // isset id assignments
20350     private static final int __SUCCESS_ISSET_ID = 0;
20351     private byte __isset_bitfield = 0;
20352     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20353     static {
20354       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20355       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
20356           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
20357       metaDataMap = Collections.unmodifiableMap(tmpMap);
20358       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_result.class, metaDataMap);
20359     }
20360
20361     public enableGracefulRestart_result() {
20362     }
20363
20364     public enableGracefulRestart_result(
20365       int success)
20366     {
20367       this();
20368       this.success = success;
20369       setSuccessIsSet(true);
20370     }
20371
20372     /**
20373      * Performs a deep copy on <i>other</i>.
20374      */
20375     public enableGracefulRestart_result(enableGracefulRestart_result other) {
20376       __isset_bitfield = other.__isset_bitfield;
20377       this.success = other.success;
20378     }
20379
20380     @Override
20381         public enableGracefulRestart_result deepCopy() {
20382       return new enableGracefulRestart_result(this);
20383     }
20384
20385     @Override
20386     public void clear() {
20387       setSuccessIsSet(false);
20388       this.success = 0;
20389     }
20390
20391     public int getSuccess() {
20392       return this.success;
20393     }
20394
20395     public enableGracefulRestart_result setSuccess(int success) {
20396       this.success = success;
20397       setSuccessIsSet(true);
20398       return this;
20399     }
20400
20401     public void unsetSuccess() {
20402       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
20403     }
20404
20405     /** Returns true if field success is set (has been assigned a value) and false otherwise */
20406     public boolean isSetSuccess() {
20407       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
20408     }
20409
20410     public void setSuccessIsSet(boolean value) {
20411       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
20412     }
20413
20414     @Override
20415         public void setFieldValue(_Fields field, Object value) {
20416       switch (field) {
20417       case SUCCESS:
20418         if (value == null) {
20419           unsetSuccess();
20420         } else {
20421           setSuccess((Integer)value);
20422         }
20423         break;
20424
20425       }
20426     }
20427
20428     @Override
20429         public Object getFieldValue(_Fields field) {
20430       switch (field) {
20431       case SUCCESS:
20432         return Integer.valueOf(getSuccess());
20433
20434       }
20435       throw new IllegalStateException();
20436     }
20437
20438     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20439     @Override
20440         public boolean isSet(_Fields field) {
20441       if (field == null) {
20442         throw new IllegalArgumentException();
20443       }
20444
20445       switch (field) {
20446       case SUCCESS:
20447         return isSetSuccess();
20448       }
20449       throw new IllegalStateException();
20450     }
20451
20452     @Override
20453     public boolean equals(Object that) {
20454       if (that == null) {
20455                 return false;
20456         }
20457       if (that instanceof enableGracefulRestart_result) {
20458                 return this.equals((enableGracefulRestart_result)that);
20459         }
20460       return false;
20461     }
20462
20463     public boolean equals(enableGracefulRestart_result that) {
20464       if (that == null) {
20465                 return false;
20466         }
20467
20468       boolean this_present_success = true;
20469       boolean that_present_success = true;
20470       if (this_present_success || that_present_success) {
20471         if (!(this_present_success && that_present_success)) {
20472                         return false;
20473                 }
20474         if (this.success != that.success) {
20475                         return false;
20476                 }
20477       }
20478
20479       return true;
20480     }
20481
20482     @Override
20483     public int hashCode() {
20484       List<Object> list = new ArrayList<Object>();
20485
20486       boolean present_success = true;
20487       list.add(present_success);
20488       if (present_success)
20489         list.add(success);
20490       return list.hashCode();
20491     }
20492
20493     @Override
20494     public int compareTo(enableGracefulRestart_result other) {
20495       if (!getClass().equals(other.getClass())) {
20496         return getClass().getName().compareTo(other.getClass().getName());
20497       }
20498
20499       int lastComparison = 0;
20500
20501       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
20502       if (lastComparison != 0) {
20503         return lastComparison;
20504       }
20505       if (isSetSuccess()) {
20506         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
20507         if (lastComparison != 0) {
20508           return lastComparison;
20509         }
20510       }
20511       return 0;
20512     }
20513
20514     @Override
20515         public _Fields fieldForId(int fieldId) {
20516       return _Fields.findByThriftId(fieldId);
20517     }
20518
20519     @Override
20520         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20521       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20522     }
20523
20524     @Override
20525         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20526       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20527       }
20528
20529     @Override
20530     public String toString() {
20531       StringBuilder sb = new StringBuilder("enableGracefulRestart_result(");
20532       boolean first = true;
20533
20534       sb.append("success:");
20535       sb.append(this.success);
20536       first = false;
20537       sb.append(")");
20538       return sb.toString();
20539     }
20540
20541     public void validate() throws org.apache.thrift.TException {
20542       // check for required fields
20543       // check for sub-struct validity
20544     }
20545
20546     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20547       try {
20548         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20549       } catch (org.apache.thrift.TException te) {
20550         throw new java.io.IOException(te);
20551       }
20552     }
20553
20554     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20555       try {
20556         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20557         __isset_bitfield = 0;
20558         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20559       } catch (org.apache.thrift.TException te) {
20560         throw new java.io.IOException(te);
20561       }
20562     }
20563
20564     private static class enableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
20565       @Override
20566         public enableGracefulRestart_resultStandardScheme getScheme() {
20567         return new enableGracefulRestart_resultStandardScheme();
20568       }
20569     }
20570
20571     private static class enableGracefulRestart_resultStandardScheme extends StandardScheme<enableGracefulRestart_result> {
20572
20573       @Override
20574         public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
20575         org.apache.thrift.protocol.TField schemeField;
20576         iprot.readStructBegin();
20577         while (true)
20578         {
20579           schemeField = iprot.readFieldBegin();
20580           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20581             break;
20582           }
20583           switch (schemeField.id) {
20584             case 0: // SUCCESS
20585               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
20586                 struct.success = iprot.readI32();
20587                 struct.setSuccessIsSet(true);
20588               } else {
20589                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20590               }
20591               break;
20592             default:
20593               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20594           }
20595           iprot.readFieldEnd();
20596         }
20597         iprot.readStructEnd();
20598
20599         // check for required fields of primitive type, which can't be checked in the validate method
20600         struct.validate();
20601       }
20602
20603       @Override
20604         public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
20605         struct.validate();
20606
20607         oprot.writeStructBegin(STRUCT_DESC);
20608         if (struct.isSetSuccess()) {
20609           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20610           oprot.writeI32(struct.success);
20611           oprot.writeFieldEnd();
20612         }
20613         oprot.writeFieldStop();
20614         oprot.writeStructEnd();
20615       }
20616
20617     }
20618
20619     private static class enableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
20620       @Override
20621         public enableGracefulRestart_resultTupleScheme getScheme() {
20622         return new enableGracefulRestart_resultTupleScheme();
20623       }
20624     }
20625
20626     private static class enableGracefulRestart_resultTupleScheme extends TupleScheme<enableGracefulRestart_result> {
20627
20628       @Override
20629       public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
20630         TTupleProtocol oprot = (TTupleProtocol) prot;
20631         BitSet optionals = new BitSet();
20632         if (struct.isSetSuccess()) {
20633           optionals.set(0);
20634         }
20635         oprot.writeBitSet(optionals, 1);
20636         if (struct.isSetSuccess()) {
20637           oprot.writeI32(struct.success);
20638         }
20639       }
20640
20641       @Override
20642       public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
20643         TTupleProtocol iprot = (TTupleProtocol) prot;
20644         BitSet incoming = iprot.readBitSet(1);
20645         if (incoming.get(0)) {
20646           struct.success = iprot.readI32();
20647           struct.setSuccessIsSet(true);
20648         }
20649       }
20650     }
20651
20652   }
20653
20654   public static class disableGracefulRestart_args implements org.apache.thrift.TBase<disableGracefulRestart_args, disableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_args>   {
20655     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_args");
20656
20657
20658     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20659     static {
20660       schemes.put(StandardScheme.class, new disableGracefulRestart_argsStandardSchemeFactory());
20661       schemes.put(TupleScheme.class, new disableGracefulRestart_argsTupleSchemeFactory());
20662     }
20663
20664
20665     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20666     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20667 ;
20668
20669       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20670
20671       static {
20672         for (_Fields field : EnumSet.allOf(_Fields.class)) {
20673           byName.put(field.getFieldName(), field);
20674         }
20675       }
20676
20677       /**
20678        * Find the _Fields constant that matches fieldId, or null if its not found.
20679        */
20680       public static _Fields findByThriftId(int fieldId) {
20681         switch(fieldId) {
20682           default:
20683             return null;
20684         }
20685       }
20686
20687       /**
20688        * Find the _Fields constant that matches fieldId, throwing an exception
20689        * if it is not found.
20690        */
20691       public static _Fields findByThriftIdOrThrow(int fieldId) {
20692         _Fields fields = findByThriftId(fieldId);
20693         if (fields == null) {
20694                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20695                 }
20696         return fields;
20697       }
20698
20699       /**
20700        * Find the _Fields constant that matches name, or null if its not found.
20701        */
20702       public static _Fields findByName(String name) {
20703         return byName.get(name);
20704       }
20705
20706       private final short _thriftId;
20707       private final String _fieldName;
20708
20709       _Fields(short thriftId, String fieldName) {
20710         _thriftId = thriftId;
20711         _fieldName = fieldName;
20712       }
20713
20714       @Override
20715         public short getThriftFieldId() {
20716         return _thriftId;
20717       }
20718
20719       @Override
20720         public String getFieldName() {
20721         return _fieldName;
20722       }
20723     }
20724     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20725     static {
20726       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20727       metaDataMap = Collections.unmodifiableMap(tmpMap);
20728       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_args.class, metaDataMap);
20729     }
20730
20731     public disableGracefulRestart_args() {
20732     }
20733
20734     /**
20735      * Performs a deep copy on <i>other</i>.
20736      */
20737     public disableGracefulRestart_args(disableGracefulRestart_args other) {
20738     }
20739
20740     @Override
20741         public disableGracefulRestart_args deepCopy() {
20742       return new disableGracefulRestart_args(this);
20743     }
20744
20745     @Override
20746     public void clear() {
20747     }
20748
20749     @Override
20750         public void setFieldValue(_Fields field, Object value) {
20751       switch (field) {
20752       }
20753     }
20754
20755     @Override
20756         public Object getFieldValue(_Fields field) {
20757       switch (field) {
20758       }
20759       throw new IllegalStateException();
20760     }
20761
20762     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20763     @Override
20764         public boolean isSet(_Fields field) {
20765       if (field == null) {
20766         throw new IllegalArgumentException();
20767       }
20768
20769       switch (field) {
20770       }
20771       throw new IllegalStateException();
20772     }
20773
20774     @Override
20775     public boolean equals(Object that) {
20776       if (that == null) {
20777                 return false;
20778         }
20779       if (that instanceof disableGracefulRestart_args) {
20780                 return this.equals((disableGracefulRestart_args)that);
20781         }
20782       return false;
20783     }
20784
20785     public boolean equals(disableGracefulRestart_args that) {
20786       if (that == null) {
20787                 return false;
20788         }
20789
20790       return true;
20791     }
20792
20793     @Override
20794     public int hashCode() {
20795       List<Object> list = new ArrayList<Object>();
20796
20797       return list.hashCode();
20798     }
20799
20800     @Override
20801     public int compareTo(disableGracefulRestart_args other) {
20802       if (!getClass().equals(other.getClass())) {
20803         return getClass().getName().compareTo(other.getClass().getName());
20804       }
20805
20806       int lastComparison = 0;
20807
20808       return 0;
20809     }
20810
20811     @Override
20812         public _Fields fieldForId(int fieldId) {
20813       return _Fields.findByThriftId(fieldId);
20814     }
20815
20816     @Override
20817         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20818       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20819     }
20820
20821     @Override
20822         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20823       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20824     }
20825
20826     @Override
20827     public String toString() {
20828       StringBuilder sb = new StringBuilder("disableGracefulRestart_args(");
20829       boolean first = true;
20830
20831       sb.append(")");
20832       return sb.toString();
20833     }
20834
20835     public void validate() throws org.apache.thrift.TException {
20836       // check for required fields
20837       // check for sub-struct validity
20838     }
20839
20840     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20841       try {
20842         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20843       } catch (org.apache.thrift.TException te) {
20844         throw new java.io.IOException(te);
20845       }
20846     }
20847
20848     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20849       try {
20850         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20851       } catch (org.apache.thrift.TException te) {
20852         throw new java.io.IOException(te);
20853       }
20854     }
20855
20856     private static class disableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
20857       @Override
20858         public disableGracefulRestart_argsStandardScheme getScheme() {
20859         return new disableGracefulRestart_argsStandardScheme();
20860       }
20861     }
20862
20863     private static class disableGracefulRestart_argsStandardScheme extends StandardScheme<disableGracefulRestart_args> {
20864
20865       @Override
20866         public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
20867         org.apache.thrift.protocol.TField schemeField;
20868         iprot.readStructBegin();
20869         while (true)
20870         {
20871           schemeField = iprot.readFieldBegin();
20872           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20873             break;
20874           }
20875           switch (schemeField.id) {
20876             default:
20877               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20878           }
20879           iprot.readFieldEnd();
20880         }
20881         iprot.readStructEnd();
20882
20883         // check for required fields of primitive type, which can't be checked in the validate method
20884         struct.validate();
20885       }
20886
20887       @Override
20888         public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
20889         struct.validate();
20890
20891         oprot.writeStructBegin(STRUCT_DESC);
20892         oprot.writeFieldStop();
20893         oprot.writeStructEnd();
20894       }
20895
20896     }
20897
20898     private static class disableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
20899       @Override
20900         public disableGracefulRestart_argsTupleScheme getScheme() {
20901         return new disableGracefulRestart_argsTupleScheme();
20902       }
20903     }
20904
20905     private static class disableGracefulRestart_argsTupleScheme extends TupleScheme<disableGracefulRestart_args> {
20906
20907       @Override
20908       public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
20909         TTupleProtocol oprot = (TTupleProtocol) prot;
20910       }
20911
20912       @Override
20913       public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
20914         TTupleProtocol iprot = (TTupleProtocol) prot;
20915       }
20916     }
20917
20918   }
20919
20920   public static class disableGracefulRestart_result implements org.apache.thrift.TBase<disableGracefulRestart_result, disableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_result>   {
20921     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_result");
20922
20923     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);
20924
20925     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20926     static {
20927       schemes.put(StandardScheme.class, new disableGracefulRestart_resultStandardSchemeFactory());
20928       schemes.put(TupleScheme.class, new disableGracefulRestart_resultTupleSchemeFactory());
20929     }
20930
20931     public int success; // required
20932
20933     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20934     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20935       SUCCESS((short)0, "success");
20936
20937       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20938
20939       static {
20940         for (_Fields field : EnumSet.allOf(_Fields.class)) {
20941           byName.put(field.getFieldName(), field);
20942         }
20943       }
20944
20945       /**
20946        * Find the _Fields constant that matches fieldId, or null if its not found.
20947        */
20948       public static _Fields findByThriftId(int fieldId) {
20949         switch(fieldId) {
20950           case 0: // SUCCESS
20951             return SUCCESS;
20952           default:
20953             return null;
20954         }
20955       }
20956
20957       /**
20958        * Find the _Fields constant that matches fieldId, throwing an exception
20959        * if it is not found.
20960        */
20961       public static _Fields findByThriftIdOrThrow(int fieldId) {
20962         _Fields fields = findByThriftId(fieldId);
20963         if (fields == null) {
20964                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20965                 }
20966         return fields;
20967       }
20968
20969       /**
20970        * Find the _Fields constant that matches name, or null if its not found.
20971        */
20972       public static _Fields findByName(String name) {
20973         return byName.get(name);
20974       }
20975
20976       private final short _thriftId;
20977       private final String _fieldName;
20978
20979       _Fields(short thriftId, String fieldName) {
20980         _thriftId = thriftId;
20981         _fieldName = fieldName;
20982       }
20983
20984       @Override
20985         public short getThriftFieldId() {
20986         return _thriftId;
20987       }
20988
20989       @Override
20990         public String getFieldName() {
20991         return _fieldName;
20992       }
20993     }
20994
20995     // isset id assignments
20996     private static final int __SUCCESS_ISSET_ID = 0;
20997     private byte __isset_bitfield = 0;
20998     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20999     static {
21000       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21001       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
21002           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
21003       metaDataMap = Collections.unmodifiableMap(tmpMap);
21004       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_result.class, metaDataMap);
21005     }
21006
21007     public disableGracefulRestart_result() {
21008     }
21009
21010     public disableGracefulRestart_result(
21011       int success)
21012     {
21013       this();
21014       this.success = success;
21015       setSuccessIsSet(true);
21016     }
21017
21018     /**
21019      * Performs a deep copy on <i>other</i>.
21020      */
21021     public disableGracefulRestart_result(disableGracefulRestart_result other) {
21022       __isset_bitfield = other.__isset_bitfield;
21023       this.success = other.success;
21024     }
21025
21026     @Override
21027         public disableGracefulRestart_result deepCopy() {
21028       return new disableGracefulRestart_result(this);
21029     }
21030
21031     @Override
21032     public void clear() {
21033       setSuccessIsSet(false);
21034       this.success = 0;
21035     }
21036
21037     public int getSuccess() {
21038       return this.success;
21039     }
21040
21041     public disableGracefulRestart_result setSuccess(int success) {
21042       this.success = success;
21043       setSuccessIsSet(true);
21044       return this;
21045     }
21046
21047     public void unsetSuccess() {
21048       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
21049     }
21050
21051     /** Returns true if field success is set (has been assigned a value) and false otherwise */
21052     public boolean isSetSuccess() {
21053       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
21054     }
21055
21056     public void setSuccessIsSet(boolean value) {
21057       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
21058     }
21059
21060     @Override
21061         public void setFieldValue(_Fields field, Object value) {
21062       switch (field) {
21063       case SUCCESS:
21064         if (value == null) {
21065           unsetSuccess();
21066         } else {
21067           setSuccess((Integer)value);
21068         }
21069         break;
21070
21071       }
21072     }
21073
21074     @Override
21075         public Object getFieldValue(_Fields field) {
21076       switch (field) {
21077       case SUCCESS:
21078         return Integer.valueOf(getSuccess());
21079
21080       }
21081       throw new IllegalStateException();
21082     }
21083
21084     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21085     @Override
21086         public boolean isSet(_Fields field) {
21087       if (field == null) {
21088         throw new IllegalArgumentException();
21089       }
21090
21091       switch (field) {
21092       case SUCCESS:
21093         return isSetSuccess();
21094       }
21095       throw new IllegalStateException();
21096     }
21097
21098     @Override
21099     public boolean equals(Object that) {
21100       if (that == null) {
21101                 return false;
21102         }
21103       if (that instanceof disableGracefulRestart_result) {
21104                 return this.equals((disableGracefulRestart_result)that);
21105         }
21106       return false;
21107     }
21108
21109     public boolean equals(disableGracefulRestart_result that) {
21110       if (that == null) {
21111                 return false;
21112         }
21113
21114       boolean this_present_success = true;
21115       boolean that_present_success = true;
21116       if (this_present_success || that_present_success) {
21117         if (!(this_present_success && that_present_success)) {
21118                         return false;
21119                 }
21120         if (this.success != that.success) {
21121                         return false;
21122                 }
21123       }
21124
21125       return true;
21126     }
21127
21128     @Override
21129     public int hashCode() {
21130       List<Object> list = new ArrayList<Object>();
21131
21132       boolean present_success = true;
21133       list.add(present_success);
21134       if (present_success)
21135         list.add(success);
21136       return list.hashCode();
21137     }
21138
21139     @Override
21140     public int compareTo(disableGracefulRestart_result other) {
21141       if (!getClass().equals(other.getClass())) {
21142         return getClass().getName().compareTo(other.getClass().getName());
21143       }
21144
21145       int lastComparison = 0;
21146
21147       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
21148       if (lastComparison != 0) {
21149         return lastComparison;
21150       }
21151       if (isSetSuccess()) {
21152         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
21153         if (lastComparison != 0) {
21154           return lastComparison;
21155         }
21156       }
21157       return 0;
21158     }
21159
21160     @Override
21161         public _Fields fieldForId(int fieldId) {
21162       return _Fields.findByThriftId(fieldId);
21163     }
21164
21165     @Override
21166         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21167       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
21168     }
21169
21170     @Override
21171         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21172       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
21173       }
21174
21175     @Override
21176     public String toString() {
21177       StringBuilder sb = new StringBuilder("disableGracefulRestart_result(");
21178       boolean first = true;
21179
21180       sb.append("success:");
21181       sb.append(this.success);
21182       first = false;
21183       sb.append(")");
21184       return sb.toString();
21185     }
21186
21187     public void validate() throws org.apache.thrift.TException {
21188       // check for required fields
21189       // check for sub-struct validity
21190     }
21191
21192     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21193       try {
21194         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21195       } catch (org.apache.thrift.TException te) {
21196         throw new java.io.IOException(te);
21197       }
21198     }
21199
21200     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21201       try {
21202         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21203         __isset_bitfield = 0;
21204         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21205       } catch (org.apache.thrift.TException te) {
21206         throw new java.io.IOException(te);
21207       }
21208     }
21209
21210     private static class disableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
21211       @Override
21212         public disableGracefulRestart_resultStandardScheme getScheme() {
21213         return new disableGracefulRestart_resultStandardScheme();
21214       }
21215     }
21216
21217     private static class disableGracefulRestart_resultStandardScheme extends StandardScheme<disableGracefulRestart_result> {
21218
21219       @Override
21220         public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
21221         org.apache.thrift.protocol.TField schemeField;
21222         iprot.readStructBegin();
21223         while (true)
21224         {
21225           schemeField = iprot.readFieldBegin();
21226           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
21227             break;
21228           }
21229           switch (schemeField.id) {
21230             case 0: // SUCCESS
21231               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21232                 struct.success = iprot.readI32();
21233                 struct.setSuccessIsSet(true);
21234               } else {
21235                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21236               }
21237               break;
21238             default:
21239               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21240           }
21241           iprot.readFieldEnd();
21242         }
21243         iprot.readStructEnd();
21244
21245         // check for required fields of primitive type, which can't be checked in the validate method
21246         struct.validate();
21247       }
21248
21249       @Override
21250         public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
21251         struct.validate();
21252
21253         oprot.writeStructBegin(STRUCT_DESC);
21254         if (struct.isSetSuccess()) {
21255           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21256           oprot.writeI32(struct.success);
21257           oprot.writeFieldEnd();
21258         }
21259         oprot.writeFieldStop();
21260         oprot.writeStructEnd();
21261       }
21262
21263     }
21264
21265     private static class disableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
21266       @Override
21267         public disableGracefulRestart_resultTupleScheme getScheme() {
21268         return new disableGracefulRestart_resultTupleScheme();
21269       }
21270     }
21271
21272     private static class disableGracefulRestart_resultTupleScheme extends TupleScheme<disableGracefulRestart_result> {
21273
21274       @Override
21275       public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
21276         TTupleProtocol oprot = (TTupleProtocol) prot;
21277         BitSet optionals = new BitSet();
21278         if (struct.isSetSuccess()) {
21279           optionals.set(0);
21280         }
21281         oprot.writeBitSet(optionals, 1);
21282         if (struct.isSetSuccess()) {
21283           oprot.writeI32(struct.success);
21284         }
21285       }
21286
21287       @Override
21288       public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
21289         TTupleProtocol iprot = (TTupleProtocol) prot;
21290         BitSet incoming = iprot.readBitSet(1);
21291         if (incoming.get(0)) {
21292           struct.success = iprot.readI32();
21293           struct.setSuccessIsSet(true);
21294         }
21295       }
21296     }
21297
21298   }
21299
21300   public static class getRoutes_args implements org.apache.thrift.TBase<getRoutes_args, getRoutes_args._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_args>   {
21301     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_args");
21302
21303     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);
21304     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);
21305     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);
21306     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)4);
21307
21308     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21309     static {
21310       schemes.put(StandardScheme.class, new getRoutes_argsStandardSchemeFactory());
21311       schemes.put(TupleScheme.class, new getRoutes_argsTupleSchemeFactory());
21312     }
21313
21314     /**
21315      *
21316      * @see protocol_type
21317      */
21318     public protocol_type p_type; // required
21319     public int optype; // required
21320     public int winSize; // required
21321     /**
21322      *
21323      * @see af_afi
21324      */
21325     public af_afi afi; // required
21326
21327     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21328     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21329       /**
21330        *
21331        * @see protocol_type
21332        */
21333       P_TYPE((short)1, "p_type"),
21334       OPTYPE((short)2, "optype"),
21335       WIN_SIZE((short)3, "winSize"),
21336       /**
21337        *
21338        * @see af_afi
21339        */
21340       AFI((short)4, "afi");
21341
21342       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21343
21344       static {
21345         for (_Fields field : EnumSet.allOf(_Fields.class)) {
21346           byName.put(field.getFieldName(), field);
21347         }
21348       }
21349
21350       /**
21351        * Find the _Fields constant that matches fieldId, or null if its not found.
21352        */
21353       public static _Fields findByThriftId(int fieldId) {
21354         switch(fieldId) {
21355           case 1: // P_TYPE
21356             return P_TYPE;
21357           case 2: // OPTYPE
21358             return OPTYPE;
21359           case 3: // WIN_SIZE
21360             return WIN_SIZE;
21361           case 4: // AFI
21362             return AFI;
21363           default:
21364             return null;
21365         }
21366       }
21367
21368       /**
21369        * Find the _Fields constant that matches fieldId, throwing an exception
21370        * if it is not found.
21371        */
21372       public static _Fields findByThriftIdOrThrow(int fieldId) {
21373         _Fields fields = findByThriftId(fieldId);
21374         if (fields == null) {
21375                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21376                 }
21377         return fields;
21378       }
21379
21380       /**
21381        * Find the _Fields constant that matches name, or null if its not found.
21382        */
21383       public static _Fields findByName(String name) {
21384         return byName.get(name);
21385       }
21386
21387       private final short _thriftId;
21388       private final String _fieldName;
21389
21390       _Fields(short thriftId, String fieldName) {
21391         _thriftId = thriftId;
21392         _fieldName = fieldName;
21393       }
21394
21395       @Override
21396         public short getThriftFieldId() {
21397         return _thriftId;
21398       }
21399
21400       @Override
21401         public String getFieldName() {
21402         return _fieldName;
21403       }
21404     }
21405
21406     // isset id assignments
21407     private static final int __OPTYPE_ISSET_ID = 0;
21408     private static final int __WINSIZE_ISSET_ID = 1;
21409     private byte __isset_bitfield = 0;
21410     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21411     static {
21412       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21413       tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
21414           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
21415       tmpMap.put(_Fields.OPTYPE, new org.apache.thrift.meta_data.FieldMetaData("optype", org.apache.thrift.TFieldRequirementType.DEFAULT,
21416           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
21417       tmpMap.put(_Fields.WIN_SIZE, new org.apache.thrift.meta_data.FieldMetaData("winSize", org.apache.thrift.TFieldRequirementType.DEFAULT,
21418           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
21419       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
21420           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
21421       metaDataMap = Collections.unmodifiableMap(tmpMap);
21422       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_args.class, metaDataMap);
21423     }
21424
21425     public getRoutes_args() {
21426     }
21427
21428     public getRoutes_args(
21429       protocol_type p_type,
21430       int optype,
21431       int winSize,
21432       af_afi afi)
21433     {
21434       this();
21435       this.p_type = p_type;
21436       this.optype = optype;
21437       setOptypeIsSet(true);
21438       this.winSize = winSize;
21439       setWinSizeIsSet(true);
21440       this.afi = afi;
21441     }
21442
21443     /**
21444      * Performs a deep copy on <i>other</i>.
21445      */
21446     public getRoutes_args(getRoutes_args other) {
21447       __isset_bitfield = other.__isset_bitfield;
21448       if (other.isSetP_type()) {
21449         this.p_type = other.p_type;
21450       }
21451       this.optype = other.optype;
21452       this.winSize = other.winSize;
21453       if (other.isSetAfi()) {
21454         this.afi = other.afi;
21455       }
21456     }
21457
21458     @Override
21459         public getRoutes_args deepCopy() {
21460       return new getRoutes_args(this);
21461     }
21462
21463     @Override
21464     public void clear() {
21465       this.p_type = null;
21466       setOptypeIsSet(false);
21467       this.optype = 0;
21468       setWinSizeIsSet(false);
21469       this.winSize = 0;
21470       this.afi = null;
21471     }
21472
21473     /**
21474      *
21475      * @see protocol_type
21476      */
21477     public protocol_type getP_type() {
21478       return this.p_type;
21479     }
21480
21481     /**
21482      *
21483      * @see protocol_type
21484      */
21485     public getRoutes_args setP_type(protocol_type p_type) {
21486       this.p_type = p_type;
21487       return this;
21488     }
21489
21490     public void unsetP_type() {
21491       this.p_type = null;
21492     }
21493
21494     /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
21495     public boolean isSetP_type() {
21496       return this.p_type != null;
21497     }
21498
21499     public void setP_typeIsSet(boolean value) {
21500       if (!value) {
21501         this.p_type = null;
21502       }
21503     }
21504
21505     public int getOptype() {
21506       return this.optype;
21507     }
21508
21509     public getRoutes_args setOptype(int optype) {
21510       this.optype = optype;
21511       setOptypeIsSet(true);
21512       return this;
21513     }
21514
21515     public void unsetOptype() {
21516       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OPTYPE_ISSET_ID);
21517     }
21518
21519     /** Returns true if field optype is set (has been assigned a value) and false otherwise */
21520     public boolean isSetOptype() {
21521       return EncodingUtils.testBit(__isset_bitfield, __OPTYPE_ISSET_ID);
21522     }
21523
21524     public void setOptypeIsSet(boolean value) {
21525       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OPTYPE_ISSET_ID, value);
21526     }
21527
21528     public int getWinSize() {
21529       return this.winSize;
21530     }
21531
21532     public getRoutes_args setWinSize(int winSize) {
21533       this.winSize = winSize;
21534       setWinSizeIsSet(true);
21535       return this;
21536     }
21537
21538     public void unsetWinSize() {
21539       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WINSIZE_ISSET_ID);
21540     }
21541
21542     /** Returns true if field winSize is set (has been assigned a value) and false otherwise */
21543     public boolean isSetWinSize() {
21544       return EncodingUtils.testBit(__isset_bitfield, __WINSIZE_ISSET_ID);
21545     }
21546
21547     public void setWinSizeIsSet(boolean value) {
21548       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WINSIZE_ISSET_ID, value);
21549     }
21550
21551     /**
21552      *
21553      * @see af_afi
21554      */
21555     public af_afi getAfi() {
21556       return this.afi;
21557     }
21558
21559     /**
21560      *
21561      * @see af_afi
21562      */
21563     public getRoutes_args setAfi(af_afi afi) {
21564       this.afi = afi;
21565       return this;
21566     }
21567
21568     public void unsetAfi() {
21569       this.afi = null;
21570     }
21571
21572     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
21573     public boolean isSetAfi() {
21574       return this.afi != null;
21575     }
21576
21577     public void setAfiIsSet(boolean value) {
21578       if (!value) {
21579         this.afi = null;
21580       }
21581     }
21582
21583     @Override
21584         public void setFieldValue(_Fields field, Object value) {
21585       switch (field) {
21586       case P_TYPE:
21587         if (value == null) {
21588           unsetP_type();
21589         } else {
21590           setP_type((protocol_type)value);
21591         }
21592         break;
21593
21594       case OPTYPE:
21595         if (value == null) {
21596           unsetOptype();
21597         } else {
21598           setOptype((Integer)value);
21599         }
21600         break;
21601
21602       case WIN_SIZE:
21603         if (value == null) {
21604           unsetWinSize();
21605         } else {
21606           setWinSize((Integer)value);
21607         }
21608         break;
21609
21610       case AFI:
21611         if (value == null) {
21612           unsetAfi();
21613         } else {
21614           setAfi((af_afi)value);
21615         }
21616         break;
21617
21618       }
21619     }
21620
21621     @Override
21622         public Object getFieldValue(_Fields field) {
21623       switch (field) {
21624       case P_TYPE:
21625         return getP_type();
21626
21627       case OPTYPE:
21628         return Integer.valueOf(getOptype());
21629
21630       case WIN_SIZE:
21631         return Integer.valueOf(getWinSize());
21632
21633       case AFI:
21634         return getAfi();
21635
21636       }
21637       throw new IllegalStateException();
21638     }
21639
21640     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21641     @Override
21642         public boolean isSet(_Fields field) {
21643       if (field == null) {
21644         throw new IllegalArgumentException();
21645       }
21646
21647       switch (field) {
21648       case P_TYPE:
21649         return isSetP_type();
21650       case OPTYPE:
21651         return isSetOptype();
21652       case WIN_SIZE:
21653         return isSetWinSize();
21654       case AFI:
21655         return isSetAfi();
21656       }
21657       throw new IllegalStateException();
21658     }
21659
21660     @Override
21661     public boolean equals(Object that) {
21662       if (that == null) {
21663                 return false;
21664         }
21665       if (that instanceof getRoutes_args) {
21666                 return this.equals((getRoutes_args)that);
21667         }
21668       return false;
21669     }
21670
21671     public boolean equals(getRoutes_args that) {
21672       if (that == null) {
21673                 return false;
21674         }
21675
21676       boolean this_present_p_type = true && this.isSetP_type();
21677       boolean that_present_p_type = true && that.isSetP_type();
21678       if (this_present_p_type || that_present_p_type) {
21679         if (!(this_present_p_type && that_present_p_type)) {
21680                         return false;
21681                 }
21682         if (!this.p_type.equals(that.p_type)) {
21683                         return false;
21684                 }
21685       }
21686
21687       boolean this_present_optype = true;
21688       boolean that_present_optype = true;
21689       if (this_present_optype || that_present_optype) {
21690         if (!(this_present_optype && that_present_optype)) {
21691                         return false;
21692                 }
21693         if (this.optype != that.optype) {
21694                         return false;
21695                 }
21696       }
21697
21698       boolean this_present_winSize = true;
21699       boolean that_present_winSize = true;
21700       if (this_present_winSize || that_present_winSize) {
21701         if (!(this_present_winSize && that_present_winSize)) {
21702                         return false;
21703                 }
21704         if (this.winSize != that.winSize) {
21705                         return false;
21706                 }
21707       }
21708
21709       boolean this_present_afi = true && this.isSetAfi();
21710       boolean that_present_afi = true && that.isSetAfi();
21711       if (this_present_afi || that_present_afi) {
21712         if (!(this_present_afi && that_present_afi)) {
21713                         return false;
21714                 }
21715         if (!this.afi.equals(that.afi)) {
21716                         return false;
21717                 }
21718       }
21719
21720       return true;
21721     }
21722
21723     @Override
21724     public int hashCode() {
21725       List<Object> list = new ArrayList<Object>();
21726
21727       boolean present_p_type = true && (isSetP_type());
21728       list.add(present_p_type);
21729       if (present_p_type)
21730         list.add(p_type.getValue());
21731       boolean present_optype = true;
21732       list.add(present_optype);
21733       if (present_optype)
21734         list.add(optype);
21735       boolean present_winSize = true;
21736       list.add(present_winSize);
21737       if (present_winSize)
21738         list.add(winSize);
21739       boolean present_afi = true && (isSetAfi());
21740       list.add(present_afi);
21741       if (present_afi)
21742         list.add(afi.getValue());
21743       return list.hashCode();
21744     }
21745
21746     @Override
21747     public int compareTo(getRoutes_args other) {
21748       if (!getClass().equals(other.getClass())) {
21749         return getClass().getName().compareTo(other.getClass().getName());
21750       }
21751
21752       int lastComparison = 0;
21753
21754       lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
21755       if (lastComparison != 0) {
21756         return lastComparison;
21757       }
21758       if (isSetP_type()) {
21759         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
21760         if (lastComparison != 0) {
21761           return lastComparison;
21762         }
21763       }
21764       lastComparison = Boolean.valueOf(isSetOptype()).compareTo(other.isSetOptype());
21765       if (lastComparison != 0) {
21766         return lastComparison;
21767       }
21768       if (isSetOptype()) {
21769         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.optype, other.optype);
21770         if (lastComparison != 0) {
21771           return lastComparison;
21772         }
21773       }
21774       lastComparison = Boolean.valueOf(isSetWinSize()).compareTo(other.isSetWinSize());
21775       if (lastComparison != 0) {
21776         return lastComparison;
21777       }
21778       if (isSetWinSize()) {
21779         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.winSize, other.winSize);
21780         if (lastComparison != 0) {
21781           return lastComparison;
21782         }
21783       }
21784       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
21785       if (lastComparison != 0) {
21786         return lastComparison;
21787       }
21788       if (isSetAfi()) {
21789         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
21790         if (lastComparison != 0) {
21791           return lastComparison;
21792         }
21793       }
21794       return 0;
21795     }
21796
21797     @Override
21798         public _Fields fieldForId(int fieldId) {
21799       return _Fields.findByThriftId(fieldId);
21800     }
21801
21802     @Override
21803         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21804       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
21805     }
21806
21807     @Override
21808         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21809       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
21810     }
21811
21812     @Override
21813     public String toString() {
21814       StringBuilder sb = new StringBuilder("getRoutes_args(");
21815       boolean first = true;
21816
21817       sb.append("p_type:");
21818       if (this.p_type == null) {
21819         sb.append("null");
21820       } else {
21821         sb.append(this.p_type);
21822       }
21823       first = false;
21824       if (!first) {
21825                 sb.append(", ");
21826         }
21827       sb.append("optype:");
21828       sb.append(this.optype);
21829       first = false;
21830       if (!first) {
21831                 sb.append(", ");
21832         }
21833       sb.append("winSize:");
21834       sb.append(this.winSize);
21835       first = false;
21836       if (!first) {
21837                 sb.append(", ");
21838         }
21839       sb.append("afi:");
21840       if (this.afi == null) {
21841         sb.append("null");
21842       } else {
21843         sb.append(this.afi);
21844       }
21845       first = false;
21846       sb.append(")");
21847       return sb.toString();
21848     }
21849
21850     public void validate() throws org.apache.thrift.TException {
21851       // check for required fields
21852       // check for sub-struct validity
21853     }
21854
21855     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21856       try {
21857         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21858       } catch (org.apache.thrift.TException te) {
21859         throw new java.io.IOException(te);
21860       }
21861     }
21862
21863     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21864       try {
21865         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21866         __isset_bitfield = 0;
21867         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21868       } catch (org.apache.thrift.TException te) {
21869         throw new java.io.IOException(te);
21870       }
21871     }
21872
21873     private static class getRoutes_argsStandardSchemeFactory implements SchemeFactory {
21874       @Override
21875         public getRoutes_argsStandardScheme getScheme() {
21876         return new getRoutes_argsStandardScheme();
21877       }
21878     }
21879
21880     private static class getRoutes_argsStandardScheme extends StandardScheme<getRoutes_args> {
21881
21882       @Override
21883         public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_args struct) throws org.apache.thrift.TException {
21884         org.apache.thrift.protocol.TField schemeField;
21885         iprot.readStructBegin();
21886         while (true)
21887         {
21888           schemeField = iprot.readFieldBegin();
21889           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
21890             break;
21891           }
21892           switch (schemeField.id) {
21893             case 1: // P_TYPE
21894               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21895                 struct.p_type = protocol_type.findByValue(iprot.readI32());
21896                 struct.setP_typeIsSet(true);
21897               } else {
21898                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21899               }
21900               break;
21901             case 2: // OPTYPE
21902               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21903                 struct.optype = iprot.readI32();
21904                 struct.setOptypeIsSet(true);
21905               } else {
21906                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21907               }
21908               break;
21909             case 3: // WIN_SIZE
21910               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21911                 struct.winSize = iprot.readI32();
21912                 struct.setWinSizeIsSet(true);
21913               } else {
21914                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21915               }
21916               break;
21917             case 4: // AFI
21918               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21919                 struct.afi = af_afi.findByValue(iprot.readI32());
21920                 struct.setAfiIsSet(true);
21921               } else {
21922                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21923               }
21924               break;
21925             default:
21926               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21927           }
21928           iprot.readFieldEnd();
21929         }
21930         iprot.readStructEnd();
21931
21932         // check for required fields of primitive type, which can't be checked in the validate method
21933         struct.validate();
21934       }
21935
21936       @Override
21937         public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_args struct) throws org.apache.thrift.TException {
21938         struct.validate();
21939
21940         oprot.writeStructBegin(STRUCT_DESC);
21941         if (struct.p_type != null) {
21942           oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
21943           oprot.writeI32(struct.p_type.getValue());
21944           oprot.writeFieldEnd();
21945         }
21946         oprot.writeFieldBegin(OPTYPE_FIELD_DESC);
21947         oprot.writeI32(struct.optype);
21948         oprot.writeFieldEnd();
21949         oprot.writeFieldBegin(WIN_SIZE_FIELD_DESC);
21950         oprot.writeI32(struct.winSize);
21951         oprot.writeFieldEnd();
21952         if (struct.afi != null) {
21953           oprot.writeFieldBegin(AFI_FIELD_DESC);
21954           oprot.writeI32(struct.afi.getValue());
21955           oprot.writeFieldEnd();
21956         }
21957         oprot.writeFieldStop();
21958         oprot.writeStructEnd();
21959       }
21960
21961     }
21962
21963     private static class getRoutes_argsTupleSchemeFactory implements SchemeFactory {
21964       @Override
21965         public getRoutes_argsTupleScheme getScheme() {
21966         return new getRoutes_argsTupleScheme();
21967       }
21968     }
21969
21970     private static class getRoutes_argsTupleScheme extends TupleScheme<getRoutes_args> {
21971
21972       @Override
21973       public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
21974         TTupleProtocol oprot = (TTupleProtocol) prot;
21975         BitSet optionals = new BitSet();
21976         if (struct.isSetP_type()) {
21977           optionals.set(0);
21978         }
21979         if (struct.isSetOptype()) {
21980           optionals.set(1);
21981         }
21982         if (struct.isSetWinSize()) {
21983           optionals.set(2);
21984         }
21985         if (struct.isSetAfi()) {
21986           optionals.set(3);
21987         }
21988         oprot.writeBitSet(optionals, 4);
21989         if (struct.isSetP_type()) {
21990           oprot.writeI32(struct.p_type.getValue());
21991         }
21992         if (struct.isSetOptype()) {
21993           oprot.writeI32(struct.optype);
21994         }
21995         if (struct.isSetWinSize()) {
21996           oprot.writeI32(struct.winSize);
21997         }
21998         if (struct.isSetAfi()) {
21999           oprot.writeI32(struct.afi.getValue());
22000         }
22001       }
22002
22003       @Override
22004       public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
22005         TTupleProtocol iprot = (TTupleProtocol) prot;
22006         BitSet incoming = iprot.readBitSet(4);
22007         if (incoming.get(0)) {
22008           struct.p_type = protocol_type.findByValue(iprot.readI32());
22009           struct.setP_typeIsSet(true);
22010         }
22011         if (incoming.get(1)) {
22012           struct.optype = iprot.readI32();
22013           struct.setOptypeIsSet(true);
22014         }
22015         if (incoming.get(2)) {
22016           struct.winSize = iprot.readI32();
22017           struct.setWinSizeIsSet(true);
22018         }
22019         if (incoming.get(3)) {
22020           struct.afi = af_afi.findByValue(iprot.readI32());
22021           struct.setAfiIsSet(true);
22022         }
22023       }
22024     }
22025
22026   }
22027
22028   public static class getRoutes_result implements org.apache.thrift.TBase<getRoutes_result, getRoutes_result._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_result>   {
22029     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_result");
22030
22031     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);
22032
22033     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22034     static {
22035       schemes.put(StandardScheme.class, new getRoutes_resultStandardSchemeFactory());
22036       schemes.put(TupleScheme.class, new getRoutes_resultTupleSchemeFactory());
22037     }
22038
22039     public Routes success; // required
22040
22041     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22042     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22043       SUCCESS((short)0, "success");
22044
22045       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22046
22047       static {
22048         for (_Fields field : EnumSet.allOf(_Fields.class)) {
22049           byName.put(field.getFieldName(), field);
22050         }
22051       }
22052
22053       /**
22054        * Find the _Fields constant that matches fieldId, or null if its not found.
22055        */
22056       public static _Fields findByThriftId(int fieldId) {
22057         switch(fieldId) {
22058           case 0: // SUCCESS
22059             return SUCCESS;
22060           default:
22061             return null;
22062         }
22063       }
22064
22065       /**
22066        * Find the _Fields constant that matches fieldId, throwing an exception
22067        * if it is not found.
22068        */
22069       public static _Fields findByThriftIdOrThrow(int fieldId) {
22070         _Fields fields = findByThriftId(fieldId);
22071         if (fields == null) {
22072                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22073                 }
22074         return fields;
22075       }
22076
22077       /**
22078        * Find the _Fields constant that matches name, or null if its not found.
22079        */
22080       public static _Fields findByName(String name) {
22081         return byName.get(name);
22082       }
22083
22084       private final short _thriftId;
22085       private final String _fieldName;
22086
22087       _Fields(short thriftId, String fieldName) {
22088         _thriftId = thriftId;
22089         _fieldName = fieldName;
22090       }
22091
22092       @Override
22093         public short getThriftFieldId() {
22094         return _thriftId;
22095       }
22096
22097       @Override
22098         public String getFieldName() {
22099         return _fieldName;
22100       }
22101     }
22102
22103     // isset id assignments
22104     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22105     static {
22106       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22107       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
22108           new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Routes.class)));
22109       metaDataMap = Collections.unmodifiableMap(tmpMap);
22110       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_result.class, metaDataMap);
22111     }
22112
22113     public getRoutes_result() {
22114     }
22115
22116     public getRoutes_result(
22117       Routes success)
22118     {
22119       this();
22120       this.success = success;
22121     }
22122
22123     /**
22124      * Performs a deep copy on <i>other</i>.
22125      */
22126     public getRoutes_result(getRoutes_result other) {
22127       if (other.isSetSuccess()) {
22128         this.success = new Routes(other.success);
22129       }
22130     }
22131
22132     @Override
22133         public getRoutes_result deepCopy() {
22134       return new getRoutes_result(this);
22135     }
22136
22137     @Override
22138     public void clear() {
22139       this.success = null;
22140     }
22141
22142     public Routes getSuccess() {
22143       return this.success;
22144     }
22145
22146     public getRoutes_result setSuccess(Routes success) {
22147       this.success = success;
22148       return this;
22149     }
22150
22151     public void unsetSuccess() {
22152       this.success = null;
22153     }
22154
22155     /** Returns true if field success is set (has been assigned a value) and false otherwise */
22156     public boolean isSetSuccess() {
22157       return this.success != null;
22158     }
22159
22160     public void setSuccessIsSet(boolean value) {
22161       if (!value) {
22162         this.success = null;
22163       }
22164     }
22165
22166     @Override
22167         public void setFieldValue(_Fields field, Object value) {
22168       switch (field) {
22169       case SUCCESS:
22170         if (value == null) {
22171           unsetSuccess();
22172         } else {
22173           setSuccess((Routes)value);
22174         }
22175         break;
22176
22177       }
22178     }
22179
22180     @Override
22181         public Object getFieldValue(_Fields field) {
22182       switch (field) {
22183       case SUCCESS:
22184         return getSuccess();
22185
22186       }
22187       throw new IllegalStateException();
22188     }
22189
22190     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22191     @Override
22192         public boolean isSet(_Fields field) {
22193       if (field == null) {
22194         throw new IllegalArgumentException();
22195       }
22196
22197       switch (field) {
22198       case SUCCESS:
22199         return isSetSuccess();
22200       }
22201       throw new IllegalStateException();
22202     }
22203
22204     @Override
22205     public boolean equals(Object that) {
22206       if (that == null) {
22207                 return false;
22208         }
22209       if (that instanceof getRoutes_result) {
22210                 return this.equals((getRoutes_result)that);
22211         }
22212       return false;
22213     }
22214
22215     public boolean equals(getRoutes_result that) {
22216       if (that == null) {
22217                 return false;
22218         }
22219
22220       boolean this_present_success = true && this.isSetSuccess();
22221       boolean that_present_success = true && that.isSetSuccess();
22222       if (this_present_success || that_present_success) {
22223         if (!(this_present_success && that_present_success)) {
22224                         return false;
22225                 }
22226         if (!this.success.equals(that.success)) {
22227                         return false;
22228                 }
22229       }
22230
22231       return true;
22232     }
22233
22234     @Override
22235     public int hashCode() {
22236       List<Object> list = new ArrayList<Object>();
22237
22238       boolean present_success = true && (isSetSuccess());
22239       list.add(present_success);
22240       if (present_success)
22241         list.add(success);
22242       return list.hashCode();
22243     }
22244
22245     @Override
22246     public int compareTo(getRoutes_result other) {
22247       if (!getClass().equals(other.getClass())) {
22248         return getClass().getName().compareTo(other.getClass().getName());
22249       }
22250
22251       int lastComparison = 0;
22252
22253       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
22254       if (lastComparison != 0) {
22255         return lastComparison;
22256       }
22257       if (isSetSuccess()) {
22258         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
22259         if (lastComparison != 0) {
22260           return lastComparison;
22261         }
22262       }
22263       return 0;
22264     }
22265
22266     @Override
22267         public _Fields fieldForId(int fieldId) {
22268       return _Fields.findByThriftId(fieldId);
22269     }
22270
22271     @Override
22272         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22273       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22274     }
22275
22276     @Override
22277         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22278       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22279       }
22280
22281     @Override
22282     public String toString() {
22283       StringBuilder sb = new StringBuilder("getRoutes_result(");
22284       boolean first = true;
22285
22286       sb.append("success:");
22287       if (this.success == null) {
22288         sb.append("null");
22289       } else {
22290         sb.append(this.success);
22291       }
22292       first = false;
22293       sb.append(")");
22294       return sb.toString();
22295     }
22296
22297     public void validate() throws org.apache.thrift.TException {
22298       // check for required fields
22299       // check for sub-struct validity
22300       if (success != null) {
22301         success.validate();
22302       }
22303     }
22304
22305     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22306       try {
22307         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22308       } catch (org.apache.thrift.TException te) {
22309         throw new java.io.IOException(te);
22310       }
22311     }
22312
22313     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22314       try {
22315         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22316       } catch (org.apache.thrift.TException te) {
22317         throw new java.io.IOException(te);
22318       }
22319     }
22320
22321     private static class getRoutes_resultStandardSchemeFactory implements SchemeFactory {
22322       @Override
22323         public getRoutes_resultStandardScheme getScheme() {
22324         return new getRoutes_resultStandardScheme();
22325       }
22326     }
22327
22328     private static class getRoutes_resultStandardScheme extends StandardScheme<getRoutes_result> {
22329
22330       @Override
22331         public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_result struct) throws org.apache.thrift.TException {
22332         org.apache.thrift.protocol.TField schemeField;
22333         iprot.readStructBegin();
22334         while (true)
22335         {
22336           schemeField = iprot.readFieldBegin();
22337           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
22338             break;
22339           }
22340           switch (schemeField.id) {
22341             case 0: // SUCCESS
22342               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
22343                 struct.success = new Routes();
22344                 struct.success.read(iprot);
22345                 struct.setSuccessIsSet(true);
22346               } else {
22347                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22348               }
22349               break;
22350             default:
22351               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22352           }
22353           iprot.readFieldEnd();
22354         }
22355         iprot.readStructEnd();
22356
22357         // check for required fields of primitive type, which can't be checked in the validate method
22358         struct.validate();
22359       }
22360
22361       @Override
22362         public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_result struct) throws org.apache.thrift.TException {
22363         struct.validate();
22364
22365         oprot.writeStructBegin(STRUCT_DESC);
22366         if (struct.success != null) {
22367           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22368           struct.success.write(oprot);
22369           oprot.writeFieldEnd();
22370         }
22371         oprot.writeFieldStop();
22372         oprot.writeStructEnd();
22373       }
22374
22375     }
22376
22377     private static class getRoutes_resultTupleSchemeFactory implements SchemeFactory {
22378       @Override
22379         public getRoutes_resultTupleScheme getScheme() {
22380         return new getRoutes_resultTupleScheme();
22381       }
22382     }
22383
22384     private static class getRoutes_resultTupleScheme extends TupleScheme<getRoutes_result> {
22385
22386       @Override
22387       public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
22388         TTupleProtocol oprot = (TTupleProtocol) prot;
22389         BitSet optionals = new BitSet();
22390         if (struct.isSetSuccess()) {
22391           optionals.set(0);
22392         }
22393         oprot.writeBitSet(optionals, 1);
22394         if (struct.isSetSuccess()) {
22395           struct.success.write(oprot);
22396         }
22397       }
22398
22399       @Override
22400       public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
22401         TTupleProtocol iprot = (TTupleProtocol) prot;
22402         BitSet incoming = iprot.readBitSet(1);
22403         if (incoming.get(0)) {
22404           struct.success = new Routes();
22405           struct.success.read(iprot);
22406           struct.setSuccessIsSet(true);
22407         }
22408       }
22409     }
22410
22411   }
22412
22413   public static class enableMultipath_args implements org.apache.thrift.TBase<enableMultipath_args, enableMultipath_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableMultipath_args>   {
22414     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableMultipath_args");
22415
22416     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);
22417     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);
22418
22419     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22420     static {
22421       schemes.put(StandardScheme.class, new enableMultipath_argsStandardSchemeFactory());
22422       schemes.put(TupleScheme.class, new enableMultipath_argsTupleSchemeFactory());
22423     }
22424
22425     /**
22426      *
22427      * @see af_afi
22428      */
22429     public af_afi afi; // required
22430     /**
22431      *
22432      * @see af_safi
22433      */
22434     public af_safi safi; // required
22435
22436     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22437     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22438       /**
22439        *
22440        * @see af_afi
22441        */
22442       AFI((short)1, "afi"),
22443       /**
22444        *
22445        * @see af_safi
22446        */
22447       SAFI((short)2, "safi");
22448
22449       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22450
22451       static {
22452         for (_Fields field : EnumSet.allOf(_Fields.class)) {
22453           byName.put(field.getFieldName(), field);
22454         }
22455       }
22456
22457       /**
22458        * Find the _Fields constant that matches fieldId, or null if its not found.
22459        */
22460       public static _Fields findByThriftId(int fieldId) {
22461         switch(fieldId) {
22462           case 1: // AFI
22463             return AFI;
22464           case 2: // SAFI
22465             return SAFI;
22466           default:
22467             return null;
22468         }
22469       }
22470
22471       /**
22472        * Find the _Fields constant that matches fieldId, throwing an exception
22473        * if it is not found.
22474        */
22475       public static _Fields findByThriftIdOrThrow(int fieldId) {
22476         _Fields fields = findByThriftId(fieldId);
22477         if (fields == null) {
22478                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22479                 }
22480         return fields;
22481       }
22482
22483       /**
22484        * Find the _Fields constant that matches name, or null if its not found.
22485        */
22486       public static _Fields findByName(String name) {
22487         return byName.get(name);
22488       }
22489
22490       private final short _thriftId;
22491       private final String _fieldName;
22492
22493       _Fields(short thriftId, String fieldName) {
22494         _thriftId = thriftId;
22495         _fieldName = fieldName;
22496       }
22497
22498       @Override
22499         public short getThriftFieldId() {
22500         return _thriftId;
22501       }
22502
22503       @Override
22504         public String getFieldName() {
22505         return _fieldName;
22506       }
22507     }
22508
22509     // isset id assignments
22510     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22511     static {
22512       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22513       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
22514           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
22515       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
22516           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
22517       metaDataMap = Collections.unmodifiableMap(tmpMap);
22518       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableMultipath_args.class, metaDataMap);
22519     }
22520
22521     public enableMultipath_args() {
22522     }
22523
22524     public enableMultipath_args(
22525       af_afi afi,
22526       af_safi safi)
22527     {
22528       this();
22529       this.afi = afi;
22530       this.safi = safi;
22531     }
22532
22533     /**
22534      * Performs a deep copy on <i>other</i>.
22535      */
22536     public enableMultipath_args(enableMultipath_args other) {
22537       if (other.isSetAfi()) {
22538         this.afi = other.afi;
22539       }
22540       if (other.isSetSafi()) {
22541         this.safi = other.safi;
22542       }
22543     }
22544
22545     @Override
22546         public enableMultipath_args deepCopy() {
22547       return new enableMultipath_args(this);
22548     }
22549
22550     @Override
22551     public void clear() {
22552       this.afi = null;
22553       this.safi = null;
22554     }
22555
22556     /**
22557      *
22558      * @see af_afi
22559      */
22560     public af_afi getAfi() {
22561       return this.afi;
22562     }
22563
22564     /**
22565      *
22566      * @see af_afi
22567      */
22568     public enableMultipath_args setAfi(af_afi afi) {
22569       this.afi = afi;
22570       return this;
22571     }
22572
22573     public void unsetAfi() {
22574       this.afi = null;
22575     }
22576
22577     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
22578     public boolean isSetAfi() {
22579       return this.afi != null;
22580     }
22581
22582     public void setAfiIsSet(boolean value) {
22583       if (!value) {
22584         this.afi = null;
22585       }
22586     }
22587
22588     /**
22589      *
22590      * @see af_safi
22591      */
22592     public af_safi getSafi() {
22593       return this.safi;
22594     }
22595
22596     /**
22597      *
22598      * @see af_safi
22599      */
22600     public enableMultipath_args setSafi(af_safi safi) {
22601       this.safi = safi;
22602       return this;
22603     }
22604
22605     public void unsetSafi() {
22606       this.safi = null;
22607     }
22608
22609     /** Returns true if field safi is set (has been assigned a value) and false otherwise */
22610     public boolean isSetSafi() {
22611       return this.safi != null;
22612     }
22613
22614     public void setSafiIsSet(boolean value) {
22615       if (!value) {
22616         this.safi = null;
22617       }
22618     }
22619
22620     @Override
22621         public void setFieldValue(_Fields field, Object value) {
22622       switch (field) {
22623       case AFI:
22624         if (value == null) {
22625           unsetAfi();
22626         } else {
22627           setAfi((af_afi)value);
22628         }
22629         break;
22630
22631       case SAFI:
22632         if (value == null) {
22633           unsetSafi();
22634         } else {
22635           setSafi((af_safi)value);
22636         }
22637         break;
22638
22639       }
22640     }
22641
22642     @Override
22643         public Object getFieldValue(_Fields field) {
22644       switch (field) {
22645       case AFI:
22646         return getAfi();
22647
22648       case SAFI:
22649         return getSafi();
22650
22651       }
22652       throw new IllegalStateException();
22653     }
22654
22655     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22656     @Override
22657         public boolean isSet(_Fields field) {
22658       if (field == null) {
22659         throw new IllegalArgumentException();
22660       }
22661
22662       switch (field) {
22663       case AFI:
22664         return isSetAfi();
22665       case SAFI:
22666         return isSetSafi();
22667       }
22668       throw new IllegalStateException();
22669     }
22670
22671     @Override
22672     public boolean equals(Object that) {
22673       if (that == null) {
22674                 return false;
22675         }
22676       if (that instanceof enableMultipath_args) {
22677                 return this.equals((enableMultipath_args)that);
22678         }
22679       return false;
22680     }
22681
22682     public boolean equals(enableMultipath_args that) {
22683       if (that == null) {
22684                 return false;
22685         }
22686
22687       boolean this_present_afi = true && this.isSetAfi();
22688       boolean that_present_afi = true && that.isSetAfi();
22689       if (this_present_afi || that_present_afi) {
22690         if (!(this_present_afi && that_present_afi)) {
22691                         return false;
22692                 }
22693         if (!this.afi.equals(that.afi)) {
22694                         return false;
22695                 }
22696       }
22697
22698       boolean this_present_safi = true && this.isSetSafi();
22699       boolean that_present_safi = true && that.isSetSafi();
22700       if (this_present_safi || that_present_safi) {
22701         if (!(this_present_safi && that_present_safi)) {
22702                         return false;
22703                 }
22704         if (!this.safi.equals(that.safi)) {
22705                         return false;
22706                 }
22707       }
22708
22709       return true;
22710     }
22711
22712     @Override
22713     public int hashCode() {
22714       List<Object> list = new ArrayList<Object>();
22715
22716       boolean present_afi = true && (isSetAfi());
22717       list.add(present_afi);
22718       if (present_afi)
22719         list.add(afi.getValue());
22720       boolean present_safi = true && (isSetSafi());
22721       list.add(present_safi);
22722       if (present_safi)
22723         list.add(safi.getValue());
22724       return list.hashCode();
22725     }
22726
22727     @Override
22728     public int compareTo(enableMultipath_args other) {
22729       if (!getClass().equals(other.getClass())) {
22730         return getClass().getName().compareTo(other.getClass().getName());
22731       }
22732
22733       int lastComparison = 0;
22734
22735       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
22736       if (lastComparison != 0) {
22737         return lastComparison;
22738       }
22739       if (isSetAfi()) {
22740         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
22741         if (lastComparison != 0) {
22742           return lastComparison;
22743         }
22744       }
22745       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
22746       if (lastComparison != 0) {
22747         return lastComparison;
22748       }
22749       if (isSetSafi()) {
22750         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
22751         if (lastComparison != 0) {
22752           return lastComparison;
22753         }
22754       }
22755       return 0;
22756     }
22757
22758     @Override
22759         public _Fields fieldForId(int fieldId) {
22760       return _Fields.findByThriftId(fieldId);
22761     }
22762
22763     @Override
22764         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22765       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22766     }
22767
22768     @Override
22769         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22770       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22771     }
22772
22773     @Override
22774     public String toString() {
22775       StringBuilder sb = new StringBuilder("enableMultipath_args(");
22776       boolean first = true;
22777
22778       sb.append("afi:");
22779       if (this.afi == null) {
22780         sb.append("null");
22781       } else {
22782         sb.append(this.afi);
22783       }
22784       first = false;
22785       if (!first) {
22786                 sb.append(", ");
22787         }
22788       sb.append("safi:");
22789       if (this.safi == null) {
22790         sb.append("null");
22791       } else {
22792         sb.append(this.safi);
22793       }
22794       first = false;
22795       sb.append(")");
22796       return sb.toString();
22797     }
22798
22799     public void validate() throws org.apache.thrift.TException {
22800       // check for required fields
22801       // check for sub-struct validity
22802     }
22803
22804     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22805       try {
22806         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22807       } catch (org.apache.thrift.TException te) {
22808         throw new java.io.IOException(te);
22809       }
22810     }
22811
22812     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22813       try {
22814         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22815       } catch (org.apache.thrift.TException te) {
22816         throw new java.io.IOException(te);
22817       }
22818     }
22819
22820     private static class enableMultipath_argsStandardSchemeFactory implements SchemeFactory {
22821       @Override
22822         public enableMultipath_argsStandardScheme getScheme() {
22823         return new enableMultipath_argsStandardScheme();
22824       }
22825     }
22826
22827     private static class enableMultipath_argsStandardScheme extends StandardScheme<enableMultipath_args> {
22828
22829       @Override
22830         public void read(org.apache.thrift.protocol.TProtocol iprot, enableMultipath_args struct) throws org.apache.thrift.TException {
22831         org.apache.thrift.protocol.TField schemeField;
22832         iprot.readStructBegin();
22833         while (true)
22834         {
22835           schemeField = iprot.readFieldBegin();
22836           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
22837             break;
22838           }
22839           switch (schemeField.id) {
22840             case 1: // AFI
22841               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
22842                 struct.afi = af_afi.findByValue(iprot.readI32());
22843                 struct.setAfiIsSet(true);
22844               } else {
22845                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22846               }
22847               break;
22848             case 2: // SAFI
22849               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
22850                 struct.safi = af_safi.findByValue(iprot.readI32());
22851                 struct.setSafiIsSet(true);
22852               } else {
22853                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22854               }
22855               break;
22856             default:
22857               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22858           }
22859           iprot.readFieldEnd();
22860         }
22861         iprot.readStructEnd();
22862
22863         // check for required fields of primitive type, which can't be checked in the validate method
22864         struct.validate();
22865       }
22866
22867       @Override
22868         public void write(org.apache.thrift.protocol.TProtocol oprot, enableMultipath_args struct) throws org.apache.thrift.TException {
22869         struct.validate();
22870
22871         oprot.writeStructBegin(STRUCT_DESC);
22872         if (struct.afi != null) {
22873           oprot.writeFieldBegin(AFI_FIELD_DESC);
22874           oprot.writeI32(struct.afi.getValue());
22875           oprot.writeFieldEnd();
22876         }
22877         if (struct.safi != null) {
22878           oprot.writeFieldBegin(SAFI_FIELD_DESC);
22879           oprot.writeI32(struct.safi.getValue());
22880           oprot.writeFieldEnd();
22881         }
22882         oprot.writeFieldStop();
22883         oprot.writeStructEnd();
22884       }
22885
22886     }
22887
22888     private static class enableMultipath_argsTupleSchemeFactory implements SchemeFactory {
22889       @Override
22890         public enableMultipath_argsTupleScheme getScheme() {
22891         return new enableMultipath_argsTupleScheme();
22892       }
22893     }
22894
22895     private static class enableMultipath_argsTupleScheme extends TupleScheme<enableMultipath_args> {
22896
22897       @Override
22898       public void write(org.apache.thrift.protocol.TProtocol prot, enableMultipath_args struct) throws org.apache.thrift.TException {
22899         TTupleProtocol oprot = (TTupleProtocol) prot;
22900         BitSet optionals = new BitSet();
22901         if (struct.isSetAfi()) {
22902           optionals.set(0);
22903         }
22904         if (struct.isSetSafi()) {
22905           optionals.set(1);
22906         }
22907         oprot.writeBitSet(optionals, 2);
22908         if (struct.isSetAfi()) {
22909           oprot.writeI32(struct.afi.getValue());
22910         }
22911         if (struct.isSetSafi()) {
22912           oprot.writeI32(struct.safi.getValue());
22913         }
22914       }
22915
22916       @Override
22917       public void read(org.apache.thrift.protocol.TProtocol prot, enableMultipath_args struct) throws org.apache.thrift.TException {
22918         TTupleProtocol iprot = (TTupleProtocol) prot;
22919         BitSet incoming = iprot.readBitSet(2);
22920         if (incoming.get(0)) {
22921           struct.afi = af_afi.findByValue(iprot.readI32());
22922           struct.setAfiIsSet(true);
22923         }
22924         if (incoming.get(1)) {
22925           struct.safi = af_safi.findByValue(iprot.readI32());
22926           struct.setSafiIsSet(true);
22927         }
22928       }
22929     }
22930
22931   }
22932
22933   public static class enableMultipath_result implements org.apache.thrift.TBase<enableMultipath_result, enableMultipath_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableMultipath_result>   {
22934     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableMultipath_result");
22935
22936     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);
22937
22938     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22939     static {
22940       schemes.put(StandardScheme.class, new enableMultipath_resultStandardSchemeFactory());
22941       schemes.put(TupleScheme.class, new enableMultipath_resultTupleSchemeFactory());
22942     }
22943
22944     public int success; // required
22945
22946     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22947     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22948       SUCCESS((short)0, "success");
22949
22950       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22951
22952       static {
22953         for (_Fields field : EnumSet.allOf(_Fields.class)) {
22954           byName.put(field.getFieldName(), field);
22955         }
22956       }
22957
22958       /**
22959        * Find the _Fields constant that matches fieldId, or null if its not found.
22960        */
22961       public static _Fields findByThriftId(int fieldId) {
22962         switch(fieldId) {
22963           case 0: // SUCCESS
22964             return SUCCESS;
22965           default:
22966             return null;
22967         }
22968       }
22969
22970       /**
22971        * Find the _Fields constant that matches fieldId, throwing an exception
22972        * if it is not found.
22973        */
22974       public static _Fields findByThriftIdOrThrow(int fieldId) {
22975         _Fields fields = findByThriftId(fieldId);
22976         if (fields == null) {
22977                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22978                 }
22979         return fields;
22980       }
22981
22982       /**
22983        * Find the _Fields constant that matches name, or null if its not found.
22984        */
22985       public static _Fields findByName(String name) {
22986         return byName.get(name);
22987       }
22988
22989       private final short _thriftId;
22990       private final String _fieldName;
22991
22992       _Fields(short thriftId, String fieldName) {
22993         _thriftId = thriftId;
22994         _fieldName = fieldName;
22995       }
22996
22997       @Override
22998         public short getThriftFieldId() {
22999         return _thriftId;
23000       }
23001
23002       @Override
23003         public String getFieldName() {
23004         return _fieldName;
23005       }
23006     }
23007
23008     // isset id assignments
23009     private static final int __SUCCESS_ISSET_ID = 0;
23010     private byte __isset_bitfield = 0;
23011     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23012     static {
23013       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23014       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
23015           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
23016       metaDataMap = Collections.unmodifiableMap(tmpMap);
23017       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableMultipath_result.class, metaDataMap);
23018     }
23019
23020     public enableMultipath_result() {
23021     }
23022
23023     public enableMultipath_result(
23024       int success)
23025     {
23026       this();
23027       this.success = success;
23028       setSuccessIsSet(true);
23029     }
23030
23031     /**
23032      * Performs a deep copy on <i>other</i>.
23033      */
23034     public enableMultipath_result(enableMultipath_result other) {
23035       __isset_bitfield = other.__isset_bitfield;
23036       this.success = other.success;
23037     }
23038
23039     @Override
23040         public enableMultipath_result deepCopy() {
23041       return new enableMultipath_result(this);
23042     }
23043
23044     @Override
23045     public void clear() {
23046       setSuccessIsSet(false);
23047       this.success = 0;
23048     }
23049
23050     public int getSuccess() {
23051       return this.success;
23052     }
23053
23054     public enableMultipath_result setSuccess(int success) {
23055       this.success = success;
23056       setSuccessIsSet(true);
23057       return this;
23058     }
23059
23060     public void unsetSuccess() {
23061       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
23062     }
23063
23064     /** Returns true if field success is set (has been assigned a value) and false otherwise */
23065     public boolean isSetSuccess() {
23066       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
23067     }
23068
23069     public void setSuccessIsSet(boolean value) {
23070       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
23071     }
23072
23073     @Override
23074         public void setFieldValue(_Fields field, Object value) {
23075       switch (field) {
23076       case SUCCESS:
23077         if (value == null) {
23078           unsetSuccess();
23079         } else {
23080           setSuccess((Integer)value);
23081         }
23082         break;
23083
23084       }
23085     }
23086
23087     @Override
23088         public Object getFieldValue(_Fields field) {
23089       switch (field) {
23090       case SUCCESS:
23091         return Integer.valueOf(getSuccess());
23092
23093       }
23094       throw new IllegalStateException();
23095     }
23096
23097     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23098     @Override
23099         public boolean isSet(_Fields field) {
23100       if (field == null) {
23101         throw new IllegalArgumentException();
23102       }
23103
23104       switch (field) {
23105       case SUCCESS:
23106         return isSetSuccess();
23107       }
23108       throw new IllegalStateException();
23109     }
23110
23111     @Override
23112     public boolean equals(Object that) {
23113       if (that == null) {
23114                 return false;
23115         }
23116       if (that instanceof enableMultipath_result) {
23117                 return this.equals((enableMultipath_result)that);
23118         }
23119       return false;
23120     }
23121
23122     public boolean equals(enableMultipath_result that) {
23123       if (that == null) {
23124                 return false;
23125         }
23126
23127       boolean this_present_success = true;
23128       boolean that_present_success = true;
23129       if (this_present_success || that_present_success) {
23130         if (!(this_present_success && that_present_success)) {
23131                         return false;
23132                 }
23133         if (this.success != that.success) {
23134                         return false;
23135                 }
23136       }
23137
23138       return true;
23139     }
23140
23141     @Override
23142     public int hashCode() {
23143       List<Object> list = new ArrayList<Object>();
23144
23145       boolean present_success = true;
23146       list.add(present_success);
23147       if (present_success)
23148         list.add(success);
23149       return list.hashCode();
23150     }
23151
23152     @Override
23153     public int compareTo(enableMultipath_result other) {
23154       if (!getClass().equals(other.getClass())) {
23155         return getClass().getName().compareTo(other.getClass().getName());
23156       }
23157
23158       int lastComparison = 0;
23159
23160       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
23161       if (lastComparison != 0) {
23162         return lastComparison;
23163       }
23164       if (isSetSuccess()) {
23165         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
23166         if (lastComparison != 0) {
23167           return lastComparison;
23168         }
23169       }
23170       return 0;
23171     }
23172
23173     @Override
23174         public _Fields fieldForId(int fieldId) {
23175       return _Fields.findByThriftId(fieldId);
23176     }
23177
23178     @Override
23179         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23180       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
23181     }
23182
23183     @Override
23184         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23185       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
23186       }
23187
23188     @Override
23189     public String toString() {
23190       StringBuilder sb = new StringBuilder("enableMultipath_result(");
23191       boolean first = true;
23192
23193       sb.append("success:");
23194       sb.append(this.success);
23195       first = false;
23196       sb.append(")");
23197       return sb.toString();
23198     }
23199
23200     public void validate() throws org.apache.thrift.TException {
23201       // check for required fields
23202       // check for sub-struct validity
23203     }
23204
23205     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23206       try {
23207         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23208       } catch (org.apache.thrift.TException te) {
23209         throw new java.io.IOException(te);
23210       }
23211     }
23212
23213     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23214       try {
23215         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23216         __isset_bitfield = 0;
23217         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23218       } catch (org.apache.thrift.TException te) {
23219         throw new java.io.IOException(te);
23220       }
23221     }
23222
23223     private static class enableMultipath_resultStandardSchemeFactory implements SchemeFactory {
23224       @Override
23225         public enableMultipath_resultStandardScheme getScheme() {
23226         return new enableMultipath_resultStandardScheme();
23227       }
23228     }
23229
23230     private static class enableMultipath_resultStandardScheme extends StandardScheme<enableMultipath_result> {
23231
23232       @Override
23233         public void read(org.apache.thrift.protocol.TProtocol iprot, enableMultipath_result struct) throws org.apache.thrift.TException {
23234         org.apache.thrift.protocol.TField schemeField;
23235         iprot.readStructBegin();
23236         while (true)
23237         {
23238           schemeField = iprot.readFieldBegin();
23239           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
23240             break;
23241           }
23242           switch (schemeField.id) {
23243             case 0: // SUCCESS
23244               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
23245                 struct.success = iprot.readI32();
23246                 struct.setSuccessIsSet(true);
23247               } else {
23248                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23249               }
23250               break;
23251             default:
23252               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23253           }
23254           iprot.readFieldEnd();
23255         }
23256         iprot.readStructEnd();
23257
23258         // check for required fields of primitive type, which can't be checked in the validate method
23259         struct.validate();
23260       }
23261
23262       @Override
23263         public void write(org.apache.thrift.protocol.TProtocol oprot, enableMultipath_result struct) throws org.apache.thrift.TException {
23264         struct.validate();
23265
23266         oprot.writeStructBegin(STRUCT_DESC);
23267         if (struct.isSetSuccess()) {
23268           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23269           oprot.writeI32(struct.success);
23270           oprot.writeFieldEnd();
23271         }
23272         oprot.writeFieldStop();
23273         oprot.writeStructEnd();
23274       }
23275
23276     }
23277
23278     private static class enableMultipath_resultTupleSchemeFactory implements SchemeFactory {
23279       @Override
23280         public enableMultipath_resultTupleScheme getScheme() {
23281         return new enableMultipath_resultTupleScheme();
23282       }
23283     }
23284
23285     private static class enableMultipath_resultTupleScheme extends TupleScheme<enableMultipath_result> {
23286
23287       @Override
23288       public void write(org.apache.thrift.protocol.TProtocol prot, enableMultipath_result struct) throws org.apache.thrift.TException {
23289         TTupleProtocol oprot = (TTupleProtocol) prot;
23290         BitSet optionals = new BitSet();
23291         if (struct.isSetSuccess()) {
23292           optionals.set(0);
23293         }
23294         oprot.writeBitSet(optionals, 1);
23295         if (struct.isSetSuccess()) {
23296           oprot.writeI32(struct.success);
23297         }
23298       }
23299
23300       @Override
23301       public void read(org.apache.thrift.protocol.TProtocol prot, enableMultipath_result struct) throws org.apache.thrift.TException {
23302         TTupleProtocol iprot = (TTupleProtocol) prot;
23303         BitSet incoming = iprot.readBitSet(1);
23304         if (incoming.get(0)) {
23305           struct.success = iprot.readI32();
23306           struct.setSuccessIsSet(true);
23307         }
23308       }
23309     }
23310
23311   }
23312
23313   public static class disableMultipath_args implements org.apache.thrift.TBase<disableMultipath_args, disableMultipath_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableMultipath_args>   {
23314     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableMultipath_args");
23315
23316     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);
23317     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);
23318
23319     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
23320     static {
23321       schemes.put(StandardScheme.class, new disableMultipath_argsStandardSchemeFactory());
23322       schemes.put(TupleScheme.class, new disableMultipath_argsTupleSchemeFactory());
23323     }
23324
23325     /**
23326      *
23327      * @see af_afi
23328      */
23329     public af_afi afi; // required
23330     /**
23331      *
23332      * @see af_safi
23333      */
23334     public af_safi safi; // required
23335
23336     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23337     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23338       /**
23339        *
23340        * @see af_afi
23341        */
23342       AFI((short)1, "afi"),
23343       /**
23344        *
23345        * @see af_safi
23346        */
23347       SAFI((short)2, "safi");
23348
23349       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23350
23351       static {
23352         for (_Fields field : EnumSet.allOf(_Fields.class)) {
23353           byName.put(field.getFieldName(), field);
23354         }
23355       }
23356
23357       /**
23358        * Find the _Fields constant that matches fieldId, or null if its not found.
23359        */
23360       public static _Fields findByThriftId(int fieldId) {
23361         switch(fieldId) {
23362           case 1: // AFI
23363             return AFI;
23364           case 2: // SAFI
23365             return SAFI;
23366           default:
23367             return null;
23368         }
23369       }
23370
23371       /**
23372        * Find the _Fields constant that matches fieldId, throwing an exception
23373        * if it is not found.
23374        */
23375       public static _Fields findByThriftIdOrThrow(int fieldId) {
23376         _Fields fields = findByThriftId(fieldId);
23377         if (fields == null) {
23378                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23379                 }
23380         return fields;
23381       }
23382
23383       /**
23384        * Find the _Fields constant that matches name, or null if its not found.
23385        */
23386       public static _Fields findByName(String name) {
23387         return byName.get(name);
23388       }
23389
23390       private final short _thriftId;
23391       private final String _fieldName;
23392
23393       _Fields(short thriftId, String fieldName) {
23394         _thriftId = thriftId;
23395         _fieldName = fieldName;
23396       }
23397
23398       @Override
23399         public short getThriftFieldId() {
23400         return _thriftId;
23401       }
23402
23403       @Override
23404         public String getFieldName() {
23405         return _fieldName;
23406       }
23407     }
23408
23409     // isset id assignments
23410     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23411     static {
23412       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23413       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
23414           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
23415       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
23416           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
23417       metaDataMap = Collections.unmodifiableMap(tmpMap);
23418       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableMultipath_args.class, metaDataMap);
23419     }
23420
23421     public disableMultipath_args() {
23422     }
23423
23424     public disableMultipath_args(
23425       af_afi afi,
23426       af_safi safi)
23427     {
23428       this();
23429       this.afi = afi;
23430       this.safi = safi;
23431     }
23432
23433     /**
23434      * Performs a deep copy on <i>other</i>.
23435      */
23436     public disableMultipath_args(disableMultipath_args other) {
23437       if (other.isSetAfi()) {
23438         this.afi = other.afi;
23439       }
23440       if (other.isSetSafi()) {
23441         this.safi = other.safi;
23442       }
23443     }
23444
23445     @Override
23446         public disableMultipath_args deepCopy() {
23447       return new disableMultipath_args(this);
23448     }
23449
23450     @Override
23451     public void clear() {
23452       this.afi = null;
23453       this.safi = null;
23454     }
23455
23456     /**
23457      *
23458      * @see af_afi
23459      */
23460     public af_afi getAfi() {
23461       return this.afi;
23462     }
23463
23464     /**
23465      *
23466      * @see af_afi
23467      */
23468     public disableMultipath_args setAfi(af_afi afi) {
23469       this.afi = afi;
23470       return this;
23471     }
23472
23473     public void unsetAfi() {
23474       this.afi = null;
23475     }
23476
23477     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
23478     public boolean isSetAfi() {
23479       return this.afi != null;
23480     }
23481
23482     public void setAfiIsSet(boolean value) {
23483       if (!value) {
23484         this.afi = null;
23485       }
23486     }
23487
23488     /**
23489      *
23490      * @see af_safi
23491      */
23492     public af_safi getSafi() {
23493       return this.safi;
23494     }
23495
23496     /**
23497      *
23498      * @see af_safi
23499      */
23500     public disableMultipath_args setSafi(af_safi safi) {
23501       this.safi = safi;
23502       return this;
23503     }
23504
23505     public void unsetSafi() {
23506       this.safi = null;
23507     }
23508
23509     /** Returns true if field safi is set (has been assigned a value) and false otherwise */
23510     public boolean isSetSafi() {
23511       return this.safi != null;
23512     }
23513
23514     public void setSafiIsSet(boolean value) {
23515       if (!value) {
23516         this.safi = null;
23517       }
23518     }
23519
23520     @Override
23521         public void setFieldValue(_Fields field, Object value) {
23522       switch (field) {
23523       case AFI:
23524         if (value == null) {
23525           unsetAfi();
23526         } else {
23527           setAfi((af_afi)value);
23528         }
23529         break;
23530
23531       case SAFI:
23532         if (value == null) {
23533           unsetSafi();
23534         } else {
23535           setSafi((af_safi)value);
23536         }
23537         break;
23538
23539       }
23540     }
23541
23542     @Override
23543         public Object getFieldValue(_Fields field) {
23544       switch (field) {
23545       case AFI:
23546         return getAfi();
23547
23548       case SAFI:
23549         return getSafi();
23550
23551       }
23552       throw new IllegalStateException();
23553     }
23554
23555     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23556     @Override
23557         public boolean isSet(_Fields field) {
23558       if (field == null) {
23559         throw new IllegalArgumentException();
23560       }
23561
23562       switch (field) {
23563       case AFI:
23564         return isSetAfi();
23565       case SAFI:
23566         return isSetSafi();
23567       }
23568       throw new IllegalStateException();
23569     }
23570
23571     @Override
23572     public boolean equals(Object that) {
23573       if (that == null) {
23574                 return false;
23575         }
23576       if (that instanceof disableMultipath_args) {
23577                 return this.equals((disableMultipath_args)that);
23578         }
23579       return false;
23580     }
23581
23582     public boolean equals(disableMultipath_args that) {
23583       if (that == null) {
23584                 return false;
23585         }
23586
23587       boolean this_present_afi = true && this.isSetAfi();
23588       boolean that_present_afi = true && that.isSetAfi();
23589       if (this_present_afi || that_present_afi) {
23590         if (!(this_present_afi && that_present_afi)) {
23591                         return false;
23592                 }
23593         if (!this.afi.equals(that.afi)) {
23594                         return false;
23595                 }
23596       }
23597
23598       boolean this_present_safi = true && this.isSetSafi();
23599       boolean that_present_safi = true && that.isSetSafi();
23600       if (this_present_safi || that_present_safi) {
23601         if (!(this_present_safi && that_present_safi)) {
23602                         return false;
23603                 }
23604         if (!this.safi.equals(that.safi)) {
23605                         return false;
23606                 }
23607       }
23608
23609       return true;
23610     }
23611
23612     @Override
23613     public int hashCode() {
23614       List<Object> list = new ArrayList<Object>();
23615
23616       boolean present_afi = true && (isSetAfi());
23617       list.add(present_afi);
23618       if (present_afi)
23619         list.add(afi.getValue());
23620       boolean present_safi = true && (isSetSafi());
23621       list.add(present_safi);
23622       if (present_safi)
23623         list.add(safi.getValue());
23624       return list.hashCode();
23625     }
23626
23627     @Override
23628     public int compareTo(disableMultipath_args other) {
23629       if (!getClass().equals(other.getClass())) {
23630         return getClass().getName().compareTo(other.getClass().getName());
23631       }
23632
23633       int lastComparison = 0;
23634
23635       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
23636       if (lastComparison != 0) {
23637         return lastComparison;
23638       }
23639       if (isSetAfi()) {
23640         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
23641         if (lastComparison != 0) {
23642           return lastComparison;
23643         }
23644       }
23645       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
23646       if (lastComparison != 0) {
23647         return lastComparison;
23648       }
23649       if (isSetSafi()) {
23650         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
23651         if (lastComparison != 0) {
23652           return lastComparison;
23653         }
23654       }
23655       return 0;
23656     }
23657
23658     @Override
23659         public _Fields fieldForId(int fieldId) {
23660       return _Fields.findByThriftId(fieldId);
23661     }
23662
23663     @Override
23664         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23665       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
23666     }
23667
23668     @Override
23669         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23670       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
23671     }
23672
23673     @Override
23674     public String toString() {
23675       StringBuilder sb = new StringBuilder("disableMultipath_args(");
23676       boolean first = true;
23677
23678       sb.append("afi:");
23679       if (this.afi == null) {
23680         sb.append("null");
23681       } else {
23682         sb.append(this.afi);
23683       }
23684       first = false;
23685       if (!first) {
23686                 sb.append(", ");
23687         }
23688       sb.append("safi:");
23689       if (this.safi == null) {
23690         sb.append("null");
23691       } else {
23692         sb.append(this.safi);
23693       }
23694       first = false;
23695       sb.append(")");
23696       return sb.toString();
23697     }
23698
23699     public void validate() throws org.apache.thrift.TException {
23700       // check for required fields
23701       // check for sub-struct validity
23702     }
23703
23704     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23705       try {
23706         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23707       } catch (org.apache.thrift.TException te) {
23708         throw new java.io.IOException(te);
23709       }
23710     }
23711
23712     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23713       try {
23714         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23715       } catch (org.apache.thrift.TException te) {
23716         throw new java.io.IOException(te);
23717       }
23718     }
23719
23720     private static class disableMultipath_argsStandardSchemeFactory implements SchemeFactory {
23721       @Override
23722         public disableMultipath_argsStandardScheme getScheme() {
23723         return new disableMultipath_argsStandardScheme();
23724       }
23725     }
23726
23727     private static class disableMultipath_argsStandardScheme extends StandardScheme<disableMultipath_args> {
23728
23729       @Override
23730         public void read(org.apache.thrift.protocol.TProtocol iprot, disableMultipath_args struct) throws org.apache.thrift.TException {
23731         org.apache.thrift.protocol.TField schemeField;
23732         iprot.readStructBegin();
23733         while (true)
23734         {
23735           schemeField = iprot.readFieldBegin();
23736           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
23737             break;
23738           }
23739           switch (schemeField.id) {
23740             case 1: // AFI
23741               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
23742                 struct.afi = af_afi.findByValue(iprot.readI32());
23743                 struct.setAfiIsSet(true);
23744               } else {
23745                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23746               }
23747               break;
23748             case 2: // SAFI
23749               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
23750                 struct.safi = af_safi.findByValue(iprot.readI32());
23751                 struct.setSafiIsSet(true);
23752               } else {
23753                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23754               }
23755               break;
23756             default:
23757               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23758           }
23759           iprot.readFieldEnd();
23760         }
23761         iprot.readStructEnd();
23762
23763         // check for required fields of primitive type, which can't be checked in the validate method
23764         struct.validate();
23765       }
23766
23767       @Override
23768         public void write(org.apache.thrift.protocol.TProtocol oprot, disableMultipath_args struct) throws org.apache.thrift.TException {
23769         struct.validate();
23770
23771         oprot.writeStructBegin(STRUCT_DESC);
23772         if (struct.afi != null) {
23773           oprot.writeFieldBegin(AFI_FIELD_DESC);
23774           oprot.writeI32(struct.afi.getValue());
23775           oprot.writeFieldEnd();
23776         }
23777         if (struct.safi != null) {
23778           oprot.writeFieldBegin(SAFI_FIELD_DESC);
23779           oprot.writeI32(struct.safi.getValue());
23780           oprot.writeFieldEnd();
23781         }
23782         oprot.writeFieldStop();
23783         oprot.writeStructEnd();
23784       }
23785
23786     }
23787
23788     private static class disableMultipath_argsTupleSchemeFactory implements SchemeFactory {
23789       @Override
23790         public disableMultipath_argsTupleScheme getScheme() {
23791         return new disableMultipath_argsTupleScheme();
23792       }
23793     }
23794
23795     private static class disableMultipath_argsTupleScheme extends TupleScheme<disableMultipath_args> {
23796
23797       @Override
23798       public void write(org.apache.thrift.protocol.TProtocol prot, disableMultipath_args struct) throws org.apache.thrift.TException {
23799         TTupleProtocol oprot = (TTupleProtocol) prot;
23800         BitSet optionals = new BitSet();
23801         if (struct.isSetAfi()) {
23802           optionals.set(0);
23803         }
23804         if (struct.isSetSafi()) {
23805           optionals.set(1);
23806         }
23807         oprot.writeBitSet(optionals, 2);
23808         if (struct.isSetAfi()) {
23809           oprot.writeI32(struct.afi.getValue());
23810         }
23811         if (struct.isSetSafi()) {
23812           oprot.writeI32(struct.safi.getValue());
23813         }
23814       }
23815
23816       @Override
23817       public void read(org.apache.thrift.protocol.TProtocol prot, disableMultipath_args struct) throws org.apache.thrift.TException {
23818         TTupleProtocol iprot = (TTupleProtocol) prot;
23819         BitSet incoming = iprot.readBitSet(2);
23820         if (incoming.get(0)) {
23821           struct.afi = af_afi.findByValue(iprot.readI32());
23822           struct.setAfiIsSet(true);
23823         }
23824         if (incoming.get(1)) {
23825           struct.safi = af_safi.findByValue(iprot.readI32());
23826           struct.setSafiIsSet(true);
23827         }
23828       }
23829     }
23830
23831   }
23832
23833   public static class disableMultipath_result implements org.apache.thrift.TBase<disableMultipath_result, disableMultipath_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableMultipath_result>   {
23834     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableMultipath_result");
23835
23836     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);
23837
23838     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
23839     static {
23840       schemes.put(StandardScheme.class, new disableMultipath_resultStandardSchemeFactory());
23841       schemes.put(TupleScheme.class, new disableMultipath_resultTupleSchemeFactory());
23842     }
23843
23844     public int success; // required
23845
23846     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23847     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23848       SUCCESS((short)0, "success");
23849
23850       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23851
23852       static {
23853         for (_Fields field : EnumSet.allOf(_Fields.class)) {
23854           byName.put(field.getFieldName(), field);
23855         }
23856       }
23857
23858       /**
23859        * Find the _Fields constant that matches fieldId, or null if its not found.
23860        */
23861       public static _Fields findByThriftId(int fieldId) {
23862         switch(fieldId) {
23863           case 0: // SUCCESS
23864             return SUCCESS;
23865           default:
23866             return null;
23867         }
23868       }
23869
23870       /**
23871        * Find the _Fields constant that matches fieldId, throwing an exception
23872        * if it is not found.
23873        */
23874       public static _Fields findByThriftIdOrThrow(int fieldId) {
23875         _Fields fields = findByThriftId(fieldId);
23876         if (fields == null) {
23877                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23878                 }
23879         return fields;
23880       }
23881
23882       /**
23883        * Find the _Fields constant that matches name, or null if its not found.
23884        */
23885       public static _Fields findByName(String name) {
23886         return byName.get(name);
23887       }
23888
23889       private final short _thriftId;
23890       private final String _fieldName;
23891
23892       _Fields(short thriftId, String fieldName) {
23893         _thriftId = thriftId;
23894         _fieldName = fieldName;
23895       }
23896
23897       @Override
23898         public short getThriftFieldId() {
23899         return _thriftId;
23900       }
23901
23902       @Override
23903         public String getFieldName() {
23904         return _fieldName;
23905       }
23906     }
23907
23908     // isset id assignments
23909     private static final int __SUCCESS_ISSET_ID = 0;
23910     private byte __isset_bitfield = 0;
23911     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23912     static {
23913       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23914       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
23915           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
23916       metaDataMap = Collections.unmodifiableMap(tmpMap);
23917       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableMultipath_result.class, metaDataMap);
23918     }
23919
23920     public disableMultipath_result() {
23921     }
23922
23923     public disableMultipath_result(
23924       int success)
23925     {
23926       this();
23927       this.success = success;
23928       setSuccessIsSet(true);
23929     }
23930
23931     /**
23932      * Performs a deep copy on <i>other</i>.
23933      */
23934     public disableMultipath_result(disableMultipath_result other) {
23935       __isset_bitfield = other.__isset_bitfield;
23936       this.success = other.success;
23937     }
23938
23939     @Override
23940         public disableMultipath_result deepCopy() {
23941       return new disableMultipath_result(this);
23942     }
23943
23944     @Override
23945     public void clear() {
23946       setSuccessIsSet(false);
23947       this.success = 0;
23948     }
23949
23950     public int getSuccess() {
23951       return this.success;
23952     }
23953
23954     public disableMultipath_result setSuccess(int success) {
23955       this.success = success;
23956       setSuccessIsSet(true);
23957       return this;
23958     }
23959
23960     public void unsetSuccess() {
23961       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
23962     }
23963
23964     /** Returns true if field success is set (has been assigned a value) and false otherwise */
23965     public boolean isSetSuccess() {
23966       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
23967     }
23968
23969     public void setSuccessIsSet(boolean value) {
23970       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
23971     }
23972
23973     @Override
23974         public void setFieldValue(_Fields field, Object value) {
23975       switch (field) {
23976       case SUCCESS:
23977         if (value == null) {
23978           unsetSuccess();
23979         } else {
23980           setSuccess((Integer)value);
23981         }
23982         break;
23983
23984       }
23985     }
23986
23987     @Override
23988         public Object getFieldValue(_Fields field) {
23989       switch (field) {
23990       case SUCCESS:
23991         return Integer.valueOf(getSuccess());
23992
23993       }
23994       throw new IllegalStateException();
23995     }
23996
23997     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23998     @Override
23999         public boolean isSet(_Fields field) {
24000       if (field == null) {
24001         throw new IllegalArgumentException();
24002       }
24003
24004       switch (field) {
24005       case SUCCESS:
24006         return isSetSuccess();
24007       }
24008       throw new IllegalStateException();
24009     }
24010
24011     @Override
24012     public boolean equals(Object that) {
24013       if (that == null) {
24014                 return false;
24015         }
24016       if (that instanceof disableMultipath_result) {
24017                 return this.equals((disableMultipath_result)that);
24018         }
24019       return false;
24020     }
24021
24022     public boolean equals(disableMultipath_result that) {
24023       if (that == null) {
24024                 return false;
24025         }
24026
24027       boolean this_present_success = true;
24028       boolean that_present_success = true;
24029       if (this_present_success || that_present_success) {
24030         if (!(this_present_success && that_present_success)) {
24031                         return false;
24032                 }
24033         if (this.success != that.success) {
24034                         return false;
24035                 }
24036       }
24037
24038       return true;
24039     }
24040
24041     @Override
24042     public int hashCode() {
24043       List<Object> list = new ArrayList<Object>();
24044
24045       boolean present_success = true;
24046       list.add(present_success);
24047       if (present_success)
24048         list.add(success);
24049       return list.hashCode();
24050     }
24051
24052     @Override
24053     public int compareTo(disableMultipath_result other) {
24054       if (!getClass().equals(other.getClass())) {
24055         return getClass().getName().compareTo(other.getClass().getName());
24056       }
24057
24058       int lastComparison = 0;
24059
24060       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
24061       if (lastComparison != 0) {
24062         return lastComparison;
24063       }
24064       if (isSetSuccess()) {
24065         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
24066         if (lastComparison != 0) {
24067           return lastComparison;
24068         }
24069       }
24070       return 0;
24071     }
24072
24073     @Override
24074         public _Fields fieldForId(int fieldId) {
24075       return _Fields.findByThriftId(fieldId);
24076     }
24077
24078     @Override
24079         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24080       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24081     }
24082
24083     @Override
24084         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24085       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24086       }
24087
24088     @Override
24089     public String toString() {
24090       StringBuilder sb = new StringBuilder("disableMultipath_result(");
24091       boolean first = true;
24092
24093       sb.append("success:");
24094       sb.append(this.success);
24095       first = false;
24096       sb.append(")");
24097       return sb.toString();
24098     }
24099
24100     public void validate() throws org.apache.thrift.TException {
24101       // check for required fields
24102       // check for sub-struct validity
24103     }
24104
24105     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24106       try {
24107         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24108       } catch (org.apache.thrift.TException te) {
24109         throw new java.io.IOException(te);
24110       }
24111     }
24112
24113     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24114       try {
24115         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24116         __isset_bitfield = 0;
24117         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24118       } catch (org.apache.thrift.TException te) {
24119         throw new java.io.IOException(te);
24120       }
24121     }
24122
24123     private static class disableMultipath_resultStandardSchemeFactory implements SchemeFactory {
24124       @Override
24125         public disableMultipath_resultStandardScheme getScheme() {
24126         return new disableMultipath_resultStandardScheme();
24127       }
24128     }
24129
24130     private static class disableMultipath_resultStandardScheme extends StandardScheme<disableMultipath_result> {
24131
24132       @Override
24133         public void read(org.apache.thrift.protocol.TProtocol iprot, disableMultipath_result struct) throws org.apache.thrift.TException {
24134         org.apache.thrift.protocol.TField schemeField;
24135         iprot.readStructBegin();
24136         while (true)
24137         {
24138           schemeField = iprot.readFieldBegin();
24139           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
24140             break;
24141           }
24142           switch (schemeField.id) {
24143             case 0: // SUCCESS
24144               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
24145                 struct.success = iprot.readI32();
24146                 struct.setSuccessIsSet(true);
24147               } else {
24148                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24149               }
24150               break;
24151             default:
24152               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24153           }
24154           iprot.readFieldEnd();
24155         }
24156         iprot.readStructEnd();
24157
24158         // check for required fields of primitive type, which can't be checked in the validate method
24159         struct.validate();
24160       }
24161
24162       @Override
24163         public void write(org.apache.thrift.protocol.TProtocol oprot, disableMultipath_result struct) throws org.apache.thrift.TException {
24164         struct.validate();
24165
24166         oprot.writeStructBegin(STRUCT_DESC);
24167         if (struct.isSetSuccess()) {
24168           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24169           oprot.writeI32(struct.success);
24170           oprot.writeFieldEnd();
24171         }
24172         oprot.writeFieldStop();
24173         oprot.writeStructEnd();
24174       }
24175
24176     }
24177
24178     private static class disableMultipath_resultTupleSchemeFactory implements SchemeFactory {
24179       @Override
24180         public disableMultipath_resultTupleScheme getScheme() {
24181         return new disableMultipath_resultTupleScheme();
24182       }
24183     }
24184
24185     private static class disableMultipath_resultTupleScheme extends TupleScheme<disableMultipath_result> {
24186
24187       @Override
24188       public void write(org.apache.thrift.protocol.TProtocol prot, disableMultipath_result struct) throws org.apache.thrift.TException {
24189         TTupleProtocol oprot = (TTupleProtocol) prot;
24190         BitSet optionals = new BitSet();
24191         if (struct.isSetSuccess()) {
24192           optionals.set(0);
24193         }
24194         oprot.writeBitSet(optionals, 1);
24195         if (struct.isSetSuccess()) {
24196           oprot.writeI32(struct.success);
24197         }
24198       }
24199
24200       @Override
24201       public void read(org.apache.thrift.protocol.TProtocol prot, disableMultipath_result struct) throws org.apache.thrift.TException {
24202         TTupleProtocol iprot = (TTupleProtocol) prot;
24203         BitSet incoming = iprot.readBitSet(1);
24204         if (incoming.get(0)) {
24205           struct.success = iprot.readI32();
24206           struct.setSuccessIsSet(true);
24207         }
24208       }
24209     }
24210
24211   }
24212
24213   public static class multipaths_args implements org.apache.thrift.TBase<multipaths_args, multipaths_args._Fields>, java.io.Serializable, Cloneable, Comparable<multipaths_args>   {
24214     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("multipaths_args");
24215
24216     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);
24217     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);
24218
24219     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
24220     static {
24221       schemes.put(StandardScheme.class, new multipaths_argsStandardSchemeFactory());
24222       schemes.put(TupleScheme.class, new multipaths_argsTupleSchemeFactory());
24223     }
24224
24225     public String rd; // required
24226     public int maxPath; // required
24227
24228     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24229     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24230       RD((short)1, "rd"),
24231       MAX_PATH((short)2, "maxPath");
24232
24233       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24234
24235       static {
24236         for (_Fields field : EnumSet.allOf(_Fields.class)) {
24237           byName.put(field.getFieldName(), field);
24238         }
24239       }
24240
24241       /**
24242        * Find the _Fields constant that matches fieldId, or null if its not found.
24243        */
24244       public static _Fields findByThriftId(int fieldId) {
24245         switch(fieldId) {
24246           case 1: // RD
24247             return RD;
24248           case 2: // MAX_PATH
24249             return MAX_PATH;
24250           default:
24251             return null;
24252         }
24253       }
24254
24255       /**
24256        * Find the _Fields constant that matches fieldId, throwing an exception
24257        * if it is not found.
24258        */
24259       public static _Fields findByThriftIdOrThrow(int fieldId) {
24260         _Fields fields = findByThriftId(fieldId);
24261         if (fields == null) {
24262                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24263                 }
24264         return fields;
24265       }
24266
24267       /**
24268        * Find the _Fields constant that matches name, or null if its not found.
24269        */
24270       public static _Fields findByName(String name) {
24271         return byName.get(name);
24272       }
24273
24274       private final short _thriftId;
24275       private final String _fieldName;
24276
24277       _Fields(short thriftId, String fieldName) {
24278         _thriftId = thriftId;
24279         _fieldName = fieldName;
24280       }
24281
24282       @Override
24283         public short getThriftFieldId() {
24284         return _thriftId;
24285       }
24286
24287       @Override
24288         public String getFieldName() {
24289         return _fieldName;
24290       }
24291     }
24292
24293     // isset id assignments
24294     private static final int __MAXPATH_ISSET_ID = 0;
24295     private byte __isset_bitfield = 0;
24296     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24297     static {
24298       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24299       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
24300           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24301       tmpMap.put(_Fields.MAX_PATH, new org.apache.thrift.meta_data.FieldMetaData("maxPath", org.apache.thrift.TFieldRequirementType.DEFAULT,
24302           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
24303       metaDataMap = Collections.unmodifiableMap(tmpMap);
24304       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(multipaths_args.class, metaDataMap);
24305     }
24306
24307     public multipaths_args() {
24308     }
24309
24310     public multipaths_args(
24311       String rd,
24312       int maxPath)
24313     {
24314       this();
24315       this.rd = rd;
24316       this.maxPath = maxPath;
24317       setMaxPathIsSet(true);
24318     }
24319
24320     /**
24321      * Performs a deep copy on <i>other</i>.
24322      */
24323     public multipaths_args(multipaths_args other) {
24324       __isset_bitfield = other.__isset_bitfield;
24325       if (other.isSetRd()) {
24326         this.rd = other.rd;
24327       }
24328       this.maxPath = other.maxPath;
24329     }
24330
24331     @Override
24332         public multipaths_args deepCopy() {
24333       return new multipaths_args(this);
24334     }
24335
24336     @Override
24337     public void clear() {
24338       this.rd = null;
24339       setMaxPathIsSet(false);
24340       this.maxPath = 0;
24341     }
24342
24343     public String getRd() {
24344       return this.rd;
24345     }
24346
24347     public multipaths_args setRd(String rd) {
24348       this.rd = rd;
24349       return this;
24350     }
24351
24352     public void unsetRd() {
24353       this.rd = null;
24354     }
24355
24356     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
24357     public boolean isSetRd() {
24358       return this.rd != null;
24359     }
24360
24361     public void setRdIsSet(boolean value) {
24362       if (!value) {
24363         this.rd = null;
24364       }
24365     }
24366
24367     public int getMaxPath() {
24368       return this.maxPath;
24369     }
24370
24371     public multipaths_args setMaxPath(int maxPath) {
24372       this.maxPath = maxPath;
24373       setMaxPathIsSet(true);
24374       return this;
24375     }
24376
24377     public void unsetMaxPath() {
24378       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXPATH_ISSET_ID);
24379     }
24380
24381     /** Returns true if field maxPath is set (has been assigned a value) and false otherwise */
24382     public boolean isSetMaxPath() {
24383       return EncodingUtils.testBit(__isset_bitfield, __MAXPATH_ISSET_ID);
24384     }
24385
24386     public void setMaxPathIsSet(boolean value) {
24387       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXPATH_ISSET_ID, value);
24388     }
24389
24390     @Override
24391         public void setFieldValue(_Fields field, Object value) {
24392       switch (field) {
24393       case RD:
24394         if (value == null) {
24395           unsetRd();
24396         } else {
24397           setRd((String)value);
24398         }
24399         break;
24400
24401       case MAX_PATH:
24402         if (value == null) {
24403           unsetMaxPath();
24404         } else {
24405           setMaxPath((Integer)value);
24406         }
24407         break;
24408
24409       }
24410     }
24411
24412     @Override
24413         public Object getFieldValue(_Fields field) {
24414       switch (field) {
24415       case RD:
24416         return getRd();
24417
24418       case MAX_PATH:
24419         return Integer.valueOf(getMaxPath());
24420
24421       }
24422       throw new IllegalStateException();
24423     }
24424
24425     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24426     @Override
24427         public boolean isSet(_Fields field) {
24428       if (field == null) {
24429         throw new IllegalArgumentException();
24430       }
24431
24432       switch (field) {
24433       case RD:
24434         return isSetRd();
24435       case MAX_PATH:
24436         return isSetMaxPath();
24437       }
24438       throw new IllegalStateException();
24439     }
24440
24441     @Override
24442     public boolean equals(Object that) {
24443       if (that == null) {
24444                 return false;
24445         }
24446       if (that instanceof multipaths_args) {
24447                 return this.equals((multipaths_args)that);
24448         }
24449       return false;
24450     }
24451
24452     public boolean equals(multipaths_args that) {
24453       if (that == null) {
24454                 return false;
24455         }
24456
24457       boolean this_present_rd = true && this.isSetRd();
24458       boolean that_present_rd = true && that.isSetRd();
24459       if (this_present_rd || that_present_rd) {
24460         if (!(this_present_rd && that_present_rd)) {
24461                         return false;
24462                 }
24463         if (!this.rd.equals(that.rd)) {
24464                         return false;
24465                 }
24466       }
24467
24468       boolean this_present_maxPath = true;
24469       boolean that_present_maxPath = true;
24470       if (this_present_maxPath || that_present_maxPath) {
24471         if (!(this_present_maxPath && that_present_maxPath)) {
24472                         return false;
24473                 }
24474         if (this.maxPath != that.maxPath) {
24475                         return false;
24476                 }
24477       }
24478
24479       return true;
24480     }
24481
24482     @Override
24483     public int hashCode() {
24484       List<Object> list = new ArrayList<Object>();
24485       boolean present_rd = true && (isSetRd());
24486       list.add(present_rd);
24487       if (present_rd)
24488         list.add(rd);
24489       boolean present_maxPath = true;
24490       list.add(present_maxPath);
24491       if (present_maxPath)
24492         list.add(maxPath);
24493       return list.hashCode();
24494     }
24495
24496     @Override
24497     public int compareTo(multipaths_args other) {
24498       if (!getClass().equals(other.getClass())) {
24499         return getClass().getName().compareTo(other.getClass().getName());
24500       }
24501
24502       int lastComparison = 0;
24503
24504       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
24505       if (lastComparison != 0) {
24506         return lastComparison;
24507       }
24508       if (isSetRd()) {
24509         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
24510         if (lastComparison != 0) {
24511           return lastComparison;
24512         }
24513       }
24514       lastComparison = Boolean.valueOf(isSetMaxPath()).compareTo(other.isSetMaxPath());
24515       if (lastComparison != 0) {
24516         return lastComparison;
24517       }
24518       if (isSetMaxPath()) {
24519         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxPath, other.maxPath);
24520         if (lastComparison != 0) {
24521           return lastComparison;
24522         }
24523       }
24524       return 0;
24525     }
24526
24527     @Override
24528         public _Fields fieldForId(int fieldId) {
24529       return _Fields.findByThriftId(fieldId);
24530     }
24531
24532     @Override
24533         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24534       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24535     }
24536
24537     @Override
24538         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24539       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24540     }
24541
24542     @Override
24543     public String toString() {
24544       StringBuilder sb = new StringBuilder("multipaths_args(");
24545       boolean first = true;
24546
24547       sb.append("rd:");
24548       if (this.rd == null) {
24549         sb.append("null");
24550       } else {
24551         sb.append(this.rd);
24552       }
24553       first = false;
24554       if (!first) {
24555                 sb.append(", ");
24556         }
24557       sb.append("maxPath:");
24558       sb.append(this.maxPath);
24559       first = false;
24560       sb.append(")");
24561       return sb.toString();
24562     }
24563
24564     public void validate() throws org.apache.thrift.TException {
24565       // check for required fields
24566       // check for sub-struct validity
24567     }
24568
24569     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24570       try {
24571         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24572       } catch (org.apache.thrift.TException te) {
24573         throw new java.io.IOException(te);
24574       }
24575     }
24576
24577     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24578       try {
24579         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24580         __isset_bitfield = 0;
24581         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24582       } catch (org.apache.thrift.TException te) {
24583         throw new java.io.IOException(te);
24584       }
24585     }
24586
24587     private static class multipaths_argsStandardSchemeFactory implements SchemeFactory {
24588       @Override
24589         public multipaths_argsStandardScheme getScheme() {
24590         return new multipaths_argsStandardScheme();
24591       }
24592     }
24593
24594     private static class multipaths_argsStandardScheme extends StandardScheme<multipaths_args> {
24595
24596       @Override
24597         public void read(org.apache.thrift.protocol.TProtocol iprot, multipaths_args struct) throws org.apache.thrift.TException {
24598         org.apache.thrift.protocol.TField schemeField;
24599         iprot.readStructBegin();
24600         while (true)
24601         {
24602           schemeField = iprot.readFieldBegin();
24603           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
24604             break;
24605           }
24606           switch (schemeField.id) {
24607             case 1: // RD
24608               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
24609                 struct.rd = iprot.readString();
24610                 struct.setRdIsSet(true);
24611               } else {
24612                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24613               }
24614               break;
24615             case 2: // MAX_PATH
24616               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
24617                 struct.maxPath = iprot.readI32();
24618                 struct.setMaxPathIsSet(true);
24619               } else {
24620                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24621               }
24622               break;
24623             default:
24624               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24625           }
24626           iprot.readFieldEnd();
24627         }
24628         iprot.readStructEnd();
24629
24630         // check for required fields of primitive type, which can't be checked in the validate method
24631         struct.validate();
24632       }
24633
24634       @Override
24635         public void write(org.apache.thrift.protocol.TProtocol oprot, multipaths_args struct) throws org.apache.thrift.TException {
24636         struct.validate();
24637
24638         oprot.writeStructBegin(STRUCT_DESC);
24639         if (struct.rd != null) {
24640           oprot.writeFieldBegin(RD_FIELD_DESC);
24641           oprot.writeString(struct.rd);
24642           oprot.writeFieldEnd();
24643         }
24644         oprot.writeFieldBegin(MAX_PATH_FIELD_DESC);
24645         oprot.writeI32(struct.maxPath);
24646         oprot.writeFieldEnd();
24647         oprot.writeFieldStop();
24648         oprot.writeStructEnd();
24649       }
24650
24651     }
24652
24653     private static class multipaths_argsTupleSchemeFactory implements SchemeFactory {
24654       @Override
24655         public multipaths_argsTupleScheme getScheme() {
24656         return new multipaths_argsTupleScheme();
24657       }
24658     }
24659
24660     private static class multipaths_argsTupleScheme extends TupleScheme<multipaths_args> {
24661
24662       @Override
24663       public void write(org.apache.thrift.protocol.TProtocol prot, multipaths_args struct) throws org.apache.thrift.TException {
24664         TTupleProtocol oprot = (TTupleProtocol) prot;
24665         BitSet optionals = new BitSet();
24666         if (struct.isSetRd()) {
24667           optionals.set(0);
24668         }
24669         if (struct.isSetMaxPath()) {
24670           optionals.set(1);
24671         }
24672         oprot.writeBitSet(optionals, 2);
24673         if (struct.isSetRd()) {
24674           oprot.writeString(struct.rd);
24675         }
24676         if (struct.isSetMaxPath()) {
24677           oprot.writeI32(struct.maxPath);
24678         }
24679       }
24680
24681       @Override
24682       public void read(org.apache.thrift.protocol.TProtocol prot, multipaths_args struct) throws org.apache.thrift.TException {
24683         TTupleProtocol iprot = (TTupleProtocol) prot;
24684         BitSet incoming = iprot.readBitSet(2);
24685         if (incoming.get(0)) {
24686           struct.rd = iprot.readString();
24687           struct.setRdIsSet(true);
24688         }
24689         if (incoming.get(1)) {
24690           struct.maxPath = iprot.readI32();
24691           struct.setMaxPathIsSet(true);
24692         }
24693       }
24694     }
24695
24696   }
24697
24698   public static class multipaths_result implements org.apache.thrift.TBase<multipaths_result, multipaths_result._Fields>, java.io.Serializable, Cloneable, Comparable<multipaths_result>   {
24699     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("multipaths_result");
24700
24701     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);
24702
24703     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
24704     static {
24705       schemes.put(StandardScheme.class, new multipaths_resultStandardSchemeFactory());
24706       schemes.put(TupleScheme.class, new multipaths_resultTupleSchemeFactory());
24707     }
24708
24709     public int success; // required
24710
24711     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24712     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24713       SUCCESS((short)0, "success");
24714
24715       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24716
24717       static {
24718         for (_Fields field : EnumSet.allOf(_Fields.class)) {
24719           byName.put(field.getFieldName(), field);
24720         }
24721       }
24722
24723       /**
24724        * Find the _Fields constant that matches fieldId, or null if its not found.
24725        */
24726       public static _Fields findByThriftId(int fieldId) {
24727         switch(fieldId) {
24728           case 0: // SUCCESS
24729             return SUCCESS;
24730           default:
24731             return null;
24732         }
24733       }
24734
24735       /**
24736        * Find the _Fields constant that matches fieldId, throwing an exception
24737        * if it is not found.
24738        */
24739       public static _Fields findByThriftIdOrThrow(int fieldId) {
24740         _Fields fields = findByThriftId(fieldId);
24741         if (fields == null) {
24742                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24743                 }
24744         return fields;
24745       }
24746
24747       /**
24748        * Find the _Fields constant that matches name, or null if its not found.
24749        */
24750       public static _Fields findByName(String name) {
24751         return byName.get(name);
24752       }
24753
24754       private final short _thriftId;
24755       private final String _fieldName;
24756
24757       _Fields(short thriftId, String fieldName) {
24758         _thriftId = thriftId;
24759         _fieldName = fieldName;
24760       }
24761
24762       @Override
24763         public short getThriftFieldId() {
24764         return _thriftId;
24765       }
24766
24767       @Override
24768         public String getFieldName() {
24769         return _fieldName;
24770       }
24771     }
24772
24773     // isset id assignments
24774     private static final int __SUCCESS_ISSET_ID = 0;
24775     private byte __isset_bitfield = 0;
24776     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24777     static {
24778       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24779       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
24780           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
24781       metaDataMap = Collections.unmodifiableMap(tmpMap);
24782       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(multipaths_result.class, metaDataMap);
24783     }
24784
24785     public multipaths_result() {
24786     }
24787
24788     public multipaths_result(
24789       int success)
24790     {
24791       this();
24792       this.success = success;
24793       setSuccessIsSet(true);
24794     }
24795
24796     /**
24797      * Performs a deep copy on <i>other</i>.
24798      */
24799     public multipaths_result(multipaths_result other) {
24800       __isset_bitfield = other.__isset_bitfield;
24801       this.success = other.success;
24802     }
24803
24804     @Override
24805         public multipaths_result deepCopy() {
24806       return new multipaths_result(this);
24807     }
24808
24809     @Override
24810     public void clear() {
24811       setSuccessIsSet(false);
24812       this.success = 0;
24813     }
24814
24815     public int getSuccess() {
24816       return this.success;
24817     }
24818
24819     public multipaths_result setSuccess(int success) {
24820       this.success = success;
24821       setSuccessIsSet(true);
24822       return this;
24823     }
24824
24825     public void unsetSuccess() {
24826       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
24827     }
24828
24829     /** Returns true if field success is set (has been assigned a value) and false otherwise */
24830     public boolean isSetSuccess() {
24831       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
24832     }
24833
24834     public void setSuccessIsSet(boolean value) {
24835       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
24836     }
24837
24838     @Override
24839         public void setFieldValue(_Fields field, Object value) {
24840       switch (field) {
24841       case SUCCESS:
24842         if (value == null) {
24843           unsetSuccess();
24844         } else {
24845           setSuccess((Integer)value);
24846         }
24847         break;
24848
24849       }
24850     }
24851
24852     @Override
24853         public Object getFieldValue(_Fields field) {
24854       switch (field) {
24855       case SUCCESS:
24856         return Integer.valueOf(getSuccess());
24857
24858       }
24859       throw new IllegalStateException();
24860     }
24861
24862     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24863     @Override
24864         public boolean isSet(_Fields field) {
24865       if (field == null) {
24866         throw new IllegalArgumentException();
24867       }
24868
24869       switch (field) {
24870       case SUCCESS:
24871         return isSetSuccess();
24872       }
24873       throw new IllegalStateException();
24874     }
24875
24876     @Override
24877     public boolean equals(Object that) {
24878       if (that == null) {
24879                 return false;
24880         }
24881       if (that instanceof multipaths_result) {
24882                 return this.equals((multipaths_result)that);
24883         }
24884       return false;
24885     }
24886
24887     public boolean equals(multipaths_result that) {
24888       if (that == null) {
24889                 return false;
24890         }
24891
24892       boolean this_present_success = true;
24893       boolean that_present_success = true;
24894       if (this_present_success || that_present_success) {
24895         if (!(this_present_success && that_present_success)) {
24896                         return false;
24897                 }
24898         if (this.success != that.success) {
24899                         return false;
24900                 }
24901       }
24902
24903       return true;
24904     }
24905
24906     @Override
24907     public int hashCode() {
24908       List<Object> list = new ArrayList<Object>();
24909
24910       boolean present_success = true;
24911       list.add(present_success);
24912       if (present_success)
24913         list.add(success);
24914       return list.hashCode();
24915     }
24916
24917     @Override
24918     public int compareTo(multipaths_result other) {
24919       if (!getClass().equals(other.getClass())) {
24920         return getClass().getName().compareTo(other.getClass().getName());
24921       }
24922
24923       int lastComparison = 0;
24924
24925       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
24926       if (lastComparison != 0) {
24927         return lastComparison;
24928       }
24929       if (isSetSuccess()) {
24930         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
24931         if (lastComparison != 0) {
24932           return lastComparison;
24933         }
24934       }
24935       return 0;
24936     }
24937
24938     @Override
24939         public _Fields fieldForId(int fieldId) {
24940       return _Fields.findByThriftId(fieldId);
24941     }
24942
24943     @Override
24944         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24945       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24946     }
24947
24948     @Override
24949         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24950       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24951       }
24952
24953     @Override
24954     public String toString() {
24955       StringBuilder sb = new StringBuilder("multipaths_result(");
24956       boolean first = true;
24957
24958       sb.append("success:");
24959       sb.append(this.success);
24960       first = false;
24961       sb.append(")");
24962       return sb.toString();
24963     }
24964
24965     public void validate() throws org.apache.thrift.TException {
24966       // check for required fields
24967       // check for sub-struct validity
24968     }
24969
24970     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24971       try {
24972         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24973       } catch (org.apache.thrift.TException te) {
24974         throw new java.io.IOException(te);
24975       }
24976     }
24977
24978     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24979       try {
24980         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24981         __isset_bitfield = 0;
24982         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24983       } catch (org.apache.thrift.TException te) {
24984         throw new java.io.IOException(te);
24985       }
24986     }
24987
24988     private static class multipaths_resultStandardSchemeFactory implements SchemeFactory {
24989       @Override
24990         public multipaths_resultStandardScheme getScheme() {
24991         return new multipaths_resultStandardScheme();
24992       }
24993     }
24994
24995     private static class multipaths_resultStandardScheme extends StandardScheme<multipaths_result> {
24996
24997       @Override
24998         public void read(org.apache.thrift.protocol.TProtocol iprot, multipaths_result struct) throws org.apache.thrift.TException {
24999         org.apache.thrift.protocol.TField schemeField;
25000         iprot.readStructBegin();
25001         while (true)
25002         {
25003           schemeField = iprot.readFieldBegin();
25004           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
25005             break;
25006           }
25007           switch (schemeField.id) {
25008             case 0: // SUCCESS
25009               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
25010                 struct.success = iprot.readI32();
25011                 struct.setSuccessIsSet(true);
25012               } else {
25013                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25014               }
25015               break;
25016             default:
25017               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25018           }
25019           iprot.readFieldEnd();
25020         }
25021         iprot.readStructEnd();
25022
25023         // check for required fields of primitive type, which can't be checked in the validate method
25024         struct.validate();
25025       }
25026
25027       @Override
25028         public void write(org.apache.thrift.protocol.TProtocol oprot, multipaths_result struct) throws org.apache.thrift.TException {
25029         struct.validate();
25030
25031         oprot.writeStructBegin(STRUCT_DESC);
25032         if (struct.isSetSuccess()) {
25033           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25034           oprot.writeI32(struct.success);
25035           oprot.writeFieldEnd();
25036         }
25037         oprot.writeFieldStop();
25038         oprot.writeStructEnd();
25039       }
25040
25041     }
25042
25043     private static class multipaths_resultTupleSchemeFactory implements SchemeFactory {
25044       @Override
25045         public multipaths_resultTupleScheme getScheme() {
25046         return new multipaths_resultTupleScheme();
25047       }
25048     }
25049
25050     private static class multipaths_resultTupleScheme extends TupleScheme<multipaths_result> {
25051
25052       @Override
25053       public void write(org.apache.thrift.protocol.TProtocol prot, multipaths_result struct) throws org.apache.thrift.TException {
25054         TTupleProtocol oprot = (TTupleProtocol) prot;
25055         BitSet optionals = new BitSet();
25056         if (struct.isSetSuccess()) {
25057           optionals.set(0);
25058         }
25059         oprot.writeBitSet(optionals, 1);
25060         if (struct.isSetSuccess()) {
25061           oprot.writeI32(struct.success);
25062         }
25063       }
25064
25065       @Override
25066       public void read(org.apache.thrift.protocol.TProtocol prot, multipaths_result struct) throws org.apache.thrift.TException {
25067         TTupleProtocol iprot = (TTupleProtocol) prot;
25068         BitSet incoming = iprot.readBitSet(1);
25069         if (incoming.get(0)) {
25070           struct.success = iprot.readI32();
25071           struct.setSuccessIsSet(true);
25072         }
25073       }
25074     }
25075
25076   }
25077
25078   public static class enableEORDelay_args implements org.apache.thrift.TBase<enableEORDelay_args, enableEORDelay_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableEORDelay_args>   {
25079     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableEORDelay_args");
25080
25081     private static final org.apache.thrift.protocol.TField DELAY_FIELD_DESC = new org.apache.thrift.protocol.TField("delay", org.apache.thrift.protocol.TType.I32, (short)1);
25082
25083     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
25084     static {
25085       schemes.put(StandardScheme.class, new enableEORDelay_argsStandardSchemeFactory());
25086       schemes.put(TupleScheme.class, new enableEORDelay_argsTupleSchemeFactory());
25087     }
25088
25089     public int delay; // required
25090
25091     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25092     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25093       DELAY((short)1, "delay");
25094
25095       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25096
25097       static {
25098         for (_Fields field : EnumSet.allOf(_Fields.class)) {
25099           byName.put(field.getFieldName(), field);
25100         }
25101       }
25102
25103       /**
25104        * Find the _Fields constant that matches fieldId, or null if its not found.
25105        */
25106       public static _Fields findByThriftId(int fieldId) {
25107         switch(fieldId) {
25108           case 1: // DELAY
25109             return DELAY;
25110           default:
25111             return null;
25112         }
25113       }
25114
25115       /**
25116        * Find the _Fields constant that matches fieldId, throwing an exception
25117        * if it is not found.
25118        */
25119       public static _Fields findByThriftIdOrThrow(int fieldId) {
25120         _Fields fields = findByThriftId(fieldId);
25121         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25122         return fields;
25123       }
25124
25125       /**
25126        * Find the _Fields constant that matches name, or null if its not found.
25127        */
25128       public static _Fields findByName(String name) {
25129         return byName.get(name);
25130       }
25131
25132       private final short _thriftId;
25133       private final String _fieldName;
25134
25135       _Fields(short thriftId, String fieldName) {
25136         _thriftId = thriftId;
25137         _fieldName = fieldName;
25138       }
25139
25140       public short getThriftFieldId() {
25141         return _thriftId;
25142       }
25143
25144       public String getFieldName() {
25145         return _fieldName;
25146       }
25147     }
25148
25149     // isset id assignments
25150     private static final int __DELAY_ISSET_ID = 0;
25151     private byte __isset_bitfield = 0;
25152     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25153     static {
25154       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25155       tmpMap.put(_Fields.DELAY, new org.apache.thrift.meta_data.FieldMetaData("delay", org.apache.thrift.TFieldRequirementType.DEFAULT,
25156           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
25157       metaDataMap = Collections.unmodifiableMap(tmpMap);
25158       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableEORDelay_args.class, metaDataMap);
25159     }
25160
25161     public enableEORDelay_args() {
25162     }
25163
25164     public enableEORDelay_args(
25165       int delay)
25166     {
25167       this();
25168       this.delay = delay;
25169       setDelayIsSet(true);
25170     }
25171
25172     /**
25173      * Performs a deep copy on <i>other</i>.
25174      */
25175     public enableEORDelay_args(enableEORDelay_args other) {
25176       __isset_bitfield = other.__isset_bitfield;
25177       this.delay = other.delay;
25178     }
25179
25180     public enableEORDelay_args deepCopy() {
25181       return new enableEORDelay_args(this);
25182     }
25183
25184     @Override
25185     public void clear() {
25186       setDelayIsSet(false);
25187       this.delay = 0;
25188     }
25189
25190     public int getDelay() {
25191       return this.delay;
25192     }
25193
25194     public enableEORDelay_args setDelay(int delay) {
25195       this.delay = delay;
25196       setDelayIsSet(true);
25197       return this;
25198     }
25199
25200     public void unsetDelay() {
25201       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELAY_ISSET_ID);
25202     }
25203
25204     /** Returns true if field delay is set (has been assigned a value) and false otherwise */
25205     public boolean isSetDelay() {
25206       return EncodingUtils.testBit(__isset_bitfield, __DELAY_ISSET_ID);
25207     }
25208
25209     public void setDelayIsSet(boolean value) {
25210       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELAY_ISSET_ID, value);
25211     }
25212
25213     public void setFieldValue(_Fields field, Object value) {
25214       switch (field) {
25215       case DELAY:
25216         if (value == null) {
25217           unsetDelay();
25218         } else {
25219           setDelay((Integer)value);
25220         }
25221         break;
25222
25223       }
25224     }
25225
25226     public Object getFieldValue(_Fields field) {
25227       switch (field) {
25228       case DELAY:
25229         return Integer.valueOf(getDelay());
25230
25231       }
25232       throw new IllegalStateException();
25233     }
25234
25235     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25236     public boolean isSet(_Fields field) {
25237       if (field == null) {
25238         throw new IllegalArgumentException();
25239       }
25240
25241       switch (field) {
25242       case DELAY:
25243         return isSetDelay();
25244       }
25245       throw new IllegalStateException();
25246     }
25247
25248     @Override
25249     public boolean equals(Object that) {
25250       if (that == null)
25251         return false;
25252       if (that instanceof enableEORDelay_args)
25253         return this.equals((enableEORDelay_args)that);
25254       return false;
25255     }
25256
25257     public boolean equals(enableEORDelay_args that) {
25258       if (that == null)
25259         return false;
25260
25261       boolean this_present_delay = true;
25262       boolean that_present_delay = true;
25263       if (this_present_delay || that_present_delay) {
25264         if (!(this_present_delay && that_present_delay))
25265           return false;
25266         if (this.delay != that.delay)
25267           return false;
25268       }
25269
25270       return true;
25271     }
25272
25273     @Override
25274     public int hashCode() {
25275       List<Object> list = new ArrayList<Object>();
25276
25277       boolean present_delay = true;
25278       list.add(present_delay);
25279       if (present_delay)
25280         list.add(delay);
25281       return list.hashCode();
25282     }
25283
25284     @Override
25285     public int compareTo(enableEORDelay_args other) {
25286       if (!getClass().equals(other.getClass())) {
25287         return getClass().getName().compareTo(other.getClass().getName());
25288       }
25289
25290       int lastComparison = 0;
25291
25292       lastComparison = Boolean.valueOf(isSetDelay()).compareTo(other.isSetDelay());
25293       if (lastComparison != 0) {
25294         return lastComparison;
25295       }
25296       if (isSetDelay()) {
25297         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delay, other.delay);
25298         if (lastComparison != 0) {
25299           return lastComparison;
25300         }
25301       }
25302       return 0;
25303     }
25304
25305     public _Fields fieldForId(int fieldId) {
25306       return _Fields.findByThriftId(fieldId);
25307     }
25308
25309     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25310       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
25311     }
25312
25313     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25314       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
25315     }
25316
25317     @Override
25318     public String toString() {
25319       StringBuilder sb = new StringBuilder("enableEORDelay_args(");
25320       boolean first = true;
25321
25322       sb.append("delay:");
25323       sb.append(this.delay);
25324       first = false;
25325       sb.append(")");
25326       return sb.toString();
25327     }
25328
25329     public void validate() throws org.apache.thrift.TException {
25330       // check for required fields
25331       // check for sub-struct validity
25332     }
25333
25334     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25335       try {
25336         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25337       } catch (org.apache.thrift.TException te) {
25338         throw new java.io.IOException(te);
25339       }
25340     }
25341
25342     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25343       try {
25344         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
25345         __isset_bitfield = 0;
25346         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25347       } catch (org.apache.thrift.TException te) {
25348         throw new java.io.IOException(te);
25349       }
25350     }
25351
25352     private static class enableEORDelay_argsStandardSchemeFactory implements SchemeFactory {
25353       public enableEORDelay_argsStandardScheme getScheme() {
25354         return new enableEORDelay_argsStandardScheme();
25355       }
25356     }
25357
25358     private static class enableEORDelay_argsStandardScheme extends StandardScheme<enableEORDelay_args> {
25359
25360       public void read(org.apache.thrift.protocol.TProtocol iprot, enableEORDelay_args struct) throws org.apache.thrift.TException {
25361         org.apache.thrift.protocol.TField schemeField;
25362         iprot.readStructBegin();
25363         while (true)
25364         {
25365           schemeField = iprot.readFieldBegin();
25366           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
25367             break;
25368           }
25369           switch (schemeField.id) {
25370             case 1: // DELAY
25371               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
25372                 struct.delay = iprot.readI32();
25373                 struct.setDelayIsSet(true);
25374               } else {
25375                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25376               }
25377               break;
25378             default:
25379               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25380           }
25381           iprot.readFieldEnd();
25382         }
25383         iprot.readStructEnd();
25384
25385         // check for required fields of primitive type, which can't be checked in the validate method
25386         struct.validate();
25387       }
25388
25389       public void write(org.apache.thrift.protocol.TProtocol oprot, enableEORDelay_args struct) throws org.apache.thrift.TException {
25390         struct.validate();
25391
25392         oprot.writeStructBegin(STRUCT_DESC);
25393         oprot.writeFieldBegin(DELAY_FIELD_DESC);
25394         oprot.writeI32(struct.delay);
25395         oprot.writeFieldEnd();
25396         oprot.writeFieldStop();
25397         oprot.writeStructEnd();
25398       }
25399
25400     }
25401
25402     private static class enableEORDelay_argsTupleSchemeFactory implements SchemeFactory {
25403       public enableEORDelay_argsTupleScheme getScheme() {
25404         return new enableEORDelay_argsTupleScheme();
25405       }
25406     }
25407
25408     private static class enableEORDelay_argsTupleScheme extends TupleScheme<enableEORDelay_args> {
25409
25410       @Override
25411       public void write(org.apache.thrift.protocol.TProtocol prot, enableEORDelay_args struct) throws org.apache.thrift.TException {
25412         TTupleProtocol oprot = (TTupleProtocol) prot;
25413         BitSet optionals = new BitSet();
25414         if (struct.isSetDelay()) {
25415           optionals.set(0);
25416         }
25417         oprot.writeBitSet(optionals, 1);
25418         if (struct.isSetDelay()) {
25419           oprot.writeI32(struct.delay);
25420         }
25421       }
25422
25423       @Override
25424       public void read(org.apache.thrift.protocol.TProtocol prot, enableEORDelay_args struct) throws org.apache.thrift.TException {
25425         TTupleProtocol iprot = (TTupleProtocol) prot;
25426         BitSet incoming = iprot.readBitSet(1);
25427         if (incoming.get(0)) {
25428           struct.delay = iprot.readI32();
25429           struct.setDelayIsSet(true);
25430         }
25431       }
25432     }
25433
25434   }
25435
25436   public static class enableEORDelay_result implements org.apache.thrift.TBase<enableEORDelay_result, enableEORDelay_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableEORDelay_result>   {
25437     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableEORDelay_result");
25438
25439     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);
25440
25441     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
25442     static {
25443       schemes.put(StandardScheme.class, new enableEORDelay_resultStandardSchemeFactory());
25444       schemes.put(TupleScheme.class, new enableEORDelay_resultTupleSchemeFactory());
25445     }
25446
25447     public int success; // required
25448
25449     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25450     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25451       SUCCESS((short)0, "success");
25452
25453       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25454
25455       static {
25456         for (_Fields field : EnumSet.allOf(_Fields.class)) {
25457           byName.put(field.getFieldName(), field);
25458         }
25459       }
25460
25461       /**
25462        * Find the _Fields constant that matches fieldId, or null if its not found.
25463        */
25464       public static _Fields findByThriftId(int fieldId) {
25465         switch(fieldId) {
25466           case 0: // SUCCESS
25467             return SUCCESS;
25468           default:
25469             return null;
25470         }
25471       }
25472
25473       /**
25474        * Find the _Fields constant that matches fieldId, throwing an exception
25475        * if it is not found.
25476        */
25477       public static _Fields findByThriftIdOrThrow(int fieldId) {
25478         _Fields fields = findByThriftId(fieldId);
25479         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25480         return fields;
25481       }
25482
25483       /**
25484        * Find the _Fields constant that matches name, or null if its not found.
25485        */
25486       public static _Fields findByName(String name) {
25487         return byName.get(name);
25488       }
25489
25490       private final short _thriftId;
25491       private final String _fieldName;
25492
25493       _Fields(short thriftId, String fieldName) {
25494         _thriftId = thriftId;
25495         _fieldName = fieldName;
25496       }
25497
25498       public short getThriftFieldId() {
25499         return _thriftId;
25500       }
25501
25502       public String getFieldName() {
25503         return _fieldName;
25504       }
25505     }
25506
25507     // isset id assignments
25508     private static final int __SUCCESS_ISSET_ID = 0;
25509     private byte __isset_bitfield = 0;
25510     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25511     static {
25512       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25513       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
25514           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
25515       metaDataMap = Collections.unmodifiableMap(tmpMap);
25516       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableEORDelay_result.class, metaDataMap);
25517     }
25518
25519     public enableEORDelay_result() {
25520     }
25521
25522     public enableEORDelay_result(
25523       int success)
25524     {
25525       this();
25526       this.success = success;
25527       setSuccessIsSet(true);
25528     }
25529
25530     /**
25531      * Performs a deep copy on <i>other</i>.
25532      */
25533     public enableEORDelay_result(enableEORDelay_result other) {
25534       __isset_bitfield = other.__isset_bitfield;
25535       this.success = other.success;
25536     }
25537
25538     public enableEORDelay_result deepCopy() {
25539       return new enableEORDelay_result(this);
25540     }
25541
25542     @Override
25543     public void clear() {
25544       setSuccessIsSet(false);
25545       this.success = 0;
25546     }
25547
25548     public int getSuccess() {
25549       return this.success;
25550     }
25551
25552     public enableEORDelay_result setSuccess(int success) {
25553       this.success = success;
25554       setSuccessIsSet(true);
25555       return this;
25556     }
25557
25558     public void unsetSuccess() {
25559       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
25560     }
25561
25562     /** Returns true if field success is set (has been assigned a value) and false otherwise */
25563     public boolean isSetSuccess() {
25564       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
25565     }
25566
25567     public void setSuccessIsSet(boolean value) {
25568       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
25569     }
25570
25571     public void setFieldValue(_Fields field, Object value) {
25572       switch (field) {
25573       case SUCCESS:
25574         if (value == null) {
25575           unsetSuccess();
25576         } else {
25577           setSuccess((Integer)value);
25578         }
25579         break;
25580
25581       }
25582     }
25583
25584     public Object getFieldValue(_Fields field) {
25585       switch (field) {
25586       case SUCCESS:
25587         return Integer.valueOf(getSuccess());
25588
25589       }
25590       throw new IllegalStateException();
25591     }
25592
25593     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25594     public boolean isSet(_Fields field) {
25595       if (field == null) {
25596         throw new IllegalArgumentException();
25597       }
25598
25599       switch (field) {
25600       case SUCCESS:
25601         return isSetSuccess();
25602       }
25603       throw new IllegalStateException();
25604     }
25605
25606     @Override
25607     public boolean equals(Object that) {
25608       if (that == null)
25609         return false;
25610       if (that instanceof enableEORDelay_result)
25611         return this.equals((enableEORDelay_result)that);
25612       return false;
25613     }
25614
25615     public boolean equals(enableEORDelay_result that) {
25616       if (that == null)
25617         return false;
25618
25619       boolean this_present_success = true;
25620       boolean that_present_success = true;
25621       if (this_present_success || that_present_success) {
25622         if (!(this_present_success && that_present_success))
25623           return false;
25624         if (this.success != that.success)
25625           return false;
25626       }
25627
25628       return true;
25629     }
25630
25631     @Override
25632     public int hashCode() {
25633       List<Object> list = new ArrayList<Object>();
25634
25635       boolean present_success = true;
25636       list.add(present_success);
25637       if (present_success)
25638         list.add(success);
25639       return list.hashCode();
25640     }
25641
25642     @Override
25643     public int compareTo(enableEORDelay_result other) {
25644       if (!getClass().equals(other.getClass())) {
25645         return getClass().getName().compareTo(other.getClass().getName());
25646       }
25647
25648       int lastComparison = 0;
25649
25650       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
25651       if (lastComparison != 0) {
25652         return lastComparison;
25653       }
25654       if (isSetSuccess()) {
25655         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
25656         if (lastComparison != 0) {
25657           return lastComparison;
25658         }
25659       }
25660       return 0;
25661     }
25662
25663     public _Fields fieldForId(int fieldId) {
25664       return _Fields.findByThriftId(fieldId);
25665     }
25666
25667     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25668       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
25669     }
25670
25671     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25672       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
25673       }
25674
25675     @Override
25676     public String toString() {
25677       StringBuilder sb = new StringBuilder("enableEORDelay_result(");
25678       boolean first = true;
25679
25680       sb.append("success:");
25681       sb.append(this.success);
25682       first = false;
25683       sb.append(")");
25684       return sb.toString();
25685     }
25686
25687     public void validate() throws org.apache.thrift.TException {
25688       // check for required fields
25689       // check for sub-struct validity
25690     }
25691
25692     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25693       try {
25694         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25695       } catch (org.apache.thrift.TException te) {
25696         throw new java.io.IOException(te);
25697       }
25698     }
25699
25700     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25701       try {
25702         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
25703         __isset_bitfield = 0;
25704         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25705       } catch (org.apache.thrift.TException te) {
25706         throw new java.io.IOException(te);
25707       }
25708     }
25709
25710     private static class enableEORDelay_resultStandardSchemeFactory implements SchemeFactory {
25711       public enableEORDelay_resultStandardScheme getScheme() {
25712         return new enableEORDelay_resultStandardScheme();
25713       }
25714     }
25715
25716     private static class enableEORDelay_resultStandardScheme extends StandardScheme<enableEORDelay_result> {
25717
25718       public void read(org.apache.thrift.protocol.TProtocol iprot, enableEORDelay_result struct) throws org.apache.thrift.TException {
25719         org.apache.thrift.protocol.TField schemeField;
25720         iprot.readStructBegin();
25721         while (true)
25722         {
25723           schemeField = iprot.readFieldBegin();
25724           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
25725             break;
25726           }
25727           switch (schemeField.id) {
25728             case 0: // SUCCESS
25729               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
25730                 struct.success = iprot.readI32();
25731                 struct.setSuccessIsSet(true);
25732               } else {
25733                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25734               }
25735               break;
25736             default:
25737               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25738           }
25739           iprot.readFieldEnd();
25740         }
25741         iprot.readStructEnd();
25742
25743         // check for required fields of primitive type, which can't be checked in the validate method
25744         struct.validate();
25745       }
25746
25747       public void write(org.apache.thrift.protocol.TProtocol oprot, enableEORDelay_result struct) throws org.apache.thrift.TException {
25748         struct.validate();
25749
25750         oprot.writeStructBegin(STRUCT_DESC);
25751         if (struct.isSetSuccess()) {
25752           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25753           oprot.writeI32(struct.success);
25754           oprot.writeFieldEnd();
25755         }
25756         oprot.writeFieldStop();
25757         oprot.writeStructEnd();
25758       }
25759
25760     }
25761
25762     private static class enableEORDelay_resultTupleSchemeFactory implements SchemeFactory {
25763       public enableEORDelay_resultTupleScheme getScheme() {
25764         return new enableEORDelay_resultTupleScheme();
25765       }
25766     }
25767
25768     private static class enableEORDelay_resultTupleScheme extends TupleScheme<enableEORDelay_result> {
25769
25770       @Override
25771       public void write(org.apache.thrift.protocol.TProtocol prot, enableEORDelay_result struct) throws org.apache.thrift.TException {
25772         TTupleProtocol oprot = (TTupleProtocol) prot;
25773         BitSet optionals = new BitSet();
25774         if (struct.isSetSuccess()) {
25775           optionals.set(0);
25776         }
25777         oprot.writeBitSet(optionals, 1);
25778         if (struct.isSetSuccess()) {
25779           oprot.writeI32(struct.success);
25780         }
25781       }
25782
25783       @Override
25784       public void read(org.apache.thrift.protocol.TProtocol prot, enableEORDelay_result struct) throws org.apache.thrift.TException {
25785         TTupleProtocol iprot = (TTupleProtocol) prot;
25786         BitSet incoming = iprot.readBitSet(1);
25787         if (incoming.get(0)) {
25788           struct.success = iprot.readI32();
25789           struct.setSuccessIsSet(true);
25790         }
25791       }
25792     }
25793
25794   }
25795
25796   public static class sendEOR_args implements org.apache.thrift.TBase<sendEOR_args, sendEOR_args._Fields>, java.io.Serializable, Cloneable, Comparable<sendEOR_args>   {
25797     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendEOR_args");
25798
25799
25800     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
25801     static {
25802       schemes.put(StandardScheme.class, new sendEOR_argsStandardSchemeFactory());
25803       schemes.put(TupleScheme.class, new sendEOR_argsTupleSchemeFactory());
25804     }
25805
25806
25807     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25808     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25809 ;
25810
25811       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25812
25813       static {
25814         for (_Fields field : EnumSet.allOf(_Fields.class)) {
25815           byName.put(field.getFieldName(), field);
25816         }
25817       }
25818
25819       /**
25820        * Find the _Fields constant that matches fieldId, or null if its not found.
25821        */
25822       public static _Fields findByThriftId(int fieldId) {
25823         switch(fieldId) {
25824           default:
25825             return null;
25826         }
25827       }
25828
25829       /**
25830        * Find the _Fields constant that matches fieldId, throwing an exception
25831        * if it is not found.
25832        */
25833       public static _Fields findByThriftIdOrThrow(int fieldId) {
25834         _Fields fields = findByThriftId(fieldId);
25835         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25836         return fields;
25837       }
25838
25839       /**
25840        * Find the _Fields constant that matches name, or null if its not found.
25841        */
25842       public static _Fields findByName(String name) {
25843         return byName.get(name);
25844       }
25845
25846       private final short _thriftId;
25847       private final String _fieldName;
25848
25849       _Fields(short thriftId, String fieldName) {
25850         _thriftId = thriftId;
25851         _fieldName = fieldName;
25852       }
25853
25854       public short getThriftFieldId() {
25855         return _thriftId;
25856       }
25857
25858       public String getFieldName() {
25859         return _fieldName;
25860       }
25861     }
25862     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25863     static {
25864       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25865       metaDataMap = Collections.unmodifiableMap(tmpMap);
25866       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendEOR_args.class, metaDataMap);
25867     }
25868
25869     public sendEOR_args() {
25870     }
25871
25872     /**
25873      * Performs a deep copy on <i>other</i>.
25874      */
25875     public sendEOR_args(sendEOR_args other) {
25876     }
25877
25878     public sendEOR_args deepCopy() {
25879       return new sendEOR_args(this);
25880     }
25881
25882     @Override
25883     public void clear() {
25884     }
25885
25886     public void setFieldValue(_Fields field, Object value) {
25887       switch (field) {
25888       }
25889     }
25890
25891     public Object getFieldValue(_Fields field) {
25892       switch (field) {
25893       }
25894       throw new IllegalStateException();
25895     }
25896
25897     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25898     public boolean isSet(_Fields field) {
25899       if (field == null) {
25900         throw new IllegalArgumentException();
25901       }
25902
25903       switch (field) {
25904       }
25905       throw new IllegalStateException();
25906     }
25907
25908     @Override
25909     public boolean equals(Object that) {
25910       if (that == null)
25911         return false;
25912       if (that instanceof sendEOR_args)
25913         return this.equals((sendEOR_args)that);
25914       return false;
25915     }
25916
25917     public boolean equals(sendEOR_args that) {
25918       if (that == null)
25919         return false;
25920
25921       return true;
25922     }
25923
25924     @Override
25925     public int hashCode() {
25926       List<Object> list = new ArrayList<Object>();
25927
25928       return list.hashCode();
25929     }
25930
25931     @Override
25932     public int compareTo(sendEOR_args other) {
25933       if (!getClass().equals(other.getClass())) {
25934         return getClass().getName().compareTo(other.getClass().getName());
25935       }
25936
25937       int lastComparison = 0;
25938
25939       return 0;
25940     }
25941
25942     public _Fields fieldForId(int fieldId) {
25943       return _Fields.findByThriftId(fieldId);
25944     }
25945
25946     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25947       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
25948     }
25949
25950     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25951       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
25952     }
25953
25954     @Override
25955     public String toString() {
25956       StringBuilder sb = new StringBuilder("sendEOR_args(");
25957       boolean first = true;
25958
25959       sb.append(")");
25960       return sb.toString();
25961     }
25962
25963     public void validate() throws org.apache.thrift.TException {
25964       // check for required fields
25965       // check for sub-struct validity
25966     }
25967
25968     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25969       try {
25970         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25971       } catch (org.apache.thrift.TException te) {
25972         throw new java.io.IOException(te);
25973       }
25974     }
25975
25976     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25977       try {
25978         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25979       } catch (org.apache.thrift.TException te) {
25980         throw new java.io.IOException(te);
25981       }
25982     }
25983
25984     private static class sendEOR_argsStandardSchemeFactory implements SchemeFactory {
25985       public sendEOR_argsStandardScheme getScheme() {
25986         return new sendEOR_argsStandardScheme();
25987       }
25988     }
25989
25990     private static class sendEOR_argsStandardScheme extends StandardScheme<sendEOR_args> {
25991
25992       public void read(org.apache.thrift.protocol.TProtocol iprot, sendEOR_args struct) throws org.apache.thrift.TException {
25993         org.apache.thrift.protocol.TField schemeField;
25994         iprot.readStructBegin();
25995         while (true)
25996         {
25997           schemeField = iprot.readFieldBegin();
25998           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
25999             break;
26000           }
26001           switch (schemeField.id) {
26002             default:
26003               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26004           }
26005           iprot.readFieldEnd();
26006         }
26007         iprot.readStructEnd();
26008
26009         // check for required fields of primitive type, which can't be checked in the validate method
26010         struct.validate();
26011       }
26012
26013       public void write(org.apache.thrift.protocol.TProtocol oprot, sendEOR_args struct) throws org.apache.thrift.TException {
26014         struct.validate();
26015
26016         oprot.writeStructBegin(STRUCT_DESC);
26017         oprot.writeFieldStop();
26018         oprot.writeStructEnd();
26019       }
26020
26021     }
26022
26023     private static class sendEOR_argsTupleSchemeFactory implements SchemeFactory {
26024       public sendEOR_argsTupleScheme getScheme() {
26025         return new sendEOR_argsTupleScheme();
26026       }
26027     }
26028
26029     private static class sendEOR_argsTupleScheme extends TupleScheme<sendEOR_args> {
26030
26031       @Override
26032       public void write(org.apache.thrift.protocol.TProtocol prot, sendEOR_args struct) throws org.apache.thrift.TException {
26033         TTupleProtocol oprot = (TTupleProtocol) prot;
26034       }
26035
26036       @Override
26037       public void read(org.apache.thrift.protocol.TProtocol prot, sendEOR_args struct) throws org.apache.thrift.TException {
26038         TTupleProtocol iprot = (TTupleProtocol) prot;
26039       }
26040     }
26041
26042   }
26043
26044   public static class sendEOR_result implements org.apache.thrift.TBase<sendEOR_result, sendEOR_result._Fields>, java.io.Serializable, Cloneable, Comparable<sendEOR_result>   {
26045     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendEOR_result");
26046
26047     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);
26048
26049     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
26050     static {
26051       schemes.put(StandardScheme.class, new sendEOR_resultStandardSchemeFactory());
26052       schemes.put(TupleScheme.class, new sendEOR_resultTupleSchemeFactory());
26053     }
26054
26055     public int success; // required
26056
26057     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26058     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26059       SUCCESS((short)0, "success");
26060
26061       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26062
26063       static {
26064         for (_Fields field : EnumSet.allOf(_Fields.class)) {
26065           byName.put(field.getFieldName(), field);
26066         }
26067       }
26068
26069       /**
26070        * Find the _Fields constant that matches fieldId, or null if its not found.
26071        */
26072       public static _Fields findByThriftId(int fieldId) {
26073         switch(fieldId) {
26074           case 0: // SUCCESS
26075             return SUCCESS;
26076           default:
26077             return null;
26078         }
26079       }
26080
26081       /**
26082        * Find the _Fields constant that matches fieldId, throwing an exception
26083        * if it is not found.
26084        */
26085       public static _Fields findByThriftIdOrThrow(int fieldId) {
26086         _Fields fields = findByThriftId(fieldId);
26087         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26088         return fields;
26089       }
26090
26091       /**
26092        * Find the _Fields constant that matches name, or null if its not found.
26093        */
26094       public static _Fields findByName(String name) {
26095         return byName.get(name);
26096       }
26097
26098       private final short _thriftId;
26099       private final String _fieldName;
26100
26101       _Fields(short thriftId, String fieldName) {
26102         _thriftId = thriftId;
26103         _fieldName = fieldName;
26104       }
26105
26106       public short getThriftFieldId() {
26107         return _thriftId;
26108       }
26109
26110       public String getFieldName() {
26111         return _fieldName;
26112       }
26113     }
26114
26115     // isset id assignments
26116     private static final int __SUCCESS_ISSET_ID = 0;
26117     private byte __isset_bitfield = 0;
26118     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26119     static {
26120       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26121       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
26122           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
26123       metaDataMap = Collections.unmodifiableMap(tmpMap);
26124       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendEOR_result.class, metaDataMap);
26125     }
26126
26127     public sendEOR_result() {
26128     }
26129
26130     public sendEOR_result(
26131       int success)
26132     {
26133       this();
26134       this.success = success;
26135       setSuccessIsSet(true);
26136     }
26137
26138     /**
26139      * Performs a deep copy on <i>other</i>.
26140      */
26141     public sendEOR_result(sendEOR_result other) {
26142       __isset_bitfield = other.__isset_bitfield;
26143       this.success = other.success;
26144     }
26145
26146     public sendEOR_result deepCopy() {
26147       return new sendEOR_result(this);
26148     }
26149
26150     @Override
26151     public void clear() {
26152       setSuccessIsSet(false);
26153       this.success = 0;
26154     }
26155
26156     public int getSuccess() {
26157       return this.success;
26158     }
26159
26160     public sendEOR_result setSuccess(int success) {
26161       this.success = success;
26162       setSuccessIsSet(true);
26163       return this;
26164     }
26165
26166     public void unsetSuccess() {
26167       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
26168     }
26169
26170     /** Returns true if field success is set (has been assigned a value) and false otherwise */
26171     public boolean isSetSuccess() {
26172       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
26173     }
26174
26175     public void setSuccessIsSet(boolean value) {
26176       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
26177     }
26178
26179     public void setFieldValue(_Fields field, Object value) {
26180       switch (field) {
26181       case SUCCESS:
26182         if (value == null) {
26183           unsetSuccess();
26184         } else {
26185           setSuccess((Integer)value);
26186         }
26187         break;
26188
26189       }
26190     }
26191
26192     public Object getFieldValue(_Fields field) {
26193       switch (field) {
26194       case SUCCESS:
26195         return Integer.valueOf(getSuccess());
26196
26197       }
26198       throw new IllegalStateException();
26199     }
26200
26201     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26202     public boolean isSet(_Fields field) {
26203       if (field == null) {
26204         throw new IllegalArgumentException();
26205       }
26206
26207       switch (field) {
26208       case SUCCESS:
26209         return isSetSuccess();
26210       }
26211       throw new IllegalStateException();
26212     }
26213
26214     @Override
26215     public boolean equals(Object that) {
26216       if (that == null)
26217         return false;
26218       if (that instanceof sendEOR_result)
26219         return this.equals((sendEOR_result)that);
26220       return false;
26221     }
26222
26223     public boolean equals(sendEOR_result that) {
26224       if (that == null)
26225         return false;
26226
26227       boolean this_present_success = true;
26228       boolean that_present_success = true;
26229       if (this_present_success || that_present_success) {
26230         if (!(this_present_success && that_present_success))
26231           return false;
26232         if (this.success != that.success)
26233           return false;
26234       }
26235
26236       return true;
26237     }
26238
26239     @Override
26240     public int hashCode() {
26241       List<Object> list = new ArrayList<Object>();
26242
26243       boolean present_success = true;
26244       list.add(present_success);
26245       if (present_success)
26246         list.add(success);
26247       return list.hashCode();
26248     }
26249
26250     @Override
26251     public int compareTo(sendEOR_result other) {
26252       if (!getClass().equals(other.getClass())) {
26253         return getClass().getName().compareTo(other.getClass().getName());
26254       }
26255
26256       int lastComparison = 0;
26257
26258       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
26259       if (lastComparison != 0) {
26260         return lastComparison;
26261       }
26262       if (isSetSuccess()) {
26263         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
26264         if (lastComparison != 0) {
26265           return lastComparison;
26266         }
26267       }
26268       return 0;
26269     }
26270
26271     public _Fields fieldForId(int fieldId) {
26272       return _Fields.findByThriftId(fieldId);
26273     }
26274
26275     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26276       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
26277     }
26278
26279     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26280       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
26281       }
26282
26283     @Override
26284     public String toString() {
26285       StringBuilder sb = new StringBuilder("sendEOR_result(");
26286       boolean first = true;
26287
26288       sb.append("success:");
26289       sb.append(this.success);
26290       first = false;
26291       sb.append(")");
26292       return sb.toString();
26293     }
26294
26295     public void validate() throws org.apache.thrift.TException {
26296       // check for required fields
26297       // check for sub-struct validity
26298     }
26299
26300     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26301       try {
26302         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26303       } catch (org.apache.thrift.TException te) {
26304         throw new java.io.IOException(te);
26305       }
26306     }
26307
26308     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26309       try {
26310         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26311         __isset_bitfield = 0;
26312         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26313       } catch (org.apache.thrift.TException te) {
26314         throw new java.io.IOException(te);
26315       }
26316     }
26317
26318     private static class sendEOR_resultStandardSchemeFactory implements SchemeFactory {
26319       public sendEOR_resultStandardScheme getScheme() {
26320         return new sendEOR_resultStandardScheme();
26321       }
26322     }
26323
26324     private static class sendEOR_resultStandardScheme extends StandardScheme<sendEOR_result> {
26325
26326       public void read(org.apache.thrift.protocol.TProtocol iprot, sendEOR_result struct) throws org.apache.thrift.TException {
26327         org.apache.thrift.protocol.TField schemeField;
26328         iprot.readStructBegin();
26329         while (true)
26330         {
26331           schemeField = iprot.readFieldBegin();
26332           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
26333             break;
26334           }
26335           switch (schemeField.id) {
26336             case 0: // SUCCESS
26337               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
26338                 struct.success = iprot.readI32();
26339                 struct.setSuccessIsSet(true);
26340               } else {
26341                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26342               }
26343               break;
26344             default:
26345               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26346           }
26347           iprot.readFieldEnd();
26348         }
26349         iprot.readStructEnd();
26350
26351         // check for required fields of primitive type, which can't be checked in the validate method
26352         struct.validate();
26353       }
26354
26355       public void write(org.apache.thrift.protocol.TProtocol oprot, sendEOR_result struct) throws org.apache.thrift.TException {
26356         struct.validate();
26357
26358         oprot.writeStructBegin(STRUCT_DESC);
26359         if (struct.isSetSuccess()) {
26360           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26361           oprot.writeI32(struct.success);
26362           oprot.writeFieldEnd();
26363         }
26364         oprot.writeFieldStop();
26365         oprot.writeStructEnd();
26366       }
26367
26368     }
26369
26370     private static class sendEOR_resultTupleSchemeFactory implements SchemeFactory {
26371       public sendEOR_resultTupleScheme getScheme() {
26372         return new sendEOR_resultTupleScheme();
26373       }
26374     }
26375
26376     private static class sendEOR_resultTupleScheme extends TupleScheme<sendEOR_result> {
26377
26378       @Override
26379       public void write(org.apache.thrift.protocol.TProtocol prot, sendEOR_result struct) throws org.apache.thrift.TException {
26380         TTupleProtocol oprot = (TTupleProtocol) prot;
26381         BitSet optionals = new BitSet();
26382         if (struct.isSetSuccess()) {
26383           optionals.set(0);
26384         }
26385         oprot.writeBitSet(optionals, 1);
26386         if (struct.isSetSuccess()) {
26387           oprot.writeI32(struct.success);
26388         }
26389       }
26390
26391       @Override
26392       public void read(org.apache.thrift.protocol.TProtocol prot, sendEOR_result struct) throws org.apache.thrift.TException {
26393         TTupleProtocol iprot = (TTupleProtocol) prot;
26394         BitSet incoming = iprot.readBitSet(1);
26395         if (incoming.get(0)) {
26396           struct.success = iprot.readI32();
26397           struct.setSuccessIsSet(true);
26398         }
26399       }
26400     }
26401
26402   }
26403
26404 }