move vpnservice and cleanup poms
[netvirt.git] / 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, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
52
53     public int delVrf(String rd, af_afi afi, af_safi safi) 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, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
104
105     public void delVrf(String rd, af_afi afi, af_safi safi, 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, af_afi afi, af_safi safi) throws org.apache.thrift.TException
295     {
296       send_addVrf(l_type, rd, irts, erts, afi, safi);
297       return recv_addVrf();
298     }
299
300     public void send_addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts, af_afi afi, af_safi safi) 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       args.setAfi(afi);
308       args.setSafi(safi);
309       sendBase("addVrf", args);
310     }
311
312     public int recv_addVrf() throws org.apache.thrift.TException
313     {
314       addVrf_result result = new addVrf_result();
315       receiveBase(result, "addVrf");
316       if (result.isSetSuccess()) {
317         return result.success;
318       }
319       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVrf failed: unknown result");
320     }
321
322     @Override
323         public int delVrf(String rd, af_afi afi, af_safi safi) throws org.apache.thrift.TException
324     {
325       send_delVrf(rd, afi, safi);
326       return recv_delVrf();
327     }
328
329     public void send_delVrf(String rd, af_afi afi, af_safi safi) throws org.apache.thrift.TException
330     {
331       delVrf_args args = new delVrf_args();
332       args.setRd(rd);
333       args.setAfi(afi);
334       args.setSafi(safi);
335       sendBase("delVrf", args);
336     }
337
338     public int recv_delVrf() throws org.apache.thrift.TException
339     {
340       delVrf_result result = new delVrf_result();
341       receiveBase(result, "delVrf");
342       if (result.isSetSuccess()) {
343         return result.success;
344       }
345       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "delVrf failed: unknown result");
346     }
347
348     @Override
349         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
350     {
351       send_pushRoute(p_type, prefix, nexthop, rd, ethtag, esi, macaddress, l3label, l2label, enc_type, routermac, afi);
352       return recv_pushRoute();
353     }
354
355     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
356     {
357       pushRoute_args args = new pushRoute_args();
358       args.setP_type(p_type);
359       args.setPrefix(prefix);
360       args.setNexthop(nexthop);
361       args.setRd(rd);
362       args.setEthtag(ethtag);
363       args.setEsi(esi);
364       args.setMacaddress(macaddress);
365       args.setL3label(l3label);
366       args.setL2label(l2label);
367       args.setEnc_type(enc_type);
368       args.setRoutermac(routermac);
369       args.setAfi(afi);
370       sendBase("pushRoute", args);
371     }
372
373     public int recv_pushRoute() throws org.apache.thrift.TException
374     {
375       pushRoute_result result = new pushRoute_result();
376       receiveBase(result, "pushRoute");
377       if (result.isSetSuccess()) {
378         return result.success;
379       }
380       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "pushRoute failed: unknown result");
381     }
382
383     @Override
384         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
385     {
386       send_withdrawRoute(p_type, prefix, rd, ethtag, esi, macaddress, afi);
387       return recv_withdrawRoute();
388     }
389
390     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
391     {
392       withdrawRoute_args args = new withdrawRoute_args();
393       args.setP_type(p_type);
394       args.setPrefix(prefix);
395       args.setRd(rd);
396       args.setEthtag(ethtag);
397       args.setEsi(esi);
398       args.setMacaddress(macaddress);
399       args.setAfi(afi);
400       sendBase("withdrawRoute", args);
401     }
402
403     public int recv_withdrawRoute() throws org.apache.thrift.TException
404     {
405       withdrawRoute_result result = new withdrawRoute_result();
406       receiveBase(result, "withdrawRoute");
407       if (result.isSetSuccess()) {
408         return result.success;
409       }
410       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "withdrawRoute failed: unknown result");
411     }
412
413     @Override
414         public int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
415     {
416       send_setEbgpMultihop(peerIp, nHops);
417       return recv_setEbgpMultihop();
418     }
419
420     public void send_setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
421     {
422       setEbgpMultihop_args args = new setEbgpMultihop_args();
423       args.setPeerIp(peerIp);
424       args.setNHops(nHops);
425       sendBase("setEbgpMultihop", args);
426     }
427
428     public int recv_setEbgpMultihop() throws org.apache.thrift.TException
429     {
430       setEbgpMultihop_result result = new setEbgpMultihop_result();
431       receiveBase(result, "setEbgpMultihop");
432       if (result.isSetSuccess()) {
433         return result.success;
434       }
435       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setEbgpMultihop failed: unknown result");
436     }
437
438     @Override
439         public int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
440     {
441       send_unsetEbgpMultihop(peerIp);
442       return recv_unsetEbgpMultihop();
443     }
444
445     public void send_unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
446     {
447       unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
448       args.setPeerIp(peerIp);
449       sendBase("unsetEbgpMultihop", args);
450     }
451
452     public int recv_unsetEbgpMultihop() throws org.apache.thrift.TException
453     {
454       unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
455       receiveBase(result, "unsetEbgpMultihop");
456       if (result.isSetSuccess()) {
457         return result.success;
458       }
459       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetEbgpMultihop failed: unknown result");
460     }
461
462     @Override
463         public int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
464     {
465       send_setUpdateSource(peerIp, srcIp);
466       return recv_setUpdateSource();
467     }
468
469     public void send_setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
470     {
471       setUpdateSource_args args = new setUpdateSource_args();
472       args.setPeerIp(peerIp);
473       args.setSrcIp(srcIp);
474       sendBase("setUpdateSource", args);
475     }
476
477     public int recv_setUpdateSource() throws org.apache.thrift.TException
478     {
479       setUpdateSource_result result = new setUpdateSource_result();
480       receiveBase(result, "setUpdateSource");
481       if (result.isSetSuccess()) {
482         return result.success;
483       }
484       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setUpdateSource failed: unknown result");
485     }
486
487     @Override
488         public int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
489     {
490       send_unsetUpdateSource(peerIp);
491       return recv_unsetUpdateSource();
492     }
493
494     public void send_unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
495     {
496       unsetUpdateSource_args args = new unsetUpdateSource_args();
497       args.setPeerIp(peerIp);
498       sendBase("unsetUpdateSource", args);
499     }
500
501     public int recv_unsetUpdateSource() throws org.apache.thrift.TException
502     {
503       unsetUpdateSource_result result = new unsetUpdateSource_result();
504       receiveBase(result, "unsetUpdateSource");
505       if (result.isSetSuccess()) {
506         return result.success;
507       }
508       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetUpdateSource failed: unknown result");
509     }
510
511     @Override
512         public int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
513     {
514       send_enableAddressFamily(peerIp, afi, safi);
515       return recv_enableAddressFamily();
516     }
517
518     public void send_enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
519     {
520       enableAddressFamily_args args = new enableAddressFamily_args();
521       args.setPeerIp(peerIp);
522       args.setAfi(afi);
523       args.setSafi(safi);
524       sendBase("enableAddressFamily", args);
525     }
526
527     public int recv_enableAddressFamily() throws org.apache.thrift.TException
528     {
529       enableAddressFamily_result result = new enableAddressFamily_result();
530       receiveBase(result, "enableAddressFamily");
531       if (result.isSetSuccess()) {
532         return result.success;
533       }
534       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableAddressFamily failed: unknown result");
535     }
536
537     @Override
538         public int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
539     {
540       send_disableAddressFamily(peerIp, afi, safi);
541       return recv_disableAddressFamily();
542     }
543
544     public void send_disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
545     {
546       disableAddressFamily_args args = new disableAddressFamily_args();
547       args.setPeerIp(peerIp);
548       args.setAfi(afi);
549       args.setSafi(safi);
550       sendBase("disableAddressFamily", args);
551     }
552
553     public int recv_disableAddressFamily() throws org.apache.thrift.TException
554     {
555       disableAddressFamily_result result = new disableAddressFamily_result();
556       receiveBase(result, "disableAddressFamily");
557       if (result.isSetSuccess()) {
558         return result.success;
559       }
560       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableAddressFamily failed: unknown result");
561     }
562
563     @Override
564         public int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
565     {
566       send_setLogConfig(logFileName, logLevel);
567       return recv_setLogConfig();
568     }
569
570     public void send_setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
571     {
572       setLogConfig_args args = new setLogConfig_args();
573       args.setLogFileName(logFileName);
574       args.setLogLevel(logLevel);
575       sendBase("setLogConfig", args);
576     }
577
578     public int recv_setLogConfig() throws org.apache.thrift.TException
579     {
580       setLogConfig_result result = new setLogConfig_result();
581       receiveBase(result, "setLogConfig");
582       if (result.isSetSuccess()) {
583         return result.success;
584       }
585       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setLogConfig failed: unknown result");
586     }
587
588     @Override
589         public int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
590     {
591       send_enableGracefulRestart(stalepathTime);
592       return recv_enableGracefulRestart();
593     }
594
595     public void send_enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
596     {
597       enableGracefulRestart_args args = new enableGracefulRestart_args();
598       args.setStalepathTime(stalepathTime);
599       sendBase("enableGracefulRestart", args);
600     }
601
602     public int recv_enableGracefulRestart() throws org.apache.thrift.TException
603     {
604       enableGracefulRestart_result result = new enableGracefulRestart_result();
605       receiveBase(result, "enableGracefulRestart");
606       if (result.isSetSuccess()) {
607         return result.success;
608       }
609       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableGracefulRestart failed: unknown result");
610     }
611
612     @Override
613         public int disableGracefulRestart() throws org.apache.thrift.TException
614     {
615       send_disableGracefulRestart();
616       return recv_disableGracefulRestart();
617     }
618
619     public void send_disableGracefulRestart() throws org.apache.thrift.TException
620     {
621       disableGracefulRestart_args args = new disableGracefulRestart_args();
622       sendBase("disableGracefulRestart", args);
623     }
624
625     public int recv_disableGracefulRestart() throws org.apache.thrift.TException
626     {
627       disableGracefulRestart_result result = new disableGracefulRestart_result();
628       receiveBase(result, "disableGracefulRestart");
629       if (result.isSetSuccess()) {
630         return result.success;
631       }
632       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableGracefulRestart failed: unknown result");
633     }
634
635     @Override
636         public Routes getRoutes(protocol_type p_type, int optype, int winSize, af_afi afi) throws org.apache.thrift.TException
637     {
638       send_getRoutes(p_type, optype, winSize, afi);
639       return recv_getRoutes();
640     }
641
642     public void send_getRoutes(protocol_type p_type, int optype, int winSize, af_afi afi) throws org.apache.thrift.TException
643     {
644       getRoutes_args args = new getRoutes_args();
645       args.setP_type(p_type);
646       args.setOptype(optype);
647       args.setWinSize(winSize);
648       args.setAfi(afi);
649       sendBase("getRoutes", args);
650     }
651
652     public Routes recv_getRoutes() throws org.apache.thrift.TException
653     {
654       getRoutes_result result = new getRoutes_result();
655       receiveBase(result, "getRoutes");
656       if (result.isSetSuccess()) {
657         return result.success;
658       }
659       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoutes failed: unknown result");
660     }
661
662     @Override
663         public int enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
664     {
665       send_enableMultipath(afi, safi);
666       return recv_enableMultipath();
667     }
668
669     public void send_enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
670     {
671       enableMultipath_args args = new enableMultipath_args();
672       args.setAfi(afi);
673       args.setSafi(safi);
674       sendBase("enableMultipath", args);
675     }
676
677     public int recv_enableMultipath() throws org.apache.thrift.TException
678     {
679       enableMultipath_result result = new enableMultipath_result();
680       receiveBase(result, "enableMultipath");
681       if (result.isSetSuccess()) {
682         return result.success;
683       }
684       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableMultipath failed: unknown result");
685     }
686
687     @Override
688         public int disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
689     {
690       send_disableMultipath(afi, safi);
691       return recv_disableMultipath();
692     }
693
694     public void send_disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
695     {
696       disableMultipath_args args = new disableMultipath_args();
697       args.setAfi(afi);
698       args.setSafi(safi);
699       sendBase("disableMultipath", args);
700     }
701
702     public int recv_disableMultipath() throws org.apache.thrift.TException
703     {
704       disableMultipath_result result = new disableMultipath_result();
705       receiveBase(result, "disableMultipath");
706       if (result.isSetSuccess()) {
707         return result.success;
708       }
709       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableMultipath failed: unknown result");
710     }
711
712     @Override
713         public int multipaths(String rd, int maxPath) throws org.apache.thrift.TException
714     {
715       send_multipaths(rd, maxPath);
716       return recv_multipaths();
717     }
718
719     public void send_multipaths(String rd, int maxPath) throws org.apache.thrift.TException
720     {
721       multipaths_args args = new multipaths_args();
722       args.setRd(rd);
723       args.setMaxPath(maxPath);
724       sendBase("multipaths", args);
725     }
726
727     public int recv_multipaths() throws org.apache.thrift.TException
728     {
729       multipaths_result result = new multipaths_result();
730       receiveBase(result, "multipaths");
731       if (result.isSetSuccess()) {
732         return result.success;
733       }
734       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "multipaths failed: unknown result");
735     }
736
737     public int enableEORDelay(int delay) throws org.apache.thrift.TException
738     {
739       send_enableEORDelay(delay);
740       return recv_enableEORDelay();
741     }
742
743     public void send_enableEORDelay(int delay) throws org.apache.thrift.TException
744     {
745       enableEORDelay_args args = new enableEORDelay_args();
746       args.setDelay(delay);
747       sendBase("enableEORDelay", args);
748     }
749
750     public int recv_enableEORDelay() throws org.apache.thrift.TException
751     {
752       enableEORDelay_result result = new enableEORDelay_result();
753       receiveBase(result, "enableEORDelay");
754       if (result.isSetSuccess()) {
755         return result.success;
756       }
757       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableEORDelay failed: unknown result");
758     }
759
760     public int sendEOR() throws org.apache.thrift.TException
761     {
762       send_sendEOR();
763       return recv_sendEOR();
764     }
765
766     public void send_sendEOR() throws org.apache.thrift.TException
767     {
768       sendEOR_args args = new sendEOR_args();
769       sendBase("sendEOR", args);
770     }
771
772     public int recv_sendEOR() throws org.apache.thrift.TException
773     {
774       sendEOR_result result = new sendEOR_result();
775       receiveBase(result, "sendEOR");
776       if (result.isSetSuccess()) {
777         return result.success;
778       }
779       throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sendEOR failed: unknown result");
780     }
781
782   }
783   public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
784     public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
785       private final org.apache.thrift.async.TAsyncClientManager clientManager;
786       private final org.apache.thrift.protocol.TProtocolFactory protocolFactory;
787       public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
788         this.clientManager = clientManager;
789         this.protocolFactory = protocolFactory;
790       }
791       @Override
792         public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
793         return new AsyncClient(protocolFactory, clientManager, transport);
794       }
795     }
796
797     public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
798       super(protocolFactory, clientManager, transport);
799     }
800
801     @Override
802         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 {
803       checkReady();
804       startBgp_call method_call = new startBgp_call(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFlush, resultHandler, this, ___protocolFactory, ___transport);
805       this.___currentMethod = method_call;
806       ___manager.call(method_call);
807     }
808
809     public static class startBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
810       private final long asNumber;
811       private final String routerId;
812       private final int port;
813       private final int holdTime;
814       private final int keepAliveTime;
815       private final int stalepathTime;
816       private final boolean announceFlush;
817       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 {
818         super(client, protocolFactory, transport, resultHandler, false);
819         this.asNumber = asNumber;
820         this.routerId = routerId;
821         this.port = port;
822         this.holdTime = holdTime;
823         this.keepAliveTime = keepAliveTime;
824         this.stalepathTime = stalepathTime;
825         this.announceFlush = announceFlush;
826       }
827
828       @Override
829         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
830         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
831         startBgp_args args = new startBgp_args();
832         args.setAsNumber(asNumber);
833         args.setRouterId(routerId);
834         args.setPort(port);
835         args.setHoldTime(holdTime);
836         args.setKeepAliveTime(keepAliveTime);
837         args.setStalepathTime(stalepathTime);
838         args.setAnnounceFlush(announceFlush);
839         args.write(prot);
840         prot.writeMessageEnd();
841       }
842
843       public int getResult() throws org.apache.thrift.TException {
844         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
845           throw new IllegalStateException("Method call not finished!");
846         }
847         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
848         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
849         return (new Client(prot)).recv_startBgp();
850       }
851     }
852
853     @Override
854         public void stopBgp(long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
855       checkReady();
856       stopBgp_call method_call = new stopBgp_call(asNumber, resultHandler, this, ___protocolFactory, ___transport);
857       this.___currentMethod = method_call;
858       ___manager.call(method_call);
859     }
860
861     public static class stopBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
862       private final long asNumber;
863       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 {
864         super(client, protocolFactory, transport, resultHandler, false);
865         this.asNumber = asNumber;
866       }
867
868       @Override
869         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
870         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("stopBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
871         stopBgp_args args = new stopBgp_args();
872         args.setAsNumber(asNumber);
873         args.write(prot);
874         prot.writeMessageEnd();
875       }
876
877       public int getResult() throws org.apache.thrift.TException {
878         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
879           throw new IllegalStateException("Method call not finished!");
880         }
881         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
882         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
883         return (new Client(prot)).recv_stopBgp();
884       }
885     }
886
887     @Override
888         public void createPeer(String ipAddress, long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
889       checkReady();
890       createPeer_call method_call = new createPeer_call(ipAddress, asNumber, resultHandler, this, ___protocolFactory, ___transport);
891       this.___currentMethod = method_call;
892       ___manager.call(method_call);
893     }
894
895     public static class createPeer_call extends org.apache.thrift.async.TAsyncMethodCall {
896       private final String ipAddress;
897       private final long asNumber;
898       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 {
899         super(client, protocolFactory, transport, resultHandler, false);
900         this.ipAddress = ipAddress;
901         this.asNumber = asNumber;
902       }
903
904       @Override
905         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
906         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
907         createPeer_args args = new createPeer_args();
908         args.setIpAddress(ipAddress);
909         args.setAsNumber(asNumber);
910         args.write(prot);
911         prot.writeMessageEnd();
912       }
913
914       public int getResult() throws org.apache.thrift.TException {
915         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
916           throw new IllegalStateException("Method call not finished!");
917         }
918         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
919         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
920         return (new Client(prot)).recv_createPeer();
921       }
922     }
923
924     @Override
925         public void setPeerSecret(String ipAddress, String rfc2385_sharedSecret, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
926       checkReady();
927       setPeerSecret_call method_call = new setPeerSecret_call(ipAddress, rfc2385_sharedSecret, resultHandler, this, ___protocolFactory, ___transport);
928       this.___currentMethod = method_call;
929       ___manager.call(method_call);
930     }
931
932     public static class setPeerSecret_call extends org.apache.thrift.async.TAsyncMethodCall {
933       private final String ipAddress;
934       private final String rfc2385_sharedSecret;
935       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 {
936         super(client, protocolFactory, transport, resultHandler, false);
937         this.ipAddress = ipAddress;
938         this.rfc2385_sharedSecret = rfc2385_sharedSecret;
939       }
940
941       @Override
942         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
943         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setPeerSecret", org.apache.thrift.protocol.TMessageType.CALL, 0));
944         setPeerSecret_args args = new setPeerSecret_args();
945         args.setIpAddress(ipAddress);
946         args.setRfc2385_sharedSecret(rfc2385_sharedSecret);
947         args.write(prot);
948         prot.writeMessageEnd();
949       }
950
951       public int getResult() throws org.apache.thrift.TException {
952         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
953           throw new IllegalStateException("Method call not finished!");
954         }
955         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
956         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
957         return (new Client(prot)).recv_setPeerSecret();
958       }
959     }
960
961     @Override
962         public void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
963       checkReady();
964       deletePeer_call method_call = new deletePeer_call(ipAddress, resultHandler, this, ___protocolFactory, ___transport);
965       this.___currentMethod = method_call;
966       ___manager.call(method_call);
967     }
968
969     public static class deletePeer_call extends org.apache.thrift.async.TAsyncMethodCall {
970       private final String ipAddress;
971       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 {
972         super(client, protocolFactory, transport, resultHandler, false);
973         this.ipAddress = ipAddress;
974       }
975
976       @Override
977         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
978         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deletePeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
979         deletePeer_args args = new deletePeer_args();
980         args.setIpAddress(ipAddress);
981         args.write(prot);
982         prot.writeMessageEnd();
983       }
984
985       public int getResult() throws org.apache.thrift.TException {
986         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
987           throw new IllegalStateException("Method call not finished!");
988         }
989         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
990         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
991         return (new Client(prot)).recv_deletePeer();
992       }
993     }
994
995     @Override
996         public void addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
997       checkReady();
998       addVrf_call method_call = new addVrf_call(l_type, rd, irts, erts, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
999       this.___currentMethod = method_call;
1000       ___manager.call(method_call);
1001     }
1002
1003     public static class addVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
1004       private layer_type l_type;
1005       private String rd;
1006       private List<String> irts;
1007       private List<String> erts;
1008       private af_afi afi;
1009       private af_safi safi;
1010       public addVrf_call(layer_type l_type, String rd, List<String> irts, List<String> erts, 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 {
1011         super(client, protocolFactory, transport, resultHandler, false);
1012         this.l_type = l_type;
1013         this.rd = rd;
1014         this.irts = irts;
1015         this.erts = erts;
1016         this.afi = afi;
1017         this.safi = safi;
1018       }
1019
1020       @Override
1021         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1022         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
1023         addVrf_args args = new addVrf_args();
1024         args.setL_type(l_type);
1025         args.setRd(rd);
1026         args.setIrts(irts);
1027         args.setErts(erts);
1028         args.setAfi(afi);
1029         args.setSafi(safi);
1030         args.write(prot);
1031         prot.writeMessageEnd();
1032       }
1033
1034       public int getResult() throws org.apache.thrift.TException {
1035         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1036           throw new IllegalStateException("Method call not finished!");
1037         }
1038         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1039         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1040         return (new Client(prot)).recv_addVrf();
1041       }
1042     }
1043
1044     @Override
1045         public void delVrf(String rd, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1046       checkReady();
1047       delVrf_call method_call = new delVrf_call(rd, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1048       this.___currentMethod = method_call;
1049       ___manager.call(method_call);
1050     }
1051
1052     public static class delVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
1053       private String rd;
1054       private af_afi afi;
1055       private af_safi safi;
1056       public delVrf_call(String rd, 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 {
1057         super(client, protocolFactory, transport, resultHandler, false);
1058         this.rd = rd;
1059         this.afi = afi;
1060         this.safi = safi;
1061       }
1062
1063       @Override
1064         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1065         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("delVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
1066         delVrf_args args = new delVrf_args();
1067         args.setRd(rd);
1068         args.setAfi(afi);
1069         args.setSafi(safi);
1070         args.write(prot);
1071         prot.writeMessageEnd();
1072       }
1073
1074       public int getResult() throws org.apache.thrift.TException {
1075         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1076           throw new IllegalStateException("Method call not finished!");
1077         }
1078         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1079         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1080         return (new Client(prot)).recv_delVrf();
1081       }
1082     }
1083
1084     @Override
1085         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 {
1086       checkReady();
1087       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);
1088       this.___currentMethod = method_call;
1089       ___manager.call(method_call);
1090     }
1091
1092     public static class pushRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
1093       private final protocol_type p_type;
1094       private final String prefix;
1095       private final String nexthop;
1096       private final String rd;
1097       private final int ethtag;
1098       private final String esi;
1099       private final String macaddress;
1100       private final int l3label;
1101       private final int l2label;
1102       private final encap_type enc_type;
1103       private final String routermac;
1104       private final af_afi afi;
1105       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 {
1106         super(client, protocolFactory, transport, resultHandler, false);
1107         this.p_type = p_type;
1108         this.prefix = prefix;
1109         this.nexthop = nexthop;
1110         this.rd = rd;
1111         this.ethtag = ethtag;
1112         this.esi = esi;
1113         this.macaddress = macaddress;
1114         this.l3label = l3label;
1115         this.l2label = l2label;
1116         this.enc_type = enc_type;
1117         this.routermac = routermac;
1118         this.afi = afi;
1119       }
1120
1121       @Override
1122         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1123         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("pushRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
1124         pushRoute_args args = new pushRoute_args();
1125         args.setP_type(p_type);
1126         args.setPrefix(prefix);
1127         args.setNexthop(nexthop);
1128         args.setRd(rd);
1129         args.setEthtag(ethtag);
1130         args.setEsi(esi);
1131         args.setMacaddress(macaddress);
1132         args.setL3label(l3label);
1133         args.setL2label(l2label);
1134         args.setEnc_type(enc_type);
1135         args.setRoutermac(routermac);
1136         args.setAfi(afi);
1137         args.write(prot);
1138         prot.writeMessageEnd();
1139       }
1140
1141       public int getResult() throws org.apache.thrift.TException {
1142         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1143           throw new IllegalStateException("Method call not finished!");
1144         }
1145         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1146         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1147         return (new Client(prot)).recv_pushRoute();
1148       }
1149     }
1150
1151     @Override
1152         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 {
1153       checkReady();
1154       withdrawRoute_call method_call = new withdrawRoute_call(p_type, prefix, rd, ethtag, esi, macaddress, afi, resultHandler, this, ___protocolFactory, ___transport);
1155       this.___currentMethod = method_call;
1156       ___manager.call(method_call);
1157     }
1158
1159     public static class withdrawRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
1160       private final protocol_type p_type;
1161       private final String prefix;
1162       private final String rd;
1163       private final int ethtag;
1164       private final String esi;
1165       private final String macaddress;
1166       private final af_afi afi;
1167       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 {
1168         super(client, protocolFactory, transport, resultHandler, false);
1169         this.p_type = p_type;
1170         this.prefix = prefix;
1171         this.rd = rd;
1172         this.ethtag = ethtag;
1173         this.esi = esi;
1174         this.macaddress = macaddress;
1175         this.afi = afi;
1176       }
1177
1178       @Override
1179         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1180         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("withdrawRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
1181         withdrawRoute_args args = new withdrawRoute_args();
1182         args.setP_type(p_type);
1183         args.setPrefix(prefix);
1184         args.setRd(rd);
1185         args.setEthtag(ethtag);
1186         args.setEsi(esi);
1187         args.setMacaddress(macaddress);
1188         args.setAfi(afi);
1189         args.write(prot);
1190         prot.writeMessageEnd();
1191       }
1192
1193       public int getResult() throws org.apache.thrift.TException {
1194         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1195           throw new IllegalStateException("Method call not finished!");
1196         }
1197         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1198         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1199         return (new Client(prot)).recv_withdrawRoute();
1200       }
1201     }
1202
1203     @Override
1204         public void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1205       checkReady();
1206       setEbgpMultihop_call method_call = new setEbgpMultihop_call(peerIp, nHops, resultHandler, this, ___protocolFactory, ___transport);
1207       this.___currentMethod = method_call;
1208       ___manager.call(method_call);
1209     }
1210
1211     public static class setEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
1212       private final String peerIp;
1213       private final int nHops;
1214       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 {
1215         super(client, protocolFactory, transport, resultHandler, false);
1216         this.peerIp = peerIp;
1217         this.nHops = nHops;
1218       }
1219
1220       @Override
1221         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1222         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
1223         setEbgpMultihop_args args = new setEbgpMultihop_args();
1224         args.setPeerIp(peerIp);
1225         args.setNHops(nHops);
1226         args.write(prot);
1227         prot.writeMessageEnd();
1228       }
1229
1230       public int getResult() throws org.apache.thrift.TException {
1231         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1232           throw new IllegalStateException("Method call not finished!");
1233         }
1234         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1235         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1236         return (new Client(prot)).recv_setEbgpMultihop();
1237       }
1238     }
1239
1240     @Override
1241         public void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1242       checkReady();
1243       unsetEbgpMultihop_call method_call = new unsetEbgpMultihop_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
1244       this.___currentMethod = method_call;
1245       ___manager.call(method_call);
1246     }
1247
1248     public static class unsetEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
1249       private final String peerIp;
1250       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 {
1251         super(client, protocolFactory, transport, resultHandler, false);
1252         this.peerIp = peerIp;
1253       }
1254
1255       @Override
1256         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1257         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
1258         unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
1259         args.setPeerIp(peerIp);
1260         args.write(prot);
1261         prot.writeMessageEnd();
1262       }
1263
1264       public int getResult() throws org.apache.thrift.TException {
1265         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1266           throw new IllegalStateException("Method call not finished!");
1267         }
1268         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1269         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1270         return (new Client(prot)).recv_unsetEbgpMultihop();
1271       }
1272     }
1273
1274     @Override
1275         public void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1276       checkReady();
1277       setUpdateSource_call method_call = new setUpdateSource_call(peerIp, srcIp, resultHandler, this, ___protocolFactory, ___transport);
1278       this.___currentMethod = method_call;
1279       ___manager.call(method_call);
1280     }
1281
1282     public static class setUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
1283       private final String peerIp;
1284       private final String srcIp;
1285       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 {
1286         super(client, protocolFactory, transport, resultHandler, false);
1287         this.peerIp = peerIp;
1288         this.srcIp = srcIp;
1289       }
1290
1291       @Override
1292         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1293         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
1294         setUpdateSource_args args = new setUpdateSource_args();
1295         args.setPeerIp(peerIp);
1296         args.setSrcIp(srcIp);
1297         args.write(prot);
1298         prot.writeMessageEnd();
1299       }
1300
1301       public int getResult() throws org.apache.thrift.TException {
1302         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1303           throw new IllegalStateException("Method call not finished!");
1304         }
1305         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1306         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1307         return (new Client(prot)).recv_setUpdateSource();
1308       }
1309     }
1310
1311     @Override
1312         public void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1313       checkReady();
1314       unsetUpdateSource_call method_call = new unsetUpdateSource_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
1315       this.___currentMethod = method_call;
1316       ___manager.call(method_call);
1317     }
1318
1319     public static class unsetUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
1320       private final String peerIp;
1321       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 {
1322         super(client, protocolFactory, transport, resultHandler, false);
1323         this.peerIp = peerIp;
1324       }
1325
1326       @Override
1327         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1328         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
1329         unsetUpdateSource_args args = new unsetUpdateSource_args();
1330         args.setPeerIp(peerIp);
1331         args.write(prot);
1332         prot.writeMessageEnd();
1333       }
1334
1335       public int getResult() throws org.apache.thrift.TException {
1336         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1337           throw new IllegalStateException("Method call not finished!");
1338         }
1339         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1340         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1341         return (new Client(prot)).recv_unsetUpdateSource();
1342       }
1343     }
1344
1345     @Override
1346         public void enableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1347       checkReady();
1348       enableAddressFamily_call method_call = new enableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1349       this.___currentMethod = method_call;
1350       ___manager.call(method_call);
1351     }
1352
1353     public static class enableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1354       private final String peerIp;
1355       private final af_afi afi;
1356       private final af_safi safi;
1357       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 {
1358         super(client, protocolFactory, transport, resultHandler, false);
1359         this.peerIp = peerIp;
1360         this.afi = afi;
1361         this.safi = safi;
1362       }
1363
1364       @Override
1365         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1366         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1367         enableAddressFamily_args args = new enableAddressFamily_args();
1368         args.setPeerIp(peerIp);
1369         args.setAfi(afi);
1370         args.setSafi(safi);
1371         args.write(prot);
1372         prot.writeMessageEnd();
1373       }
1374
1375       public int getResult() throws org.apache.thrift.TException {
1376         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1377           throw new IllegalStateException("Method call not finished!");
1378         }
1379         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1380         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1381         return (new Client(prot)).recv_enableAddressFamily();
1382       }
1383     }
1384
1385     @Override
1386         public void disableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1387       checkReady();
1388       disableAddressFamily_call method_call = new disableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1389       this.___currentMethod = method_call;
1390       ___manager.call(method_call);
1391     }
1392
1393     public static class disableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1394       private final String peerIp;
1395       private final af_afi afi;
1396       private final af_safi safi;
1397       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 {
1398         super(client, protocolFactory, transport, resultHandler, false);
1399         this.peerIp = peerIp;
1400         this.afi = afi;
1401         this.safi = safi;
1402       }
1403
1404       @Override
1405         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1406         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1407         disableAddressFamily_args args = new disableAddressFamily_args();
1408         args.setPeerIp(peerIp);
1409         args.setAfi(afi);
1410         args.setSafi(safi);
1411         args.write(prot);
1412         prot.writeMessageEnd();
1413       }
1414
1415       public int getResult() throws org.apache.thrift.TException {
1416         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1417           throw new IllegalStateException("Method call not finished!");
1418         }
1419         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1420         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1421         return (new Client(prot)).recv_disableAddressFamily();
1422       }
1423     }
1424
1425     @Override
1426         public void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1427       checkReady();
1428       setLogConfig_call method_call = new setLogConfig_call(logFileName, logLevel, resultHandler, this, ___protocolFactory, ___transport);
1429       this.___currentMethod = method_call;
1430       ___manager.call(method_call);
1431     }
1432
1433     public static class setLogConfig_call extends org.apache.thrift.async.TAsyncMethodCall {
1434       private final String logFileName;
1435       private final String logLevel;
1436       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 {
1437         super(client, protocolFactory, transport, resultHandler, false);
1438         this.logFileName = logFileName;
1439         this.logLevel = logLevel;
1440       }
1441
1442       @Override
1443         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1444         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setLogConfig", org.apache.thrift.protocol.TMessageType.CALL, 0));
1445         setLogConfig_args args = new setLogConfig_args();
1446         args.setLogFileName(logFileName);
1447         args.setLogLevel(logLevel);
1448         args.write(prot);
1449         prot.writeMessageEnd();
1450       }
1451
1452       public int getResult() throws org.apache.thrift.TException {
1453         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1454           throw new IllegalStateException("Method call not finished!");
1455         }
1456         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1457         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1458         return (new Client(prot)).recv_setLogConfig();
1459       }
1460     }
1461
1462     @Override
1463         public void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1464       checkReady();
1465       enableGracefulRestart_call method_call = new enableGracefulRestart_call(stalepathTime, resultHandler, this, ___protocolFactory, ___transport);
1466       this.___currentMethod = method_call;
1467       ___manager.call(method_call);
1468     }
1469
1470     public static class enableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1471       private final int stalepathTime;
1472       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 {
1473         super(client, protocolFactory, transport, resultHandler, false);
1474         this.stalepathTime = stalepathTime;
1475       }
1476
1477       @Override
1478         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1479         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1480         enableGracefulRestart_args args = new enableGracefulRestart_args();
1481         args.setStalepathTime(stalepathTime);
1482         args.write(prot);
1483         prot.writeMessageEnd();
1484       }
1485
1486       public int getResult() throws org.apache.thrift.TException {
1487         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1488           throw new IllegalStateException("Method call not finished!");
1489         }
1490         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1491         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1492         return (new Client(prot)).recv_enableGracefulRestart();
1493       }
1494     }
1495
1496     @Override
1497         public void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1498       checkReady();
1499       disableGracefulRestart_call method_call = new disableGracefulRestart_call(resultHandler, this, ___protocolFactory, ___transport);
1500       this.___currentMethod = method_call;
1501       ___manager.call(method_call);
1502     }
1503
1504     public static class disableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1505       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 {
1506         super(client, protocolFactory, transport, resultHandler, false);
1507       }
1508
1509       @Override
1510         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1511         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1512         disableGracefulRestart_args args = new disableGracefulRestart_args();
1513         args.write(prot);
1514         prot.writeMessageEnd();
1515       }
1516
1517       public int getResult() throws org.apache.thrift.TException {
1518         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1519           throw new IllegalStateException("Method call not finished!");
1520         }
1521         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1522         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1523         return (new Client(prot)).recv_disableGracefulRestart();
1524       }
1525     }
1526
1527     @Override
1528         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 {
1529       checkReady();
1530       getRoutes_call method_call = new getRoutes_call(p_type, optype, winSize, afi, resultHandler, this, ___protocolFactory, ___transport);
1531       this.___currentMethod = method_call;
1532       ___manager.call(method_call);
1533     }
1534
1535     public static class getRoutes_call extends org.apache.thrift.async.TAsyncMethodCall {
1536       private final protocol_type p_type;
1537       private final int optype;
1538       private final int winSize;
1539       private final af_afi afi;
1540       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 {
1541         super(client, protocolFactory, transport, resultHandler, false);
1542         this.p_type = p_type;
1543         this.optype = optype;
1544         this.winSize = winSize;
1545         this.afi = afi;
1546       }
1547
1548       @Override
1549         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1550         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoutes", org.apache.thrift.protocol.TMessageType.CALL, 0));
1551         getRoutes_args args = new getRoutes_args();
1552         args.setP_type(p_type);
1553         args.setOptype(optype);
1554         args.setWinSize(winSize);
1555         args.setAfi(afi);
1556         args.write(prot);
1557         prot.writeMessageEnd();
1558       }
1559
1560       public Routes getResult() throws org.apache.thrift.TException {
1561         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1562           throw new IllegalStateException("Method call not finished!");
1563         }
1564         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1565         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1566         return (new Client(prot)).recv_getRoutes();
1567       }
1568     }
1569
1570     @Override
1571         public void enableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1572       checkReady();
1573       enableMultipath_call method_call = new enableMultipath_call(afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1574       this.___currentMethod = method_call;
1575       ___manager.call(method_call);
1576     }
1577
1578     public static class enableMultipath_call extends org.apache.thrift.async.TAsyncMethodCall {
1579       private final af_afi afi;
1580       private final af_safi safi;
1581       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 {
1582         super(client, protocolFactory, transport, resultHandler, false);
1583         this.afi = afi;
1584         this.safi = safi;
1585       }
1586
1587       @Override
1588         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1589         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableMultipath", org.apache.thrift.protocol.TMessageType.CALL, 0));
1590         enableMultipath_args args = new enableMultipath_args();
1591         args.setAfi(afi);
1592         args.setSafi(safi);
1593         args.write(prot);
1594         prot.writeMessageEnd();
1595       }
1596
1597       public int getResult() throws org.apache.thrift.TException {
1598         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1599           throw new IllegalStateException("Method call not finished!");
1600         }
1601         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1602         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1603         return (new Client(prot)).recv_enableMultipath();
1604       }
1605     }
1606
1607     @Override
1608         public void disableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1609       checkReady();
1610       disableMultipath_call method_call = new disableMultipath_call(afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1611       this.___currentMethod = method_call;
1612       ___manager.call(method_call);
1613     }
1614
1615     public static class disableMultipath_call extends org.apache.thrift.async.TAsyncMethodCall {
1616       private final af_afi afi;
1617       private final af_safi safi;
1618       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 {
1619         super(client, protocolFactory, transport, resultHandler, false);
1620         this.afi = afi;
1621         this.safi = safi;
1622       }
1623
1624       @Override
1625         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1626         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableMultipath", org.apache.thrift.protocol.TMessageType.CALL, 0));
1627         disableMultipath_args args = new disableMultipath_args();
1628         args.setAfi(afi);
1629         args.setSafi(safi);
1630         args.write(prot);
1631         prot.writeMessageEnd();
1632       }
1633
1634       public int getResult() throws org.apache.thrift.TException {
1635         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1636           throw new IllegalStateException("Method call not finished!");
1637         }
1638         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1639         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1640         return (new Client(prot)).recv_disableMultipath();
1641       }
1642     }
1643
1644     @Override
1645         public void multipaths(String rd, int maxPath, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1646       checkReady();
1647       multipaths_call method_call = new multipaths_call(rd, maxPath, resultHandler, this, ___protocolFactory, ___transport);
1648       this.___currentMethod = method_call;
1649       ___manager.call(method_call);
1650     }
1651
1652     public static class multipaths_call extends org.apache.thrift.async.TAsyncMethodCall {
1653       private final String rd;
1654       private final int maxPath;
1655       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 {
1656         super(client, protocolFactory, transport, resultHandler, false);
1657         this.rd = rd;
1658         this.maxPath = maxPath;
1659       }
1660
1661       @Override
1662         public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1663         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("multipaths", org.apache.thrift.protocol.TMessageType.CALL, 0));
1664         multipaths_args args = new multipaths_args();
1665         args.setRd(rd);
1666         args.setMaxPath(maxPath);
1667         args.write(prot);
1668         prot.writeMessageEnd();
1669       }
1670
1671       public int getResult() throws org.apache.thrift.TException {
1672         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1673           throw new IllegalStateException("Method call not finished!");
1674         }
1675         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1676         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1677         return new Client(prot).recv_multipaths();
1678       }
1679     }
1680
1681     public void enableEORDelay(int delay, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1682       checkReady();
1683       enableEORDelay_call method_call = new enableEORDelay_call(delay, resultHandler, this, ___protocolFactory, ___transport);
1684       this.___currentMethod = method_call;
1685       ___manager.call(method_call);
1686     }
1687
1688     public static class enableEORDelay_call extends org.apache.thrift.async.TAsyncMethodCall {
1689       private int delay;
1690       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 {
1691         super(client, protocolFactory, transport, resultHandler, false);
1692         this.delay = delay;
1693       }
1694
1695       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1696         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableEORDelay", org.apache.thrift.protocol.TMessageType.CALL, 0));
1697         enableEORDelay_args args = new enableEORDelay_args();
1698         args.setDelay(delay);
1699         args.write(prot);
1700         prot.writeMessageEnd();
1701       }
1702
1703       public int getResult() throws org.apache.thrift.TException {
1704         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1705           throw new IllegalStateException("Method call not finished!");
1706         }
1707         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1708         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1709         return new Client(prot).recv_enableEORDelay();
1710       }
1711     }
1712
1713     public void sendEOR(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1714       checkReady();
1715       sendEOR_call method_call = new sendEOR_call(resultHandler, this, ___protocolFactory, ___transport);
1716       this.___currentMethod = method_call;
1717       ___manager.call(method_call);
1718     }
1719
1720     public static class sendEOR_call extends org.apache.thrift.async.TAsyncMethodCall {
1721       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 {
1722         super(client, protocolFactory, transport, resultHandler, false);
1723       }
1724
1725       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1726         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendEOR", org.apache.thrift.protocol.TMessageType.CALL, 0));
1727         sendEOR_args args = new sendEOR_args();
1728         args.write(prot);
1729         prot.writeMessageEnd();
1730       }
1731
1732       public int getResult() throws org.apache.thrift.TException {
1733         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1734           throw new IllegalStateException("Method call not finished!");
1735         }
1736         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1737         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1738         return (new Client(prot)).recv_sendEOR();
1739       }
1740     }
1741
1742   }
1743
1744   public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
1745     private static final Logger LOG = LoggerFactory.getLogger(Processor.class.getName());
1746     public Processor(I iface) {
1747       super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1748     }
1749
1750     protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1751       super(iface, getProcessMap(processMap));
1752     }
1753
1754     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) {
1755       processMap.put("startBgp", new startBgp());
1756       processMap.put("stopBgp", new stopBgp());
1757       processMap.put("createPeer", new createPeer());
1758       processMap.put("setPeerSecret", new setPeerSecret());
1759       processMap.put("deletePeer", new deletePeer());
1760       processMap.put("addVrf", new addVrf());
1761       processMap.put("delVrf", new delVrf());
1762       processMap.put("pushRoute", new pushRoute());
1763       processMap.put("withdrawRoute", new withdrawRoute());
1764       processMap.put("setEbgpMultihop", new setEbgpMultihop());
1765       processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
1766       processMap.put("setUpdateSource", new setUpdateSource());
1767       processMap.put("unsetUpdateSource", new unsetUpdateSource());
1768       processMap.put("enableAddressFamily", new enableAddressFamily());
1769       processMap.put("disableAddressFamily", new disableAddressFamily());
1770       processMap.put("setLogConfig", new setLogConfig());
1771       processMap.put("enableGracefulRestart", new enableGracefulRestart());
1772       processMap.put("disableGracefulRestart", new disableGracefulRestart());
1773       processMap.put("getRoutes", new getRoutes());
1774       processMap.put("enableMultipath", new enableMultipath());
1775       processMap.put("disableMultipath", new disableMultipath());
1776       processMap.put("multipaths", new multipaths());
1777       processMap.put("enableEORDelay", new enableEORDelay());
1778       processMap.put("sendEOR", new sendEOR());
1779       return processMap;
1780     }
1781
1782     public static class startBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, startBgp_args> {
1783       public startBgp() {
1784         super("startBgp");
1785       }
1786
1787       @Override
1788         public startBgp_args getEmptyArgsInstance() {
1789         return new startBgp_args();
1790       }
1791
1792       @Override
1793         protected boolean isOneway() {
1794         return false;
1795       }
1796
1797       @Override
1798         public startBgp_result getResult(I iface, startBgp_args args) throws org.apache.thrift.TException {
1799         startBgp_result result = new startBgp_result();
1800         result.success = iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFlush);
1801         result.setSuccessIsSet(true);
1802         return result;
1803       }
1804     }
1805
1806     public static class stopBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, stopBgp_args> {
1807       public stopBgp() {
1808         super("stopBgp");
1809       }
1810
1811       @Override
1812         public stopBgp_args getEmptyArgsInstance() {
1813         return new stopBgp_args();
1814       }
1815
1816       @Override
1817         protected boolean isOneway() {
1818         return false;
1819       }
1820
1821       @Override
1822         public stopBgp_result getResult(I iface, stopBgp_args args) throws org.apache.thrift.TException {
1823         stopBgp_result result = new stopBgp_result();
1824         result.success = iface.stopBgp(args.asNumber);
1825         result.setSuccessIsSet(true);
1826         return result;
1827       }
1828     }
1829
1830     public static class createPeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPeer_args> {
1831       public createPeer() {
1832         super("createPeer");
1833       }
1834
1835       @Override
1836         public createPeer_args getEmptyArgsInstance() {
1837         return new createPeer_args();
1838       }
1839
1840       @Override
1841         protected boolean isOneway() {
1842         return false;
1843       }
1844
1845       @Override
1846         public createPeer_result getResult(I iface, createPeer_args args) throws org.apache.thrift.TException {
1847         createPeer_result result = new createPeer_result();
1848         result.success = iface.createPeer(args.ipAddress, args.asNumber);
1849         result.setSuccessIsSet(true);
1850         return result;
1851       }
1852     }
1853
1854     public static class setPeerSecret<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setPeerSecret_args> {
1855       public setPeerSecret() {
1856         super("setPeerSecret");
1857       }
1858
1859       @Override
1860         public setPeerSecret_args getEmptyArgsInstance() {
1861         return new setPeerSecret_args();
1862       }
1863
1864       @Override
1865         protected boolean isOneway() {
1866         return false;
1867       }
1868
1869       @Override
1870         public setPeerSecret_result getResult(I iface, setPeerSecret_args args) throws org.apache.thrift.TException {
1871         setPeerSecret_result result = new setPeerSecret_result();
1872         result.success = iface.setPeerSecret(args.ipAddress, args.rfc2385_sharedSecret);
1873         result.setSuccessIsSet(true);
1874         return result;
1875       }
1876     }
1877
1878     public static class deletePeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deletePeer_args> {
1879       public deletePeer() {
1880         super("deletePeer");
1881       }
1882
1883       @Override
1884         public deletePeer_args getEmptyArgsInstance() {
1885         return new deletePeer_args();
1886       }
1887
1888       @Override
1889         protected boolean isOneway() {
1890         return false;
1891       }
1892
1893       @Override
1894         public deletePeer_result getResult(I iface, deletePeer_args args) throws org.apache.thrift.TException {
1895         deletePeer_result result = new deletePeer_result();
1896         result.success = iface.deletePeer(args.ipAddress);
1897         result.setSuccessIsSet(true);
1898         return result;
1899       }
1900     }
1901
1902     public static class addVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVrf_args> {
1903       public addVrf() {
1904         super("addVrf");
1905       }
1906
1907       @Override
1908         public addVrf_args getEmptyArgsInstance() {
1909         return new addVrf_args();
1910       }
1911
1912       @Override
1913         protected boolean isOneway() {
1914         return false;
1915       }
1916
1917       @Override
1918         public addVrf_result getResult(I iface, addVrf_args args) throws org.apache.thrift.TException {
1919         addVrf_result result = new addVrf_result();
1920         result.success = iface.addVrf(args.l_type, args.rd, args.irts, args.erts, args.afi, args.safi);
1921         result.setSuccessIsSet(true);
1922         return result;
1923       }
1924     }
1925
1926     public static class delVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, delVrf_args> {
1927       public delVrf() {
1928         super("delVrf");
1929       }
1930
1931       @Override
1932         public delVrf_args getEmptyArgsInstance() {
1933         return new delVrf_args();
1934       }
1935
1936       @Override
1937         protected boolean isOneway() {
1938         return false;
1939       }
1940
1941       @Override
1942         public delVrf_result getResult(I iface, delVrf_args args) throws org.apache.thrift.TException {
1943         delVrf_result result = new delVrf_result();
1944         result.success = iface.delVrf(args.rd, args.afi, args.safi);
1945         result.setSuccessIsSet(true);
1946         return result;
1947       }
1948     }
1949
1950     public static class pushRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, pushRoute_args> {
1951       public pushRoute() {
1952         super("pushRoute");
1953       }
1954
1955       @Override
1956         public pushRoute_args getEmptyArgsInstance() {
1957         return new pushRoute_args();
1958       }
1959
1960       @Override
1961         protected boolean isOneway() {
1962         return false;
1963       }
1964
1965       @Override
1966         public pushRoute_result getResult(I iface, pushRoute_args args) throws org.apache.thrift.TException {
1967         pushRoute_result result = new pushRoute_result();
1968         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);
1969         result.setSuccessIsSet(true);
1970         return result;
1971       }
1972     }
1973
1974     public static class withdrawRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, withdrawRoute_args> {
1975       public withdrawRoute() {
1976         super("withdrawRoute");
1977       }
1978
1979       @Override
1980         public withdrawRoute_args getEmptyArgsInstance() {
1981         return new withdrawRoute_args();
1982       }
1983
1984       @Override
1985         protected boolean isOneway() {
1986         return false;
1987       }
1988
1989       @Override
1990         public withdrawRoute_result getResult(I iface, withdrawRoute_args args) throws org.apache.thrift.TException {
1991         withdrawRoute_result result = new withdrawRoute_result();
1992         result.success = iface.withdrawRoute(args.p_type, args.prefix, args.rd, args.ethtag, args.esi, args.macaddress, args.afi);
1993         result.setSuccessIsSet(true);
1994         return result;
1995       }
1996     }
1997
1998     public static class setEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setEbgpMultihop_args> {
1999       public setEbgpMultihop() {
2000         super("setEbgpMultihop");
2001       }
2002
2003       @Override
2004         public setEbgpMultihop_args getEmptyArgsInstance() {
2005         return new setEbgpMultihop_args();
2006       }
2007
2008       @Override
2009         protected boolean isOneway() {
2010         return false;
2011       }
2012
2013       @Override
2014         public setEbgpMultihop_result getResult(I iface, setEbgpMultihop_args args) throws org.apache.thrift.TException {
2015         setEbgpMultihop_result result = new setEbgpMultihop_result();
2016         result.success = iface.setEbgpMultihop(args.peerIp, args.nHops);
2017         result.setSuccessIsSet(true);
2018         return result;
2019       }
2020     }
2021
2022     public static class unsetEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetEbgpMultihop_args> {
2023       public unsetEbgpMultihop() {
2024         super("unsetEbgpMultihop");
2025       }
2026
2027       @Override
2028         public unsetEbgpMultihop_args getEmptyArgsInstance() {
2029         return new unsetEbgpMultihop_args();
2030       }
2031
2032       @Override
2033         protected boolean isOneway() {
2034         return false;
2035       }
2036
2037       @Override
2038         public unsetEbgpMultihop_result getResult(I iface, unsetEbgpMultihop_args args) throws org.apache.thrift.TException {
2039         unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2040         result.success = iface.unsetEbgpMultihop(args.peerIp);
2041         result.setSuccessIsSet(true);
2042         return result;
2043       }
2044     }
2045
2046     public static class setUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setUpdateSource_args> {
2047       public setUpdateSource() {
2048         super("setUpdateSource");
2049       }
2050
2051       @Override
2052         public setUpdateSource_args getEmptyArgsInstance() {
2053         return new setUpdateSource_args();
2054       }
2055
2056       @Override
2057         protected boolean isOneway() {
2058         return false;
2059       }
2060
2061       @Override
2062         public setUpdateSource_result getResult(I iface, setUpdateSource_args args) throws org.apache.thrift.TException {
2063         setUpdateSource_result result = new setUpdateSource_result();
2064         result.success = iface.setUpdateSource(args.peerIp, args.srcIp);
2065         result.setSuccessIsSet(true);
2066         return result;
2067       }
2068     }
2069
2070     public static class unsetUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetUpdateSource_args> {
2071       public unsetUpdateSource() {
2072         super("unsetUpdateSource");
2073       }
2074
2075       @Override
2076         public unsetUpdateSource_args getEmptyArgsInstance() {
2077         return new unsetUpdateSource_args();
2078       }
2079
2080       @Override
2081         protected boolean isOneway() {
2082         return false;
2083       }
2084
2085       @Override
2086         public unsetUpdateSource_result getResult(I iface, unsetUpdateSource_args args) throws org.apache.thrift.TException {
2087         unsetUpdateSource_result result = new unsetUpdateSource_result();
2088         result.success = iface.unsetUpdateSource(args.peerIp);
2089         result.setSuccessIsSet(true);
2090         return result;
2091       }
2092     }
2093
2094     public static class enableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableAddressFamily_args> {
2095       public enableAddressFamily() {
2096         super("enableAddressFamily");
2097       }
2098
2099       @Override
2100         public enableAddressFamily_args getEmptyArgsInstance() {
2101         return new enableAddressFamily_args();
2102       }
2103
2104       @Override
2105         protected boolean isOneway() {
2106         return false;
2107       }
2108
2109       @Override
2110         public enableAddressFamily_result getResult(I iface, enableAddressFamily_args args) throws org.apache.thrift.TException {
2111         enableAddressFamily_result result = new enableAddressFamily_result();
2112         result.success = iface.enableAddressFamily(args.peerIp, args.afi, args.safi);
2113         result.setSuccessIsSet(true);
2114         return result;
2115       }
2116     }
2117
2118     public static class disableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableAddressFamily_args> {
2119       public disableAddressFamily() {
2120         super("disableAddressFamily");
2121       }
2122
2123       @Override
2124         public disableAddressFamily_args getEmptyArgsInstance() {
2125         return new disableAddressFamily_args();
2126       }
2127
2128       @Override
2129         protected boolean isOneway() {
2130         return false;
2131       }
2132
2133       @Override
2134         public disableAddressFamily_result getResult(I iface, disableAddressFamily_args args) throws org.apache.thrift.TException {
2135         disableAddressFamily_result result = new disableAddressFamily_result();
2136         result.success = iface.disableAddressFamily(args.peerIp, args.afi, args.safi);
2137         result.setSuccessIsSet(true);
2138         return result;
2139       }
2140     }
2141
2142     public static class setLogConfig<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setLogConfig_args> {
2143       public setLogConfig() {
2144         super("setLogConfig");
2145       }
2146
2147       @Override
2148         public setLogConfig_args getEmptyArgsInstance() {
2149         return new setLogConfig_args();
2150       }
2151
2152       @Override
2153         protected boolean isOneway() {
2154         return false;
2155       }
2156
2157       @Override
2158         public setLogConfig_result getResult(I iface, setLogConfig_args args) throws org.apache.thrift.TException {
2159         setLogConfig_result result = new setLogConfig_result();
2160         result.success = iface.setLogConfig(args.logFileName, args.logLevel);
2161         result.setSuccessIsSet(true);
2162         return result;
2163       }
2164     }
2165
2166     public static class enableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableGracefulRestart_args> {
2167       public enableGracefulRestart() {
2168         super("enableGracefulRestart");
2169       }
2170
2171       @Override
2172         public enableGracefulRestart_args getEmptyArgsInstance() {
2173         return new enableGracefulRestart_args();
2174       }
2175
2176       @Override
2177         protected boolean isOneway() {
2178         return false;
2179       }
2180
2181       @Override
2182         public enableGracefulRestart_result getResult(I iface, enableGracefulRestart_args args) throws org.apache.thrift.TException {
2183         enableGracefulRestart_result result = new enableGracefulRestart_result();
2184         result.success = iface.enableGracefulRestart(args.stalepathTime);
2185         result.setSuccessIsSet(true);
2186         return result;
2187       }
2188     }
2189
2190     public static class disableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableGracefulRestart_args> {
2191       public disableGracefulRestart() {
2192         super("disableGracefulRestart");
2193       }
2194
2195       @Override
2196         public disableGracefulRestart_args getEmptyArgsInstance() {
2197         return new disableGracefulRestart_args();
2198       }
2199
2200       @Override
2201         protected boolean isOneway() {
2202         return false;
2203       }
2204
2205       @Override
2206         public disableGracefulRestart_result getResult(I iface, disableGracefulRestart_args args) throws org.apache.thrift.TException {
2207         disableGracefulRestart_result result = new disableGracefulRestart_result();
2208         result.success = iface.disableGracefulRestart();
2209         result.setSuccessIsSet(true);
2210         return result;
2211       }
2212     }
2213
2214     public static class getRoutes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoutes_args> {
2215       public getRoutes() {
2216         super("getRoutes");
2217       }
2218
2219       @Override
2220         public getRoutes_args getEmptyArgsInstance() {
2221         return new getRoutes_args();
2222       }
2223
2224       @Override
2225         protected boolean isOneway() {
2226         return false;
2227       }
2228
2229       @Override
2230         public getRoutes_result getResult(I iface, getRoutes_args args) throws org.apache.thrift.TException {
2231         getRoutes_result result = new getRoutes_result();
2232         result.success = iface.getRoutes(args.p_type, args.optype, args.winSize, args.afi);
2233         return result;
2234       }
2235     }
2236
2237     public static class enableMultipath<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableMultipath_args> {
2238       public enableMultipath() {
2239         super("enableMultipath");
2240       }
2241
2242       @Override
2243         public enableMultipath_args getEmptyArgsInstance() {
2244         return new enableMultipath_args();
2245       }
2246
2247       @Override
2248         protected boolean isOneway() {
2249         return false;
2250       }
2251
2252       @Override
2253         public enableMultipath_result getResult(I iface, enableMultipath_args args) throws org.apache.thrift.TException {
2254         enableMultipath_result result = new enableMultipath_result();
2255         result.success = iface.enableMultipath(args.afi, args.safi);
2256         result.setSuccessIsSet(true);
2257         return result;
2258       }
2259     }
2260
2261     public static class disableMultipath<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableMultipath_args> {
2262       public disableMultipath() {
2263         super("disableMultipath");
2264       }
2265
2266       @Override
2267         public disableMultipath_args getEmptyArgsInstance() {
2268         return new disableMultipath_args();
2269       }
2270
2271       @Override
2272         protected boolean isOneway() {
2273         return false;
2274       }
2275
2276       @Override
2277         public disableMultipath_result getResult(I iface, disableMultipath_args args) throws org.apache.thrift.TException {
2278         disableMultipath_result result = new disableMultipath_result();
2279         result.success = iface.disableMultipath(args.afi, args.safi);
2280         result.setSuccessIsSet(true);
2281         return result;
2282       }
2283     }
2284
2285     public static class multipaths<I extends Iface> extends org.apache.thrift.ProcessFunction<I, multipaths_args> {
2286       public multipaths() {
2287         super("multipaths");
2288       }
2289
2290       @Override
2291         public multipaths_args getEmptyArgsInstance() {
2292         return new multipaths_args();
2293       }
2294
2295       @Override
2296         protected boolean isOneway() {
2297         return false;
2298       }
2299
2300       @Override
2301         public multipaths_result getResult(I iface, multipaths_args args) throws org.apache.thrift.TException {
2302         multipaths_result result = new multipaths_result();
2303         result.success = iface.multipaths(args.rd, args.maxPath);
2304         result.setSuccessIsSet(true);
2305         return result;
2306       }
2307     }
2308
2309     public static class enableEORDelay<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableEORDelay_args> {
2310       public enableEORDelay() {
2311         super("enableEORDelay");
2312       }
2313
2314       public enableEORDelay_args getEmptyArgsInstance() {
2315         return new enableEORDelay_args();
2316       }
2317
2318       protected boolean isOneway() {
2319         return false;
2320       }
2321
2322       public enableEORDelay_result getResult(I iface, enableEORDelay_args args) throws org.apache.thrift.TException {
2323         enableEORDelay_result result = new enableEORDelay_result();
2324         result.success = iface.enableEORDelay(args.delay);
2325         result.setSuccessIsSet(true);
2326         return result;
2327       }
2328     }
2329
2330     public static class sendEOR<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendEOR_args> {
2331       public sendEOR() {
2332         super("sendEOR");
2333       }
2334
2335       public sendEOR_args getEmptyArgsInstance() {
2336         return new sendEOR_args();
2337       }
2338
2339       protected boolean isOneway() {
2340         return false;
2341       }
2342
2343       public sendEOR_result getResult(I iface, sendEOR_args args) throws org.apache.thrift.TException {
2344         sendEOR_result result = new sendEOR_result();
2345         result.success = iface.sendEOR();
2346         result.setSuccessIsSet(true);
2347         return result;
2348       }
2349     }
2350
2351   }
2352
2353   public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
2354     private static final Logger LOG = LoggerFactory.getLogger(AsyncProcessor.class.getName());
2355     public AsyncProcessor(I iface) {
2356       super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
2357     }
2358
2359     protected AsyncProcessor(I iface, Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
2360       super(iface, getProcessMap(processMap));
2361     }
2362
2363     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) {
2364       processMap.put("startBgp", new startBgp());
2365       processMap.put("stopBgp", new stopBgp());
2366       processMap.put("createPeer", new createPeer());
2367       processMap.put("setPeerSecret", new setPeerSecret());
2368       processMap.put("deletePeer", new deletePeer());
2369       processMap.put("addVrf", new addVrf());
2370       processMap.put("delVrf", new delVrf());
2371       processMap.put("pushRoute", new pushRoute());
2372       processMap.put("withdrawRoute", new withdrawRoute());
2373       processMap.put("setEbgpMultihop", new setEbgpMultihop());
2374       processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
2375       processMap.put("setUpdateSource", new setUpdateSource());
2376       processMap.put("unsetUpdateSource", new unsetUpdateSource());
2377       processMap.put("enableAddressFamily", new enableAddressFamily());
2378       processMap.put("disableAddressFamily", new disableAddressFamily());
2379       processMap.put("setLogConfig", new setLogConfig());
2380       processMap.put("enableGracefulRestart", new enableGracefulRestart());
2381       processMap.put("disableGracefulRestart", new disableGracefulRestart());
2382       processMap.put("getRoutes", new getRoutes());
2383       processMap.put("enableMultipath", new enableMultipath());
2384       processMap.put("disableMultipath", new disableMultipath());
2385       processMap.put("multipaths", new multipaths());
2386       processMap.put("enableEORDelay", new enableEORDelay());
2387       processMap.put("sendEOR", new sendEOR());
2388       return processMap;
2389     }
2390
2391     public static class startBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, startBgp_args, Integer> {
2392       public startBgp() {
2393         super("startBgp");
2394       }
2395
2396       @Override
2397         public startBgp_args getEmptyArgsInstance() {
2398         return new startBgp_args();
2399       }
2400
2401       @Override
2402         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2403         final org.apache.thrift.AsyncProcessFunction fcall = this;
2404         return new AsyncMethodCallback<Integer>() {
2405           @Override
2406                 public void onComplete(Integer o) {
2407             startBgp_result result = new startBgp_result();
2408             result.success = o;
2409             result.setSuccessIsSet(true);
2410             try {
2411               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2412               return;
2413             } catch (Exception e) {
2414               LOG.error("Exception writing to internal frame buffer", e);
2415             }
2416             fb.close();
2417           }
2418           @Override
2419                 public void onError(Exception e) {
2420             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2421             org.apache.thrift.TBase msg;
2422             startBgp_result result = new startBgp_result();
2423             {
2424               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2425               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2426             }
2427             try {
2428               fcall.sendResponse(fb,msg,msgType,seqid);
2429               return;
2430             } catch (Exception ex) {
2431               LOG.error("Exception writing to internal frame buffer", ex);
2432             }
2433             fb.close();
2434           }
2435         };
2436       }
2437
2438       @Override
2439         protected boolean isOneway() {
2440         return false;
2441       }
2442
2443       @Override
2444         public void start(I iface, startBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2445         iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFlush,resultHandler);
2446       }
2447     }
2448
2449     public static class stopBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, stopBgp_args, Integer> {
2450       public stopBgp() {
2451         super("stopBgp");
2452       }
2453
2454       @Override
2455         public stopBgp_args getEmptyArgsInstance() {
2456         return new stopBgp_args();
2457       }
2458
2459       @Override
2460         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2461         final org.apache.thrift.AsyncProcessFunction fcall = this;
2462         return new AsyncMethodCallback<Integer>() {
2463           @Override
2464                 public void onComplete(Integer o) {
2465             stopBgp_result result = new stopBgp_result();
2466             result.success = o;
2467             result.setSuccessIsSet(true);
2468             try {
2469               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2470               return;
2471             } catch (Exception e) {
2472               LOG.error("Exception writing to internal frame buffer", e);
2473             }
2474             fb.close();
2475           }
2476           @Override
2477                 public void onError(Exception e) {
2478             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2479             org.apache.thrift.TBase msg;
2480             stopBgp_result result = new stopBgp_result();
2481             {
2482               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2483               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2484             }
2485             try {
2486               fcall.sendResponse(fb,msg,msgType,seqid);
2487               return;
2488             } catch (Exception ex) {
2489               LOG.error("Exception writing to internal frame buffer", ex);
2490             }
2491             fb.close();
2492           }
2493         };
2494       }
2495
2496       @Override
2497         protected boolean isOneway() {
2498         return false;
2499       }
2500
2501       @Override
2502         public void start(I iface, stopBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2503         iface.stopBgp(args.asNumber,resultHandler);
2504       }
2505     }
2506
2507     public static class createPeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createPeer_args, Integer> {
2508       public createPeer() {
2509         super("createPeer");
2510       }
2511
2512       @Override
2513         public createPeer_args getEmptyArgsInstance() {
2514         return new createPeer_args();
2515       }
2516
2517       @Override
2518         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2519         final org.apache.thrift.AsyncProcessFunction fcall = this;
2520         return new AsyncMethodCallback<Integer>() {
2521           @Override
2522                 public void onComplete(Integer o) {
2523             createPeer_result result = new createPeer_result();
2524             result.success = o;
2525             result.setSuccessIsSet(true);
2526             try {
2527               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2528               return;
2529             } catch (Exception e) {
2530               LOG.error("Exception writing to internal frame buffer", e);
2531             }
2532             fb.close();
2533           }
2534           @Override
2535                 public void onError(Exception e) {
2536             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2537             org.apache.thrift.TBase msg;
2538             createPeer_result result = new createPeer_result();
2539             {
2540               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2541               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2542             }
2543             try {
2544               fcall.sendResponse(fb,msg,msgType,seqid);
2545               return;
2546             } catch (Exception ex) {
2547               LOG.error("Exception writing to internal frame buffer", ex);
2548             }
2549             fb.close();
2550           }
2551         };
2552       }
2553
2554       @Override
2555         protected boolean isOneway() {
2556         return false;
2557       }
2558
2559       @Override
2560         public void start(I iface, createPeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2561         iface.createPeer(args.ipAddress, args.asNumber,resultHandler);
2562       }
2563     }
2564
2565     public static class setPeerSecret<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setPeerSecret_args, Integer> {
2566       public setPeerSecret() {
2567         super("setPeerSecret");
2568       }
2569
2570       @Override
2571         public setPeerSecret_args getEmptyArgsInstance() {
2572         return new setPeerSecret_args();
2573       }
2574
2575       @Override
2576         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2577         final org.apache.thrift.AsyncProcessFunction fcall = this;
2578         return new AsyncMethodCallback<Integer>() {
2579           @Override
2580                 public void onComplete(Integer o) {
2581             setPeerSecret_result result = new setPeerSecret_result();
2582             result.success = o;
2583             result.setSuccessIsSet(true);
2584             try {
2585               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2586               return;
2587             } catch (Exception e) {
2588               LOG.error("Exception writing to internal frame buffer", e);
2589             }
2590             fb.close();
2591           }
2592           @Override
2593                 public void onError(Exception e) {
2594             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2595             org.apache.thrift.TBase msg;
2596             setPeerSecret_result result = new setPeerSecret_result();
2597             {
2598               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2599               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2600             }
2601             try {
2602               fcall.sendResponse(fb,msg,msgType,seqid);
2603               return;
2604             } catch (Exception ex) {
2605               LOG.error("Exception writing to internal frame buffer", ex);
2606             }
2607             fb.close();
2608           }
2609         };
2610       }
2611
2612       @Override
2613         protected boolean isOneway() {
2614         return false;
2615       }
2616
2617       @Override
2618         public void start(I iface, setPeerSecret_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2619         iface.setPeerSecret(args.ipAddress, args.rfc2385_sharedSecret,resultHandler);
2620       }
2621     }
2622
2623     public static class deletePeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, deletePeer_args, Integer> {
2624       public deletePeer() {
2625         super("deletePeer");
2626       }
2627
2628       @Override
2629         public deletePeer_args getEmptyArgsInstance() {
2630         return new deletePeer_args();
2631       }
2632
2633       @Override
2634         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2635         final org.apache.thrift.AsyncProcessFunction fcall = this;
2636         return new AsyncMethodCallback<Integer>() {
2637           @Override
2638                 public void onComplete(Integer o) {
2639             deletePeer_result result = new deletePeer_result();
2640             result.success = o;
2641             result.setSuccessIsSet(true);
2642             try {
2643               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2644               return;
2645             } catch (Exception e) {
2646               LOG.error("Exception writing to internal frame buffer", e);
2647             }
2648             fb.close();
2649           }
2650           @Override
2651                 public void onError(Exception e) {
2652             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2653             org.apache.thrift.TBase msg;
2654             deletePeer_result result = new deletePeer_result();
2655             {
2656               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2657               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2658             }
2659             try {
2660               fcall.sendResponse(fb,msg,msgType,seqid);
2661               return;
2662             } catch (Exception ex) {
2663               LOG.error("Exception writing to internal frame buffer", ex);
2664             }
2665             fb.close();
2666           }
2667         };
2668       }
2669
2670       @Override
2671         protected boolean isOneway() {
2672         return false;
2673       }
2674
2675       @Override
2676         public void start(I iface, deletePeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2677         iface.deletePeer(args.ipAddress,resultHandler);
2678       }
2679     }
2680
2681     public static class addVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, addVrf_args, Integer> {
2682       public addVrf() {
2683         super("addVrf");
2684       }
2685
2686       @Override
2687         public addVrf_args getEmptyArgsInstance() {
2688         return new addVrf_args();
2689       }
2690
2691       @Override
2692         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2693         final org.apache.thrift.AsyncProcessFunction fcall = this;
2694         return new AsyncMethodCallback<Integer>() {
2695           @Override
2696                 public void onComplete(Integer o) {
2697             addVrf_result result = new addVrf_result();
2698             result.success = o;
2699             result.setSuccessIsSet(true);
2700             try {
2701               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2702               return;
2703             } catch (Exception e) {
2704               LOG.error("Exception writing to internal frame buffer", e);
2705             }
2706             fb.close();
2707           }
2708           @Override
2709                 public void onError(Exception e) {
2710             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2711             org.apache.thrift.TBase msg;
2712             addVrf_result result = new addVrf_result();
2713             {
2714               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2715               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2716             }
2717             try {
2718               fcall.sendResponse(fb,msg,msgType,seqid);
2719               return;
2720             } catch (Exception ex) {
2721               LOG.error("Exception writing to internal frame buffer", ex);
2722             }
2723             fb.close();
2724           }
2725         };
2726       }
2727
2728       @Override
2729         protected boolean isOneway() {
2730         return false;
2731       }
2732
2733       @Override
2734         public void start(I iface, addVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2735         iface.addVrf(args.l_type, args.rd, args.irts, args.erts, args.afi, args.safi,resultHandler);
2736       }
2737     }
2738
2739     public static class delVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, delVrf_args, Integer> {
2740       public delVrf() {
2741         super("delVrf");
2742       }
2743
2744       @Override
2745         public delVrf_args getEmptyArgsInstance() {
2746         return new delVrf_args();
2747       }
2748
2749       @Override
2750         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2751         final org.apache.thrift.AsyncProcessFunction fcall = this;
2752         return new AsyncMethodCallback<Integer>() {
2753           @Override
2754                 public void onComplete(Integer o) {
2755             delVrf_result result = new delVrf_result();
2756             result.success = o;
2757             result.setSuccessIsSet(true);
2758             try {
2759               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2760               return;
2761             } catch (Exception e) {
2762               LOG.error("Exception writing to internal frame buffer", e);
2763             }
2764             fb.close();
2765           }
2766           @Override
2767                 public void onError(Exception e) {
2768             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2769             org.apache.thrift.TBase msg;
2770             delVrf_result result = new delVrf_result();
2771             {
2772               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2773               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2774             }
2775             try {
2776               fcall.sendResponse(fb,msg,msgType,seqid);
2777               return;
2778             } catch (Exception ex) {
2779               LOG.error("Exception writing to internal frame buffer", ex);
2780             }
2781             fb.close();
2782           }
2783         };
2784       }
2785
2786       @Override
2787         protected boolean isOneway() {
2788         return false;
2789       }
2790
2791       @Override
2792         public void start(I iface, delVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2793         iface.delVrf(args.rd, args.afi, args.safi,resultHandler);
2794       }
2795     }
2796
2797     public static class pushRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, pushRoute_args, Integer> {
2798       public pushRoute() {
2799         super("pushRoute");
2800       }
2801
2802       @Override
2803         public pushRoute_args getEmptyArgsInstance() {
2804         return new pushRoute_args();
2805       }
2806
2807       @Override
2808         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2809         final org.apache.thrift.AsyncProcessFunction fcall = this;
2810         return new AsyncMethodCallback<Integer>() {
2811           @Override
2812                 public void onComplete(Integer o) {
2813             pushRoute_result result = new pushRoute_result();
2814             result.success = o;
2815             result.setSuccessIsSet(true);
2816             try {
2817               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2818               return;
2819             } catch (Exception e) {
2820               LOG.error("Exception writing to internal frame buffer", e);
2821             }
2822             fb.close();
2823           }
2824           @Override
2825                 public void onError(Exception e) {
2826             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2827             org.apache.thrift.TBase msg;
2828             pushRoute_result result = new pushRoute_result();
2829             {
2830               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2831               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2832             }
2833             try {
2834               fcall.sendResponse(fb,msg,msgType,seqid);
2835               return;
2836             } catch (Exception ex) {
2837               LOG.error("Exception writing to internal frame buffer", ex);
2838             }
2839             fb.close();
2840           }
2841         };
2842       }
2843
2844       @Override
2845         protected boolean isOneway() {
2846         return false;
2847       }
2848
2849       @Override
2850         public void start(I iface, pushRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2851         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);
2852       }
2853     }
2854
2855     public static class withdrawRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, withdrawRoute_args, Integer> {
2856       public withdrawRoute() {
2857         super("withdrawRoute");
2858       }
2859
2860       @Override
2861         public withdrawRoute_args getEmptyArgsInstance() {
2862         return new withdrawRoute_args();
2863       }
2864
2865       @Override
2866         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2867         final org.apache.thrift.AsyncProcessFunction fcall = this;
2868         return new AsyncMethodCallback<Integer>() {
2869           @Override
2870                 public void onComplete(Integer o) {
2871             withdrawRoute_result result = new withdrawRoute_result();
2872             result.success = o;
2873             result.setSuccessIsSet(true);
2874             try {
2875               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2876               return;
2877             } catch (Exception e) {
2878               LOG.error("Exception writing to internal frame buffer", e);
2879             }
2880             fb.close();
2881           }
2882           @Override
2883                 public void onError(Exception e) {
2884             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2885             org.apache.thrift.TBase msg;
2886             withdrawRoute_result result = new withdrawRoute_result();
2887             {
2888               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2889               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2890             }
2891             try {
2892               fcall.sendResponse(fb,msg,msgType,seqid);
2893               return;
2894             } catch (Exception ex) {
2895               LOG.error("Exception writing to internal frame buffer", ex);
2896             }
2897             fb.close();
2898           }
2899         };
2900       }
2901
2902       @Override
2903         protected boolean isOneway() {
2904         return false;
2905       }
2906
2907       @Override
2908         public void start(I iface, withdrawRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2909         iface.withdrawRoute(args.p_type, args.prefix, args.rd, args.ethtag, args.esi, args.macaddress, args.afi,resultHandler);
2910       }
2911     }
2912
2913     public static class setEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setEbgpMultihop_args, Integer> {
2914       public setEbgpMultihop() {
2915         super("setEbgpMultihop");
2916       }
2917
2918       @Override
2919         public setEbgpMultihop_args getEmptyArgsInstance() {
2920         return new setEbgpMultihop_args();
2921       }
2922
2923       @Override
2924         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2925         final org.apache.thrift.AsyncProcessFunction fcall = this;
2926         return new AsyncMethodCallback<Integer>() {
2927           @Override
2928                 public void onComplete(Integer o) {
2929             setEbgpMultihop_result result = new setEbgpMultihop_result();
2930             result.success = o;
2931             result.setSuccessIsSet(true);
2932             try {
2933               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2934               return;
2935             } catch (Exception e) {
2936               LOG.error("Exception writing to internal frame buffer", e);
2937             }
2938             fb.close();
2939           }
2940           @Override
2941                 public void onError(Exception e) {
2942             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2943             org.apache.thrift.TBase msg;
2944             setEbgpMultihop_result result = new setEbgpMultihop_result();
2945             {
2946               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2947               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2948             }
2949             try {
2950               fcall.sendResponse(fb,msg,msgType,seqid);
2951               return;
2952             } catch (Exception ex) {
2953               LOG.error("Exception writing to internal frame buffer", ex);
2954             }
2955             fb.close();
2956           }
2957         };
2958       }
2959
2960       @Override
2961         protected boolean isOneway() {
2962         return false;
2963       }
2964
2965       @Override
2966         public void start(I iface, setEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2967         iface.setEbgpMultihop(args.peerIp, args.nHops,resultHandler);
2968       }
2969     }
2970
2971     public static class unsetEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetEbgpMultihop_args, Integer> {
2972       public unsetEbgpMultihop() {
2973         super("unsetEbgpMultihop");
2974       }
2975
2976       @Override
2977         public unsetEbgpMultihop_args getEmptyArgsInstance() {
2978         return new unsetEbgpMultihop_args();
2979       }
2980
2981       @Override
2982         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2983         final org.apache.thrift.AsyncProcessFunction fcall = this;
2984         return new AsyncMethodCallback<Integer>() {
2985           @Override
2986                 public void onComplete(Integer o) {
2987             unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2988             result.success = o;
2989             result.setSuccessIsSet(true);
2990             try {
2991               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2992               return;
2993             } catch (Exception e) {
2994               LOG.error("Exception writing to internal frame buffer", e);
2995             }
2996             fb.close();
2997           }
2998           @Override
2999                 public void onError(Exception e) {
3000             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3001             org.apache.thrift.TBase msg;
3002             unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
3003             {
3004               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3005               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3006             }
3007             try {
3008               fcall.sendResponse(fb,msg,msgType,seqid);
3009               return;
3010             } catch (Exception ex) {
3011               LOG.error("Exception writing to internal frame buffer", ex);
3012             }
3013             fb.close();
3014           }
3015         };
3016       }
3017
3018       @Override
3019         protected boolean isOneway() {
3020         return false;
3021       }
3022
3023       @Override
3024         public void start(I iface, unsetEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3025         iface.unsetEbgpMultihop(args.peerIp,resultHandler);
3026       }
3027     }
3028
3029     public static class setUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setUpdateSource_args, Integer> {
3030       public setUpdateSource() {
3031         super("setUpdateSource");
3032       }
3033
3034       @Override
3035         public setUpdateSource_args getEmptyArgsInstance() {
3036         return new setUpdateSource_args();
3037       }
3038
3039       @Override
3040         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3041         final org.apache.thrift.AsyncProcessFunction fcall = this;
3042         return new AsyncMethodCallback<Integer>() {
3043           @Override
3044                 public void onComplete(Integer o) {
3045             setUpdateSource_result result = new setUpdateSource_result();
3046             result.success = o;
3047             result.setSuccessIsSet(true);
3048             try {
3049               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3050               return;
3051             } catch (Exception e) {
3052               LOG.error("Exception writing to internal frame buffer", e);
3053             }
3054             fb.close();
3055           }
3056           @Override
3057                 public void onError(Exception e) {
3058             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3059             org.apache.thrift.TBase msg;
3060             setUpdateSource_result result = new setUpdateSource_result();
3061             {
3062               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3063               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3064             }
3065             try {
3066               fcall.sendResponse(fb,msg,msgType,seqid);
3067               return;
3068             } catch (Exception ex) {
3069               LOG.error("Exception writing to internal frame buffer", ex);
3070             }
3071             fb.close();
3072           }
3073         };
3074       }
3075
3076       @Override
3077         protected boolean isOneway() {
3078         return false;
3079       }
3080
3081       @Override
3082         public void start(I iface, setUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3083         iface.setUpdateSource(args.peerIp, args.srcIp,resultHandler);
3084       }
3085     }
3086
3087     public static class unsetUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetUpdateSource_args, Integer> {
3088       public unsetUpdateSource() {
3089         super("unsetUpdateSource");
3090       }
3091
3092       @Override
3093         public unsetUpdateSource_args getEmptyArgsInstance() {
3094         return new unsetUpdateSource_args();
3095       }
3096
3097       @Override
3098         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3099         final org.apache.thrift.AsyncProcessFunction fcall = this;
3100         return new AsyncMethodCallback<Integer>() {
3101           @Override
3102                 public void onComplete(Integer o) {
3103             unsetUpdateSource_result result = new unsetUpdateSource_result();
3104             result.success = o;
3105             result.setSuccessIsSet(true);
3106             try {
3107               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3108               return;
3109             } catch (Exception e) {
3110               LOG.error("Exception writing to internal frame buffer", e);
3111             }
3112             fb.close();
3113           }
3114           @Override
3115                 public void onError(Exception e) {
3116             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3117             org.apache.thrift.TBase msg;
3118             unsetUpdateSource_result result = new unsetUpdateSource_result();
3119             {
3120               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3121               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3122             }
3123             try {
3124               fcall.sendResponse(fb,msg,msgType,seqid);
3125               return;
3126             } catch (Exception ex) {
3127               LOG.error("Exception writing to internal frame buffer", ex);
3128             }
3129             fb.close();
3130           }
3131         };
3132       }
3133
3134       @Override
3135         protected boolean isOneway() {
3136         return false;
3137       }
3138
3139       @Override
3140         public void start(I iface, unsetUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3141         iface.unsetUpdateSource(args.peerIp,resultHandler);
3142       }
3143     }
3144
3145     public static class enableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableAddressFamily_args, Integer> {
3146       public enableAddressFamily() {
3147         super("enableAddressFamily");
3148       }
3149
3150       @Override
3151         public enableAddressFamily_args getEmptyArgsInstance() {
3152         return new enableAddressFamily_args();
3153       }
3154
3155       @Override
3156         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3157         final org.apache.thrift.AsyncProcessFunction fcall = this;
3158         return new AsyncMethodCallback<Integer>() {
3159           @Override
3160                 public void onComplete(Integer o) {
3161             enableAddressFamily_result result = new enableAddressFamily_result();
3162             result.success = o;
3163             result.setSuccessIsSet(true);
3164             try {
3165               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3166               return;
3167             } catch (Exception e) {
3168               LOG.error("Exception writing to internal frame buffer", e);
3169             }
3170             fb.close();
3171           }
3172           @Override
3173                 public void onError(Exception e) {
3174             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3175             org.apache.thrift.TBase msg;
3176             enableAddressFamily_result result = new enableAddressFamily_result();
3177             {
3178               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3179               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3180             }
3181             try {
3182               fcall.sendResponse(fb,msg,msgType,seqid);
3183               return;
3184             } catch (Exception ex) {
3185               LOG.error("Exception writing to internal frame buffer", ex);
3186             }
3187             fb.close();
3188           }
3189         };
3190       }
3191
3192       @Override
3193         protected boolean isOneway() {
3194         return false;
3195       }
3196
3197       @Override
3198         public void start(I iface, enableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3199         iface.enableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
3200       }
3201     }
3202
3203     public static class disableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableAddressFamily_args, Integer> {
3204       public disableAddressFamily() {
3205         super("disableAddressFamily");
3206       }
3207
3208       @Override
3209         public disableAddressFamily_args getEmptyArgsInstance() {
3210         return new disableAddressFamily_args();
3211       }
3212
3213       @Override
3214         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3215         final org.apache.thrift.AsyncProcessFunction fcall = this;
3216         return new AsyncMethodCallback<Integer>() {
3217           @Override
3218                 public void onComplete(Integer o) {
3219             disableAddressFamily_result result = new disableAddressFamily_result();
3220             result.success = o;
3221             result.setSuccessIsSet(true);
3222             try {
3223               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3224               return;
3225             } catch (Exception e) {
3226               LOG.error("Exception writing to internal frame buffer", e);
3227             }
3228             fb.close();
3229           }
3230           @Override
3231                 public void onError(Exception e) {
3232             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3233             org.apache.thrift.TBase msg;
3234             disableAddressFamily_result result = new disableAddressFamily_result();
3235             {
3236               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3237               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3238             }
3239             try {
3240               fcall.sendResponse(fb,msg,msgType,seqid);
3241               return;
3242             } catch (Exception ex) {
3243               LOG.error("Exception writing to internal frame buffer", ex);
3244             }
3245             fb.close();
3246           }
3247         };
3248       }
3249
3250       @Override
3251         protected boolean isOneway() {
3252         return false;
3253       }
3254
3255       @Override
3256         public void start(I iface, disableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3257         iface.disableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
3258       }
3259     }
3260
3261     public static class setLogConfig<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setLogConfig_args, Integer> {
3262       public setLogConfig() {
3263         super("setLogConfig");
3264       }
3265
3266       @Override
3267         public setLogConfig_args getEmptyArgsInstance() {
3268         return new setLogConfig_args();
3269       }
3270
3271       @Override
3272         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3273         final org.apache.thrift.AsyncProcessFunction fcall = this;
3274         return new AsyncMethodCallback<Integer>() {
3275           @Override
3276                 public void onComplete(Integer o) {
3277             setLogConfig_result result = new setLogConfig_result();
3278             result.success = o;
3279             result.setSuccessIsSet(true);
3280             try {
3281               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3282               return;
3283             } catch (Exception e) {
3284               LOG.error("Exception writing to internal frame buffer", e);
3285             }
3286             fb.close();
3287           }
3288           @Override
3289                 public void onError(Exception e) {
3290             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3291             org.apache.thrift.TBase msg;
3292             setLogConfig_result result = new setLogConfig_result();
3293             {
3294               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3295               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3296             }
3297             try {
3298               fcall.sendResponse(fb,msg,msgType,seqid);
3299               return;
3300             } catch (Exception ex) {
3301               LOG.error("Exception writing to internal frame buffer", ex);
3302             }
3303             fb.close();
3304           }
3305         };
3306       }
3307
3308       @Override
3309         protected boolean isOneway() {
3310         return false;
3311       }
3312
3313       @Override
3314         public void start(I iface, setLogConfig_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3315         iface.setLogConfig(args.logFileName, args.logLevel,resultHandler);
3316       }
3317     }
3318
3319     public static class enableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableGracefulRestart_args, Integer> {
3320       public enableGracefulRestart() {
3321         super("enableGracefulRestart");
3322       }
3323
3324       @Override
3325         public enableGracefulRestart_args getEmptyArgsInstance() {
3326         return new enableGracefulRestart_args();
3327       }
3328
3329       @Override
3330         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3331         final org.apache.thrift.AsyncProcessFunction fcall = this;
3332         return new AsyncMethodCallback<Integer>() {
3333           @Override
3334                 public void onComplete(Integer o) {
3335             enableGracefulRestart_result result = new enableGracefulRestart_result();
3336             result.success = o;
3337             result.setSuccessIsSet(true);
3338             try {
3339               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3340               return;
3341             } catch (Exception e) {
3342               LOG.error("Exception writing to internal frame buffer", e);
3343             }
3344             fb.close();
3345           }
3346           @Override
3347                 public void onError(Exception e) {
3348             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3349             org.apache.thrift.TBase msg;
3350             enableGracefulRestart_result result = new enableGracefulRestart_result();
3351             {
3352               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3353               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3354             }
3355             try {
3356               fcall.sendResponse(fb,msg,msgType,seqid);
3357               return;
3358             } catch (Exception ex) {
3359               LOG.error("Exception writing to internal frame buffer", ex);
3360             }
3361             fb.close();
3362           }
3363         };
3364       }
3365
3366       @Override
3367         protected boolean isOneway() {
3368         return false;
3369       }
3370
3371       @Override
3372         public void start(I iface, enableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3373         iface.enableGracefulRestart(args.stalepathTime,resultHandler);
3374       }
3375     }
3376
3377     public static class disableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableGracefulRestart_args, Integer> {
3378       public disableGracefulRestart() {
3379         super("disableGracefulRestart");
3380       }
3381
3382       @Override
3383         public disableGracefulRestart_args getEmptyArgsInstance() {
3384         return new disableGracefulRestart_args();
3385       }
3386
3387       @Override
3388         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3389         final org.apache.thrift.AsyncProcessFunction fcall = this;
3390         return new AsyncMethodCallback<Integer>() {
3391           @Override
3392                 public void onComplete(Integer o) {
3393             disableGracefulRestart_result result = new disableGracefulRestart_result();
3394             result.success = o;
3395             result.setSuccessIsSet(true);
3396             try {
3397               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3398               return;
3399             } catch (Exception e) {
3400               LOG.error("Exception writing to internal frame buffer", e);
3401             }
3402             fb.close();
3403           }
3404           @Override
3405                 public void onError(Exception e) {
3406             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3407             org.apache.thrift.TBase msg;
3408             disableGracefulRestart_result result = new disableGracefulRestart_result();
3409             {
3410               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3411               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3412             }
3413             try {
3414               fcall.sendResponse(fb,msg,msgType,seqid);
3415               return;
3416             } catch (Exception ex) {
3417               LOG.error("Exception writing to internal frame buffer", ex);
3418             }
3419             fb.close();
3420           }
3421         };
3422       }
3423
3424       @Override
3425         protected boolean isOneway() {
3426         return false;
3427       }
3428
3429       @Override
3430         public void start(I iface, disableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3431         iface.disableGracefulRestart(resultHandler);
3432       }
3433     }
3434
3435     public static class getRoutes<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getRoutes_args, Routes> {
3436       public getRoutes() {
3437         super("getRoutes");
3438       }
3439
3440       @Override
3441         public getRoutes_args getEmptyArgsInstance() {
3442         return new getRoutes_args();
3443       }
3444
3445       @Override
3446         public AsyncMethodCallback<Routes> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3447         final org.apache.thrift.AsyncProcessFunction fcall = this;
3448         return new AsyncMethodCallback<Routes>() {
3449           @Override
3450                 public void onComplete(Routes o) {
3451             getRoutes_result result = new getRoutes_result();
3452             result.success = o;
3453             try {
3454               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3455               return;
3456             } catch (Exception e) {
3457               LOG.error("Exception writing to internal frame buffer", e);
3458             }
3459             fb.close();
3460           }
3461           @Override
3462                 public void onError(Exception e) {
3463             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3464             org.apache.thrift.TBase msg;
3465             getRoutes_result result = new getRoutes_result();
3466             {
3467               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3468               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3469             }
3470             try {
3471               fcall.sendResponse(fb,msg,msgType,seqid);
3472               return;
3473             } catch (Exception ex) {
3474               LOG.error("Exception writing to internal frame buffer", ex);
3475             }
3476             fb.close();
3477           }
3478         };
3479       }
3480
3481       @Override
3482         protected boolean isOneway() {
3483         return false;
3484       }
3485
3486       @Override
3487         public void start(I iface, getRoutes_args args, org.apache.thrift.async.AsyncMethodCallback<Routes> resultHandler) throws TException {
3488         iface.getRoutes(args.p_type, args.optype, args.winSize, args.afi,resultHandler);
3489       }
3490     }
3491
3492     public static class enableMultipath<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableMultipath_args, Integer> {
3493       public enableMultipath() {
3494         super("enableMultipath");
3495       }
3496
3497       @Override
3498         public enableMultipath_args getEmptyArgsInstance() {
3499         return new enableMultipath_args();
3500       }
3501
3502       @Override
3503         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3504         final org.apache.thrift.AsyncProcessFunction fcall = this;
3505         return new AsyncMethodCallback<Integer>() {
3506           @Override
3507                 public void onComplete(Integer o) {
3508             enableMultipath_result result = new enableMultipath_result();
3509             result.success = o;
3510             result.setSuccessIsSet(true);
3511             try {
3512               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3513               return;
3514             } catch (Exception e) {
3515               LOG.error("Exception writing to internal frame buffer", e);
3516             }
3517             fb.close();
3518           }
3519           @Override
3520                 public void onError(Exception e) {
3521             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3522             org.apache.thrift.TBase msg;
3523             enableMultipath_result result = new enableMultipath_result();
3524             {
3525               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3526               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3527             }
3528             try {
3529               fcall.sendResponse(fb,msg,msgType,seqid);
3530               return;
3531             } catch (Exception ex) {
3532               LOG.error("Exception writing to internal frame buffer", ex);
3533             }
3534             fb.close();
3535           }
3536         };
3537       }
3538
3539       @Override
3540         protected boolean isOneway() {
3541         return false;
3542       }
3543
3544       @Override
3545         public void start(I iface, enableMultipath_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3546         iface.enableMultipath(args.afi, args.safi,resultHandler);
3547       }
3548     }
3549
3550     public static class disableMultipath<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableMultipath_args, Integer> {
3551       public disableMultipath() {
3552         super("disableMultipath");
3553       }
3554
3555       @Override
3556         public disableMultipath_args getEmptyArgsInstance() {
3557         return new disableMultipath_args();
3558       }
3559
3560       @Override
3561         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3562         final org.apache.thrift.AsyncProcessFunction fcall = this;
3563         return new AsyncMethodCallback<Integer>() {
3564           @Override
3565                 public void onComplete(Integer o) {
3566             disableMultipath_result result = new disableMultipath_result();
3567             result.success = o;
3568             result.setSuccessIsSet(true);
3569             try {
3570               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3571               return;
3572             } catch (Exception e) {
3573               LOG.error("Exception writing to internal frame buffer", e);
3574             }
3575             fb.close();
3576           }
3577           @Override
3578                 public void onError(Exception e) {
3579             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3580             org.apache.thrift.TBase msg;
3581             disableMultipath_result result = new disableMultipath_result();
3582             {
3583               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3584               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3585             }
3586             try {
3587               fcall.sendResponse(fb,msg,msgType,seqid);
3588               return;
3589             } catch (Exception ex) {
3590               LOG.error("Exception writing to internal frame buffer", ex);
3591             }
3592             fb.close();
3593           }
3594         };
3595       }
3596
3597       @Override
3598         protected boolean isOneway() {
3599         return false;
3600       }
3601
3602       @Override
3603         public void start(I iface, disableMultipath_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3604         iface.disableMultipath(args.afi, args.safi,resultHandler);
3605       }
3606     }
3607
3608     public static class multipaths<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, multipaths_args, Integer> {
3609       public multipaths() {
3610         super("multipaths");
3611       }
3612
3613       @Override
3614         public multipaths_args getEmptyArgsInstance() {
3615         return new multipaths_args();
3616       }
3617
3618       @Override
3619         public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3620         final org.apache.thrift.AsyncProcessFunction fcall = this;
3621         return new AsyncMethodCallback<Integer>() {
3622           @Override
3623                 public void onComplete(Integer o) {
3624             multipaths_result result = new multipaths_result();
3625             result.success = o;
3626             result.setSuccessIsSet(true);
3627             try {
3628               fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3629               return;
3630             } catch (Exception e) {
3631               LOG.error("Exception writing to internal frame buffer", e);
3632             }
3633             fb.close();
3634           }
3635           @Override
3636                 public void onError(Exception e) {
3637             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3638             org.apache.thrift.TBase msg;
3639             multipaths_result result = new multipaths_result();
3640             {
3641               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3642               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3643             }
3644             try {
3645               fcall.sendResponse(fb,msg,msgType,seqid);
3646               return;
3647             } catch (Exception ex) {
3648               LOG.error("Exception writing to internal frame buffer", ex);
3649             }
3650             fb.close();
3651           }
3652         };
3653       }
3654
3655       @Override
3656         protected boolean isOneway() {
3657         return false;
3658       }
3659
3660       @Override
3661         public void start(I iface, multipaths_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3662         iface.multipaths(args.rd, args.maxPath,resultHandler);
3663       }
3664     }
3665
3666     public static class enableEORDelay<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableEORDelay_args, Integer> {
3667       public enableEORDelay() {
3668         super("enableEORDelay");
3669       }
3670
3671       public enableEORDelay_args getEmptyArgsInstance() {
3672         return new enableEORDelay_args();
3673       }
3674
3675       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3676         final org.apache.thrift.AsyncProcessFunction fcall = this;
3677         return new AsyncMethodCallback<Integer>() {
3678           @Override
3679                 public void onComplete(Integer o) {
3680             enableEORDelay_result result = new enableEORDelay_result();
3681             result.success = o;
3682             result.setSuccessIsSet(true);
3683             try {
3684               fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3685               return;
3686             } catch (Exception e) {
3687               LOG.error("Exception writing to internal frame buffer", e);
3688             }
3689             fb.close();
3690           }
3691           @Override
3692                 public void onError(Exception e) {
3693             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3694             org.apache.thrift.TBase msg;
3695             enableEORDelay_result result = new enableEORDelay_result();
3696             {
3697               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3698               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3699             }
3700             try {
3701               fcall.sendResponse(fb,msg,msgType,seqid);
3702               return;
3703             } catch (Exception ex) {
3704               LOG.error("Exception writing to internal frame buffer", ex);
3705             }
3706             fb.close();
3707           }
3708         };
3709       }
3710
3711       protected boolean isOneway() {
3712         return false;
3713       }
3714
3715       public void start(I iface, enableEORDelay_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws org.apache.thrift.TException {
3716         iface.enableEORDelay(args.delay,resultHandler);
3717       }
3718     }
3719
3720     public static class sendEOR<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, sendEOR_args, Integer> {
3721       public sendEOR() {
3722         super("sendEOR");
3723       }
3724
3725       public sendEOR_args getEmptyArgsInstance() {
3726         return new sendEOR_args();
3727       }
3728
3729       public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3730         final org.apache.thrift.AsyncProcessFunction fcall = this;
3731         return new AsyncMethodCallback<Integer>() {
3732           @Override
3733                 public void onComplete(Integer o) {
3734             sendEOR_result result = new sendEOR_result();
3735             result.success = o;
3736             result.setSuccessIsSet(true);
3737             try {
3738               fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3739               return;
3740             } catch (Exception e) {
3741               LOG.error("Exception writing to internal frame buffer", e);
3742             }
3743             fb.close();
3744           }
3745           @Override
3746                 public void onError(Exception e) {
3747             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3748             org.apache.thrift.TBase msg;
3749             sendEOR_result result = new sendEOR_result();
3750             {
3751               msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3752               msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3753             }
3754             try {
3755               fcall.sendResponse(fb,msg,msgType,seqid);
3756               return;
3757             } catch (Exception ex) {
3758               LOG.error("Exception writing to internal frame buffer", ex);
3759             }
3760             fb.close();
3761           }
3762         };
3763       }
3764
3765       protected boolean isOneway() {
3766         return false;
3767       }
3768
3769       public void start(I iface, sendEOR_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws org.apache.thrift.TException {
3770         iface.sendEOR(resultHandler);
3771       }
3772     }
3773
3774   }
3775
3776   public static class startBgp_args implements org.apache.thrift.TBase<startBgp_args, startBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_args>   {
3777     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_args");
3778
3779     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);
3780     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);
3781     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);
3782     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);
3783     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);
3784     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);
3785     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);
3786
3787     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3788     static {
3789       schemes.put(StandardScheme.class, new startBgp_argsStandardSchemeFactory());
3790       schemes.put(TupleScheme.class, new startBgp_argsTupleSchemeFactory());
3791     }
3792
3793     public long asNumber; // required
3794     public String routerId; // required
3795     public int port; // required
3796     public int holdTime; // required
3797     public int keepAliveTime; // required
3798     public int stalepathTime; // required
3799     public boolean announceFlush; // required
3800
3801     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3802     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3803       AS_NUMBER((short)1, "asNumber"),
3804       ROUTER_ID((short)2, "routerId"),
3805       PORT((short)3, "port"),
3806       HOLD_TIME((short)4, "holdTime"),
3807       KEEP_ALIVE_TIME((short)5, "keepAliveTime"),
3808       STALEPATH_TIME((short)6, "stalepathTime"),
3809       ANNOUNCE_FLUSH((short)7, "announceFlush");
3810
3811       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3812
3813       static {
3814         for (_Fields field : EnumSet.allOf(_Fields.class)) {
3815           byName.put(field.getFieldName(), field);
3816         }
3817       }
3818
3819       /**
3820        * Find the _Fields constant that matches fieldId, or null if its not found.
3821        */
3822       public static _Fields findByThriftId(int fieldId) {
3823         switch(fieldId) {
3824           case 1: // AS_NUMBER
3825             return AS_NUMBER;
3826           case 2: // ROUTER_ID
3827             return ROUTER_ID;
3828           case 3: // PORT
3829             return PORT;
3830           case 4: // HOLD_TIME
3831             return HOLD_TIME;
3832           case 5: // KEEP_ALIVE_TIME
3833             return KEEP_ALIVE_TIME;
3834           case 6: // STALEPATH_TIME
3835             return STALEPATH_TIME;
3836           case 7: // ANNOUNCE_FLUSH
3837             return ANNOUNCE_FLUSH;
3838           default:
3839             return null;
3840         }
3841       }
3842
3843       /**
3844        * Find the _Fields constant that matches fieldId, throwing an exception
3845        * if it is not found.
3846        */
3847       public static _Fields findByThriftIdOrThrow(int fieldId) {
3848         _Fields fields = findByThriftId(fieldId);
3849         if (fields == null) {
3850                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3851                 }
3852         return fields;
3853       }
3854
3855       /**
3856        * Find the _Fields constant that matches name, or null if its not found.
3857        */
3858       public static _Fields findByName(String name) {
3859         return byName.get(name);
3860       }
3861
3862       private final short _thriftId;
3863       private final String _fieldName;
3864
3865       _Fields(short thriftId, String fieldName) {
3866         _thriftId = thriftId;
3867         _fieldName = fieldName;
3868       }
3869
3870       @Override
3871         public short getThriftFieldId() {
3872         return _thriftId;
3873       }
3874
3875       @Override
3876         public String getFieldName() {
3877         return _fieldName;
3878       }
3879     }
3880
3881     // isset id assignments
3882     private static final int __ASNUMBER_ISSET_ID = 0;
3883     private static final int __PORT_ISSET_ID = 1;
3884     private static final int __HOLDTIME_ISSET_ID = 2;
3885     private static final int __KEEPALIVETIME_ISSET_ID = 3;
3886     private static final int __STALEPATHTIME_ISSET_ID = 4;
3887     private static final int __ANNOUNCEFLUSH_ISSET_ID = 5;
3888     private byte __isset_bitfield = 0;
3889     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3890     static {
3891       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3892       tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
3893           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3894       tmpMap.put(_Fields.ROUTER_ID, new org.apache.thrift.meta_data.FieldMetaData("routerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
3895           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3896       tmpMap.put(_Fields.PORT, new org.apache.thrift.meta_data.FieldMetaData("port", org.apache.thrift.TFieldRequirementType.DEFAULT,
3897           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3898       tmpMap.put(_Fields.HOLD_TIME, new org.apache.thrift.meta_data.FieldMetaData("holdTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
3899           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3900       tmpMap.put(_Fields.KEEP_ALIVE_TIME, new org.apache.thrift.meta_data.FieldMetaData("keepAliveTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
3901           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3902       tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
3903           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3904       tmpMap.put(_Fields.ANNOUNCE_FLUSH, new org.apache.thrift.meta_data.FieldMetaData("announceFlush", org.apache.thrift.TFieldRequirementType.DEFAULT,
3905           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3906       metaDataMap = Collections.unmodifiableMap(tmpMap);
3907       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_args.class, metaDataMap);
3908     }
3909
3910     public startBgp_args() {
3911     }
3912
3913     public startBgp_args(
3914       long asNumber,
3915       String routerId,
3916       int port,
3917       int holdTime,
3918       int keepAliveTime,
3919       int stalepathTime,
3920       boolean announceFlush)
3921     {
3922       this();
3923       this.asNumber = asNumber;
3924       setAsNumberIsSet(true);
3925       this.routerId = routerId;
3926       this.port = port;
3927       setPortIsSet(true);
3928       this.holdTime = holdTime;
3929       setHoldTimeIsSet(true);
3930       this.keepAliveTime = keepAliveTime;
3931       setKeepAliveTimeIsSet(true);
3932       this.stalepathTime = stalepathTime;
3933       setStalepathTimeIsSet(true);
3934       this.announceFlush = announceFlush;
3935       setAnnounceFlushIsSet(true);
3936     }
3937
3938     /**
3939      * Performs a deep copy on <i>other</i>.
3940      */
3941     public startBgp_args(startBgp_args other) {
3942       __isset_bitfield = other.__isset_bitfield;
3943       this.asNumber = other.asNumber;
3944       if (other.isSetRouterId()) {
3945         this.routerId = other.routerId;
3946       }
3947       this.port = other.port;
3948       this.holdTime = other.holdTime;
3949       this.keepAliveTime = other.keepAliveTime;
3950       this.stalepathTime = other.stalepathTime;
3951       this.announceFlush = other.announceFlush;
3952     }
3953
3954     @Override
3955         public startBgp_args deepCopy() {
3956       return new startBgp_args(this);
3957     }
3958
3959     @Override
3960     public void clear() {
3961       setAsNumberIsSet(false);
3962       this.asNumber = 0;
3963       this.routerId = null;
3964       setPortIsSet(false);
3965       this.port = 0;
3966       setHoldTimeIsSet(false);
3967       this.holdTime = 0;
3968       setKeepAliveTimeIsSet(false);
3969       this.keepAliveTime = 0;
3970       setStalepathTimeIsSet(false);
3971       this.stalepathTime = 0;
3972       setAnnounceFlushIsSet(false);
3973       this.announceFlush = false;
3974     }
3975
3976     public long getAsNumber() {
3977       return this.asNumber;
3978     }
3979
3980     public startBgp_args setAsNumber(long asNumber) {
3981       this.asNumber = asNumber;
3982       setAsNumberIsSet(true);
3983       return this;
3984     }
3985
3986     public void unsetAsNumber() {
3987       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
3988     }
3989
3990     /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
3991     public boolean isSetAsNumber() {
3992       return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
3993     }
3994
3995     public void setAsNumberIsSet(boolean value) {
3996       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
3997     }
3998
3999     public String getRouterId() {
4000       return this.routerId;
4001     }
4002
4003     public startBgp_args setRouterId(String routerId) {
4004       this.routerId = routerId;
4005       return this;
4006     }
4007
4008     public void unsetRouterId() {
4009       this.routerId = null;
4010     }
4011
4012     /** Returns true if field routerId is set (has been assigned a value) and false otherwise */
4013     public boolean isSetRouterId() {
4014       return this.routerId != null;
4015     }
4016
4017     public void setRouterIdIsSet(boolean value) {
4018       if (!value) {
4019         this.routerId = null;
4020       }
4021     }
4022
4023     public int getPort() {
4024       return this.port;
4025     }
4026
4027     public startBgp_args setPort(int port) {
4028       this.port = port;
4029       setPortIsSet(true);
4030       return this;
4031     }
4032
4033     public void unsetPort() {
4034       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PORT_ISSET_ID);
4035     }
4036
4037     /** Returns true if field port is set (has been assigned a value) and false otherwise */
4038     public boolean isSetPort() {
4039       return EncodingUtils.testBit(__isset_bitfield, __PORT_ISSET_ID);
4040     }
4041
4042     public void setPortIsSet(boolean value) {
4043       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PORT_ISSET_ID, value);
4044     }
4045
4046     public int getHoldTime() {
4047       return this.holdTime;
4048     }
4049
4050     public startBgp_args setHoldTime(int holdTime) {
4051       this.holdTime = holdTime;
4052       setHoldTimeIsSet(true);
4053       return this;
4054     }
4055
4056     public void unsetHoldTime() {
4057       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
4058     }
4059
4060     /** Returns true if field holdTime is set (has been assigned a value) and false otherwise */
4061     public boolean isSetHoldTime() {
4062       return EncodingUtils.testBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
4063     }
4064
4065     public void setHoldTimeIsSet(boolean value) {
4066       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HOLDTIME_ISSET_ID, value);
4067     }
4068
4069     public int getKeepAliveTime() {
4070       return this.keepAliveTime;
4071     }
4072
4073     public startBgp_args setKeepAliveTime(int keepAliveTime) {
4074       this.keepAliveTime = keepAliveTime;
4075       setKeepAliveTimeIsSet(true);
4076       return this;
4077     }
4078
4079     public void unsetKeepAliveTime() {
4080       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
4081     }
4082
4083     /** Returns true if field keepAliveTime is set (has been assigned a value) and false otherwise */
4084     public boolean isSetKeepAliveTime() {
4085       return EncodingUtils.testBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
4086     }
4087
4088     public void setKeepAliveTimeIsSet(boolean value) {
4089       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID, value);
4090     }
4091
4092     public int getStalepathTime() {
4093       return this.stalepathTime;
4094     }
4095
4096     public startBgp_args setStalepathTime(int stalepathTime) {
4097       this.stalepathTime = stalepathTime;
4098       setStalepathTimeIsSet(true);
4099       return this;
4100     }
4101
4102     public void unsetStalepathTime() {
4103       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
4104     }
4105
4106     /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
4107     public boolean isSetStalepathTime() {
4108       return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
4109     }
4110
4111     public void setStalepathTimeIsSet(boolean value) {
4112       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
4113     }
4114
4115     public boolean isAnnounceFlush() {
4116       return this.announceFlush;
4117     }
4118
4119     public startBgp_args setAnnounceFlush(boolean announceFlush) {
4120       this.announceFlush = announceFlush;
4121       setAnnounceFlushIsSet(true);
4122       return this;
4123     }
4124
4125     public void unsetAnnounceFlush() {
4126       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID);
4127     }
4128
4129     /** Returns true if field announceFlush is set (has been assigned a value) and false otherwise */
4130     public boolean isSetAnnounceFlush() {
4131       return EncodingUtils.testBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID);
4132     }
4133
4134     public void setAnnounceFlushIsSet(boolean value) {
4135       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID, value);
4136     }
4137
4138     @Override
4139         public void setFieldValue(_Fields field, Object value) {
4140       switch (field) {
4141       case AS_NUMBER:
4142         if (value == null) {
4143           unsetAsNumber();
4144         } else {
4145           setAsNumber((Long)value);
4146         }
4147         break;
4148
4149       case ROUTER_ID:
4150         if (value == null) {
4151           unsetRouterId();
4152         } else {
4153           setRouterId((String)value);
4154         }
4155         break;
4156
4157       case PORT:
4158         if (value == null) {
4159           unsetPort();
4160         } else {
4161           setPort((Integer)value);
4162         }
4163         break;
4164
4165       case HOLD_TIME:
4166         if (value == null) {
4167           unsetHoldTime();
4168         } else {
4169           setHoldTime((Integer)value);
4170         }
4171         break;
4172
4173       case KEEP_ALIVE_TIME:
4174         if (value == null) {
4175           unsetKeepAliveTime();
4176         } else {
4177           setKeepAliveTime((Integer)value);
4178         }
4179         break;
4180
4181       case STALEPATH_TIME:
4182         if (value == null) {
4183           unsetStalepathTime();
4184         } else {
4185           setStalepathTime((Integer)value);
4186         }
4187         break;
4188
4189       case ANNOUNCE_FLUSH:
4190         if (value == null) {
4191           unsetAnnounceFlush();
4192         } else {
4193           setAnnounceFlush((Boolean)value);
4194         }
4195         break;
4196
4197       }
4198     }
4199
4200     @Override
4201         public Object getFieldValue(_Fields field) {
4202       switch (field) {
4203       case AS_NUMBER:
4204         return Long.valueOf(getAsNumber());
4205
4206       case ROUTER_ID:
4207         return getRouterId();
4208
4209       case PORT:
4210         return Integer.valueOf(getPort());
4211
4212       case HOLD_TIME:
4213         return Integer.valueOf(getHoldTime());
4214
4215       case KEEP_ALIVE_TIME:
4216         return Integer.valueOf(getKeepAliveTime());
4217
4218       case STALEPATH_TIME:
4219         return Integer.valueOf(getStalepathTime());
4220
4221       case ANNOUNCE_FLUSH:
4222         return Boolean.valueOf(isAnnounceFlush());
4223
4224       }
4225       throw new IllegalStateException();
4226     }
4227
4228     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4229     @Override
4230         public boolean isSet(_Fields field) {
4231       if (field == null) {
4232         throw new IllegalArgumentException();
4233       }
4234
4235       switch (field) {
4236       case AS_NUMBER:
4237         return isSetAsNumber();
4238       case ROUTER_ID:
4239         return isSetRouterId();
4240       case PORT:
4241         return isSetPort();
4242       case HOLD_TIME:
4243         return isSetHoldTime();
4244       case KEEP_ALIVE_TIME:
4245         return isSetKeepAliveTime();
4246       case STALEPATH_TIME:
4247         return isSetStalepathTime();
4248       case ANNOUNCE_FLUSH:
4249         return isSetAnnounceFlush();
4250       }
4251       throw new IllegalStateException();
4252     }
4253
4254     @Override
4255     public boolean equals(Object that) {
4256       if (that == null) {
4257                 return false;
4258         }
4259       if (that instanceof startBgp_args) {
4260                 return this.equals((startBgp_args)that);
4261         }
4262       return false;
4263     }
4264
4265     public boolean equals(startBgp_args that) {
4266       if (that == null) {
4267                 return false;
4268         }
4269
4270       boolean this_present_asNumber = true;
4271       boolean that_present_asNumber = true;
4272       if (this_present_asNumber || that_present_asNumber) {
4273         if (!(this_present_asNumber && that_present_asNumber)) {
4274                         return false;
4275                 }
4276         if (this.asNumber != that.asNumber) {
4277                         return false;
4278                 }
4279       }
4280
4281       boolean this_present_routerId = true && this.isSetRouterId();
4282       boolean that_present_routerId = true && that.isSetRouterId();
4283       if (this_present_routerId || that_present_routerId) {
4284         if (!(this_present_routerId && that_present_routerId)) {
4285                         return false;
4286                 }
4287         if (!this.routerId.equals(that.routerId)) {
4288                         return false;
4289                 }
4290       }
4291
4292       boolean this_present_port = true;
4293       boolean that_present_port = true;
4294       if (this_present_port || that_present_port) {
4295         if (!(this_present_port && that_present_port)) {
4296                         return false;
4297                 }
4298         if (this.port != that.port) {
4299                         return false;
4300                 }
4301       }
4302
4303       boolean this_present_holdTime = true;
4304       boolean that_present_holdTime = true;
4305       if (this_present_holdTime || that_present_holdTime) {
4306         if (!(this_present_holdTime && that_present_holdTime)) {
4307                         return false;
4308                 }
4309         if (this.holdTime != that.holdTime) {
4310                         return false;
4311                 }
4312       }
4313
4314       boolean this_present_keepAliveTime = true;
4315       boolean that_present_keepAliveTime = true;
4316       if (this_present_keepAliveTime || that_present_keepAliveTime) {
4317         if (!(this_present_keepAliveTime && that_present_keepAliveTime)) {
4318                         return false;
4319                 }
4320         if (this.keepAliveTime != that.keepAliveTime) {
4321                         return false;
4322                 }
4323       }
4324
4325       boolean this_present_stalepathTime = true;
4326       boolean that_present_stalepathTime = true;
4327       if (this_present_stalepathTime || that_present_stalepathTime) {
4328         if (!(this_present_stalepathTime && that_present_stalepathTime)) {
4329                         return false;
4330                 }
4331         if (this.stalepathTime != that.stalepathTime) {
4332                         return false;
4333                 }
4334       }
4335
4336       boolean this_present_announceFlush = true;
4337       boolean that_present_announceFlush = true;
4338       if (this_present_announceFlush || that_present_announceFlush) {
4339         if (!(this_present_announceFlush && that_present_announceFlush)) {
4340                         return false;
4341                 }
4342         if (this.announceFlush != that.announceFlush) {
4343                         return false;
4344                 }
4345       }
4346
4347       return true;
4348     }
4349
4350     @Override
4351     public int hashCode() {
4352       List<Object> list = new ArrayList<Object>();
4353
4354       boolean present_asNumber = true;
4355       list.add(present_asNumber);
4356       if (present_asNumber)
4357         list.add(asNumber);
4358       boolean present_routerId = true && (isSetRouterId());
4359       list.add(present_routerId);
4360       if (present_routerId)
4361         list.add(routerId);
4362       boolean present_port = true;
4363       list.add(present_port);
4364       if (present_port)
4365         list.add(port);
4366       boolean present_holdTime = true;
4367       list.add(present_holdTime);
4368       if (present_holdTime)
4369         list.add(holdTime);
4370       boolean present_keepAliveTime = true;
4371       list.add(present_keepAliveTime);
4372       if (present_keepAliveTime)
4373         list.add(keepAliveTime);
4374       boolean present_stalepathTime = true;
4375       list.add(present_stalepathTime);
4376       if (present_stalepathTime)
4377         list.add(stalepathTime);
4378       boolean present_announceFlush = true;
4379       list.add(present_announceFlush);
4380       if (present_announceFlush)
4381         list.add(announceFlush);
4382       return list.hashCode();
4383     }
4384
4385     @Override
4386     public int compareTo(startBgp_args other) {
4387       if (!getClass().equals(other.getClass())) {
4388         return getClass().getName().compareTo(other.getClass().getName());
4389       }
4390
4391       int lastComparison = 0;
4392
4393       lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
4394       if (lastComparison != 0) {
4395         return lastComparison;
4396       }
4397       if (isSetAsNumber()) {
4398         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
4399         if (lastComparison != 0) {
4400           return lastComparison;
4401         }
4402       }
4403       lastComparison = Boolean.valueOf(isSetRouterId()).compareTo(other.isSetRouterId());
4404       if (lastComparison != 0) {
4405         return lastComparison;
4406       }
4407       if (isSetRouterId()) {
4408         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routerId, other.routerId);
4409         if (lastComparison != 0) {
4410           return lastComparison;
4411         }
4412       }
4413       lastComparison = Boolean.valueOf(isSetPort()).compareTo(other.isSetPort());
4414       if (lastComparison != 0) {
4415         return lastComparison;
4416       }
4417       if (isSetPort()) {
4418         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, other.port);
4419         if (lastComparison != 0) {
4420           return lastComparison;
4421         }
4422       }
4423       lastComparison = Boolean.valueOf(isSetHoldTime()).compareTo(other.isSetHoldTime());
4424       if (lastComparison != 0) {
4425         return lastComparison;
4426       }
4427       if (isSetHoldTime()) {
4428         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdTime, other.holdTime);
4429         if (lastComparison != 0) {
4430           return lastComparison;
4431         }
4432       }
4433       lastComparison = Boolean.valueOf(isSetKeepAliveTime()).compareTo(other.isSetKeepAliveTime());
4434       if (lastComparison != 0) {
4435         return lastComparison;
4436       }
4437       if (isSetKeepAliveTime()) {
4438         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keepAliveTime, other.keepAliveTime);
4439         if (lastComparison != 0) {
4440           return lastComparison;
4441         }
4442       }
4443       lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
4444       if (lastComparison != 0) {
4445         return lastComparison;
4446       }
4447       if (isSetStalepathTime()) {
4448         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
4449         if (lastComparison != 0) {
4450           return lastComparison;
4451         }
4452       }
4453       lastComparison = Boolean.valueOf(isSetAnnounceFlush()).compareTo(other.isSetAnnounceFlush());
4454       if (lastComparison != 0) {
4455         return lastComparison;
4456       }
4457       if (isSetAnnounceFlush()) {
4458         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.announceFlush, other.announceFlush);
4459         if (lastComparison != 0) {
4460           return lastComparison;
4461         }
4462       }
4463       return 0;
4464     }
4465
4466     @Override
4467         public _Fields fieldForId(int fieldId) {
4468       return _Fields.findByThriftId(fieldId);
4469     }
4470
4471     @Override
4472         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4473       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4474     }
4475
4476     @Override
4477         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4478       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4479     }
4480
4481     @Override
4482     public String toString() {
4483       StringBuilder sb = new StringBuilder("startBgp_args(");
4484       boolean first = true;
4485
4486       sb.append("asNumber:");
4487       sb.append(this.asNumber);
4488       first = false;
4489       if (!first) {
4490                 sb.append(", ");
4491         }
4492       sb.append("routerId:");
4493       if (this.routerId == null) {
4494         sb.append("null");
4495       } else {
4496         sb.append(this.routerId);
4497       }
4498       first = false;
4499       if (!first) {
4500                 sb.append(", ");
4501         }
4502       sb.append("port:");
4503       sb.append(this.port);
4504       first = false;
4505       if (!first) {
4506                 sb.append(", ");
4507         }
4508       sb.append("holdTime:");
4509       sb.append(this.holdTime);
4510       first = false;
4511       if (!first) {
4512                 sb.append(", ");
4513         }
4514       sb.append("keepAliveTime:");
4515       sb.append(this.keepAliveTime);
4516       first = false;
4517       if (!first) {
4518                 sb.append(", ");
4519         }
4520       sb.append("stalepathTime:");
4521       sb.append(this.stalepathTime);
4522       first = false;
4523       if (!first) {
4524                 sb.append(", ");
4525         }
4526       sb.append("announceFlush:");
4527       sb.append(this.announceFlush);
4528       first = false;
4529       sb.append(")");
4530       return sb.toString();
4531     }
4532
4533     public void validate() throws org.apache.thrift.TException {
4534       // check for required fields
4535       // check for sub-struct validity
4536     }
4537
4538     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4539       try {
4540         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4541       } catch (org.apache.thrift.TException te) {
4542         throw new java.io.IOException(te);
4543       }
4544     }
4545
4546     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4547       try {
4548         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4549         __isset_bitfield = 0;
4550         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4551       } catch (org.apache.thrift.TException te) {
4552         throw new java.io.IOException(te);
4553       }
4554     }
4555
4556     private static class startBgp_argsStandardSchemeFactory implements SchemeFactory {
4557       @Override
4558         public startBgp_argsStandardScheme getScheme() {
4559         return new startBgp_argsStandardScheme();
4560       }
4561     }
4562
4563     private static class startBgp_argsStandardScheme extends StandardScheme<startBgp_args> {
4564
4565       @Override
4566         public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_args struct) throws org.apache.thrift.TException {
4567         org.apache.thrift.protocol.TField schemeField;
4568         iprot.readStructBegin();
4569         while (true)
4570         {
4571           schemeField = iprot.readFieldBegin();
4572           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4573             break;
4574           }
4575           switch (schemeField.id) {
4576             case 1: // AS_NUMBER
4577               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
4578                 struct.asNumber = iprot.readI64();
4579                 struct.setAsNumberIsSet(true);
4580               } else {
4581                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4582               }
4583               break;
4584             case 2: // ROUTER_ID
4585               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
4586                 struct.routerId = iprot.readString();
4587                 struct.setRouterIdIsSet(true);
4588               } else {
4589                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4590               }
4591               break;
4592             case 3: // PORT
4593               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4594                 struct.port = iprot.readI32();
4595                 struct.setPortIsSet(true);
4596               } else {
4597                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4598               }
4599               break;
4600             case 4: // HOLD_TIME
4601               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4602                 struct.holdTime = iprot.readI32();
4603                 struct.setHoldTimeIsSet(true);
4604               } else {
4605                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4606               }
4607               break;
4608             case 5: // KEEP_ALIVE_TIME
4609               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4610                 struct.keepAliveTime = iprot.readI32();
4611                 struct.setKeepAliveTimeIsSet(true);
4612               } else {
4613                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4614               }
4615               break;
4616             case 6: // STALEPATH_TIME
4617               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4618                 struct.stalepathTime = iprot.readI32();
4619                 struct.setStalepathTimeIsSet(true);
4620               } else {
4621                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4622               }
4623               break;
4624             case 7: // ANNOUNCE_FLUSH
4625               if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
4626                 struct.announceFlush = iprot.readBool();
4627                 struct.setAnnounceFlushIsSet(true);
4628               } else {
4629                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4630               }
4631               break;
4632             default:
4633               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4634           }
4635           iprot.readFieldEnd();
4636         }
4637         iprot.readStructEnd();
4638
4639         // check for required fields of primitive type, which can't be checked in the validate method
4640         struct.validate();
4641       }
4642
4643       @Override
4644         public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_args struct) throws org.apache.thrift.TException {
4645         struct.validate();
4646
4647         oprot.writeStructBegin(STRUCT_DESC);
4648         oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
4649         oprot.writeI64(struct.asNumber);
4650         oprot.writeFieldEnd();
4651         if (struct.routerId != null) {
4652           oprot.writeFieldBegin(ROUTER_ID_FIELD_DESC);
4653           oprot.writeString(struct.routerId);
4654           oprot.writeFieldEnd();
4655         }
4656         oprot.writeFieldBegin(PORT_FIELD_DESC);
4657         oprot.writeI32(struct.port);
4658         oprot.writeFieldEnd();
4659         oprot.writeFieldBegin(HOLD_TIME_FIELD_DESC);
4660         oprot.writeI32(struct.holdTime);
4661         oprot.writeFieldEnd();
4662         oprot.writeFieldBegin(KEEP_ALIVE_TIME_FIELD_DESC);
4663         oprot.writeI32(struct.keepAliveTime);
4664         oprot.writeFieldEnd();
4665         oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
4666         oprot.writeI32(struct.stalepathTime);
4667         oprot.writeFieldEnd();
4668         oprot.writeFieldBegin(ANNOUNCE_FLUSH_FIELD_DESC);
4669         oprot.writeBool(struct.announceFlush);
4670         oprot.writeFieldEnd();
4671         oprot.writeFieldStop();
4672         oprot.writeStructEnd();
4673       }
4674
4675     }
4676
4677     private static class startBgp_argsTupleSchemeFactory implements SchemeFactory {
4678       @Override
4679         public startBgp_argsTupleScheme getScheme() {
4680         return new startBgp_argsTupleScheme();
4681       }
4682     }
4683
4684     private static class startBgp_argsTupleScheme extends TupleScheme<startBgp_args> {
4685
4686       @Override
4687       public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
4688         TTupleProtocol oprot = (TTupleProtocol) prot;
4689         BitSet optionals = new BitSet();
4690         if (struct.isSetAsNumber()) {
4691           optionals.set(0);
4692         }
4693         if (struct.isSetRouterId()) {
4694           optionals.set(1);
4695         }
4696         if (struct.isSetPort()) {
4697           optionals.set(2);
4698         }
4699         if (struct.isSetHoldTime()) {
4700           optionals.set(3);
4701         }
4702         if (struct.isSetKeepAliveTime()) {
4703           optionals.set(4);
4704         }
4705         if (struct.isSetStalepathTime()) {
4706           optionals.set(5);
4707         }
4708         if (struct.isSetAnnounceFlush()) {
4709           optionals.set(6);
4710         }
4711         oprot.writeBitSet(optionals, 7);
4712         if (struct.isSetAsNumber()) {
4713           oprot.writeI64(struct.asNumber);
4714         }
4715         if (struct.isSetRouterId()) {
4716           oprot.writeString(struct.routerId);
4717         }
4718         if (struct.isSetPort()) {
4719           oprot.writeI32(struct.port);
4720         }
4721         if (struct.isSetHoldTime()) {
4722           oprot.writeI32(struct.holdTime);
4723         }
4724         if (struct.isSetKeepAliveTime()) {
4725           oprot.writeI32(struct.keepAliveTime);
4726         }
4727         if (struct.isSetStalepathTime()) {
4728           oprot.writeI32(struct.stalepathTime);
4729         }
4730         if (struct.isSetAnnounceFlush()) {
4731           oprot.writeBool(struct.announceFlush);
4732         }
4733       }
4734
4735       @Override
4736       public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
4737         TTupleProtocol iprot = (TTupleProtocol) prot;
4738         BitSet incoming = iprot.readBitSet(7);
4739         if (incoming.get(0)) {
4740           struct.asNumber = iprot.readI64();
4741           struct.setAsNumberIsSet(true);
4742         }
4743         if (incoming.get(1)) {
4744           struct.routerId = iprot.readString();
4745           struct.setRouterIdIsSet(true);
4746         }
4747         if (incoming.get(2)) {
4748           struct.port = iprot.readI32();
4749           struct.setPortIsSet(true);
4750         }
4751         if (incoming.get(3)) {
4752           struct.holdTime = iprot.readI32();
4753           struct.setHoldTimeIsSet(true);
4754         }
4755         if (incoming.get(4)) {
4756           struct.keepAliveTime = iprot.readI32();
4757           struct.setKeepAliveTimeIsSet(true);
4758         }
4759         if (incoming.get(5)) {
4760           struct.stalepathTime = iprot.readI32();
4761           struct.setStalepathTimeIsSet(true);
4762         }
4763         if (incoming.get(6)) {
4764           struct.announceFlush = iprot.readBool();
4765           struct.setAnnounceFlushIsSet(true);
4766         }
4767       }
4768     }
4769
4770   }
4771
4772   public static class startBgp_result implements org.apache.thrift.TBase<startBgp_result, startBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_result>   {
4773     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_result");
4774
4775     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);
4776
4777     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4778     static {
4779       schemes.put(StandardScheme.class, new startBgp_resultStandardSchemeFactory());
4780       schemes.put(TupleScheme.class, new startBgp_resultTupleSchemeFactory());
4781     }
4782
4783     public int success; // required
4784
4785     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4786     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4787       SUCCESS((short)0, "success");
4788
4789       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4790
4791       static {
4792         for (_Fields field : EnumSet.allOf(_Fields.class)) {
4793           byName.put(field.getFieldName(), field);
4794         }
4795       }
4796
4797       /**
4798        * Find the _Fields constant that matches fieldId, or null if its not found.
4799        */
4800       public static _Fields findByThriftId(int fieldId) {
4801         switch(fieldId) {
4802           case 0: // SUCCESS
4803             return SUCCESS;
4804           default:
4805             return null;
4806         }
4807       }
4808
4809       /**
4810        * Find the _Fields constant that matches fieldId, throwing an exception
4811        * if it is not found.
4812        */
4813       public static _Fields findByThriftIdOrThrow(int fieldId) {
4814         _Fields fields = findByThriftId(fieldId);
4815         if (fields == null) {
4816                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4817                 }
4818         return fields;
4819       }
4820
4821       /**
4822        * Find the _Fields constant that matches name, or null if its not found.
4823        */
4824       public static _Fields findByName(String name) {
4825         return byName.get(name);
4826       }
4827
4828       private final short _thriftId;
4829       private final String _fieldName;
4830
4831       _Fields(short thriftId, String fieldName) {
4832         _thriftId = thriftId;
4833         _fieldName = fieldName;
4834       }
4835
4836       @Override
4837         public short getThriftFieldId() {
4838         return _thriftId;
4839       }
4840
4841       @Override
4842         public String getFieldName() {
4843         return _fieldName;
4844       }
4845     }
4846
4847     // isset id assignments
4848     private static final int __SUCCESS_ISSET_ID = 0;
4849     private byte __isset_bitfield = 0;
4850     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4851     static {
4852       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4853       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
4854           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4855       metaDataMap = Collections.unmodifiableMap(tmpMap);
4856       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_result.class, metaDataMap);
4857     }
4858
4859     public startBgp_result() {
4860     }
4861
4862     public startBgp_result(
4863       int success)
4864     {
4865       this();
4866       this.success = success;
4867       setSuccessIsSet(true);
4868     }
4869
4870     /**
4871      * Performs a deep copy on <i>other</i>.
4872      */
4873     public startBgp_result(startBgp_result other) {
4874       __isset_bitfield = other.__isset_bitfield;
4875       this.success = other.success;
4876     }
4877
4878     @Override
4879         public startBgp_result deepCopy() {
4880       return new startBgp_result(this);
4881     }
4882
4883     @Override
4884     public void clear() {
4885       setSuccessIsSet(false);
4886       this.success = 0;
4887     }
4888
4889     public int getSuccess() {
4890       return this.success;
4891     }
4892
4893     public startBgp_result setSuccess(int success) {
4894       this.success = success;
4895       setSuccessIsSet(true);
4896       return this;
4897     }
4898
4899     public void unsetSuccess() {
4900       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4901     }
4902
4903     /** Returns true if field success is set (has been assigned a value) and false otherwise */
4904     public boolean isSetSuccess() {
4905       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4906     }
4907
4908     public void setSuccessIsSet(boolean value) {
4909       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
4910     }
4911
4912     @Override
4913         public void setFieldValue(_Fields field, Object value) {
4914       switch (field) {
4915       case SUCCESS:
4916         if (value == null) {
4917           unsetSuccess();
4918         } else {
4919           setSuccess((Integer)value);
4920         }
4921         break;
4922
4923       }
4924     }
4925
4926     @Override
4927         public Object getFieldValue(_Fields field) {
4928       switch (field) {
4929       case SUCCESS:
4930         return Integer.valueOf(getSuccess());
4931
4932       }
4933       throw new IllegalStateException();
4934     }
4935
4936     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4937     @Override
4938         public boolean isSet(_Fields field) {
4939       if (field == null) {
4940         throw new IllegalArgumentException();
4941       }
4942
4943       switch (field) {
4944       case SUCCESS:
4945         return isSetSuccess();
4946       }
4947       throw new IllegalStateException();
4948     }
4949
4950     @Override
4951     public boolean equals(Object that) {
4952       if (that == null) {
4953                 return false;
4954         }
4955       if (that instanceof startBgp_result) {
4956                 return this.equals((startBgp_result)that);
4957         }
4958       return false;
4959     }
4960
4961     public boolean equals(startBgp_result that) {
4962       if (that == null) {
4963                 return false;
4964         }
4965
4966       boolean this_present_success = true;
4967       boolean that_present_success = true;
4968       if (this_present_success || that_present_success) {
4969         if (!(this_present_success && that_present_success)) {
4970                         return false;
4971                 }
4972         if (this.success != that.success) {
4973                         return false;
4974                 }
4975       }
4976
4977       return true;
4978     }
4979
4980     @Override
4981     public int hashCode() {
4982       List<Object> list = new ArrayList<Object>();
4983
4984       boolean present_success = true;
4985       list.add(present_success);
4986       if (present_success)
4987         list.add(success);
4988       return list.hashCode();
4989     }
4990
4991     @Override
4992     public int compareTo(startBgp_result other) {
4993       if (!getClass().equals(other.getClass())) {
4994         return getClass().getName().compareTo(other.getClass().getName());
4995       }
4996
4997       int lastComparison = 0;
4998
4999       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5000       if (lastComparison != 0) {
5001         return lastComparison;
5002       }
5003       if (isSetSuccess()) {
5004         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5005         if (lastComparison != 0) {
5006           return lastComparison;
5007         }
5008       }
5009       return 0;
5010     }
5011
5012     @Override
5013         public _Fields fieldForId(int fieldId) {
5014       return _Fields.findByThriftId(fieldId);
5015     }
5016
5017     @Override
5018         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5019       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5020     }
5021
5022     @Override
5023         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5024       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5025       }
5026
5027     @Override
5028     public String toString() {
5029       StringBuilder sb = new StringBuilder("startBgp_result(");
5030       boolean first = true;
5031
5032       sb.append("success:");
5033       sb.append(this.success);
5034       first = false;
5035       sb.append(")");
5036       return sb.toString();
5037     }
5038
5039     public void validate() throws org.apache.thrift.TException {
5040       // check for required fields
5041       // check for sub-struct validity
5042     }
5043
5044     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5045       try {
5046         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5047       } catch (org.apache.thrift.TException te) {
5048         throw new java.io.IOException(te);
5049       }
5050     }
5051
5052     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5053       try {
5054         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5055         __isset_bitfield = 0;
5056         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5057       } catch (org.apache.thrift.TException te) {
5058         throw new java.io.IOException(te);
5059       }
5060     }
5061
5062     private static class startBgp_resultStandardSchemeFactory implements SchemeFactory {
5063       @Override
5064         public startBgp_resultStandardScheme getScheme() {
5065         return new startBgp_resultStandardScheme();
5066       }
5067     }
5068
5069     private static class startBgp_resultStandardScheme extends StandardScheme<startBgp_result> {
5070
5071       @Override
5072         public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_result struct) throws org.apache.thrift.TException {
5073         org.apache.thrift.protocol.TField schemeField;
5074         iprot.readStructBegin();
5075         while (true)
5076         {
5077           schemeField = iprot.readFieldBegin();
5078           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5079             break;
5080           }
5081           switch (schemeField.id) {
5082             case 0: // SUCCESS
5083               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
5084                 struct.success = iprot.readI32();
5085                 struct.setSuccessIsSet(true);
5086               } else {
5087                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5088               }
5089               break;
5090             default:
5091               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5092           }
5093           iprot.readFieldEnd();
5094         }
5095         iprot.readStructEnd();
5096
5097         // check for required fields of primitive type, which can't be checked in the validate method
5098         struct.validate();
5099       }
5100
5101       @Override
5102         public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_result struct) throws org.apache.thrift.TException {
5103         struct.validate();
5104
5105         oprot.writeStructBegin(STRUCT_DESC);
5106         if (struct.isSetSuccess()) {
5107           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5108           oprot.writeI32(struct.success);
5109           oprot.writeFieldEnd();
5110         }
5111         oprot.writeFieldStop();
5112         oprot.writeStructEnd();
5113       }
5114
5115     }
5116
5117     private static class startBgp_resultTupleSchemeFactory implements SchemeFactory {
5118       @Override
5119         public startBgp_resultTupleScheme getScheme() {
5120         return new startBgp_resultTupleScheme();
5121       }
5122     }
5123
5124     private static class startBgp_resultTupleScheme extends TupleScheme<startBgp_result> {
5125
5126       @Override
5127       public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
5128         TTupleProtocol oprot = (TTupleProtocol) prot;
5129         BitSet optionals = new BitSet();
5130         if (struct.isSetSuccess()) {
5131           optionals.set(0);
5132         }
5133         oprot.writeBitSet(optionals, 1);
5134         if (struct.isSetSuccess()) {
5135           oprot.writeI32(struct.success);
5136         }
5137       }
5138
5139       @Override
5140       public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
5141         TTupleProtocol iprot = (TTupleProtocol) prot;
5142         BitSet incoming = iprot.readBitSet(1);
5143         if (incoming.get(0)) {
5144           struct.success = iprot.readI32();
5145           struct.setSuccessIsSet(true);
5146         }
5147       }
5148     }
5149
5150   }
5151
5152   public static class stopBgp_args implements org.apache.thrift.TBase<stopBgp_args, stopBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_args>   {
5153     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_args");
5154
5155     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);
5156
5157     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5158     static {
5159       schemes.put(StandardScheme.class, new stopBgp_argsStandardSchemeFactory());
5160       schemes.put(TupleScheme.class, new stopBgp_argsTupleSchemeFactory());
5161     }
5162
5163     public long asNumber; // required
5164
5165     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5166     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5167       AS_NUMBER((short)1, "asNumber");
5168
5169       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5170
5171       static {
5172         for (_Fields field : EnumSet.allOf(_Fields.class)) {
5173           byName.put(field.getFieldName(), field);
5174         }
5175       }
5176
5177       /**
5178        * Find the _Fields constant that matches fieldId, or null if its not found.
5179        */
5180       public static _Fields findByThriftId(int fieldId) {
5181         switch(fieldId) {
5182           case 1: // AS_NUMBER
5183             return AS_NUMBER;
5184           default:
5185             return null;
5186         }
5187       }
5188
5189       /**
5190        * Find the _Fields constant that matches fieldId, throwing an exception
5191        * if it is not found.
5192        */
5193       public static _Fields findByThriftIdOrThrow(int fieldId) {
5194         _Fields fields = findByThriftId(fieldId);
5195         if (fields == null) {
5196                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5197                 }
5198         return fields;
5199       }
5200
5201       /**
5202        * Find the _Fields constant that matches name, or null if its not found.
5203        */
5204       public static _Fields findByName(String name) {
5205         return byName.get(name);
5206       }
5207
5208       private final short _thriftId;
5209       private final String _fieldName;
5210
5211       _Fields(short thriftId, String fieldName) {
5212         _thriftId = thriftId;
5213         _fieldName = fieldName;
5214       }
5215
5216       @Override
5217         public short getThriftFieldId() {
5218         return _thriftId;
5219       }
5220
5221       @Override
5222         public String getFieldName() {
5223         return _fieldName;
5224       }
5225     }
5226
5227     // isset id assignments
5228     private static final int __ASNUMBER_ISSET_ID = 0;
5229     private byte __isset_bitfield = 0;
5230     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5231     static {
5232       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5233       tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
5234           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5235       metaDataMap = Collections.unmodifiableMap(tmpMap);
5236       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_args.class, metaDataMap);
5237     }
5238
5239     public stopBgp_args() {
5240     }
5241
5242     public stopBgp_args(
5243       long asNumber)
5244     {
5245       this();
5246       this.asNumber = asNumber;
5247       setAsNumberIsSet(true);
5248     }
5249
5250     /**
5251      * Performs a deep copy on <i>other</i>.
5252      */
5253     public stopBgp_args(stopBgp_args other) {
5254       __isset_bitfield = other.__isset_bitfield;
5255       this.asNumber = other.asNumber;
5256     }
5257
5258     @Override
5259         public stopBgp_args deepCopy() {
5260       return new stopBgp_args(this);
5261     }
5262
5263     @Override
5264     public void clear() {
5265       setAsNumberIsSet(false);
5266       this.asNumber = 0;
5267     }
5268
5269     public long getAsNumber() {
5270       return this.asNumber;
5271     }
5272
5273     public stopBgp_args setAsNumber(long asNumber) {
5274       this.asNumber = asNumber;
5275       setAsNumberIsSet(true);
5276       return this;
5277     }
5278
5279     public void unsetAsNumber() {
5280       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
5281     }
5282
5283     /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
5284     public boolean isSetAsNumber() {
5285       return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
5286     }
5287
5288     public void setAsNumberIsSet(boolean value) {
5289       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
5290     }
5291
5292     @Override
5293         public void setFieldValue(_Fields field, Object value) {
5294       switch (field) {
5295       case AS_NUMBER:
5296         if (value == null) {
5297           unsetAsNumber();
5298         } else {
5299           setAsNumber((Long)value);
5300         }
5301         break;
5302
5303       }
5304     }
5305
5306     @Override
5307         public Object getFieldValue(_Fields field) {
5308       switch (field) {
5309       case AS_NUMBER:
5310         return Long.valueOf(getAsNumber());
5311
5312       }
5313       throw new IllegalStateException();
5314     }
5315
5316     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5317     @Override
5318         public boolean isSet(_Fields field) {
5319       if (field == null) {
5320         throw new IllegalArgumentException();
5321       }
5322
5323       switch (field) {
5324       case AS_NUMBER:
5325         return isSetAsNumber();
5326       }
5327       throw new IllegalStateException();
5328     }
5329
5330     @Override
5331     public boolean equals(Object that) {
5332       if (that == null) {
5333                 return false;
5334         }
5335       if (that instanceof stopBgp_args) {
5336                 return this.equals((stopBgp_args)that);
5337         }
5338       return false;
5339     }
5340
5341     public boolean equals(stopBgp_args that) {
5342       if (that == null) {
5343                 return false;
5344         }
5345
5346       boolean this_present_asNumber = true;
5347       boolean that_present_asNumber = true;
5348       if (this_present_asNumber || that_present_asNumber) {
5349         if (!(this_present_asNumber && that_present_asNumber)) {
5350                         return false;
5351                 }
5352         if (this.asNumber != that.asNumber) {
5353                         return false;
5354                 }
5355       }
5356
5357       return true;
5358     }
5359
5360     @Override
5361     public int hashCode() {
5362       List<Object> list = new ArrayList<Object>();
5363
5364       boolean present_asNumber = true;
5365       list.add(present_asNumber);
5366       if (present_asNumber)
5367         list.add(asNumber);
5368       return list.hashCode();
5369     }
5370
5371     @Override
5372     public int compareTo(stopBgp_args other) {
5373       if (!getClass().equals(other.getClass())) {
5374         return getClass().getName().compareTo(other.getClass().getName());
5375       }
5376
5377       int lastComparison = 0;
5378
5379       lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
5380       if (lastComparison != 0) {
5381         return lastComparison;
5382       }
5383       if (isSetAsNumber()) {
5384         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
5385         if (lastComparison != 0) {
5386           return lastComparison;
5387         }
5388       }
5389       return 0;
5390     }
5391
5392     @Override
5393         public _Fields fieldForId(int fieldId) {
5394       return _Fields.findByThriftId(fieldId);
5395     }
5396
5397     @Override
5398         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5399       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5400     }
5401
5402     @Override
5403         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5404       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5405     }
5406
5407     @Override
5408     public String toString() {
5409       StringBuilder sb = new StringBuilder("stopBgp_args(");
5410       boolean first = true;
5411
5412       sb.append("asNumber:");
5413       sb.append(this.asNumber);
5414       first = false;
5415       sb.append(")");
5416       return sb.toString();
5417     }
5418
5419     public void validate() throws org.apache.thrift.TException {
5420       // check for required fields
5421       // check for sub-struct validity
5422     }
5423
5424     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5425       try {
5426         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5427       } catch (org.apache.thrift.TException te) {
5428         throw new java.io.IOException(te);
5429       }
5430     }
5431
5432     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5433       try {
5434         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5435         __isset_bitfield = 0;
5436         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5437       } catch (org.apache.thrift.TException te) {
5438         throw new java.io.IOException(te);
5439       }
5440     }
5441
5442     private static class stopBgp_argsStandardSchemeFactory implements SchemeFactory {
5443       @Override
5444         public stopBgp_argsStandardScheme getScheme() {
5445         return new stopBgp_argsStandardScheme();
5446       }
5447     }
5448
5449     private static class stopBgp_argsStandardScheme extends StandardScheme<stopBgp_args> {
5450
5451       @Override
5452         public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_args struct) throws org.apache.thrift.TException {
5453         org.apache.thrift.protocol.TField schemeField;
5454         iprot.readStructBegin();
5455         while (true)
5456         {
5457           schemeField = iprot.readFieldBegin();
5458           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5459             break;
5460           }
5461           switch (schemeField.id) {
5462             case 1: // AS_NUMBER
5463               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
5464                 struct.asNumber = iprot.readI64();
5465                 struct.setAsNumberIsSet(true);
5466               } else {
5467                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5468               }
5469               break;
5470             default:
5471               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5472           }
5473           iprot.readFieldEnd();
5474         }
5475         iprot.readStructEnd();
5476
5477         // check for required fields of primitive type, which can't be checked in the validate method
5478         struct.validate();
5479       }
5480
5481       @Override
5482         public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_args struct) throws org.apache.thrift.TException {
5483         struct.validate();
5484
5485         oprot.writeStructBegin(STRUCT_DESC);
5486         oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
5487         oprot.writeI64(struct.asNumber);
5488         oprot.writeFieldEnd();
5489         oprot.writeFieldStop();
5490         oprot.writeStructEnd();
5491       }
5492
5493     }
5494
5495     private static class stopBgp_argsTupleSchemeFactory implements SchemeFactory {
5496       @Override
5497         public stopBgp_argsTupleScheme getScheme() {
5498         return new stopBgp_argsTupleScheme();
5499       }
5500     }
5501
5502     private static class stopBgp_argsTupleScheme extends TupleScheme<stopBgp_args> {
5503
5504       @Override
5505       public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
5506         TTupleProtocol oprot = (TTupleProtocol) prot;
5507         BitSet optionals = new BitSet();
5508         if (struct.isSetAsNumber()) {
5509           optionals.set(0);
5510         }
5511         oprot.writeBitSet(optionals, 1);
5512         if (struct.isSetAsNumber()) {
5513           oprot.writeI64(struct.asNumber);
5514         }
5515       }
5516
5517       @Override
5518       public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
5519         TTupleProtocol iprot = (TTupleProtocol) prot;
5520         BitSet incoming = iprot.readBitSet(1);
5521         if (incoming.get(0)) {
5522           struct.asNumber = iprot.readI64();
5523           struct.setAsNumberIsSet(true);
5524         }
5525       }
5526     }
5527
5528   }
5529
5530   public static class stopBgp_result implements org.apache.thrift.TBase<stopBgp_result, stopBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_result>   {
5531     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_result");
5532
5533     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);
5534
5535     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5536     static {
5537       schemes.put(StandardScheme.class, new stopBgp_resultStandardSchemeFactory());
5538       schemes.put(TupleScheme.class, new stopBgp_resultTupleSchemeFactory());
5539     }
5540
5541     public int success; // required
5542
5543     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5544     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5545       SUCCESS((short)0, "success");
5546
5547       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5548
5549       static {
5550         for (_Fields field : EnumSet.allOf(_Fields.class)) {
5551           byName.put(field.getFieldName(), field);
5552         }
5553       }
5554
5555       /**
5556        * Find the _Fields constant that matches fieldId, or null if its not found.
5557        */
5558       public static _Fields findByThriftId(int fieldId) {
5559         switch(fieldId) {
5560           case 0: // SUCCESS
5561             return SUCCESS;
5562           default:
5563             return null;
5564         }
5565       }
5566
5567       /**
5568        * Find the _Fields constant that matches fieldId, throwing an exception
5569        * if it is not found.
5570        */
5571       public static _Fields findByThriftIdOrThrow(int fieldId) {
5572         _Fields fields = findByThriftId(fieldId);
5573         if (fields == null) {
5574                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5575                 }
5576         return fields;
5577       }
5578
5579       /**
5580        * Find the _Fields constant that matches name, or null if its not found.
5581        */
5582       public static _Fields findByName(String name) {
5583         return byName.get(name);
5584       }
5585
5586       private final short _thriftId;
5587       private final String _fieldName;
5588
5589       _Fields(short thriftId, String fieldName) {
5590         _thriftId = thriftId;
5591         _fieldName = fieldName;
5592       }
5593
5594       @Override
5595         public short getThriftFieldId() {
5596         return _thriftId;
5597       }
5598
5599       @Override
5600         public String getFieldName() {
5601         return _fieldName;
5602       }
5603     }
5604
5605     // isset id assignments
5606     private static final int __SUCCESS_ISSET_ID = 0;
5607     private byte __isset_bitfield = 0;
5608     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5609     static {
5610       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5611       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
5612           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
5613       metaDataMap = Collections.unmodifiableMap(tmpMap);
5614       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_result.class, metaDataMap);
5615     }
5616
5617     public stopBgp_result() {
5618     }
5619
5620     public stopBgp_result(
5621       int success)
5622     {
5623       this();
5624       this.success = success;
5625       setSuccessIsSet(true);
5626     }
5627
5628     /**
5629      * Performs a deep copy on <i>other</i>.
5630      */
5631     public stopBgp_result(stopBgp_result other) {
5632       __isset_bitfield = other.__isset_bitfield;
5633       this.success = other.success;
5634     }
5635
5636     @Override
5637         public stopBgp_result deepCopy() {
5638       return new stopBgp_result(this);
5639     }
5640
5641     @Override
5642     public void clear() {
5643       setSuccessIsSet(false);
5644       this.success = 0;
5645     }
5646
5647     public int getSuccess() {
5648       return this.success;
5649     }
5650
5651     public stopBgp_result setSuccess(int success) {
5652       this.success = success;
5653       setSuccessIsSet(true);
5654       return this;
5655     }
5656
5657     public void unsetSuccess() {
5658       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5659     }
5660
5661     /** Returns true if field success is set (has been assigned a value) and false otherwise */
5662     public boolean isSetSuccess() {
5663       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5664     }
5665
5666     public void setSuccessIsSet(boolean value) {
5667       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
5668     }
5669
5670     @Override
5671         public void setFieldValue(_Fields field, Object value) {
5672       switch (field) {
5673       case SUCCESS:
5674         if (value == null) {
5675           unsetSuccess();
5676         } else {
5677           setSuccess((Integer)value);
5678         }
5679         break;
5680
5681       }
5682     }
5683
5684     @Override
5685         public Object getFieldValue(_Fields field) {
5686       switch (field) {
5687       case SUCCESS:
5688         return Integer.valueOf(getSuccess());
5689
5690       }
5691       throw new IllegalStateException();
5692     }
5693
5694     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5695     @Override
5696         public boolean isSet(_Fields field) {
5697       if (field == null) {
5698         throw new IllegalArgumentException();
5699       }
5700
5701       switch (field) {
5702       case SUCCESS:
5703         return isSetSuccess();
5704       }
5705       throw new IllegalStateException();
5706     }
5707
5708     @Override
5709     public boolean equals(Object that) {
5710       if (that == null) {
5711                 return false;
5712         }
5713       if (that instanceof stopBgp_result) {
5714                 return this.equals((stopBgp_result)that);
5715         }
5716       return false;
5717     }
5718
5719     public boolean equals(stopBgp_result that) {
5720       if (that == null) {
5721                 return false;
5722         }
5723
5724       boolean this_present_success = true;
5725       boolean that_present_success = true;
5726       if (this_present_success || that_present_success) {
5727         if (!(this_present_success && that_present_success)) {
5728                         return false;
5729                 }
5730         if (this.success != that.success) {
5731                         return false;
5732                 }
5733       }
5734
5735       return true;
5736     }
5737
5738     @Override
5739     public int hashCode() {
5740       List<Object> list = new ArrayList<Object>();
5741
5742       boolean present_success = true;
5743       list.add(present_success);
5744       if (present_success)
5745         list.add(success);
5746       return list.hashCode();
5747     }
5748
5749     @Override
5750     public int compareTo(stopBgp_result other) {
5751       if (!getClass().equals(other.getClass())) {
5752         return getClass().getName().compareTo(other.getClass().getName());
5753       }
5754
5755       int lastComparison = 0;
5756
5757       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5758       if (lastComparison != 0) {
5759         return lastComparison;
5760       }
5761       if (isSetSuccess()) {
5762         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5763         if (lastComparison != 0) {
5764           return lastComparison;
5765         }
5766       }
5767       return 0;
5768     }
5769
5770     @Override
5771         public _Fields fieldForId(int fieldId) {
5772       return _Fields.findByThriftId(fieldId);
5773     }
5774
5775     @Override
5776         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5777       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5778     }
5779
5780     @Override
5781         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5782       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5783       }
5784
5785     @Override
5786     public String toString() {
5787       StringBuilder sb = new StringBuilder("stopBgp_result(");
5788       boolean first = true;
5789
5790       sb.append("success:");
5791       sb.append(this.success);
5792       first = false;
5793       sb.append(")");
5794       return sb.toString();
5795     }
5796
5797     public void validate() throws org.apache.thrift.TException {
5798       // check for required fields
5799       // check for sub-struct validity
5800     }
5801
5802     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5803       try {
5804         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5805       } catch (org.apache.thrift.TException te) {
5806         throw new java.io.IOException(te);
5807       }
5808     }
5809
5810     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5811       try {
5812         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5813         __isset_bitfield = 0;
5814         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5815       } catch (org.apache.thrift.TException te) {
5816         throw new java.io.IOException(te);
5817       }
5818     }
5819
5820     private static class stopBgp_resultStandardSchemeFactory implements SchemeFactory {
5821       @Override
5822         public stopBgp_resultStandardScheme getScheme() {
5823         return new stopBgp_resultStandardScheme();
5824       }
5825     }
5826
5827     private static class stopBgp_resultStandardScheme extends StandardScheme<stopBgp_result> {
5828
5829       @Override
5830         public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_result struct) throws org.apache.thrift.TException {
5831         org.apache.thrift.protocol.TField schemeField;
5832         iprot.readStructBegin();
5833         while (true)
5834         {
5835           schemeField = iprot.readFieldBegin();
5836           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5837             break;
5838           }
5839           switch (schemeField.id) {
5840             case 0: // SUCCESS
5841               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
5842                 struct.success = iprot.readI32();
5843                 struct.setSuccessIsSet(true);
5844               } else {
5845                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5846               }
5847               break;
5848             default:
5849               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5850           }
5851           iprot.readFieldEnd();
5852         }
5853         iprot.readStructEnd();
5854
5855         // check for required fields of primitive type, which can't be checked in the validate method
5856         struct.validate();
5857       }
5858
5859       @Override
5860         public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_result struct) throws org.apache.thrift.TException {
5861         struct.validate();
5862
5863         oprot.writeStructBegin(STRUCT_DESC);
5864         if (struct.isSetSuccess()) {
5865           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5866           oprot.writeI32(struct.success);
5867           oprot.writeFieldEnd();
5868         }
5869         oprot.writeFieldStop();
5870         oprot.writeStructEnd();
5871       }
5872
5873     }
5874
5875     private static class stopBgp_resultTupleSchemeFactory implements SchemeFactory {
5876       @Override
5877         public stopBgp_resultTupleScheme getScheme() {
5878         return new stopBgp_resultTupleScheme();
5879       }
5880     }
5881
5882     private static class stopBgp_resultTupleScheme extends TupleScheme<stopBgp_result> {
5883
5884       @Override
5885       public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
5886         TTupleProtocol oprot = (TTupleProtocol) prot;
5887         BitSet optionals = new BitSet();
5888         if (struct.isSetSuccess()) {
5889           optionals.set(0);
5890         }
5891         oprot.writeBitSet(optionals, 1);
5892         if (struct.isSetSuccess()) {
5893           oprot.writeI32(struct.success);
5894         }
5895       }
5896
5897       @Override
5898       public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
5899         TTupleProtocol iprot = (TTupleProtocol) prot;
5900         BitSet incoming = iprot.readBitSet(1);
5901         if (incoming.get(0)) {
5902           struct.success = iprot.readI32();
5903           struct.setSuccessIsSet(true);
5904         }
5905       }
5906     }
5907
5908   }
5909
5910   public static class createPeer_args implements org.apache.thrift.TBase<createPeer_args, createPeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_args>   {
5911     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_args");
5912
5913     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);
5914     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);
5915
5916     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5917     static {
5918       schemes.put(StandardScheme.class, new createPeer_argsStandardSchemeFactory());
5919       schemes.put(TupleScheme.class, new createPeer_argsTupleSchemeFactory());
5920     }
5921
5922     public String ipAddress; // required
5923     public long asNumber; // required
5924
5925     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5926     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5927       IP_ADDRESS((short)1, "ipAddress"),
5928       AS_NUMBER((short)2, "asNumber");
5929
5930       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5931
5932       static {
5933         for (_Fields field : EnumSet.allOf(_Fields.class)) {
5934           byName.put(field.getFieldName(), field);
5935         }
5936       }
5937
5938       /**
5939        * Find the _Fields constant that matches fieldId, or null if its not found.
5940        */
5941       public static _Fields findByThriftId(int fieldId) {
5942         switch(fieldId) {
5943           case 1: // IP_ADDRESS
5944             return IP_ADDRESS;
5945           case 2: // AS_NUMBER
5946             return AS_NUMBER;
5947           default:
5948             return null;
5949         }
5950       }
5951
5952       /**
5953        * Find the _Fields constant that matches fieldId, throwing an exception
5954        * if it is not found.
5955        */
5956       public static _Fields findByThriftIdOrThrow(int fieldId) {
5957         _Fields fields = findByThriftId(fieldId);
5958         if (fields == null) {
5959                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5960                 }
5961         return fields;
5962       }
5963
5964       /**
5965        * Find the _Fields constant that matches name, or null if its not found.
5966        */
5967       public static _Fields findByName(String name) {
5968         return byName.get(name);
5969       }
5970
5971       private final short _thriftId;
5972       private final String _fieldName;
5973
5974       _Fields(short thriftId, String fieldName) {
5975         _thriftId = thriftId;
5976         _fieldName = fieldName;
5977       }
5978
5979       @Override
5980         public short getThriftFieldId() {
5981         return _thriftId;
5982       }
5983
5984       @Override
5985         public String getFieldName() {
5986         return _fieldName;
5987       }
5988     }
5989
5990     // isset id assignments
5991     private static final int __ASNUMBER_ISSET_ID = 0;
5992     private byte __isset_bitfield = 0;
5993     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5994     static {
5995       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5996       tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
5997           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5998       tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
5999           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6000       metaDataMap = Collections.unmodifiableMap(tmpMap);
6001       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_args.class, metaDataMap);
6002     }
6003
6004     public createPeer_args() {
6005     }
6006
6007     public createPeer_args(
6008       String ipAddress,
6009       long asNumber)
6010     {
6011       this();
6012       this.ipAddress = ipAddress;
6013       this.asNumber = asNumber;
6014       setAsNumberIsSet(true);
6015     }
6016
6017     /**
6018      * Performs a deep copy on <i>other</i>.
6019      */
6020     public createPeer_args(createPeer_args other) {
6021       __isset_bitfield = other.__isset_bitfield;
6022       if (other.isSetIpAddress()) {
6023         this.ipAddress = other.ipAddress;
6024       }
6025       this.asNumber = other.asNumber;
6026     }
6027
6028     @Override
6029         public createPeer_args deepCopy() {
6030       return new createPeer_args(this);
6031     }
6032
6033     @Override
6034     public void clear() {
6035       this.ipAddress = null;
6036       setAsNumberIsSet(false);
6037       this.asNumber = 0;
6038     }
6039
6040     public String getIpAddress() {
6041       return this.ipAddress;
6042     }
6043
6044     public createPeer_args setIpAddress(String ipAddress) {
6045       this.ipAddress = ipAddress;
6046       return this;
6047     }
6048
6049     public void unsetIpAddress() {
6050       this.ipAddress = null;
6051     }
6052
6053     /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
6054     public boolean isSetIpAddress() {
6055       return this.ipAddress != null;
6056     }
6057
6058     public void setIpAddressIsSet(boolean value) {
6059       if (!value) {
6060         this.ipAddress = null;
6061       }
6062     }
6063
6064     public long getAsNumber() {
6065       return this.asNumber;
6066     }
6067
6068     public createPeer_args setAsNumber(long asNumber) {
6069       this.asNumber = asNumber;
6070       setAsNumberIsSet(true);
6071       return this;
6072     }
6073
6074     public void unsetAsNumber() {
6075       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
6076     }
6077
6078     /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
6079     public boolean isSetAsNumber() {
6080       return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
6081     }
6082
6083     public void setAsNumberIsSet(boolean value) {
6084       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
6085     }
6086
6087     @Override
6088         public void setFieldValue(_Fields field, Object value) {
6089       switch (field) {
6090       case IP_ADDRESS:
6091         if (value == null) {
6092           unsetIpAddress();
6093         } else {
6094           setIpAddress((String)value);
6095         }
6096         break;
6097
6098       case AS_NUMBER:
6099         if (value == null) {
6100           unsetAsNumber();
6101         } else {
6102           setAsNumber((Long)value);
6103         }
6104         break;
6105
6106       }
6107     }
6108
6109     @Override
6110         public Object getFieldValue(_Fields field) {
6111       switch (field) {
6112       case IP_ADDRESS:
6113         return getIpAddress();
6114
6115       case AS_NUMBER:
6116         return Long.valueOf(getAsNumber());
6117
6118       }
6119       throw new IllegalStateException();
6120     }
6121
6122     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6123     @Override
6124         public boolean isSet(_Fields field) {
6125       if (field == null) {
6126         throw new IllegalArgumentException();
6127       }
6128
6129       switch (field) {
6130       case IP_ADDRESS:
6131         return isSetIpAddress();
6132       case AS_NUMBER:
6133         return isSetAsNumber();
6134       }
6135       throw new IllegalStateException();
6136     }
6137
6138     @Override
6139     public boolean equals(Object that) {
6140       if (that == null) {
6141                 return false;
6142         }
6143       if (that instanceof createPeer_args) {
6144                 return this.equals((createPeer_args)that);
6145         }
6146       return false;
6147     }
6148
6149     public boolean equals(createPeer_args that) {
6150       if (that == null) {
6151                 return false;
6152         }
6153
6154       boolean this_present_ipAddress = true && this.isSetIpAddress();
6155       boolean that_present_ipAddress = true && that.isSetIpAddress();
6156       if (this_present_ipAddress || that_present_ipAddress) {
6157         if (!(this_present_ipAddress && that_present_ipAddress)) {
6158                         return false;
6159                 }
6160         if (!this.ipAddress.equals(that.ipAddress)) {
6161                         return false;
6162                 }
6163       }
6164
6165       boolean this_present_asNumber = true;
6166       boolean that_present_asNumber = true;
6167       if (this_present_asNumber || that_present_asNumber) {
6168         if (!(this_present_asNumber && that_present_asNumber)) {
6169                         return false;
6170                 }
6171         if (this.asNumber != that.asNumber) {
6172                         return false;
6173                 }
6174       }
6175
6176       return true;
6177     }
6178
6179     @Override
6180     public int hashCode() {
6181       List<Object> list = new ArrayList<Object>();
6182
6183       boolean present_ipAddress = true && (isSetIpAddress());
6184       list.add(present_ipAddress);
6185       if (present_ipAddress)
6186         list.add(ipAddress);
6187       boolean present_asNumber = true;
6188       list.add(present_asNumber);
6189       if (present_asNumber)
6190         list.add(asNumber);
6191       return list.hashCode();
6192     }
6193
6194     @Override
6195     public int compareTo(createPeer_args other) {
6196       if (!getClass().equals(other.getClass())) {
6197         return getClass().getName().compareTo(other.getClass().getName());
6198       }
6199
6200       int lastComparison = 0;
6201
6202       lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
6203       if (lastComparison != 0) {
6204         return lastComparison;
6205       }
6206       if (isSetIpAddress()) {
6207         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
6208         if (lastComparison != 0) {
6209           return lastComparison;
6210         }
6211       }
6212       lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
6213       if (lastComparison != 0) {
6214         return lastComparison;
6215       }
6216       if (isSetAsNumber()) {
6217         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
6218         if (lastComparison != 0) {
6219           return lastComparison;
6220         }
6221       }
6222       return 0;
6223     }
6224
6225     @Override
6226         public _Fields fieldForId(int fieldId) {
6227       return _Fields.findByThriftId(fieldId);
6228     }
6229
6230     @Override
6231         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6232       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6233     }
6234
6235     @Override
6236         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6237       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6238     }
6239
6240     @Override
6241     public String toString() {
6242       StringBuilder sb = new StringBuilder("createPeer_args(");
6243       boolean first = true;
6244
6245       sb.append("ipAddress:");
6246       if (this.ipAddress == null) {
6247         sb.append("null");
6248       } else {
6249         sb.append(this.ipAddress);
6250       }
6251       first = false;
6252       if (!first) {
6253                 sb.append(", ");
6254         }
6255       sb.append("asNumber:");
6256       sb.append(this.asNumber);
6257       first = false;
6258       sb.append(")");
6259       return sb.toString();
6260     }
6261
6262     public void validate() throws org.apache.thrift.TException {
6263       // check for required fields
6264       // check for sub-struct validity
6265     }
6266
6267     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6268       try {
6269         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6270       } catch (org.apache.thrift.TException te) {
6271         throw new java.io.IOException(te);
6272       }
6273     }
6274
6275     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6276       try {
6277         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6278         __isset_bitfield = 0;
6279         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6280       } catch (org.apache.thrift.TException te) {
6281         throw new java.io.IOException(te);
6282       }
6283     }
6284
6285     private static class createPeer_argsStandardSchemeFactory implements SchemeFactory {
6286       @Override
6287         public createPeer_argsStandardScheme getScheme() {
6288         return new createPeer_argsStandardScheme();
6289       }
6290     }
6291
6292     private static class createPeer_argsStandardScheme extends StandardScheme<createPeer_args> {
6293
6294       @Override
6295         public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_args struct) throws org.apache.thrift.TException {
6296         org.apache.thrift.protocol.TField schemeField;
6297         iprot.readStructBegin();
6298         while (true)
6299         {
6300           schemeField = iprot.readFieldBegin();
6301           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6302             break;
6303           }
6304           switch (schemeField.id) {
6305             case 1: // IP_ADDRESS
6306               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
6307                 struct.ipAddress = iprot.readString();
6308                 struct.setIpAddressIsSet(true);
6309               } else {
6310                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6311               }
6312               break;
6313             case 2: // AS_NUMBER
6314               if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
6315                 struct.asNumber = iprot.readI64();
6316                 struct.setAsNumberIsSet(true);
6317               } else {
6318                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6319               }
6320               break;
6321             default:
6322               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6323           }
6324           iprot.readFieldEnd();
6325         }
6326         iprot.readStructEnd();
6327
6328         // check for required fields of primitive type, which can't be checked in the validate method
6329         struct.validate();
6330       }
6331
6332       @Override
6333         public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_args struct) throws org.apache.thrift.TException {
6334         struct.validate();
6335
6336         oprot.writeStructBegin(STRUCT_DESC);
6337         if (struct.ipAddress != null) {
6338           oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
6339           oprot.writeString(struct.ipAddress);
6340           oprot.writeFieldEnd();
6341         }
6342         oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
6343         oprot.writeI64(struct.asNumber);
6344         oprot.writeFieldEnd();
6345         oprot.writeFieldStop();
6346         oprot.writeStructEnd();
6347       }
6348
6349     }
6350
6351     private static class createPeer_argsTupleSchemeFactory implements SchemeFactory {
6352       @Override
6353         public createPeer_argsTupleScheme getScheme() {
6354         return new createPeer_argsTupleScheme();
6355       }
6356     }
6357
6358     private static class createPeer_argsTupleScheme extends TupleScheme<createPeer_args> {
6359
6360       @Override
6361       public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
6362         TTupleProtocol oprot = (TTupleProtocol) prot;
6363         BitSet optionals = new BitSet();
6364         if (struct.isSetIpAddress()) {
6365           optionals.set(0);
6366         }
6367         if (struct.isSetAsNumber()) {
6368           optionals.set(1);
6369         }
6370         oprot.writeBitSet(optionals, 2);
6371         if (struct.isSetIpAddress()) {
6372           oprot.writeString(struct.ipAddress);
6373         }
6374         if (struct.isSetAsNumber()) {
6375           oprot.writeI64(struct.asNumber);
6376         }
6377       }
6378
6379       @Override
6380       public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
6381         TTupleProtocol iprot = (TTupleProtocol) prot;
6382         BitSet incoming = iprot.readBitSet(2);
6383         if (incoming.get(0)) {
6384           struct.ipAddress = iprot.readString();
6385           struct.setIpAddressIsSet(true);
6386         }
6387         if (incoming.get(1)) {
6388           struct.asNumber = iprot.readI64();
6389           struct.setAsNumberIsSet(true);
6390         }
6391       }
6392     }
6393
6394   }
6395
6396   public static class createPeer_result implements org.apache.thrift.TBase<createPeer_result, createPeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_result>   {
6397     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_result");
6398
6399     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);
6400
6401     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6402     static {
6403       schemes.put(StandardScheme.class, new createPeer_resultStandardSchemeFactory());
6404       schemes.put(TupleScheme.class, new createPeer_resultTupleSchemeFactory());
6405     }
6406
6407     public int success; // required
6408
6409     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6410     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6411       SUCCESS((short)0, "success");
6412
6413       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6414
6415       static {
6416         for (_Fields field : EnumSet.allOf(_Fields.class)) {
6417           byName.put(field.getFieldName(), field);
6418         }
6419       }
6420
6421       /**
6422        * Find the _Fields constant that matches fieldId, or null if its not found.
6423        */
6424       public static _Fields findByThriftId(int fieldId) {
6425         switch(fieldId) {
6426           case 0: // SUCCESS
6427             return SUCCESS;
6428           default:
6429             return null;
6430         }
6431       }
6432
6433       /**
6434        * Find the _Fields constant that matches fieldId, throwing an exception
6435        * if it is not found.
6436        */
6437       public static _Fields findByThriftIdOrThrow(int fieldId) {
6438         _Fields fields = findByThriftId(fieldId);
6439         if (fields == null) {
6440                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6441                 }
6442         return fields;
6443       }
6444
6445       /**
6446        * Find the _Fields constant that matches name, or null if its not found.
6447        */
6448       public static _Fields findByName(String name) {
6449         return byName.get(name);
6450       }
6451
6452       private final short _thriftId;
6453       private final String _fieldName;
6454
6455       _Fields(short thriftId, String fieldName) {
6456         _thriftId = thriftId;
6457         _fieldName = fieldName;
6458       }
6459
6460       @Override
6461         public short getThriftFieldId() {
6462         return _thriftId;
6463       }
6464
6465       @Override
6466         public String getFieldName() {
6467         return _fieldName;
6468       }
6469     }
6470
6471     // isset id assignments
6472     private static final int __SUCCESS_ISSET_ID = 0;
6473     private byte __isset_bitfield = 0;
6474     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6475     static {
6476       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6477       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
6478           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6479       metaDataMap = Collections.unmodifiableMap(tmpMap);
6480       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_result.class, metaDataMap);
6481     }
6482
6483     public createPeer_result() {
6484     }
6485
6486     public createPeer_result(
6487       int success)
6488     {
6489       this();
6490       this.success = success;
6491       setSuccessIsSet(true);
6492     }
6493
6494     /**
6495      * Performs a deep copy on <i>other</i>.
6496      */
6497     public createPeer_result(createPeer_result other) {
6498       __isset_bitfield = other.__isset_bitfield;
6499       this.success = other.success;
6500     }
6501
6502     @Override
6503         public createPeer_result deepCopy() {
6504       return new createPeer_result(this);
6505     }
6506
6507     @Override
6508     public void clear() {
6509       setSuccessIsSet(false);
6510       this.success = 0;
6511     }
6512
6513     public int getSuccess() {
6514       return this.success;
6515     }
6516
6517     public createPeer_result setSuccess(int success) {
6518       this.success = success;
6519       setSuccessIsSet(true);
6520       return this;
6521     }
6522
6523     public void unsetSuccess() {
6524       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6525     }
6526
6527     /** Returns true if field success is set (has been assigned a value) and false otherwise */
6528     public boolean isSetSuccess() {
6529       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6530     }
6531
6532     public void setSuccessIsSet(boolean value) {
6533       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
6534     }
6535
6536     @Override
6537         public void setFieldValue(_Fields field, Object value) {
6538       switch (field) {
6539       case SUCCESS:
6540         if (value == null) {
6541           unsetSuccess();
6542         } else {
6543           setSuccess((Integer)value);
6544         }
6545         break;
6546
6547       }
6548     }
6549
6550     @Override
6551         public Object getFieldValue(_Fields field) {
6552       switch (field) {
6553       case SUCCESS:
6554         return Integer.valueOf(getSuccess());
6555
6556       }
6557       throw new IllegalStateException();
6558     }
6559
6560     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6561     @Override
6562         public boolean isSet(_Fields field) {
6563       if (field == null) {
6564         throw new IllegalArgumentException();
6565       }
6566
6567       switch (field) {
6568       case SUCCESS:
6569         return isSetSuccess();
6570       }
6571       throw new IllegalStateException();
6572     }
6573
6574     @Override
6575     public boolean equals(Object that) {
6576       if (that == null) {
6577                 return false;
6578         }
6579       if (that instanceof createPeer_result) {
6580                 return this.equals((createPeer_result)that);
6581         }
6582       return false;
6583     }
6584
6585     public boolean equals(createPeer_result that) {
6586       if (that == null) {
6587                 return false;
6588         }
6589
6590       boolean this_present_success = true;
6591       boolean that_present_success = true;
6592       if (this_present_success || that_present_success) {
6593         if (!(this_present_success && that_present_success)) {
6594                         return false;
6595                 }
6596         if (this.success != that.success) {
6597                         return false;
6598                 }
6599       }
6600
6601       return true;
6602     }
6603
6604     @Override
6605     public int hashCode() {
6606       List<Object> list = new ArrayList<Object>();
6607
6608       boolean present_success = true;
6609       list.add(present_success);
6610       if (present_success)
6611         list.add(success);
6612       return list.hashCode();
6613     }
6614
6615     @Override
6616     public int compareTo(createPeer_result other) {
6617       if (!getClass().equals(other.getClass())) {
6618         return getClass().getName().compareTo(other.getClass().getName());
6619       }
6620
6621       int lastComparison = 0;
6622
6623       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
6624       if (lastComparison != 0) {
6625         return lastComparison;
6626       }
6627       if (isSetSuccess()) {
6628         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
6629         if (lastComparison != 0) {
6630           return lastComparison;
6631         }
6632       }
6633       return 0;
6634     }
6635
6636     @Override
6637         public _Fields fieldForId(int fieldId) {
6638       return _Fields.findByThriftId(fieldId);
6639     }
6640
6641     @Override
6642         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6643       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6644     }
6645
6646     @Override
6647         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6648       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6649       }
6650
6651     @Override
6652     public String toString() {
6653       StringBuilder sb = new StringBuilder("createPeer_result(");
6654       boolean first = true;
6655
6656       sb.append("success:");
6657       sb.append(this.success);
6658       first = false;
6659       sb.append(")");
6660       return sb.toString();
6661     }
6662
6663     public void validate() throws org.apache.thrift.TException {
6664       // check for required fields
6665       // check for sub-struct validity
6666     }
6667
6668     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6669       try {
6670         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6671       } catch (org.apache.thrift.TException te) {
6672         throw new java.io.IOException(te);
6673       }
6674     }
6675
6676     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6677       try {
6678         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6679         __isset_bitfield = 0;
6680         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6681       } catch (org.apache.thrift.TException te) {
6682         throw new java.io.IOException(te);
6683       }
6684     }
6685
6686     private static class createPeer_resultStandardSchemeFactory implements SchemeFactory {
6687       @Override
6688         public createPeer_resultStandardScheme getScheme() {
6689         return new createPeer_resultStandardScheme();
6690       }
6691     }
6692
6693     private static class createPeer_resultStandardScheme extends StandardScheme<createPeer_result> {
6694
6695       @Override
6696         public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_result struct) throws org.apache.thrift.TException {
6697         org.apache.thrift.protocol.TField schemeField;
6698         iprot.readStructBegin();
6699         while (true)
6700         {
6701           schemeField = iprot.readFieldBegin();
6702           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6703             break;
6704           }
6705           switch (schemeField.id) {
6706             case 0: // SUCCESS
6707               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
6708                 struct.success = iprot.readI32();
6709                 struct.setSuccessIsSet(true);
6710               } else {
6711                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6712               }
6713               break;
6714             default:
6715               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6716           }
6717           iprot.readFieldEnd();
6718         }
6719         iprot.readStructEnd();
6720
6721         // check for required fields of primitive type, which can't be checked in the validate method
6722         struct.validate();
6723       }
6724
6725       @Override
6726         public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_result struct) throws org.apache.thrift.TException {
6727         struct.validate();
6728
6729         oprot.writeStructBegin(STRUCT_DESC);
6730         if (struct.isSetSuccess()) {
6731           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6732           oprot.writeI32(struct.success);
6733           oprot.writeFieldEnd();
6734         }
6735         oprot.writeFieldStop();
6736         oprot.writeStructEnd();
6737       }
6738
6739     }
6740
6741     private static class createPeer_resultTupleSchemeFactory implements SchemeFactory {
6742       @Override
6743         public createPeer_resultTupleScheme getScheme() {
6744         return new createPeer_resultTupleScheme();
6745       }
6746     }
6747
6748     private static class createPeer_resultTupleScheme extends TupleScheme<createPeer_result> {
6749
6750       @Override
6751       public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
6752         TTupleProtocol oprot = (TTupleProtocol) prot;
6753         BitSet optionals = new BitSet();
6754         if (struct.isSetSuccess()) {
6755           optionals.set(0);
6756         }
6757         oprot.writeBitSet(optionals, 1);
6758         if (struct.isSetSuccess()) {
6759           oprot.writeI32(struct.success);
6760         }
6761       }
6762
6763       @Override
6764       public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
6765         TTupleProtocol iprot = (TTupleProtocol) prot;
6766         BitSet incoming = iprot.readBitSet(1);
6767         if (incoming.get(0)) {
6768           struct.success = iprot.readI32();
6769           struct.setSuccessIsSet(true);
6770         }
6771       }
6772     }
6773
6774   }
6775
6776   public static class setPeerSecret_args implements org.apache.thrift.TBase<setPeerSecret_args, setPeerSecret_args._Fields>, java.io.Serializable, Cloneable, Comparable<setPeerSecret_args>   {
6777     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setPeerSecret_args");
6778
6779     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);
6780     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);
6781
6782     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6783     static {
6784       schemes.put(StandardScheme.class, new setPeerSecret_argsStandardSchemeFactory());
6785       schemes.put(TupleScheme.class, new setPeerSecret_argsTupleSchemeFactory());
6786     }
6787
6788     public String ipAddress; // required
6789     public String rfc2385_sharedSecret; // required
6790
6791     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6792     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6793       IP_ADDRESS((short)1, "ipAddress"),
6794       RFC2385_SHARED_SECRET((short)2, "rfc2385_sharedSecret");
6795
6796       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6797
6798       static {
6799         for (_Fields field : EnumSet.allOf(_Fields.class)) {
6800           byName.put(field.getFieldName(), field);
6801         }
6802       }
6803
6804       /**
6805        * Find the _Fields constant that matches fieldId, or null if its not found.
6806        */
6807       public static _Fields findByThriftId(int fieldId) {
6808         switch(fieldId) {
6809           case 1: // IP_ADDRESS
6810             return IP_ADDRESS;
6811           case 2: // RFC2385_SHARED_SECRET
6812             return RFC2385_SHARED_SECRET;
6813           default:
6814             return null;
6815         }
6816       }
6817
6818       /**
6819        * Find the _Fields constant that matches fieldId, throwing an exception
6820        * if it is not found.
6821        */
6822       public static _Fields findByThriftIdOrThrow(int fieldId) {
6823         _Fields fields = findByThriftId(fieldId);
6824         if (fields == null) {
6825                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6826                 }
6827         return fields;
6828       }
6829
6830       /**
6831        * Find the _Fields constant that matches name, or null if its not found.
6832        */
6833       public static _Fields findByName(String name) {
6834         return byName.get(name);
6835       }
6836
6837       private final short _thriftId;
6838       private final String _fieldName;
6839
6840       _Fields(short thriftId, String fieldName) {
6841         _thriftId = thriftId;
6842         _fieldName = fieldName;
6843       }
6844
6845       @Override
6846         public short getThriftFieldId() {
6847         return _thriftId;
6848       }
6849
6850       @Override
6851         public String getFieldName() {
6852         return _fieldName;
6853       }
6854     }
6855
6856     // isset id assignments
6857     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6858     static {
6859       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6860       tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
6861           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6862       tmpMap.put(_Fields.RFC2385_SHARED_SECRET, new org.apache.thrift.meta_data.FieldMetaData("rfc2385_sharedSecret", org.apache.thrift.TFieldRequirementType.DEFAULT,
6863           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6864       metaDataMap = Collections.unmodifiableMap(tmpMap);
6865       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setPeerSecret_args.class, metaDataMap);
6866     }
6867
6868     public setPeerSecret_args() {
6869     }
6870
6871     public setPeerSecret_args(
6872       String ipAddress,
6873       String rfc2385_sharedSecret)
6874     {
6875       this();
6876       this.ipAddress = ipAddress;
6877       this.rfc2385_sharedSecret = rfc2385_sharedSecret;
6878     }
6879
6880     /**
6881      * Performs a deep copy on <i>other</i>.
6882      */
6883     public setPeerSecret_args(setPeerSecret_args other) {
6884       if (other.isSetIpAddress()) {
6885         this.ipAddress = other.ipAddress;
6886       }
6887       if (other.isSetRfc2385_sharedSecret()) {
6888         this.rfc2385_sharedSecret = other.rfc2385_sharedSecret;
6889       }
6890     }
6891
6892     @Override
6893         public setPeerSecret_args deepCopy() {
6894       return new setPeerSecret_args(this);
6895     }
6896
6897     @Override
6898     public void clear() {
6899       this.ipAddress = null;
6900       this.rfc2385_sharedSecret = null;
6901     }
6902
6903     public String getIpAddress() {
6904       return this.ipAddress;
6905     }
6906
6907     public setPeerSecret_args setIpAddress(String ipAddress) {
6908       this.ipAddress = ipAddress;
6909       return this;
6910     }
6911
6912     public void unsetIpAddress() {
6913       this.ipAddress = null;
6914     }
6915
6916     /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
6917     public boolean isSetIpAddress() {
6918       return this.ipAddress != null;
6919     }
6920
6921     public void setIpAddressIsSet(boolean value) {
6922       if (!value) {
6923         this.ipAddress = null;
6924       }
6925     }
6926
6927     public String getRfc2385_sharedSecret() {
6928       return this.rfc2385_sharedSecret;
6929     }
6930
6931     public setPeerSecret_args setRfc2385_sharedSecret(String rfc2385_sharedSecret) {
6932       this.rfc2385_sharedSecret = rfc2385_sharedSecret;
6933       return this;
6934     }
6935
6936     public void unsetRfc2385_sharedSecret() {
6937       this.rfc2385_sharedSecret = null;
6938     }
6939
6940     /** Returns true if field rfc2385_sharedSecret is set (has been assigned a value) and false otherwise */
6941     public boolean isSetRfc2385_sharedSecret() {
6942       return this.rfc2385_sharedSecret != null;
6943     }
6944
6945     public void setRfc2385_sharedSecretIsSet(boolean value) {
6946       if (!value) {
6947         this.rfc2385_sharedSecret = null;
6948       }
6949     }
6950
6951     @Override
6952         public void setFieldValue(_Fields field, Object value) {
6953       switch (field) {
6954       case IP_ADDRESS:
6955         if (value == null) {
6956           unsetIpAddress();
6957         } else {
6958           setIpAddress((String)value);
6959         }
6960         break;
6961
6962       case RFC2385_SHARED_SECRET:
6963         if (value == null) {
6964           unsetRfc2385_sharedSecret();
6965         } else {
6966           setRfc2385_sharedSecret((String)value);
6967         }
6968         break;
6969
6970       }
6971     }
6972
6973     @Override
6974         public Object getFieldValue(_Fields field) {
6975       switch (field) {
6976       case IP_ADDRESS:
6977         return getIpAddress();
6978
6979       case RFC2385_SHARED_SECRET:
6980         return getRfc2385_sharedSecret();
6981
6982       }
6983       throw new IllegalStateException();
6984     }
6985
6986     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6987     @Override
6988         public boolean isSet(_Fields field) {
6989       if (field == null) {
6990         throw new IllegalArgumentException();
6991       }
6992
6993       switch (field) {
6994       case IP_ADDRESS:
6995         return isSetIpAddress();
6996       case RFC2385_SHARED_SECRET:
6997         return isSetRfc2385_sharedSecret();
6998       }
6999       throw new IllegalStateException();
7000     }
7001
7002     @Override
7003     public boolean equals(Object that) {
7004       if (that == null) {
7005                 return false;
7006         }
7007       if (that instanceof setPeerSecret_args) {
7008                 return this.equals((setPeerSecret_args)that);
7009         }
7010       return false;
7011     }
7012
7013     public boolean equals(setPeerSecret_args that) {
7014       if (that == null) {
7015                 return false;
7016         }
7017
7018       boolean this_present_ipAddress = true && this.isSetIpAddress();
7019       boolean that_present_ipAddress = true && that.isSetIpAddress();
7020       if (this_present_ipAddress || that_present_ipAddress) {
7021         if (!(this_present_ipAddress && that_present_ipAddress)) {
7022                         return false;
7023                 }
7024         if (!this.ipAddress.equals(that.ipAddress)) {
7025                         return false;
7026                 }
7027       }
7028
7029       boolean this_present_rfc2385_sharedSecret = true && this.isSetRfc2385_sharedSecret();
7030       boolean that_present_rfc2385_sharedSecret = true && that.isSetRfc2385_sharedSecret();
7031       if (this_present_rfc2385_sharedSecret || that_present_rfc2385_sharedSecret) {
7032         if (!(this_present_rfc2385_sharedSecret && that_present_rfc2385_sharedSecret)) {
7033                         return false;
7034                 }
7035         if (!this.rfc2385_sharedSecret.equals(that.rfc2385_sharedSecret)) {
7036                         return false;
7037                 }
7038       }
7039
7040       return true;
7041     }
7042
7043     @Override
7044     public int hashCode() {
7045       List<Object> list = new ArrayList<Object>();
7046
7047       boolean present_ipAddress = true && (isSetIpAddress());
7048       list.add(present_ipAddress);
7049       if (present_ipAddress)
7050         list.add(ipAddress);
7051       boolean present_rfc2385_sharedSecret = true && (isSetRfc2385_sharedSecret());
7052       list.add(present_rfc2385_sharedSecret);
7053       if (present_rfc2385_sharedSecret)
7054         list.add(rfc2385_sharedSecret);
7055       return list.hashCode();
7056     }
7057
7058     @Override
7059     public int compareTo(setPeerSecret_args other) {
7060       if (!getClass().equals(other.getClass())) {
7061         return getClass().getName().compareTo(other.getClass().getName());
7062       }
7063
7064       int lastComparison = 0;
7065
7066       lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
7067       if (lastComparison != 0) {
7068         return lastComparison;
7069       }
7070       if (isSetIpAddress()) {
7071         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
7072         if (lastComparison != 0) {
7073           return lastComparison;
7074         }
7075       }
7076       lastComparison = Boolean.valueOf(isSetRfc2385_sharedSecret()).compareTo(other.isSetRfc2385_sharedSecret());
7077       if (lastComparison != 0) {
7078         return lastComparison;
7079       }
7080       if (isSetRfc2385_sharedSecret()) {
7081         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rfc2385_sharedSecret, other.rfc2385_sharedSecret);
7082         if (lastComparison != 0) {
7083           return lastComparison;
7084         }
7085       }
7086       return 0;
7087     }
7088
7089     @Override
7090         public _Fields fieldForId(int fieldId) {
7091       return _Fields.findByThriftId(fieldId);
7092     }
7093
7094     @Override
7095         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7096       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7097     }
7098
7099     @Override
7100         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7101       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7102     }
7103
7104     @Override
7105     public String toString() {
7106       StringBuilder sb = new StringBuilder("setPeerSecret_args(");
7107       boolean first = true;
7108
7109       sb.append("ipAddress:");
7110       if (this.ipAddress == null) {
7111         sb.append("null");
7112       } else {
7113         sb.append(this.ipAddress);
7114       }
7115       first = false;
7116       if (!first) {
7117                 sb.append(", ");
7118         }
7119       sb.append("rfc2385_sharedSecret:");
7120       if (this.rfc2385_sharedSecret == null) {
7121         sb.append("null");
7122       } else {
7123         sb.append(this.rfc2385_sharedSecret);
7124       }
7125       first = false;
7126       sb.append(")");
7127       return sb.toString();
7128     }
7129
7130     public void validate() throws org.apache.thrift.TException {
7131       // check for required fields
7132       // check for sub-struct validity
7133     }
7134
7135     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7136       try {
7137         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7138       } catch (org.apache.thrift.TException te) {
7139         throw new java.io.IOException(te);
7140       }
7141     }
7142
7143     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7144       try {
7145         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7146       } catch (org.apache.thrift.TException te) {
7147         throw new java.io.IOException(te);
7148       }
7149     }
7150
7151     private static class setPeerSecret_argsStandardSchemeFactory implements SchemeFactory {
7152       @Override
7153         public setPeerSecret_argsStandardScheme getScheme() {
7154         return new setPeerSecret_argsStandardScheme();
7155       }
7156     }
7157
7158     private static class setPeerSecret_argsStandardScheme extends StandardScheme<setPeerSecret_args> {
7159
7160       @Override
7161         public void read(org.apache.thrift.protocol.TProtocol iprot, setPeerSecret_args struct) throws org.apache.thrift.TException {
7162         org.apache.thrift.protocol.TField schemeField;
7163         iprot.readStructBegin();
7164         while (true)
7165         {
7166           schemeField = iprot.readFieldBegin();
7167           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7168             break;
7169           }
7170           switch (schemeField.id) {
7171             case 1: // IP_ADDRESS
7172               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7173                 struct.ipAddress = iprot.readString();
7174                 struct.setIpAddressIsSet(true);
7175               } else {
7176                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7177               }
7178               break;
7179             case 2: // RFC2385_SHARED_SECRET
7180               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7181                 struct.rfc2385_sharedSecret = iprot.readString();
7182                 struct.setRfc2385_sharedSecretIsSet(true);
7183               } else {
7184                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7185               }
7186               break;
7187             default:
7188               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7189           }
7190           iprot.readFieldEnd();
7191         }
7192         iprot.readStructEnd();
7193
7194         // check for required fields of primitive type, which can't be checked in the validate method
7195         struct.validate();
7196       }
7197
7198       @Override
7199         public void write(org.apache.thrift.protocol.TProtocol oprot, setPeerSecret_args struct) throws org.apache.thrift.TException {
7200         struct.validate();
7201
7202         oprot.writeStructBegin(STRUCT_DESC);
7203         if (struct.ipAddress != null) {
7204           oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
7205           oprot.writeString(struct.ipAddress);
7206           oprot.writeFieldEnd();
7207         }
7208         if (struct.rfc2385_sharedSecret != null) {
7209           oprot.writeFieldBegin(RFC2385_SHARED_SECRET_FIELD_DESC);
7210           oprot.writeString(struct.rfc2385_sharedSecret);
7211           oprot.writeFieldEnd();
7212         }
7213         oprot.writeFieldStop();
7214         oprot.writeStructEnd();
7215       }
7216
7217     }
7218
7219     private static class setPeerSecret_argsTupleSchemeFactory implements SchemeFactory {
7220       @Override
7221         public setPeerSecret_argsTupleScheme getScheme() {
7222         return new setPeerSecret_argsTupleScheme();
7223       }
7224     }
7225
7226     private static class setPeerSecret_argsTupleScheme extends TupleScheme<setPeerSecret_args> {
7227
7228       @Override
7229       public void write(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_args struct) throws org.apache.thrift.TException {
7230         TTupleProtocol oprot = (TTupleProtocol) prot;
7231         BitSet optionals = new BitSet();
7232         if (struct.isSetIpAddress()) {
7233           optionals.set(0);
7234         }
7235         if (struct.isSetRfc2385_sharedSecret()) {
7236           optionals.set(1);
7237         }
7238         oprot.writeBitSet(optionals, 2);
7239         if (struct.isSetIpAddress()) {
7240           oprot.writeString(struct.ipAddress);
7241         }
7242         if (struct.isSetRfc2385_sharedSecret()) {
7243           oprot.writeString(struct.rfc2385_sharedSecret);
7244         }
7245       }
7246
7247       @Override
7248       public void read(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_args struct) throws org.apache.thrift.TException {
7249         TTupleProtocol iprot = (TTupleProtocol) prot;
7250         BitSet incoming = iprot.readBitSet(2);
7251         if (incoming.get(0)) {
7252           struct.ipAddress = iprot.readString();
7253           struct.setIpAddressIsSet(true);
7254         }
7255         if (incoming.get(1)) {
7256           struct.rfc2385_sharedSecret = iprot.readString();
7257           struct.setRfc2385_sharedSecretIsSet(true);
7258         }
7259       }
7260     }
7261
7262   }
7263
7264   public static class setPeerSecret_result implements org.apache.thrift.TBase<setPeerSecret_result, setPeerSecret_result._Fields>, java.io.Serializable, Cloneable, Comparable<setPeerSecret_result>   {
7265     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setPeerSecret_result");
7266
7267     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);
7268
7269     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7270     static {
7271       schemes.put(StandardScheme.class, new setPeerSecret_resultStandardSchemeFactory());
7272       schemes.put(TupleScheme.class, new setPeerSecret_resultTupleSchemeFactory());
7273     }
7274
7275     public int success; // required
7276
7277     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7278     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7279       SUCCESS((short)0, "success");
7280
7281       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7282
7283       static {
7284         for (_Fields field : EnumSet.allOf(_Fields.class)) {
7285           byName.put(field.getFieldName(), field);
7286         }
7287       }
7288
7289       /**
7290        * Find the _Fields constant that matches fieldId, or null if its not found.
7291        */
7292       public static _Fields findByThriftId(int fieldId) {
7293         switch(fieldId) {
7294           case 0: // SUCCESS
7295             return SUCCESS;
7296           default:
7297             return null;
7298         }
7299       }
7300
7301       /**
7302        * Find the _Fields constant that matches fieldId, throwing an exception
7303        * if it is not found.
7304        */
7305       public static _Fields findByThriftIdOrThrow(int fieldId) {
7306         _Fields fields = findByThriftId(fieldId);
7307         if (fields == null) {
7308                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7309                 }
7310         return fields;
7311       }
7312
7313       /**
7314        * Find the _Fields constant that matches name, or null if its not found.
7315        */
7316       public static _Fields findByName(String name) {
7317         return byName.get(name);
7318       }
7319
7320       private final short _thriftId;
7321       private final String _fieldName;
7322
7323       _Fields(short thriftId, String fieldName) {
7324         _thriftId = thriftId;
7325         _fieldName = fieldName;
7326       }
7327
7328       @Override
7329         public short getThriftFieldId() {
7330         return _thriftId;
7331       }
7332
7333       @Override
7334         public String getFieldName() {
7335         return _fieldName;
7336       }
7337     }
7338
7339     // isset id assignments
7340     private static final int __SUCCESS_ISSET_ID = 0;
7341     private byte __isset_bitfield = 0;
7342     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7343     static {
7344       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7345       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
7346           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
7347       metaDataMap = Collections.unmodifiableMap(tmpMap);
7348       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setPeerSecret_result.class, metaDataMap);
7349     }
7350
7351     public setPeerSecret_result() {
7352     }
7353
7354     public setPeerSecret_result(
7355       int success)
7356     {
7357       this();
7358       this.success = success;
7359       setSuccessIsSet(true);
7360     }
7361
7362     /**
7363      * Performs a deep copy on <i>other</i>.
7364      */
7365     public setPeerSecret_result(setPeerSecret_result other) {
7366       __isset_bitfield = other.__isset_bitfield;
7367       this.success = other.success;
7368     }
7369
7370     @Override
7371         public setPeerSecret_result deepCopy() {
7372       return new setPeerSecret_result(this);
7373     }
7374
7375     @Override
7376     public void clear() {
7377       setSuccessIsSet(false);
7378       this.success = 0;
7379     }
7380
7381     public int getSuccess() {
7382       return this.success;
7383     }
7384
7385     public setPeerSecret_result setSuccess(int success) {
7386       this.success = success;
7387       setSuccessIsSet(true);
7388       return this;
7389     }
7390
7391     public void unsetSuccess() {
7392       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7393     }
7394
7395     /** Returns true if field success is set (has been assigned a value) and false otherwise */
7396     public boolean isSetSuccess() {
7397       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7398     }
7399
7400     public void setSuccessIsSet(boolean value) {
7401       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
7402     }
7403
7404     @Override
7405         public void setFieldValue(_Fields field, Object value) {
7406       switch (field) {
7407       case SUCCESS:
7408         if (value == null) {
7409           unsetSuccess();
7410         } else {
7411           setSuccess((Integer)value);
7412         }
7413         break;
7414
7415       }
7416     }
7417
7418     @Override
7419         public Object getFieldValue(_Fields field) {
7420       switch (field) {
7421       case SUCCESS:
7422         return Integer.valueOf(getSuccess());
7423
7424       }
7425       throw new IllegalStateException();
7426     }
7427
7428     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7429     @Override
7430         public boolean isSet(_Fields field) {
7431       if (field == null) {
7432         throw new IllegalArgumentException();
7433       }
7434
7435       switch (field) {
7436       case SUCCESS:
7437         return isSetSuccess();
7438       }
7439       throw new IllegalStateException();
7440     }
7441
7442     @Override
7443     public boolean equals(Object that) {
7444       if (that == null) {
7445                 return false;
7446         }
7447       if (that instanceof setPeerSecret_result) {
7448                 return this.equals((setPeerSecret_result)that);
7449         }
7450       return false;
7451     }
7452
7453     public boolean equals(setPeerSecret_result that) {
7454       if (that == null) {
7455                 return false;
7456         }
7457
7458       boolean this_present_success = true;
7459       boolean that_present_success = true;
7460       if (this_present_success || that_present_success) {
7461         if (!(this_present_success && that_present_success)) {
7462                         return false;
7463                 }
7464         if (this.success != that.success) {
7465                         return false;
7466                 }
7467       }
7468
7469       return true;
7470     }
7471
7472     @Override
7473     public int hashCode() {
7474       List<Object> list = new ArrayList<Object>();
7475
7476       boolean present_success = true;
7477       list.add(present_success);
7478       if (present_success)
7479         list.add(success);
7480       return list.hashCode();
7481     }
7482
7483     @Override
7484     public int compareTo(setPeerSecret_result other) {
7485       if (!getClass().equals(other.getClass())) {
7486         return getClass().getName().compareTo(other.getClass().getName());
7487       }
7488
7489       int lastComparison = 0;
7490
7491       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
7492       if (lastComparison != 0) {
7493         return lastComparison;
7494       }
7495       if (isSetSuccess()) {
7496         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
7497         if (lastComparison != 0) {
7498           return lastComparison;
7499         }
7500       }
7501       return 0;
7502     }
7503
7504     @Override
7505         public _Fields fieldForId(int fieldId) {
7506       return _Fields.findByThriftId(fieldId);
7507     }
7508
7509     @Override
7510         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7511       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7512     }
7513
7514     @Override
7515         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7516       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7517       }
7518
7519     @Override
7520     public String toString() {
7521       StringBuilder sb = new StringBuilder("setPeerSecret_result(");
7522       boolean first = true;
7523
7524       sb.append("success:");
7525       sb.append(this.success);
7526       first = false;
7527       sb.append(")");
7528       return sb.toString();
7529     }
7530
7531     public void validate() throws org.apache.thrift.TException {
7532       // check for required fields
7533       // check for sub-struct validity
7534     }
7535
7536     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7537       try {
7538         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7539       } catch (org.apache.thrift.TException te) {
7540         throw new java.io.IOException(te);
7541       }
7542     }
7543
7544     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7545       try {
7546         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7547         __isset_bitfield = 0;
7548         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7549       } catch (org.apache.thrift.TException te) {
7550         throw new java.io.IOException(te);
7551       }
7552     }
7553
7554     private static class setPeerSecret_resultStandardSchemeFactory implements SchemeFactory {
7555       @Override
7556         public setPeerSecret_resultStandardScheme getScheme() {
7557         return new setPeerSecret_resultStandardScheme();
7558       }
7559     }
7560
7561     private static class setPeerSecret_resultStandardScheme extends StandardScheme<setPeerSecret_result> {
7562
7563       @Override
7564         public void read(org.apache.thrift.protocol.TProtocol iprot, setPeerSecret_result struct) throws org.apache.thrift.TException {
7565         org.apache.thrift.protocol.TField schemeField;
7566         iprot.readStructBegin();
7567         while (true)
7568         {
7569           schemeField = iprot.readFieldBegin();
7570           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7571             break;
7572           }
7573           switch (schemeField.id) {
7574             case 0: // SUCCESS
7575               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
7576                 struct.success = iprot.readI32();
7577                 struct.setSuccessIsSet(true);
7578               } else {
7579                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7580               }
7581               break;
7582             default:
7583               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7584           }
7585           iprot.readFieldEnd();
7586         }
7587         iprot.readStructEnd();
7588
7589         // check for required fields of primitive type, which can't be checked in the validate method
7590         struct.validate();
7591       }
7592
7593       @Override
7594         public void write(org.apache.thrift.protocol.TProtocol oprot, setPeerSecret_result struct) throws org.apache.thrift.TException {
7595         struct.validate();
7596
7597         oprot.writeStructBegin(STRUCT_DESC);
7598         if (struct.isSetSuccess()) {
7599           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7600           oprot.writeI32(struct.success);
7601           oprot.writeFieldEnd();
7602         }
7603         oprot.writeFieldStop();
7604         oprot.writeStructEnd();
7605       }
7606
7607     }
7608
7609     private static class setPeerSecret_resultTupleSchemeFactory implements SchemeFactory {
7610       @Override
7611         public setPeerSecret_resultTupleScheme getScheme() {
7612         return new setPeerSecret_resultTupleScheme();
7613       }
7614     }
7615
7616     private static class setPeerSecret_resultTupleScheme extends TupleScheme<setPeerSecret_result> {
7617
7618       @Override
7619       public void write(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_result struct) throws org.apache.thrift.TException {
7620         TTupleProtocol oprot = (TTupleProtocol) prot;
7621         BitSet optionals = new BitSet();
7622         if (struct.isSetSuccess()) {
7623           optionals.set(0);
7624         }
7625         oprot.writeBitSet(optionals, 1);
7626         if (struct.isSetSuccess()) {
7627           oprot.writeI32(struct.success);
7628         }
7629       }
7630
7631       @Override
7632       public void read(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_result struct) throws org.apache.thrift.TException {
7633         TTupleProtocol iprot = (TTupleProtocol) prot;
7634         BitSet incoming = iprot.readBitSet(1);
7635         if (incoming.get(0)) {
7636           struct.success = iprot.readI32();
7637           struct.setSuccessIsSet(true);
7638         }
7639       }
7640     }
7641
7642   }
7643
7644   public static class deletePeer_args implements org.apache.thrift.TBase<deletePeer_args, deletePeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_args>   {
7645     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_args");
7646
7647     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);
7648
7649     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7650     static {
7651       schemes.put(StandardScheme.class, new deletePeer_argsStandardSchemeFactory());
7652       schemes.put(TupleScheme.class, new deletePeer_argsTupleSchemeFactory());
7653     }
7654
7655     public String ipAddress; // required
7656
7657     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7658     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7659       IP_ADDRESS((short)1, "ipAddress");
7660
7661       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7662
7663       static {
7664         for (_Fields field : EnumSet.allOf(_Fields.class)) {
7665           byName.put(field.getFieldName(), field);
7666         }
7667       }
7668
7669       /**
7670        * Find the _Fields constant that matches fieldId, or null if its not found.
7671        */
7672       public static _Fields findByThriftId(int fieldId) {
7673         switch(fieldId) {
7674           case 1: // IP_ADDRESS
7675             return IP_ADDRESS;
7676           default:
7677             return null;
7678         }
7679       }
7680
7681       /**
7682        * Find the _Fields constant that matches fieldId, throwing an exception
7683        * if it is not found.
7684        */
7685       public static _Fields findByThriftIdOrThrow(int fieldId) {
7686         _Fields fields = findByThriftId(fieldId);
7687         if (fields == null) {
7688                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7689                 }
7690         return fields;
7691       }
7692
7693       /**
7694        * Find the _Fields constant that matches name, or null if its not found.
7695        */
7696       public static _Fields findByName(String name) {
7697         return byName.get(name);
7698       }
7699
7700       private final short _thriftId;
7701       private final String _fieldName;
7702
7703       _Fields(short thriftId, String fieldName) {
7704         _thriftId = thriftId;
7705         _fieldName = fieldName;
7706       }
7707
7708       @Override
7709         public short getThriftFieldId() {
7710         return _thriftId;
7711       }
7712
7713       @Override
7714         public String getFieldName() {
7715         return _fieldName;
7716       }
7717     }
7718
7719     // isset id assignments
7720     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7721     static {
7722       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7723       tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
7724           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7725       metaDataMap = Collections.unmodifiableMap(tmpMap);
7726       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_args.class, metaDataMap);
7727     }
7728
7729     public deletePeer_args() {
7730     }
7731
7732     public deletePeer_args(
7733       String ipAddress)
7734     {
7735       this();
7736       this.ipAddress = ipAddress;
7737     }
7738
7739     /**
7740      * Performs a deep copy on <i>other</i>.
7741      */
7742     public deletePeer_args(deletePeer_args other) {
7743       if (other.isSetIpAddress()) {
7744         this.ipAddress = other.ipAddress;
7745       }
7746     }
7747
7748     @Override
7749         public deletePeer_args deepCopy() {
7750       return new deletePeer_args(this);
7751     }
7752
7753     @Override
7754     public void clear() {
7755       this.ipAddress = null;
7756     }
7757
7758     public String getIpAddress() {
7759       return this.ipAddress;
7760     }
7761
7762     public deletePeer_args setIpAddress(String ipAddress) {
7763       this.ipAddress = ipAddress;
7764       return this;
7765     }
7766
7767     public void unsetIpAddress() {
7768       this.ipAddress = null;
7769     }
7770
7771     /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
7772     public boolean isSetIpAddress() {
7773       return this.ipAddress != null;
7774     }
7775
7776     public void setIpAddressIsSet(boolean value) {
7777       if (!value) {
7778         this.ipAddress = null;
7779       }
7780     }
7781
7782     @Override
7783         public void setFieldValue(_Fields field, Object value) {
7784       switch (field) {
7785       case IP_ADDRESS:
7786         if (value == null) {
7787           unsetIpAddress();
7788         } else {
7789           setIpAddress((String)value);
7790         }
7791         break;
7792
7793       }
7794     }
7795
7796     @Override
7797         public Object getFieldValue(_Fields field) {
7798       switch (field) {
7799       case IP_ADDRESS:
7800         return getIpAddress();
7801
7802       }
7803       throw new IllegalStateException();
7804     }
7805
7806     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7807     @Override
7808         public boolean isSet(_Fields field) {
7809       if (field == null) {
7810         throw new IllegalArgumentException();
7811       }
7812
7813       switch (field) {
7814       case IP_ADDRESS:
7815         return isSetIpAddress();
7816       }
7817       throw new IllegalStateException();
7818     }
7819
7820     @Override
7821     public boolean equals(Object that) {
7822       if (that == null) {
7823                 return false;
7824         }
7825       if (that instanceof deletePeer_args) {
7826                 return this.equals((deletePeer_args)that);
7827         }
7828       return false;
7829     }
7830
7831     public boolean equals(deletePeer_args that) {
7832       if (that == null) {
7833                 return false;
7834         }
7835
7836       boolean this_present_ipAddress = true && this.isSetIpAddress();
7837       boolean that_present_ipAddress = true && that.isSetIpAddress();
7838       if (this_present_ipAddress || that_present_ipAddress) {
7839         if (!(this_present_ipAddress && that_present_ipAddress)) {
7840                         return false;
7841                 }
7842         if (!this.ipAddress.equals(that.ipAddress)) {
7843                         return false;
7844                 }
7845       }
7846
7847       return true;
7848     }
7849
7850     @Override
7851     public int hashCode() {
7852       List<Object> list = new ArrayList<Object>();
7853
7854       boolean present_ipAddress = true && (isSetIpAddress());
7855       list.add(present_ipAddress);
7856       if (present_ipAddress)
7857         list.add(ipAddress);
7858       return list.hashCode();
7859     }
7860
7861     @Override
7862     public int compareTo(deletePeer_args other) {
7863       if (!getClass().equals(other.getClass())) {
7864         return getClass().getName().compareTo(other.getClass().getName());
7865       }
7866
7867       int lastComparison = 0;
7868
7869       lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
7870       if (lastComparison != 0) {
7871         return lastComparison;
7872       }
7873       if (isSetIpAddress()) {
7874         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
7875         if (lastComparison != 0) {
7876           return lastComparison;
7877         }
7878       }
7879       return 0;
7880     }
7881
7882     @Override
7883         public _Fields fieldForId(int fieldId) {
7884       return _Fields.findByThriftId(fieldId);
7885     }
7886
7887     @Override
7888         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7889       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7890     }
7891
7892     @Override
7893         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7894       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7895     }
7896
7897     @Override
7898     public String toString() {
7899       StringBuilder sb = new StringBuilder("deletePeer_args(");
7900       boolean first = true;
7901
7902       sb.append("ipAddress:");
7903       if (this.ipAddress == null) {
7904         sb.append("null");
7905       } else {
7906         sb.append(this.ipAddress);
7907       }
7908       first = false;
7909       sb.append(")");
7910       return sb.toString();
7911     }
7912
7913     public void validate() throws org.apache.thrift.TException {
7914       // check for required fields
7915       // check for sub-struct validity
7916     }
7917
7918     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7919       try {
7920         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7921       } catch (org.apache.thrift.TException te) {
7922         throw new java.io.IOException(te);
7923       }
7924     }
7925
7926     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7927       try {
7928         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7929       } catch (org.apache.thrift.TException te) {
7930         throw new java.io.IOException(te);
7931       }
7932     }
7933
7934     private static class deletePeer_argsStandardSchemeFactory implements SchemeFactory {
7935       @Override
7936         public deletePeer_argsStandardScheme getScheme() {
7937         return new deletePeer_argsStandardScheme();
7938       }
7939     }
7940
7941     private static class deletePeer_argsStandardScheme extends StandardScheme<deletePeer_args> {
7942
7943       @Override
7944         public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_args struct) throws org.apache.thrift.TException {
7945         org.apache.thrift.protocol.TField schemeField;
7946         iprot.readStructBegin();
7947         while (true)
7948         {
7949           schemeField = iprot.readFieldBegin();
7950           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7951             break;
7952           }
7953           switch (schemeField.id) {
7954             case 1: // IP_ADDRESS
7955               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7956                 struct.ipAddress = iprot.readString();
7957                 struct.setIpAddressIsSet(true);
7958               } else {
7959                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7960               }
7961               break;
7962             default:
7963               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7964           }
7965           iprot.readFieldEnd();
7966         }
7967         iprot.readStructEnd();
7968
7969         // check for required fields of primitive type, which can't be checked in the validate method
7970         struct.validate();
7971       }
7972
7973       @Override
7974         public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_args struct) throws org.apache.thrift.TException {
7975         struct.validate();
7976
7977         oprot.writeStructBegin(STRUCT_DESC);
7978         if (struct.ipAddress != null) {
7979           oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
7980           oprot.writeString(struct.ipAddress);
7981           oprot.writeFieldEnd();
7982         }
7983         oprot.writeFieldStop();
7984         oprot.writeStructEnd();
7985       }
7986
7987     }
7988
7989     private static class deletePeer_argsTupleSchemeFactory implements SchemeFactory {
7990       @Override
7991         public deletePeer_argsTupleScheme getScheme() {
7992         return new deletePeer_argsTupleScheme();
7993       }
7994     }
7995
7996     private static class deletePeer_argsTupleScheme extends TupleScheme<deletePeer_args> {
7997
7998       @Override
7999       public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
8000         TTupleProtocol oprot = (TTupleProtocol) prot;
8001         BitSet optionals = new BitSet();
8002         if (struct.isSetIpAddress()) {
8003           optionals.set(0);
8004         }
8005         oprot.writeBitSet(optionals, 1);
8006         if (struct.isSetIpAddress()) {
8007           oprot.writeString(struct.ipAddress);
8008         }
8009       }
8010
8011       @Override
8012       public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
8013         TTupleProtocol iprot = (TTupleProtocol) prot;
8014         BitSet incoming = iprot.readBitSet(1);
8015         if (incoming.get(0)) {
8016           struct.ipAddress = iprot.readString();
8017           struct.setIpAddressIsSet(true);
8018         }
8019       }
8020     }
8021
8022   }
8023
8024   public static class deletePeer_result implements org.apache.thrift.TBase<deletePeer_result, deletePeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_result>   {
8025     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_result");
8026
8027     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);
8028
8029     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8030     static {
8031       schemes.put(StandardScheme.class, new deletePeer_resultStandardSchemeFactory());
8032       schemes.put(TupleScheme.class, new deletePeer_resultTupleSchemeFactory());
8033     }
8034
8035     public int success; // required
8036
8037     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8038     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8039       SUCCESS((short)0, "success");
8040
8041       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8042
8043       static {
8044         for (_Fields field : EnumSet.allOf(_Fields.class)) {
8045           byName.put(field.getFieldName(), field);
8046         }
8047       }
8048
8049       /**
8050        * Find the _Fields constant that matches fieldId, or null if its not found.
8051        */
8052       public static _Fields findByThriftId(int fieldId) {
8053         switch(fieldId) {
8054           case 0: // SUCCESS
8055             return SUCCESS;
8056           default:
8057             return null;
8058         }
8059       }
8060
8061       /**
8062        * Find the _Fields constant that matches fieldId, throwing an exception
8063        * if it is not found.
8064        */
8065       public static _Fields findByThriftIdOrThrow(int fieldId) {
8066         _Fields fields = findByThriftId(fieldId);
8067         if (fields == null) {
8068                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8069                 }
8070         return fields;
8071       }
8072
8073       /**
8074        * Find the _Fields constant that matches name, or null if its not found.
8075        */
8076       public static _Fields findByName(String name) {
8077         return byName.get(name);
8078       }
8079
8080       private final short _thriftId;
8081       private final String _fieldName;
8082
8083       _Fields(short thriftId, String fieldName) {
8084         _thriftId = thriftId;
8085         _fieldName = fieldName;
8086       }
8087
8088       @Override
8089         public short getThriftFieldId() {
8090         return _thriftId;
8091       }
8092
8093       @Override
8094         public String getFieldName() {
8095         return _fieldName;
8096       }
8097     }
8098
8099     // isset id assignments
8100     private static final int __SUCCESS_ISSET_ID = 0;
8101     private byte __isset_bitfield = 0;
8102     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8103     static {
8104       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8105       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
8106           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
8107       metaDataMap = Collections.unmodifiableMap(tmpMap);
8108       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_result.class, metaDataMap);
8109     }
8110
8111     public deletePeer_result() {
8112     }
8113
8114     public deletePeer_result(
8115       int success)
8116     {
8117       this();
8118       this.success = success;
8119       setSuccessIsSet(true);
8120     }
8121
8122     /**
8123      * Performs a deep copy on <i>other</i>.
8124      */
8125     public deletePeer_result(deletePeer_result other) {
8126       __isset_bitfield = other.__isset_bitfield;
8127       this.success = other.success;
8128     }
8129
8130     @Override
8131         public deletePeer_result deepCopy() {
8132       return new deletePeer_result(this);
8133     }
8134
8135     @Override
8136     public void clear() {
8137       setSuccessIsSet(false);
8138       this.success = 0;
8139     }
8140
8141     public int getSuccess() {
8142       return this.success;
8143     }
8144
8145     public deletePeer_result setSuccess(int success) {
8146       this.success = success;
8147       setSuccessIsSet(true);
8148       return this;
8149     }
8150
8151     public void unsetSuccess() {
8152       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8153     }
8154
8155     /** Returns true if field success is set (has been assigned a value) and false otherwise */
8156     public boolean isSetSuccess() {
8157       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8158     }
8159
8160     public void setSuccessIsSet(boolean value) {
8161       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
8162     }
8163
8164     @Override
8165         public void setFieldValue(_Fields field, Object value) {
8166       switch (field) {
8167       case SUCCESS:
8168         if (value == null) {
8169           unsetSuccess();
8170         } else {
8171           setSuccess((Integer)value);
8172         }
8173         break;
8174
8175       }
8176     }
8177
8178     @Override
8179         public Object getFieldValue(_Fields field) {
8180       switch (field) {
8181       case SUCCESS:
8182         return Integer.valueOf(getSuccess());
8183
8184       }
8185       throw new IllegalStateException();
8186     }
8187
8188     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8189     @Override
8190         public boolean isSet(_Fields field) {
8191       if (field == null) {
8192         throw new IllegalArgumentException();
8193       }
8194
8195       switch (field) {
8196       case SUCCESS:
8197         return isSetSuccess();
8198       }
8199       throw new IllegalStateException();
8200     }
8201
8202     @Override
8203     public boolean equals(Object that) {
8204       if (that == null) {
8205                 return false;
8206         }
8207       if (that instanceof deletePeer_result) {
8208                 return this.equals((deletePeer_result)that);
8209         }
8210       return false;
8211     }
8212
8213     public boolean equals(deletePeer_result that) {
8214       if (that == null) {
8215                 return false;
8216         }
8217
8218       boolean this_present_success = true;
8219       boolean that_present_success = true;
8220       if (this_present_success || that_present_success) {
8221         if (!(this_present_success && that_present_success)) {
8222                         return false;
8223                 }
8224         if (this.success != that.success) {
8225                         return false;
8226                 }
8227       }
8228
8229       return true;
8230     }
8231
8232     @Override
8233     public int hashCode() {
8234       List<Object> list = new ArrayList<Object>();
8235
8236       boolean present_success = true;
8237       list.add(present_success);
8238       if (present_success)
8239         list.add(success);
8240       return list.hashCode();
8241     }
8242
8243     @Override
8244     public int compareTo(deletePeer_result other) {
8245       if (!getClass().equals(other.getClass())) {
8246         return getClass().getName().compareTo(other.getClass().getName());
8247       }
8248
8249       int lastComparison = 0;
8250
8251       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
8252       if (lastComparison != 0) {
8253         return lastComparison;
8254       }
8255       if (isSetSuccess()) {
8256         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
8257         if (lastComparison != 0) {
8258           return lastComparison;
8259         }
8260       }
8261       return 0;
8262     }
8263
8264     @Override
8265         public _Fields fieldForId(int fieldId) {
8266       return _Fields.findByThriftId(fieldId);
8267     }
8268
8269     @Override
8270         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8271       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8272     }
8273
8274     @Override
8275         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8276       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8277       }
8278
8279     @Override
8280     public String toString() {
8281       StringBuilder sb = new StringBuilder("deletePeer_result(");
8282       boolean first = true;
8283
8284       sb.append("success:");
8285       sb.append(this.success);
8286       first = false;
8287       sb.append(")");
8288       return sb.toString();
8289     }
8290
8291     public void validate() throws org.apache.thrift.TException {
8292       // check for required fields
8293       // check for sub-struct validity
8294     }
8295
8296     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8297       try {
8298         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8299       } catch (org.apache.thrift.TException te) {
8300         throw new java.io.IOException(te);
8301       }
8302     }
8303
8304     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8305       try {
8306         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8307         __isset_bitfield = 0;
8308         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8309       } catch (org.apache.thrift.TException te) {
8310         throw new java.io.IOException(te);
8311       }
8312     }
8313
8314     private static class deletePeer_resultStandardSchemeFactory implements SchemeFactory {
8315       @Override
8316         public deletePeer_resultStandardScheme getScheme() {
8317         return new deletePeer_resultStandardScheme();
8318       }
8319     }
8320
8321     private static class deletePeer_resultStandardScheme extends StandardScheme<deletePeer_result> {
8322
8323       @Override
8324         public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_result struct) throws org.apache.thrift.TException {
8325         org.apache.thrift.protocol.TField schemeField;
8326         iprot.readStructBegin();
8327         while (true)
8328         {
8329           schemeField = iprot.readFieldBegin();
8330           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8331             break;
8332           }
8333           switch (schemeField.id) {
8334             case 0: // SUCCESS
8335               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
8336                 struct.success = iprot.readI32();
8337                 struct.setSuccessIsSet(true);
8338               } else {
8339                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8340               }
8341               break;
8342             default:
8343               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8344           }
8345           iprot.readFieldEnd();
8346         }
8347         iprot.readStructEnd();
8348
8349         // check for required fields of primitive type, which can't be checked in the validate method
8350         struct.validate();
8351       }
8352
8353       @Override
8354         public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_result struct) throws org.apache.thrift.TException {
8355         struct.validate();
8356
8357         oprot.writeStructBegin(STRUCT_DESC);
8358         if (struct.isSetSuccess()) {
8359           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8360           oprot.writeI32(struct.success);
8361           oprot.writeFieldEnd();
8362         }
8363         oprot.writeFieldStop();
8364         oprot.writeStructEnd();
8365       }
8366
8367     }
8368
8369     private static class deletePeer_resultTupleSchemeFactory implements SchemeFactory {
8370       @Override
8371         public deletePeer_resultTupleScheme getScheme() {
8372         return new deletePeer_resultTupleScheme();
8373       }
8374     }
8375
8376     private static class deletePeer_resultTupleScheme extends TupleScheme<deletePeer_result> {
8377
8378       @Override
8379       public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
8380         TTupleProtocol oprot = (TTupleProtocol) prot;
8381         BitSet optionals = new BitSet();
8382         if (struct.isSetSuccess()) {
8383           optionals.set(0);
8384         }
8385         oprot.writeBitSet(optionals, 1);
8386         if (struct.isSetSuccess()) {
8387           oprot.writeI32(struct.success);
8388         }
8389       }
8390
8391       @Override
8392       public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
8393         TTupleProtocol iprot = (TTupleProtocol) prot;
8394         BitSet incoming = iprot.readBitSet(1);
8395         if (incoming.get(0)) {
8396           struct.success = iprot.readI32();
8397           struct.setSuccessIsSet(true);
8398         }
8399       }
8400     }
8401
8402   }
8403
8404   public static class addVrf_args implements org.apache.thrift.TBase<addVrf_args, addVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_args>   {
8405     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_args");
8406
8407     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);
8408     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);
8409     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);
8410     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);
8411     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)5);
8412     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)6);
8413
8414     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8415     static {
8416       schemes.put(StandardScheme.class, new addVrf_argsStandardSchemeFactory());
8417       schemes.put(TupleScheme.class, new addVrf_argsTupleSchemeFactory());
8418     }
8419
8420     /**
8421      *
8422      * @see layer_type
8423      */
8424     public layer_type l_type; // required
8425     public String rd; // required
8426     public List<String> irts; // required
8427     public List<String> erts; // required
8428     public af_afi afi; // required
8429     public af_safi safi; // required
8430
8431     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8432     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8433       /**
8434        *
8435        * @see layer_type
8436        */
8437       L_TYPE((short)1, "l_type"),
8438       RD((short)2, "rd"),
8439       IRTS((short)3, "irts"),
8440       ERTS((short)4, "erts"),
8441       AFI((short)5, "afi"),
8442       SAFI((short)6, "safi");
8443
8444       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8445
8446       static {
8447         for (_Fields field : EnumSet.allOf(_Fields.class)) {
8448           byName.put(field.getFieldName(), field);
8449         }
8450       }
8451
8452       /**
8453        * Find the _Fields constant that matches fieldId, or null if its not found.
8454        */
8455       public static _Fields findByThriftId(int fieldId) {
8456         switch(fieldId) {
8457           case 1: // L_TYPE
8458             return L_TYPE;
8459           case 2: // RD
8460             return RD;
8461           case 3: // IRTS
8462             return IRTS;
8463           case 4: // ERTS
8464             return ERTS;
8465           case 5: // AFI
8466             return AFI;
8467           case 6: // SAFI
8468             return SAFI;
8469           default:
8470             return null;
8471         }
8472       }
8473
8474       /**
8475        * Find the _Fields constant that matches fieldId, throwing an exception
8476        * if it is not found.
8477        */
8478       public static _Fields findByThriftIdOrThrow(int fieldId) {
8479         _Fields fields = findByThriftId(fieldId);
8480         if (fields == null) {
8481                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8482                 }
8483         return fields;
8484       }
8485
8486       /**
8487        * Find the _Fields constant that matches name, or null if its not found.
8488        */
8489       public static _Fields findByName(String name) {
8490         return byName.get(name);
8491       }
8492
8493       private final short _thriftId;
8494       private final String _fieldName;
8495
8496       _Fields(short thriftId, String fieldName) {
8497         _thriftId = thriftId;
8498         _fieldName = fieldName;
8499       }
8500
8501       @Override
8502         public short getThriftFieldId() {
8503         return _thriftId;
8504       }
8505
8506       @Override
8507         public String getFieldName() {
8508         return _fieldName;
8509       }
8510     }
8511
8512     // isset id assignments
8513     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8514     static {
8515       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8516       tmpMap.put(_Fields.L_TYPE, new org.apache.thrift.meta_data.FieldMetaData("l_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
8517           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, layer_type.class)));
8518       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
8519           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8520       tmpMap.put(_Fields.IRTS, new org.apache.thrift.meta_data.FieldMetaData("irts", org.apache.thrift.TFieldRequirementType.DEFAULT,
8521           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
8522               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8523       tmpMap.put(_Fields.ERTS, new org.apache.thrift.meta_data.FieldMetaData("erts", org.apache.thrift.TFieldRequirementType.DEFAULT,
8524           new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
8525               new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8526       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8527           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
8528       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8529           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
8530       metaDataMap = Collections.unmodifiableMap(tmpMap);
8531       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_args.class, metaDataMap);
8532     }
8533
8534     public addVrf_args() {
8535     }
8536
8537     public addVrf_args(
8538       layer_type l_type,
8539       String rd,
8540       List<String> irts,
8541       List<String> erts,
8542       af_afi afi,
8543       af_safi safi)
8544     {
8545       this();
8546       this.l_type = l_type;
8547       this.rd = rd;
8548       this.irts = irts;
8549       this.erts = erts;
8550       this.afi = afi;
8551       this.safi = safi;
8552     }
8553
8554     /**
8555      * Performs a deep copy on <i>other</i>.
8556      */
8557     public addVrf_args(addVrf_args other) {
8558       if (other.isSetL_type()) {
8559         this.l_type = other.l_type;
8560       }
8561       if (other.isSetRd()) {
8562         this.rd = other.rd;
8563       }
8564       if (other.isSetIrts()) {
8565         List<String> __this__irts = new ArrayList<String>(other.irts);
8566         this.irts = __this__irts;
8567       }
8568       if (other.isSetErts()) {
8569         List<String> __this__erts = new ArrayList<String>(other.erts);
8570         this.erts = __this__erts;
8571       }
8572       if (other.isSetAfi()) {
8573         this.afi = other.afi;
8574       }
8575       if (other.isSetSafi()) {
8576         this.safi = other.safi;
8577       }
8578     }
8579
8580     @Override
8581         public addVrf_args deepCopy() {
8582       return new addVrf_args(this);
8583     }
8584
8585     @Override
8586     public void clear() {
8587       this.l_type = null;
8588       this.rd = null;
8589       this.irts = null;
8590       this.erts = null;
8591       this.afi = null;
8592       this.safi = null;
8593     }
8594
8595     /**
8596      *
8597      * @see layer_type
8598      */
8599     public layer_type getL_type() {
8600       return this.l_type;
8601     }
8602
8603     /**
8604      *
8605      * @see layer_type
8606      */
8607     public addVrf_args setL_type(layer_type l_type) {
8608       this.l_type = l_type;
8609       return this;
8610     }
8611
8612     public void unsetL_type() {
8613       this.l_type = null;
8614     }
8615
8616     /** Returns true if field l_type is set (has been assigned a value) and false otherwise */
8617     public boolean isSetL_type() {
8618       return this.l_type != null;
8619     }
8620
8621     public void setL_typeIsSet(boolean value) {
8622       if (!value) {
8623         this.l_type = null;
8624       }
8625     }
8626
8627     public String getRd() {
8628       return this.rd;
8629     }
8630
8631     public addVrf_args setRd(String rd) {
8632       this.rd = rd;
8633       return this;
8634     }
8635
8636     public void unsetRd() {
8637       this.rd = null;
8638     }
8639
8640     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
8641     public boolean isSetRd() {
8642       return this.rd != null;
8643     }
8644
8645     public void setRdIsSet(boolean value) {
8646       if (!value) {
8647         this.rd = null;
8648       }
8649     }
8650
8651     public int getIrtsSize() {
8652       return (this.irts == null) ? 0 : this.irts.size();
8653     }
8654
8655     public java.util.Iterator<String> getIrtsIterator() {
8656       return (this.irts == null) ? null : this.irts.iterator();
8657     }
8658
8659     public void addToIrts(String elem) {
8660       if (this.irts == null) {
8661         this.irts = new ArrayList<String>();
8662       }
8663       this.irts.add(elem);
8664     }
8665
8666     public List<String> getIrts() {
8667       return this.irts;
8668     }
8669
8670     public addVrf_args setIrts(List<String> irts) {
8671       this.irts = irts;
8672       return this;
8673     }
8674
8675     public void unsetIrts() {
8676       this.irts = null;
8677     }
8678
8679     /** Returns true if field irts is set (has been assigned a value) and false otherwise */
8680     public boolean isSetIrts() {
8681       return this.irts != null;
8682     }
8683
8684     public void setIrtsIsSet(boolean value) {
8685       if (!value) {
8686         this.irts = null;
8687       }
8688     }
8689
8690     public int getErtsSize() {
8691       return (this.erts == null) ? 0 : this.erts.size();
8692     }
8693
8694     public java.util.Iterator<String> getErtsIterator() {
8695       return (this.erts == null) ? null : this.erts.iterator();
8696     }
8697
8698     public void addToErts(String elem) {
8699       if (this.erts == null) {
8700         this.erts = new ArrayList<String>();
8701       }
8702       this.erts.add(elem);
8703     }
8704
8705     public List<String> getErts() {
8706       return this.erts;
8707     }
8708
8709     public addVrf_args setErts(List<String> erts) {
8710       this.erts = erts;
8711       return this;
8712     }
8713
8714     public void unsetErts() {
8715       this.erts = null;
8716     }
8717
8718     /** Returns true if field erts is set (has been assigned a value) and false otherwise */
8719     public boolean isSetErts() {
8720       return this.erts != null;
8721     }
8722
8723     public void setErtsIsSet(boolean value) {
8724       if (!value) {
8725         this.erts = null;
8726       }
8727     }
8728
8729     public af_afi getAfi() {
8730       return this.afi;
8731     }
8732
8733     public addVrf_args setAfi(af_afi afi) {
8734       this.afi = afi;
8735       return this;
8736     }
8737
8738     public void unsetAfi() {
8739       this.afi = null;
8740     }
8741
8742     public boolean isSetAfi() {
8743       return this.afi != null;
8744     }
8745
8746     public void setAfiIsSet(boolean value) {
8747       if (!value) {
8748         this.afi = null;
8749       }
8750     }
8751
8752     public af_safi getSafi() {
8753       return this.safi;
8754     }
8755
8756     public addVrf_args setSafi(af_safi safi) {
8757       this.safi = safi;
8758       return this;
8759     }
8760
8761     public void unsetSafi() {
8762       this.safi = null;
8763     }
8764
8765     public boolean isSetSafi() {
8766       return this.safi != null;
8767     }
8768
8769     public void setSafiIsSet(boolean value) {
8770       if (!value) {
8771         this.safi = null;
8772       }
8773     }
8774
8775     @Override
8776         public void setFieldValue(_Fields field, Object value) {
8777       switch (field) {
8778       case L_TYPE:
8779         if (value == null) {
8780           unsetL_type();
8781         } else {
8782           setL_type((layer_type)value);
8783         }
8784         break;
8785
8786       case RD:
8787         if (value == null) {
8788           unsetRd();
8789         } else {
8790           setRd((String)value);
8791         }
8792         break;
8793
8794       case IRTS:
8795         if (value == null) {
8796           unsetIrts();
8797         } else {
8798           setIrts((List<String>)value);
8799         }
8800         break;
8801
8802       case ERTS:
8803         if (value == null) {
8804           unsetErts();
8805         } else {
8806           setErts((List<String>)value);
8807         }
8808         break;
8809
8810       case AFI:
8811         if (value == null) {
8812           unsetAfi();
8813         } else {
8814           setAfi((af_afi)value);
8815         }
8816         break;
8817
8818       case SAFI:
8819         if (value == null) {
8820           unsetSafi();
8821         } else {
8822           setSafi((af_safi)value);
8823         }
8824         break;
8825
8826       }
8827     }
8828
8829     @Override
8830         public Object getFieldValue(_Fields field) {
8831       switch (field) {
8832       case L_TYPE:
8833         return getL_type();
8834
8835       case RD:
8836         return getRd();
8837
8838       case IRTS:
8839         return getIrts();
8840
8841       case ERTS:
8842         return getErts();
8843
8844       case AFI:
8845         return getAfi();
8846
8847       case SAFI:
8848         return getSafi();
8849
8850       }
8851       throw new IllegalStateException();
8852     }
8853
8854     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8855     @Override
8856         public boolean isSet(_Fields field) {
8857       if (field == null) {
8858         throw new IllegalArgumentException();
8859       }
8860
8861       switch (field) {
8862       case L_TYPE:
8863         return isSetL_type();
8864       case RD:
8865         return isSetRd();
8866       case IRTS:
8867         return isSetIrts();
8868       case ERTS:
8869         return isSetErts();
8870       case AFI:
8871         return isSetAfi();
8872       case SAFI:
8873         return isSetSafi();
8874       }
8875       throw new IllegalStateException();
8876     }
8877
8878     @Override
8879     public boolean equals(Object that) {
8880       if (that == null) {
8881                 return false;
8882         }
8883       if (that instanceof addVrf_args) {
8884                 return this.equals((addVrf_args)that);
8885         }
8886       return false;
8887     }
8888
8889     public boolean equals(addVrf_args that) {
8890       if (that == null) {
8891                 return false;
8892         }
8893
8894       boolean this_present_l_type = true && this.isSetL_type();
8895       boolean that_present_l_type = true && that.isSetL_type();
8896       if (this_present_l_type || that_present_l_type) {
8897         if (!(this_present_l_type && that_present_l_type)) {
8898                         return false;
8899                 }
8900         if (!this.l_type.equals(that.l_type)) {
8901                         return false;
8902                 }
8903       }
8904
8905       boolean this_present_rd = true && this.isSetRd();
8906       boolean that_present_rd = true && that.isSetRd();
8907       if (this_present_rd || that_present_rd) {
8908         if (!(this_present_rd && that_present_rd)) {
8909                         return false;
8910                 }
8911         if (!this.rd.equals(that.rd)) {
8912                         return false;
8913                 }
8914       }
8915
8916       boolean this_present_irts = true && this.isSetIrts();
8917       boolean that_present_irts = true && that.isSetIrts();
8918       if (this_present_irts || that_present_irts) {
8919         if (!(this_present_irts && that_present_irts)) {
8920                         return false;
8921                 }
8922         if (!this.irts.equals(that.irts)) {
8923                         return false;
8924                 }
8925       }
8926
8927       boolean this_present_erts = true && this.isSetErts();
8928       boolean that_present_erts = true && that.isSetErts();
8929       if (this_present_erts || that_present_erts) {
8930         if (!(this_present_erts && that_present_erts)) {
8931                         return false;
8932                 }
8933         if (!this.erts.equals(that.erts)) {
8934                         return false;
8935                 }
8936       }
8937
8938       boolean this_present_afi = true && this.isSetAfi();
8939       boolean that_present_afi = true && that.isSetAfi();
8940       if (this_present_afi || that_present_afi) {
8941         if (!(this_present_afi && that_present_afi))
8942           return false;
8943         if (!this.afi.equals(that.afi))
8944           return false;
8945       }
8946
8947       boolean this_present_safi = true && this.isSetSafi();
8948       boolean that_present_safi = true && that.isSetSafi();
8949       if (this_present_safi || that_present_safi) {
8950         if (!(this_present_safi && that_present_safi))
8951           return false;
8952         if (!this.safi.equals(that.safi))
8953           return false;
8954       }
8955
8956       return true;
8957     }
8958
8959     @Override
8960     public int hashCode() {
8961       List<Object> list = new ArrayList<Object>();
8962       boolean present_l_type = true && (isSetL_type());
8963       list.add(present_l_type);
8964       if (present_l_type)
8965         list.add(l_type.getValue());
8966       boolean present_rd = true && (isSetRd());
8967       list.add(present_rd);
8968       if (present_rd)
8969         list.add(rd);
8970       boolean present_irts = true && (isSetIrts());
8971       list.add(present_irts);
8972       if (present_irts)
8973         list.add(irts);
8974       boolean present_erts = true && (isSetErts());
8975       list.add(present_erts);
8976       if (present_erts)
8977         list.add(erts);
8978       return list.hashCode();
8979     }
8980
8981     @Override
8982     public int compareTo(addVrf_args other) {
8983       if (!getClass().equals(other.getClass())) {
8984         return getClass().getName().compareTo(other.getClass().getName());
8985       }
8986
8987       int lastComparison = 0;
8988
8989       lastComparison = Boolean.valueOf(isSetL_type()).compareTo(other.isSetL_type());
8990       if (lastComparison != 0) {
8991         return lastComparison;
8992       }
8993       if (isSetL_type()) {
8994         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l_type, other.l_type);
8995         if (lastComparison != 0) {
8996           return lastComparison;
8997         }
8998       }
8999       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
9000       if (lastComparison != 0) {
9001         return lastComparison;
9002       }
9003       if (isSetRd()) {
9004         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
9005         if (lastComparison != 0) {
9006           return lastComparison;
9007         }
9008       }
9009       lastComparison = Boolean.valueOf(isSetIrts()).compareTo(other.isSetIrts());
9010       if (lastComparison != 0) {
9011         return lastComparison;
9012       }
9013       if (isSetIrts()) {
9014         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.irts, other.irts);
9015         if (lastComparison != 0) {
9016           return lastComparison;
9017         }
9018       }
9019       lastComparison = Boolean.valueOf(isSetErts()).compareTo(other.isSetErts());
9020       if (lastComparison != 0) {
9021         return lastComparison;
9022       }
9023       if (isSetErts()) {
9024         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.erts, other.erts);
9025         if (lastComparison != 0) {
9026           return lastComparison;
9027         }
9028       }
9029       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
9030       if (lastComparison != 0) {
9031         return lastComparison;
9032       }
9033       if (isSetAfi()) {
9034         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
9035         if (lastComparison != 0) {
9036           return lastComparison;
9037         }
9038       }
9039       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
9040       if (lastComparison != 0) {
9041         return lastComparison;
9042       }
9043       if (isSetSafi()) {
9044         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
9045         if (lastComparison != 0) {
9046           return lastComparison;
9047         }
9048       }
9049       return 0;
9050     }
9051
9052     @Override
9053         public _Fields fieldForId(int fieldId) {
9054       return _Fields.findByThriftId(fieldId);
9055     }
9056
9057     @Override
9058         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9059       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9060     }
9061
9062     @Override
9063         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9064       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9065     }
9066
9067     @Override
9068     public String toString() {
9069       StringBuilder sb = new StringBuilder("addVrf_args(");
9070       boolean first = true;
9071
9072       sb.append("l_type:");
9073       if (this.l_type == null) {
9074         sb.append("null");
9075       } else {
9076         sb.append(this.l_type);
9077       }
9078       first = false;
9079       if (!first) {
9080                 sb.append(", ");
9081         }
9082       sb.append("rd:");
9083       if (this.rd == null) {
9084         sb.append("null");
9085       } else {
9086         sb.append(this.rd);
9087       }
9088       first = false;
9089       if (!first) {
9090                 sb.append(", ");
9091         }
9092       sb.append("irts:");
9093       if (this.irts == null) {
9094         sb.append("null");
9095       } else {
9096         sb.append(this.irts);
9097       }
9098       first = false;
9099       if (!first) {
9100                 sb.append(", ");
9101         }
9102       sb.append("erts:");
9103       if (this.erts == null) {
9104         sb.append("null");
9105       } else {
9106         sb.append(this.erts);
9107       }
9108       first = false;
9109       if (!first) sb.append(", ");
9110       sb.append("afi:");
9111       if (this.afi == null) {
9112         sb.append("null");
9113       } else {
9114         sb.append(this.afi);
9115       }
9116       first = false;
9117       if (!first) sb.append(", ");
9118       sb.append("safi:");
9119       if (this.safi == null) {
9120         sb.append("null");
9121       } else {
9122         sb.append(this.safi);
9123       }
9124       first = false;
9125       sb.append(")");
9126       return sb.toString();
9127     }
9128
9129     public void validate() throws org.apache.thrift.TException {
9130       // check for required fields
9131       // check for sub-struct validity
9132     }
9133
9134     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9135       try {
9136         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9137       } catch (org.apache.thrift.TException te) {
9138         throw new java.io.IOException(te);
9139       }
9140     }
9141
9142     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9143       try {
9144         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9145       } catch (org.apache.thrift.TException te) {
9146         throw new java.io.IOException(te);
9147       }
9148     }
9149
9150     private static class addVrf_argsStandardSchemeFactory implements SchemeFactory {
9151       @Override
9152         public addVrf_argsStandardScheme getScheme() {
9153         return new addVrf_argsStandardScheme();
9154       }
9155     }
9156
9157     private static class addVrf_argsStandardScheme extends StandardScheme<addVrf_args> {
9158
9159       @Override
9160         public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_args struct) throws org.apache.thrift.TException {
9161         org.apache.thrift.protocol.TField schemeField;
9162         iprot.readStructBegin();
9163         while (true)
9164         {
9165           schemeField = iprot.readFieldBegin();
9166           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9167             break;
9168           }
9169           switch (schemeField.id) {
9170             case 1: // L_TYPE
9171               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9172                 struct.l_type = layer_type.findByValue(iprot.readI32());
9173                 struct.setL_typeIsSet(true);
9174               } else {
9175                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9176               }
9177               break;
9178             case 2: // RD
9179               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9180                 struct.rd = iprot.readString();
9181                 struct.setRdIsSet(true);
9182               } else {
9183                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9184               }
9185               break;
9186             case 3: // IRTS
9187               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
9188                 {
9189                   org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
9190                   struct.irts = new ArrayList<>(_list8.size);
9191                   for (int _i9 = 0; _i9 < _list8.size; ++_i9)
9192                   {
9193                     String _elem10;
9194                     _elem10 = iprot.readString();
9195                     struct.irts.add(_elem10);
9196                   }
9197                   iprot.readListEnd();
9198                 }
9199                 struct.setIrtsIsSet(true);
9200               } else {
9201                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9202               }
9203               break;
9204             case 4: // ERTS
9205               if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
9206                 {
9207                   org.apache.thrift.protocol.TList _list11 = iprot.readListBegin();
9208                   struct.erts = new ArrayList<>(_list11.size);
9209                   for (int _i12 = 0; _i12 < _list11.size; ++_i12)
9210                   {
9211                     String _elem13;
9212                     _elem13 = iprot.readString();
9213                     struct.erts.add(_elem13);
9214                   }
9215                   iprot.readListEnd();
9216                 }
9217                 struct.setErtsIsSet(true);
9218               } else {
9219                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9220               }
9221               break;
9222             case 5: // AFI
9223               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9224                 struct.afi = af_afi.findByValue(iprot.readI32());
9225                 struct.setAfiIsSet(true);
9226               } else {
9227                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9228               }
9229               break;
9230             case 6: // SAFI
9231               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9232                 struct.safi = af_safi.findByValue(iprot.readI32());
9233                 struct.setSafiIsSet(true);
9234               } else {
9235                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9236               }
9237               break;
9238             default:
9239               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9240           }
9241           iprot.readFieldEnd();
9242         }
9243         iprot.readStructEnd();
9244
9245         // check for required fields of primitive type, which can't be checked in the validate method
9246         struct.validate();
9247       }
9248
9249       @Override
9250         public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_args struct) throws org.apache.thrift.TException {
9251         struct.validate();
9252
9253         oprot.writeStructBegin(STRUCT_DESC);
9254         if (struct.l_type != null) {
9255           oprot.writeFieldBegin(L_TYPE_FIELD_DESC);
9256           oprot.writeI32(struct.l_type.getValue());
9257           oprot.writeFieldEnd();
9258         }
9259         if (struct.rd != null) {
9260           oprot.writeFieldBegin(RD_FIELD_DESC);
9261           oprot.writeString(struct.rd);
9262           oprot.writeFieldEnd();
9263         }
9264         if (struct.irts != null) {
9265           oprot.writeFieldBegin(IRTS_FIELD_DESC);
9266           {
9267             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.irts.size()));
9268             for (String _iter14 : struct.irts)
9269             {
9270               oprot.writeString(_iter14);
9271             }
9272             oprot.writeListEnd();
9273           }
9274           oprot.writeFieldEnd();
9275         }
9276         if (struct.erts != null) {
9277           oprot.writeFieldBegin(ERTS_FIELD_DESC);
9278           {
9279             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.erts.size()));
9280             for (String _iter15 : struct.erts)
9281             {
9282               oprot.writeString(_iter15);
9283             }
9284             oprot.writeListEnd();
9285           }
9286           oprot.writeFieldEnd();
9287         }
9288         if (struct.afi != null) {
9289           oprot.writeFieldBegin(AFI_FIELD_DESC);
9290           oprot.writeI32(struct.afi.getValue());
9291           oprot.writeFieldEnd();
9292         }
9293         if (struct.safi != null) {
9294           oprot.writeFieldBegin(SAFI_FIELD_DESC);
9295           oprot.writeI32(struct.safi.getValue());
9296           oprot.writeFieldEnd();
9297         }
9298         oprot.writeFieldStop();
9299         oprot.writeStructEnd();
9300       }
9301
9302     }
9303
9304     private static class addVrf_argsTupleSchemeFactory implements SchemeFactory {
9305       @Override
9306         public addVrf_argsTupleScheme getScheme() {
9307         return new addVrf_argsTupleScheme();
9308       }
9309     }
9310
9311     private static class addVrf_argsTupleScheme extends TupleScheme<addVrf_args> {
9312
9313       @Override
9314       public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
9315         TTupleProtocol oprot = (TTupleProtocol) prot;
9316         BitSet optionals = new BitSet();
9317         if (struct.isSetL_type()) {
9318           optionals.set(0);
9319         }
9320         if (struct.isSetRd()) {
9321           optionals.set(1);
9322         }
9323         if (struct.isSetIrts()) {
9324           optionals.set(2);
9325         }
9326         if (struct.isSetErts()) {
9327           optionals.set(3);
9328         }
9329         if (struct.isSetAfi()) {
9330           optionals.set(4);
9331         }
9332         if (struct.isSetSafi()) {
9333           optionals.set(5);
9334         }
9335         oprot.writeBitSet(optionals, 6);
9336         if (struct.isSetL_type()) {
9337           oprot.writeI32(struct.l_type.getValue());
9338         }
9339         if (struct.isSetRd()) {
9340           oprot.writeString(struct.rd);
9341         }
9342         if (struct.isSetIrts()) {
9343           {
9344             oprot.writeI32(struct.irts.size());
9345             for (String _iter16 : struct.irts)
9346             {
9347               oprot.writeString(_iter16);
9348             }
9349           }
9350         }
9351         if (struct.isSetErts()) {
9352           {
9353             oprot.writeI32(struct.erts.size());
9354             for (String _iter17 : struct.erts)
9355             {
9356               oprot.writeString(_iter17);
9357             }
9358           }
9359         if (struct.isSetAfi()) {
9360           oprot.writeI32(struct.afi.getValue());
9361         }
9362         if (struct.isSetSafi()) {
9363           oprot.writeI32(struct.safi.getValue());
9364         }
9365         }
9366       }
9367
9368       @Override
9369       public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
9370         TTupleProtocol iprot = (TTupleProtocol) prot;
9371         BitSet incoming = iprot.readBitSet(6);
9372         if (incoming.get(0)) {
9373           struct.l_type = layer_type.findByValue(iprot.readI32());
9374           struct.setL_typeIsSet(true);
9375         }
9376         if (incoming.get(1)) {
9377           struct.rd = iprot.readString();
9378           struct.setRdIsSet(true);
9379         }
9380         if (incoming.get(2)) {
9381           {
9382             org.apache.thrift.protocol.TList _list18 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
9383             struct.irts = new ArrayList<>(_list18.size);
9384             for (int _i19 = 0; _i19 < _list18.size; ++_i19)
9385             {
9386               String _elem20;
9387               _elem20 = iprot.readString();
9388               struct.irts.add(_elem20);
9389             }
9390           }
9391           struct.setIrtsIsSet(true);
9392         }
9393         if (incoming.get(3)) {
9394           {
9395             org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
9396             struct.erts = new ArrayList<>(_list21.size);
9397             for (int _i22 = 0; _i22 < _list21.size; ++_i22)
9398             {
9399               String _elem23;
9400               _elem23 = iprot.readString();
9401               struct.erts.add(_elem23);
9402             }
9403           }
9404           struct.setErtsIsSet(true);
9405         }
9406         if (incoming.get(4)) {
9407           struct.afi = af_afi.findByValue(iprot.readI32());
9408           struct.setAfiIsSet(true);
9409         }
9410         if (incoming.get(5)) {
9411           struct.safi = af_safi.findByValue(iprot.readI32());
9412           struct.setSafiIsSet(true);
9413         }
9414       }
9415     }
9416
9417   }
9418
9419   public static class addVrf_result implements org.apache.thrift.TBase<addVrf_result, addVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_result>   {
9420     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_result");
9421
9422     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);
9423
9424     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9425     static {
9426       schemes.put(StandardScheme.class, new addVrf_resultStandardSchemeFactory());
9427       schemes.put(TupleScheme.class, new addVrf_resultTupleSchemeFactory());
9428     }
9429
9430     public int success; // required
9431
9432     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9433     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9434       SUCCESS((short)0, "success");
9435
9436       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9437
9438       static {
9439         for (_Fields field : EnumSet.allOf(_Fields.class)) {
9440           byName.put(field.getFieldName(), field);
9441         }
9442       }
9443
9444       /**
9445        * Find the _Fields constant that matches fieldId, or null if its not found.
9446        */
9447       public static _Fields findByThriftId(int fieldId) {
9448         switch(fieldId) {
9449           case 0: // SUCCESS
9450             return SUCCESS;
9451           default:
9452             return null;
9453         }
9454       }
9455
9456       /**
9457        * Find the _Fields constant that matches fieldId, throwing an exception
9458        * if it is not found.
9459        */
9460       public static _Fields findByThriftIdOrThrow(int fieldId) {
9461         _Fields fields = findByThriftId(fieldId);
9462         if (fields == null) {
9463                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9464                 }
9465         return fields;
9466       }
9467
9468       /**
9469        * Find the _Fields constant that matches name, or null if its not found.
9470        */
9471       public static _Fields findByName(String name) {
9472         return byName.get(name);
9473       }
9474
9475       private final short _thriftId;
9476       private final String _fieldName;
9477
9478       _Fields(short thriftId, String fieldName) {
9479         _thriftId = thriftId;
9480         _fieldName = fieldName;
9481       }
9482
9483       @Override
9484         public short getThriftFieldId() {
9485         return _thriftId;
9486       }
9487
9488       @Override
9489         public String getFieldName() {
9490         return _fieldName;
9491       }
9492     }
9493
9494     // isset id assignments
9495     private static final int __SUCCESS_ISSET_ID = 0;
9496     private byte __isset_bitfield = 0;
9497     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9498     static {
9499       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9500       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
9501           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9502       metaDataMap = Collections.unmodifiableMap(tmpMap);
9503       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_result.class, metaDataMap);
9504     }
9505
9506     public addVrf_result() {
9507     }
9508
9509     public addVrf_result(
9510       int success)
9511     {
9512       this();
9513       this.success = success;
9514       setSuccessIsSet(true);
9515     }
9516
9517     /**
9518      * Performs a deep copy on <i>other</i>.
9519      */
9520     public addVrf_result(addVrf_result other) {
9521       __isset_bitfield = other.__isset_bitfield;
9522       this.success = other.success;
9523     }
9524
9525     @Override
9526         public addVrf_result deepCopy() {
9527       return new addVrf_result(this);
9528     }
9529
9530     @Override
9531     public void clear() {
9532       setSuccessIsSet(false);
9533       this.success = 0;
9534     }
9535
9536     public int getSuccess() {
9537       return this.success;
9538     }
9539
9540     public addVrf_result setSuccess(int success) {
9541       this.success = success;
9542       setSuccessIsSet(true);
9543       return this;
9544     }
9545
9546     public void unsetSuccess() {
9547       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9548     }
9549
9550     /** Returns true if field success is set (has been assigned a value) and false otherwise */
9551     public boolean isSetSuccess() {
9552       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9553     }
9554
9555     public void setSuccessIsSet(boolean value) {
9556       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
9557     }
9558
9559     @Override
9560         public void setFieldValue(_Fields field, Object value) {
9561       switch (field) {
9562       case SUCCESS:
9563         if (value == null) {
9564           unsetSuccess();
9565         } else {
9566           setSuccess((Integer)value);
9567         }
9568         break;
9569
9570       }
9571     }
9572
9573     @Override
9574         public Object getFieldValue(_Fields field) {
9575       switch (field) {
9576       case SUCCESS:
9577         return Integer.valueOf(getSuccess());
9578
9579       }
9580       throw new IllegalStateException();
9581     }
9582
9583     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9584     @Override
9585         public boolean isSet(_Fields field) {
9586       if (field == null) {
9587         throw new IllegalArgumentException();
9588       }
9589
9590       switch (field) {
9591       case SUCCESS:
9592         return isSetSuccess();
9593       }
9594       throw new IllegalStateException();
9595     }
9596
9597     @Override
9598     public boolean equals(Object that) {
9599       if (that == null) {
9600                 return false;
9601         }
9602       if (that instanceof addVrf_result) {
9603                 return this.equals((addVrf_result)that);
9604         }
9605       return false;
9606     }
9607
9608     public boolean equals(addVrf_result that) {
9609       if (that == null) {
9610                 return false;
9611         }
9612
9613       boolean this_present_success = true;
9614       boolean that_present_success = true;
9615       if (this_present_success || that_present_success) {
9616         if (!(this_present_success && that_present_success)) {
9617                         return false;
9618                 }
9619         if (this.success != that.success) {
9620                         return false;
9621                 }
9622       }
9623
9624       return true;
9625     }
9626
9627     @Override
9628     public int hashCode() {
9629       List<Object> list = new ArrayList<Object>();
9630
9631       boolean present_success = true;
9632       list.add(present_success);
9633       if (present_success)
9634         list.add(success);
9635       return list.hashCode();
9636     }
9637
9638     @Override
9639     public int compareTo(addVrf_result other) {
9640       if (!getClass().equals(other.getClass())) {
9641         return getClass().getName().compareTo(other.getClass().getName());
9642       }
9643
9644       int lastComparison = 0;
9645
9646       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
9647       if (lastComparison != 0) {
9648         return lastComparison;
9649       }
9650       if (isSetSuccess()) {
9651         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
9652         if (lastComparison != 0) {
9653           return lastComparison;
9654         }
9655       }
9656       return 0;
9657     }
9658
9659     @Override
9660         public _Fields fieldForId(int fieldId) {
9661       return _Fields.findByThriftId(fieldId);
9662     }
9663
9664     @Override
9665         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9666       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9667     }
9668
9669     @Override
9670         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9671       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9672       }
9673
9674     @Override
9675     public String toString() {
9676       StringBuilder sb = new StringBuilder("addVrf_result(");
9677       boolean first = true;
9678
9679       sb.append("success:");
9680       sb.append(this.success);
9681       first = false;
9682       sb.append(")");
9683       return sb.toString();
9684     }
9685
9686     public void validate() throws org.apache.thrift.TException {
9687       // check for required fields
9688       // check for sub-struct validity
9689     }
9690
9691     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9692       try {
9693         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9694       } catch (org.apache.thrift.TException te) {
9695         throw new java.io.IOException(te);
9696       }
9697     }
9698
9699     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9700       try {
9701         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9702         __isset_bitfield = 0;
9703         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9704       } catch (org.apache.thrift.TException te) {
9705         throw new java.io.IOException(te);
9706       }
9707     }
9708
9709     private static class addVrf_resultStandardSchemeFactory implements SchemeFactory {
9710       @Override
9711         public addVrf_resultStandardScheme getScheme() {
9712         return new addVrf_resultStandardScheme();
9713       }
9714     }
9715
9716     private static class addVrf_resultStandardScheme extends StandardScheme<addVrf_result> {
9717
9718       @Override
9719         public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_result struct) throws org.apache.thrift.TException {
9720         org.apache.thrift.protocol.TField schemeField;
9721         iprot.readStructBegin();
9722         while (true)
9723         {
9724           schemeField = iprot.readFieldBegin();
9725           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9726             break;
9727           }
9728           switch (schemeField.id) {
9729             case 0: // SUCCESS
9730               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9731                 struct.success = iprot.readI32();
9732                 struct.setSuccessIsSet(true);
9733               } else {
9734                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9735               }
9736               break;
9737             default:
9738               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9739           }
9740           iprot.readFieldEnd();
9741         }
9742         iprot.readStructEnd();
9743
9744         // check for required fields of primitive type, which can't be checked in the validate method
9745         struct.validate();
9746       }
9747
9748       @Override
9749         public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_result struct) throws org.apache.thrift.TException {
9750         struct.validate();
9751
9752         oprot.writeStructBegin(STRUCT_DESC);
9753         if (struct.isSetSuccess()) {
9754           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9755           oprot.writeI32(struct.success);
9756           oprot.writeFieldEnd();
9757         }
9758         oprot.writeFieldStop();
9759         oprot.writeStructEnd();
9760       }
9761
9762     }
9763
9764     private static class addVrf_resultTupleSchemeFactory implements SchemeFactory {
9765       @Override
9766         public addVrf_resultTupleScheme getScheme() {
9767         return new addVrf_resultTupleScheme();
9768       }
9769     }
9770
9771     private static class addVrf_resultTupleScheme extends TupleScheme<addVrf_result> {
9772
9773       @Override
9774       public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
9775         TTupleProtocol oprot = (TTupleProtocol) prot;
9776         BitSet optionals = new BitSet();
9777         if (struct.isSetSuccess()) {
9778           optionals.set(0);
9779         }
9780         oprot.writeBitSet(optionals, 1);
9781         if (struct.isSetSuccess()) {
9782           oprot.writeI32(struct.success);
9783         }
9784       }
9785
9786       @Override
9787       public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
9788         TTupleProtocol iprot = (TTupleProtocol) prot;
9789         BitSet incoming = iprot.readBitSet(1);
9790         if (incoming.get(0)) {
9791           struct.success = iprot.readI32();
9792           struct.setSuccessIsSet(true);
9793         }
9794       }
9795     }
9796
9797   }
9798
9799   public static class delVrf_args implements org.apache.thrift.TBase<delVrf_args, delVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_args>   {
9800     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_args");
9801
9802     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);
9803     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);
9804     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);
9805
9806     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9807     static {
9808       schemes.put(StandardScheme.class, new delVrf_argsStandardSchemeFactory());
9809       schemes.put(TupleScheme.class, new delVrf_argsTupleSchemeFactory());
9810     }
9811
9812     public String rd; // required
9813     public af_afi afi; // required
9814     public af_safi safi; // required
9815
9816     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9817     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9818       RD((short)1, "rd"),
9819       AFI((short)2, "afi"),
9820       SAFI((short)3, "safi");
9821
9822       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9823
9824       static {
9825         for (_Fields field : EnumSet.allOf(_Fields.class)) {
9826           byName.put(field.getFieldName(), field);
9827         }
9828       }
9829
9830       /**
9831        * Find the _Fields constant that matches fieldId, or null if its not found.
9832        */
9833       public static _Fields findByThriftId(int fieldId) {
9834         switch(fieldId) {
9835           case 1: // RD
9836             return RD;
9837           case 2: // AFI
9838             return AFI;
9839           case 3: // SAFI
9840             return SAFI;
9841           default:
9842             return null;
9843         }
9844       }
9845
9846       /**
9847        * Find the _Fields constant that matches fieldId, throwing an exception
9848        * if it is not found.
9849        */
9850       public static _Fields findByThriftIdOrThrow(int fieldId) {
9851         _Fields fields = findByThriftId(fieldId);
9852         if (fields == null) {
9853                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9854                 }
9855         return fields;
9856       }
9857
9858       /**
9859        * Find the _Fields constant that matches name, or null if its not found.
9860        */
9861       public static _Fields findByName(String name) {
9862         return byName.get(name);
9863       }
9864
9865       private final short _thriftId;
9866       private final String _fieldName;
9867
9868       _Fields(short thriftId, String fieldName) {
9869         _thriftId = thriftId;
9870         _fieldName = fieldName;
9871       }
9872
9873       @Override
9874         public short getThriftFieldId() {
9875         return _thriftId;
9876       }
9877
9878       @Override
9879         public String getFieldName() {
9880         return _fieldName;
9881       }
9882     }
9883
9884     // isset id assignments
9885     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9886     static {
9887       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9888       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
9889           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9890       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9891           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
9892       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9893           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
9894       metaDataMap = Collections.unmodifiableMap(tmpMap);
9895       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_args.class, metaDataMap);
9896     }
9897
9898     public delVrf_args() {
9899     }
9900
9901     public delVrf_args(
9902       String rd,
9903       af_afi afi,
9904       af_safi safi)
9905     {
9906       this();
9907       this.rd = rd;
9908       this.afi = afi;
9909       this.safi = safi;
9910     }
9911
9912     /**
9913      * Performs a deep copy on <i>other</i>.
9914      */
9915     public delVrf_args(delVrf_args other) {
9916       if (other.isSetRd()) {
9917         this.rd = other.rd;
9918       }
9919       if (other.isSetAfi()) {
9920         this.afi = other.afi;
9921       }
9922       if (other.isSetSafi()) {
9923         this.safi = other.safi;
9924       }
9925     }
9926
9927     @Override
9928         public delVrf_args deepCopy() {
9929       return new delVrf_args(this);
9930     }
9931
9932     @Override
9933     public void clear() {
9934       this.rd = null;
9935       this.afi = null;
9936       this.safi = null;
9937     }
9938
9939     public String getRd() {
9940       return this.rd;
9941     }
9942
9943     public delVrf_args setRd(String rd) {
9944       this.rd = rd;
9945       return this;
9946     }
9947
9948     public void unsetRd() {
9949       this.rd = null;
9950     }
9951
9952     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
9953     public boolean isSetRd() {
9954       return this.rd != null;
9955     }
9956
9957     public void setRdIsSet(boolean value) {
9958       if (!value) {
9959         this.rd = null;
9960       }
9961     }
9962
9963     public af_afi getAfi() {
9964       return this.afi;
9965     }
9966
9967     public delVrf_args setAfi(af_afi afi) {
9968       this.afi = afi;
9969       return this;
9970     }
9971
9972     public void unsetAfi() {
9973       this.afi = null;
9974     }
9975
9976     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
9977     public boolean isSetAfi() {
9978       return this.afi != null;
9979     }
9980
9981     public void setAfiIsSet(boolean value) {
9982       if (!value) {
9983         this.afi = null;
9984       }
9985     }
9986
9987     public af_safi getSafi() {
9988       return this.safi;
9989     }
9990
9991     public delVrf_args setSafi(af_safi safi) {
9992       this.safi = safi;
9993       return this;
9994     }
9995
9996     public void unsetSafi() {
9997       this.safi = null;
9998     }
9999
10000     /** Returns true if field safi is set (has been assigned a value) and false otherwise */
10001     public boolean isSetSafi() {
10002       return this.safi != null;
10003     }
10004
10005     public void setSafiIsSet(boolean value) {
10006       if (!value) {
10007         this.safi = null;
10008       }
10009     }
10010
10011     @Override
10012         public void setFieldValue(_Fields field, Object value) {
10013       switch (field) {
10014       case RD:
10015         if (value == null) {
10016           unsetRd();
10017         } else {
10018           setRd((String)value);
10019         }
10020         break;
10021
10022       case AFI:
10023         if (value == null) {
10024           unsetAfi();
10025         } else {
10026           setAfi((af_afi)value);
10027         }
10028         break;
10029
10030       case SAFI:
10031         if (value == null) {
10032           unsetSafi();
10033         } else {
10034           setSafi((af_safi)value);
10035         }
10036         break;
10037
10038       }
10039     }
10040
10041     @Override
10042         public Object getFieldValue(_Fields field) {
10043       switch (field) {
10044       case RD:
10045         return getRd();
10046
10047       case AFI:
10048         return getAfi();
10049
10050       case SAFI:
10051         return getSafi();
10052
10053       }
10054       throw new IllegalStateException();
10055     }
10056
10057     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10058     @Override
10059         public boolean isSet(_Fields field) {
10060       if (field == null) {
10061         throw new IllegalArgumentException();
10062       }
10063
10064       switch (field) {
10065       case RD:
10066         return isSetRd();
10067       case AFI:
10068         return isSetAfi();
10069       case SAFI:
10070         return isSetSafi();
10071       }
10072       throw new IllegalStateException();
10073     }
10074
10075     @Override
10076     public boolean equals(Object that) {
10077       if (that == null) {
10078                 return false;
10079         }
10080       if (that instanceof delVrf_args) {
10081                 return this.equals((delVrf_args)that);
10082         }
10083       return false;
10084     }
10085
10086     public boolean equals(delVrf_args that) {
10087       if (that == null) {
10088                 return false;
10089         }
10090
10091       boolean this_present_rd = true && this.isSetRd();
10092       boolean that_present_rd = true && that.isSetRd();
10093       if (this_present_rd || that_present_rd) {
10094         if (!(this_present_rd && that_present_rd)) {
10095                         return false;
10096                 }
10097         if (!this.rd.equals(that.rd)) {
10098                         return false;
10099                 }
10100       }
10101
10102       boolean this_present_afi = true && this.isSetAfi();
10103       boolean that_present_afi = true && that.isSetAfi();
10104       if (this_present_afi || that_present_afi) {
10105         if (!(this_present_afi && that_present_afi))
10106           return false;
10107         if (!this.afi.equals(that.afi))
10108           return false;
10109       }
10110
10111       boolean this_present_safi = true && this.isSetSafi();
10112       boolean that_present_safi = true && that.isSetSafi();
10113       if (this_present_safi || that_present_safi) {
10114         if (!(this_present_safi && that_present_safi))
10115           return false;
10116         if (!this.safi.equals(that.safi))
10117           return false;
10118       }
10119
10120       return true;
10121     }
10122
10123     @Override
10124     public int hashCode() {
10125       List<Object> list = new ArrayList<Object>();
10126       boolean present_rd = true && (isSetRd());
10127       list.add(present_rd);
10128       if (present_rd)
10129         list.add(rd);
10130       return list.hashCode();
10131     }
10132
10133     @Override
10134     public int compareTo(delVrf_args other) {
10135       if (!getClass().equals(other.getClass())) {
10136         return getClass().getName().compareTo(other.getClass().getName());
10137       }
10138
10139       int lastComparison = 0;
10140
10141       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
10142       if (lastComparison != 0) {
10143         return lastComparison;
10144       }
10145       if (isSetRd()) {
10146         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
10147         if (lastComparison != 0) {
10148           return lastComparison;
10149         }
10150       }
10151       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
10152       if (lastComparison != 0) {
10153         return lastComparison;
10154       }
10155       if (isSetAfi()) {
10156         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
10157         if (lastComparison != 0) {
10158           return lastComparison;
10159         }
10160       }
10161       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
10162       if (lastComparison != 0) {
10163         return lastComparison;
10164       }
10165       if (isSetSafi()) {
10166         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
10167         if (lastComparison != 0) {
10168           return lastComparison;
10169         }
10170       }
10171       return 0;
10172     }
10173
10174     @Override
10175         public _Fields fieldForId(int fieldId) {
10176       return _Fields.findByThriftId(fieldId);
10177     }
10178
10179     @Override
10180         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10181       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10182     }
10183
10184     @Override
10185         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10186       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10187     }
10188
10189     @Override
10190     public String toString() {
10191       StringBuilder sb = new StringBuilder("delVrf_args(");
10192       boolean first = true;
10193
10194       sb.append("rd:");
10195       if (this.rd == null) {
10196         sb.append("null");
10197       } else {
10198         sb.append(this.rd);
10199       }
10200       first = false;
10201       if (!first) sb.append(", ");
10202       sb.append("afi:");
10203       if (this.afi == null) {
10204         sb.append("null");
10205       } else {
10206         sb.append(this.afi);
10207       }
10208       first = false;
10209       if (!first) sb.append(", ");
10210       sb.append("safi:");
10211       if (this.safi == null) {
10212         sb.append("null");
10213       } else {
10214         sb.append(this.safi);
10215       }
10216       first = false;
10217       sb.append(")");
10218       return sb.toString();
10219     }
10220
10221     public void validate() throws org.apache.thrift.TException {
10222       // check for required fields
10223       // check for sub-struct validity
10224     }
10225
10226     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10227       try {
10228         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10229       } catch (org.apache.thrift.TException te) {
10230         throw new java.io.IOException(te);
10231       }
10232     }
10233
10234     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10235       try {
10236         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10237       } catch (org.apache.thrift.TException te) {
10238         throw new java.io.IOException(te);
10239       }
10240     }
10241
10242     private static class delVrf_argsStandardSchemeFactory implements SchemeFactory {
10243       @Override
10244         public delVrf_argsStandardScheme getScheme() {
10245         return new delVrf_argsStandardScheme();
10246       }
10247     }
10248
10249     private static class delVrf_argsStandardScheme extends StandardScheme<delVrf_args> {
10250
10251       @Override
10252         public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_args struct) throws org.apache.thrift.TException {
10253         org.apache.thrift.protocol.TField schemeField;
10254         iprot.readStructBegin();
10255         while (true)
10256         {
10257           schemeField = iprot.readFieldBegin();
10258           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10259             break;
10260           }
10261           switch (schemeField.id) {
10262             case 1: // RD
10263               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10264                 struct.rd = iprot.readString();
10265                 struct.setRdIsSet(true);
10266               } else {
10267                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10268               }
10269               break;
10270             case 2: // AFI
10271               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10272                 struct.afi = af_afi.findByValue(iprot.readI32());
10273                 struct.setAfiIsSet(true);
10274               } else {
10275                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10276               }
10277               break;
10278             case 3: // SAFI
10279               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10280                 struct.safi = af_safi.findByValue(iprot.readI32());
10281                 struct.setSafiIsSet(true);
10282               } else {
10283                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10284               }
10285               break;
10286             default:
10287               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10288           }
10289           iprot.readFieldEnd();
10290         }
10291         iprot.readStructEnd();
10292
10293         // check for required fields of primitive type, which can't be checked in the validate method
10294         struct.validate();
10295       }
10296
10297       @Override
10298         public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_args struct) throws org.apache.thrift.TException {
10299         struct.validate();
10300
10301         oprot.writeStructBegin(STRUCT_DESC);
10302         if (struct.rd != null) {
10303           oprot.writeFieldBegin(RD_FIELD_DESC);
10304           oprot.writeString(struct.rd);
10305           oprot.writeFieldEnd();
10306         }
10307         if (struct.afi != null) {
10308           oprot.writeFieldBegin(AFI_FIELD_DESC);
10309           oprot.writeI32(struct.afi.getValue());
10310           oprot.writeFieldEnd();
10311         }
10312         if (struct.safi != null) {
10313           oprot.writeFieldBegin(SAFI_FIELD_DESC);
10314           oprot.writeI32(struct.safi.getValue());
10315           oprot.writeFieldEnd();
10316         }
10317         oprot.writeFieldStop();
10318         oprot.writeStructEnd();
10319       }
10320
10321     }
10322
10323     private static class delVrf_argsTupleSchemeFactory implements SchemeFactory {
10324       @Override
10325         public delVrf_argsTupleScheme getScheme() {
10326         return new delVrf_argsTupleScheme();
10327       }
10328     }
10329
10330     private static class delVrf_argsTupleScheme extends TupleScheme<delVrf_args> {
10331
10332       @Override
10333       public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
10334         TTupleProtocol oprot = (TTupleProtocol) prot;
10335         BitSet optionals = new BitSet();
10336         if (struct.isSetRd()) {
10337           optionals.set(0);
10338         }
10339         if (struct.isSetAfi()) {
10340           optionals.set(1);
10341         }
10342         if (struct.isSetSafi()) {
10343           optionals.set(2);
10344         }
10345         oprot.writeBitSet(optionals, 3);
10346         if (struct.isSetRd()) {
10347           oprot.writeString(struct.rd);
10348         }
10349         if (struct.isSetAfi()) {
10350           oprot.writeI32(struct.afi.getValue());
10351         }
10352         if (struct.isSetSafi()) {
10353           oprot.writeI32(struct.safi.getValue());
10354         }
10355       }
10356
10357       @Override
10358       public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
10359         TTupleProtocol iprot = (TTupleProtocol) prot;
10360         BitSet incoming = iprot.readBitSet(3);
10361         if (incoming.get(0)) {
10362           struct.rd = iprot.readString();
10363           struct.setRdIsSet(true);
10364         }
10365         if (incoming.get(1)) {
10366           struct.afi = af_afi.findByValue(iprot.readI32());
10367           struct.setAfiIsSet(true);
10368         }
10369         if (incoming.get(2)) {
10370           struct.safi = af_safi.findByValue(iprot.readI32());
10371           struct.setSafiIsSet(true);
10372         }
10373       }
10374     }
10375
10376   }
10377
10378   public static class delVrf_result implements org.apache.thrift.TBase<delVrf_result, delVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_result>   {
10379     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_result");
10380
10381     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);
10382
10383     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10384     static {
10385       schemes.put(StandardScheme.class, new delVrf_resultStandardSchemeFactory());
10386       schemes.put(TupleScheme.class, new delVrf_resultTupleSchemeFactory());
10387     }
10388
10389     public int success; // required
10390
10391     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10392     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10393       SUCCESS((short)0, "success");
10394
10395       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10396
10397       static {
10398         for (_Fields field : EnumSet.allOf(_Fields.class)) {
10399           byName.put(field.getFieldName(), field);
10400         }
10401       }
10402
10403       /**
10404        * Find the _Fields constant that matches fieldId, or null if its not found.
10405        */
10406       public static _Fields findByThriftId(int fieldId) {
10407         switch(fieldId) {
10408           case 0: // SUCCESS
10409             return SUCCESS;
10410           default:
10411             return null;
10412         }
10413       }
10414
10415       /**
10416        * Find the _Fields constant that matches fieldId, throwing an exception
10417        * if it is not found.
10418        */
10419       public static _Fields findByThriftIdOrThrow(int fieldId) {
10420         _Fields fields = findByThriftId(fieldId);
10421         if (fields == null) {
10422                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10423                 }
10424         return fields;
10425       }
10426
10427       /**
10428        * Find the _Fields constant that matches name, or null if its not found.
10429        */
10430       public static _Fields findByName(String name) {
10431         return byName.get(name);
10432       }
10433
10434       private final short _thriftId;
10435       private final String _fieldName;
10436
10437       _Fields(short thriftId, String fieldName) {
10438         _thriftId = thriftId;
10439         _fieldName = fieldName;
10440       }
10441
10442       @Override
10443         public short getThriftFieldId() {
10444         return _thriftId;
10445       }
10446
10447       @Override
10448         public String getFieldName() {
10449         return _fieldName;
10450       }
10451     }
10452
10453     // isset id assignments
10454     private static final int __SUCCESS_ISSET_ID = 0;
10455     private byte __isset_bitfield = 0;
10456     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10457     static {
10458       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10459       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
10460           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10461       metaDataMap = Collections.unmodifiableMap(tmpMap);
10462       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_result.class, metaDataMap);
10463     }
10464
10465     public delVrf_result() {
10466     }
10467
10468     public delVrf_result(
10469       int success)
10470     {
10471       this();
10472       this.success = success;
10473       setSuccessIsSet(true);
10474     }
10475
10476     /**
10477      * Performs a deep copy on <i>other</i>.
10478      */
10479     public delVrf_result(delVrf_result other) {
10480       __isset_bitfield = other.__isset_bitfield;
10481       this.success = other.success;
10482     }
10483
10484     @Override
10485         public delVrf_result deepCopy() {
10486       return new delVrf_result(this);
10487     }
10488
10489     @Override
10490     public void clear() {
10491       setSuccessIsSet(false);
10492       this.success = 0;
10493     }
10494
10495     public int getSuccess() {
10496       return this.success;
10497     }
10498
10499     public delVrf_result setSuccess(int success) {
10500       this.success = success;
10501       setSuccessIsSet(true);
10502       return this;
10503     }
10504
10505     public void unsetSuccess() {
10506       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10507     }
10508
10509     /** Returns true if field success is set (has been assigned a value) and false otherwise */
10510     public boolean isSetSuccess() {
10511       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10512     }
10513
10514     public void setSuccessIsSet(boolean value) {
10515       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
10516     }
10517
10518     @Override
10519         public void setFieldValue(_Fields field, Object value) {
10520       switch (field) {
10521       case SUCCESS:
10522         if (value == null) {
10523           unsetSuccess();
10524         } else {
10525           setSuccess((Integer)value);
10526         }
10527         break;
10528
10529       }
10530     }
10531
10532     @Override
10533         public Object getFieldValue(_Fields field) {
10534       switch (field) {
10535       case SUCCESS:
10536         return Integer.valueOf(getSuccess());
10537
10538       }
10539       throw new IllegalStateException();
10540     }
10541
10542     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10543     @Override
10544         public boolean isSet(_Fields field) {
10545       if (field == null) {
10546         throw new IllegalArgumentException();
10547       }
10548
10549       switch (field) {
10550       case SUCCESS:
10551         return isSetSuccess();
10552       }
10553       throw new IllegalStateException();
10554     }
10555
10556     @Override
10557     public boolean equals(Object that) {
10558       if (that == null) {
10559                 return false;
10560         }
10561       if (that instanceof delVrf_result) {
10562                 return this.equals((delVrf_result)that);
10563         }
10564       return false;
10565     }
10566
10567     public boolean equals(delVrf_result that) {
10568       if (that == null) {
10569                 return false;
10570         }
10571
10572       boolean this_present_success = true;
10573       boolean that_present_success = true;
10574       if (this_present_success || that_present_success) {
10575         if (!(this_present_success && that_present_success)) {
10576                         return false;
10577                 }
10578         if (this.success != that.success) {
10579                         return false;
10580                 }
10581       }
10582
10583       return true;
10584     }
10585
10586     @Override
10587     public int hashCode() {
10588       List<Object> list = new ArrayList<Object>();
10589
10590       boolean present_success = true;
10591       list.add(present_success);
10592       if (present_success)
10593         list.add(success);
10594       return list.hashCode();
10595     }
10596
10597     @Override
10598     public int compareTo(delVrf_result other) {
10599       if (!getClass().equals(other.getClass())) {
10600         return getClass().getName().compareTo(other.getClass().getName());
10601       }
10602
10603       int lastComparison = 0;
10604
10605       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
10606       if (lastComparison != 0) {
10607         return lastComparison;
10608       }
10609       if (isSetSuccess()) {
10610         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
10611         if (lastComparison != 0) {
10612           return lastComparison;
10613         }
10614       }
10615       return 0;
10616     }
10617
10618     @Override
10619         public _Fields fieldForId(int fieldId) {
10620       return _Fields.findByThriftId(fieldId);
10621     }
10622
10623     @Override
10624         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10625       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10626     }
10627
10628     @Override
10629         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10630       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10631       }
10632
10633     @Override
10634     public String toString() {
10635       StringBuilder sb = new StringBuilder("delVrf_result(");
10636       boolean first = true;
10637
10638       sb.append("success:");
10639       sb.append(this.success);
10640       first = false;
10641       sb.append(")");
10642       return sb.toString();
10643     }
10644
10645     public void validate() throws org.apache.thrift.TException {
10646       // check for required fields
10647       // check for sub-struct validity
10648     }
10649
10650     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10651       try {
10652         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10653       } catch (org.apache.thrift.TException te) {
10654         throw new java.io.IOException(te);
10655       }
10656     }
10657
10658     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10659       try {
10660         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10661         __isset_bitfield = 0;
10662         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10663       } catch (org.apache.thrift.TException te) {
10664         throw new java.io.IOException(te);
10665       }
10666     }
10667
10668     private static class delVrf_resultStandardSchemeFactory implements SchemeFactory {
10669       @Override
10670         public delVrf_resultStandardScheme getScheme() {
10671         return new delVrf_resultStandardScheme();
10672       }
10673     }
10674
10675     private static class delVrf_resultStandardScheme extends StandardScheme<delVrf_result> {
10676
10677       @Override
10678         public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_result struct) throws org.apache.thrift.TException {
10679         org.apache.thrift.protocol.TField schemeField;
10680         iprot.readStructBegin();
10681         while (true)
10682         {
10683           schemeField = iprot.readFieldBegin();
10684           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10685             break;
10686           }
10687           switch (schemeField.id) {
10688             case 0: // SUCCESS
10689               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10690                 struct.success = iprot.readI32();
10691                 struct.setSuccessIsSet(true);
10692               } else {
10693                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10694               }
10695               break;
10696             default:
10697               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10698           }
10699           iprot.readFieldEnd();
10700         }
10701         iprot.readStructEnd();
10702
10703         // check for required fields of primitive type, which can't be checked in the validate method
10704         struct.validate();
10705       }
10706
10707       @Override
10708         public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_result struct) throws org.apache.thrift.TException {
10709         struct.validate();
10710
10711         oprot.writeStructBegin(STRUCT_DESC);
10712         if (struct.isSetSuccess()) {
10713           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10714           oprot.writeI32(struct.success);
10715           oprot.writeFieldEnd();
10716         }
10717         oprot.writeFieldStop();
10718         oprot.writeStructEnd();
10719       }
10720
10721     }
10722
10723     private static class delVrf_resultTupleSchemeFactory implements SchemeFactory {
10724       @Override
10725         public delVrf_resultTupleScheme getScheme() {
10726         return new delVrf_resultTupleScheme();
10727       }
10728     }
10729
10730     private static class delVrf_resultTupleScheme extends TupleScheme<delVrf_result> {
10731
10732       @Override
10733       public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
10734         TTupleProtocol oprot = (TTupleProtocol) prot;
10735         BitSet optionals = new BitSet();
10736         if (struct.isSetSuccess()) {
10737           optionals.set(0);
10738         }
10739         oprot.writeBitSet(optionals, 1);
10740         if (struct.isSetSuccess()) {
10741           oprot.writeI32(struct.success);
10742         }
10743       }
10744
10745       @Override
10746       public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
10747         TTupleProtocol iprot = (TTupleProtocol) prot;
10748         BitSet incoming = iprot.readBitSet(1);
10749         if (incoming.get(0)) {
10750           struct.success = iprot.readI32();
10751           struct.setSuccessIsSet(true);
10752         }
10753       }
10754     }
10755
10756   }
10757
10758   public static class pushRoute_args implements org.apache.thrift.TBase<pushRoute_args, pushRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_args>   {
10759     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_args");
10760
10761     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);
10762     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);
10763     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);
10764     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);
10765     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);
10766     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);
10767     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);
10768     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);
10769     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);
10770     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);
10771     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);
10772     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);
10773
10774     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10775     static {
10776       schemes.put(StandardScheme.class, new pushRoute_argsStandardSchemeFactory());
10777       schemes.put(TupleScheme.class, new pushRoute_argsTupleSchemeFactory());
10778     }
10779
10780     /**
10781      *
10782      * @see protocol_type
10783      */
10784     public protocol_type p_type; // required
10785     public String prefix; // required
10786     public String nexthop; // required
10787     public String rd; // required
10788     public int ethtag; // required
10789     public String esi; // required
10790     public String macaddress; // required
10791     public int l3label; // required
10792     public int l2label; // required
10793     /**
10794      *
10795      * @see encap_type
10796      */
10797     public encap_type enc_type; // required
10798     public String routermac; // required
10799     /**
10800      *
10801      * @see af_afi
10802      */
10803     public af_afi afi; // required
10804
10805     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10806     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10807       /**
10808        *
10809        * @see protocol_type
10810        */
10811       P_TYPE((short)1, "p_type"),
10812       PREFIX((short)2, "prefix"),
10813       NEXTHOP((short)3, "nexthop"),
10814       RD((short)4, "rd"),
10815       ETHTAG((short)5, "ethtag"),
10816       ESI((short)6, "esi"),
10817       MACADDRESS((short)7, "macaddress"),
10818       L3LABEL((short)8, "l3label"),
10819       L2LABEL((short)9, "l2label"),
10820       /**
10821        *
10822        * @see encap_type
10823        */
10824       ENC_TYPE((short)10, "enc_type"),
10825       ROUTERMAC((short)11, "routermac"),
10826       /**
10827        *
10828        * @see af_afi
10829        */
10830       AFI((short)12, "afi");
10831
10832       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10833
10834       static {
10835         for (_Fields field : EnumSet.allOf(_Fields.class)) {
10836           byName.put(field.getFieldName(), field);
10837         }
10838       }
10839
10840       /**
10841        * Find the _Fields constant that matches fieldId, or null if its not found.
10842        */
10843       public static _Fields findByThriftId(int fieldId) {
10844         switch(fieldId) {
10845           case 1: // P_TYPE
10846             return P_TYPE;
10847           case 2: // PREFIX
10848             return PREFIX;
10849           case 3: // NEXTHOP
10850             return NEXTHOP;
10851           case 4: // RD
10852             return RD;
10853           case 5: // ETHTAG
10854             return ETHTAG;
10855           case 6: // ESI
10856             return ESI;
10857           case 7: // MACADDRESS
10858             return MACADDRESS;
10859           case 8: // L3LABEL
10860             return L3LABEL;
10861           case 9: // L2LABEL
10862             return L2LABEL;
10863           case 10: // ENC_TYPE
10864             return ENC_TYPE;
10865           case 11: // ROUTERMAC
10866             return ROUTERMAC;
10867           case 12: // AFI
10868             return AFI;
10869           default:
10870             return null;
10871         }
10872       }
10873
10874       /**
10875        * Find the _Fields constant that matches fieldId, throwing an exception
10876        * if it is not found.
10877        */
10878       public static _Fields findByThriftIdOrThrow(int fieldId) {
10879         _Fields fields = findByThriftId(fieldId);
10880         if (fields == null) {
10881                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10882                 }
10883         return fields;
10884       }
10885
10886       /**
10887        * Find the _Fields constant that matches name, or null if its not found.
10888        */
10889       public static _Fields findByName(String name) {
10890         return byName.get(name);
10891       }
10892
10893       private final short _thriftId;
10894       private final String _fieldName;
10895
10896       _Fields(short thriftId, String fieldName) {
10897         _thriftId = thriftId;
10898         _fieldName = fieldName;
10899       }
10900
10901       @Override
10902         public short getThriftFieldId() {
10903         return _thriftId;
10904       }
10905
10906       @Override
10907         public String getFieldName() {
10908         return _fieldName;
10909       }
10910     }
10911
10912     // isset id assignments
10913     private static final int __ETHTAG_ISSET_ID = 0;
10914     private static final int __L3LABEL_ISSET_ID = 1;
10915     private static final int __L2LABEL_ISSET_ID = 2;
10916     private byte __isset_bitfield = 0;
10917     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10918     static {
10919       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10920       tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
10921           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
10922       tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
10923           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10924       tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT,
10925           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10926       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
10927           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10928       tmpMap.put(_Fields.ETHTAG, new org.apache.thrift.meta_data.FieldMetaData("ethtag", org.apache.thrift.TFieldRequirementType.DEFAULT,
10929           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10930       tmpMap.put(_Fields.ESI, new org.apache.thrift.meta_data.FieldMetaData("esi", org.apache.thrift.TFieldRequirementType.DEFAULT,
10931           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10932       tmpMap.put(_Fields.MACADDRESS, new org.apache.thrift.meta_data.FieldMetaData("macaddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
10933           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10934       tmpMap.put(_Fields.L3LABEL, new org.apache.thrift.meta_data.FieldMetaData("l3label", org.apache.thrift.TFieldRequirementType.DEFAULT,
10935           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10936       tmpMap.put(_Fields.L2LABEL, new org.apache.thrift.meta_data.FieldMetaData("l2label", org.apache.thrift.TFieldRequirementType.DEFAULT,
10937           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10938       tmpMap.put(_Fields.ENC_TYPE, new org.apache.thrift.meta_data.FieldMetaData("enc_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
10939           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, encap_type.class)));
10940       tmpMap.put(_Fields.ROUTERMAC, new org.apache.thrift.meta_data.FieldMetaData("routermac", org.apache.thrift.TFieldRequirementType.DEFAULT,
10941           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10942       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
10943           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
10944       metaDataMap = Collections.unmodifiableMap(tmpMap);
10945       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_args.class, metaDataMap);
10946     }
10947
10948     public pushRoute_args() {
10949     }
10950
10951     public pushRoute_args(
10952       protocol_type p_type,
10953       String prefix,
10954       String nexthop,
10955       String rd,
10956       int ethtag,
10957       String esi,
10958       String macaddress,
10959       int l3label,
10960       int l2label,
10961       encap_type enc_type,
10962       String routermac,
10963       af_afi afi)
10964     {
10965       this();
10966       this.p_type = p_type;
10967       this.prefix = prefix;
10968       this.nexthop = nexthop;
10969       this.rd = rd;
10970       this.ethtag = ethtag;
10971       setEthtagIsSet(true);
10972       this.esi = esi;
10973       this.macaddress = macaddress;
10974       this.l3label = l3label;
10975       setL3labelIsSet(true);
10976       this.l2label = l2label;
10977       setL2labelIsSet(true);
10978       this.enc_type = enc_type;
10979       this.routermac = routermac;
10980       this.afi = afi;
10981     }
10982
10983     /**
10984      * Performs a deep copy on <i>other</i>.
10985      */
10986     public pushRoute_args(pushRoute_args other) {
10987       __isset_bitfield = other.__isset_bitfield;
10988       if (other.isSetP_type()) {
10989         this.p_type = other.p_type;
10990       }
10991       if (other.isSetPrefix()) {
10992         this.prefix = other.prefix;
10993       }
10994       if (other.isSetNexthop()) {
10995         this.nexthop = other.nexthop;
10996       }
10997       if (other.isSetRd()) {
10998         this.rd = other.rd;
10999       }
11000       this.ethtag = other.ethtag;
11001       if (other.isSetEsi()) {
11002         this.esi = other.esi;
11003       }
11004       if (other.isSetMacaddress()) {
11005         this.macaddress = other.macaddress;
11006       }
11007       this.l3label = other.l3label;
11008       this.l2label = other.l2label;
11009       if (other.isSetEnc_type()) {
11010         this.enc_type = other.enc_type;
11011       }
11012       if (other.isSetRoutermac()) {
11013         this.routermac = other.routermac;
11014       }
11015       if (other.isSetAfi()) {
11016         this.afi = other.afi;
11017       }
11018     }
11019
11020     @Override
11021         public pushRoute_args deepCopy() {
11022       return new pushRoute_args(this);
11023     }
11024
11025     @Override
11026     public void clear() {
11027       this.p_type = null;
11028       this.prefix = null;
11029       this.nexthop = null;
11030       this.rd = null;
11031       setEthtagIsSet(false);
11032       this.ethtag = 0;
11033       this.esi = null;
11034       this.macaddress = null;
11035       setL3labelIsSet(false);
11036       this.l3label = 0;
11037       setL2labelIsSet(false);
11038       this.l2label = 0;
11039       this.enc_type = null;
11040       this.routermac = null;
11041       this.afi = null;
11042     }
11043
11044     /**
11045      *
11046      * @see protocol_type
11047      */
11048     public protocol_type getP_type() {
11049       return this.p_type;
11050     }
11051
11052     /**
11053      *
11054      * @see protocol_type
11055      */
11056     public pushRoute_args setP_type(protocol_type p_type) {
11057       this.p_type = p_type;
11058       return this;
11059     }
11060
11061     public void unsetP_type() {
11062       this.p_type = null;
11063     }
11064
11065     /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
11066     public boolean isSetP_type() {
11067       return this.p_type != null;
11068     }
11069
11070     public void setP_typeIsSet(boolean value) {
11071       if (!value) {
11072         this.p_type = null;
11073       }
11074     }
11075
11076     public String getPrefix() {
11077       return this.prefix;
11078     }
11079
11080     public pushRoute_args setPrefix(String prefix) {
11081       this.prefix = prefix;
11082       return this;
11083     }
11084
11085     public void unsetPrefix() {
11086       this.prefix = null;
11087     }
11088
11089     /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
11090     public boolean isSetPrefix() {
11091       return this.prefix != null;
11092     }
11093
11094     public void setPrefixIsSet(boolean value) {
11095       if (!value) {
11096         this.prefix = null;
11097       }
11098     }
11099
11100     public String getNexthop() {
11101       return this.nexthop;
11102     }
11103
11104     public pushRoute_args setNexthop(String nexthop) {
11105       this.nexthop = nexthop;
11106       return this;
11107     }
11108
11109     public void unsetNexthop() {
11110       this.nexthop = null;
11111     }
11112
11113     /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
11114     public boolean isSetNexthop() {
11115       return this.nexthop != null;
11116     }
11117
11118     public void setNexthopIsSet(boolean value) {
11119       if (!value) {
11120         this.nexthop = null;
11121       }
11122     }
11123
11124     public String getRd() {
11125       return this.rd;
11126     }
11127
11128     public pushRoute_args setRd(String rd) {
11129       this.rd = rd;
11130       return this;
11131     }
11132
11133     public void unsetRd() {
11134       this.rd = null;
11135     }
11136
11137     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
11138     public boolean isSetRd() {
11139       return this.rd != null;
11140     }
11141
11142     public void setRdIsSet(boolean value) {
11143       if (!value) {
11144         this.rd = null;
11145       }
11146     }
11147
11148     public int getEthtag() {
11149       return this.ethtag;
11150     }
11151
11152     public pushRoute_args setEthtag(int ethtag) {
11153       this.ethtag = ethtag;
11154       setEthtagIsSet(true);
11155       return this;
11156     }
11157
11158     public void unsetEthtag() {
11159       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ETHTAG_ISSET_ID);
11160     }
11161
11162     /** Returns true if field ethtag is set (has been assigned a value) and false otherwise */
11163     public boolean isSetEthtag() {
11164       return EncodingUtils.testBit(__isset_bitfield, __ETHTAG_ISSET_ID);
11165     }
11166
11167     public void setEthtagIsSet(boolean value) {
11168       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ETHTAG_ISSET_ID, value);
11169     }
11170
11171     public String getEsi() {
11172       return this.esi;
11173     }
11174
11175     public pushRoute_args setEsi(String esi) {
11176       this.esi = esi;
11177       return this;
11178     }
11179
11180     public void unsetEsi() {
11181       this.esi = null;
11182     }
11183
11184     /** Returns true if field esi is set (has been assigned a value) and false otherwise */
11185     public boolean isSetEsi() {
11186       return this.esi != null;
11187     }
11188
11189     public void setEsiIsSet(boolean value) {
11190       if (!value) {
11191         this.esi = null;
11192       }
11193     }
11194
11195     public String getMacaddress() {
11196       return this.macaddress;
11197     }
11198
11199     public pushRoute_args setMacaddress(String macaddress) {
11200       this.macaddress = macaddress;
11201       return this;
11202     }
11203
11204     public void unsetMacaddress() {
11205       this.macaddress = null;
11206     }
11207
11208     /** Returns true if field macaddress is set (has been assigned a value) and false otherwise */
11209     public boolean isSetMacaddress() {
11210       return this.macaddress != null;
11211     }
11212
11213     public void setMacaddressIsSet(boolean value) {
11214       if (!value) {
11215         this.macaddress = null;
11216       }
11217     }
11218
11219     public int getL3label() {
11220       return this.l3label;
11221     }
11222
11223     public pushRoute_args setL3label(int l3label) {
11224       this.l3label = l3label;
11225       setL3labelIsSet(true);
11226       return this;
11227     }
11228
11229     public void unsetL3label() {
11230       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L3LABEL_ISSET_ID);
11231     }
11232
11233     /** Returns true if field l3label is set (has been assigned a value) and false otherwise */
11234     public boolean isSetL3label() {
11235       return EncodingUtils.testBit(__isset_bitfield, __L3LABEL_ISSET_ID);
11236     }
11237
11238     public void setL3labelIsSet(boolean value) {
11239       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L3LABEL_ISSET_ID, value);
11240     }
11241
11242     public int getL2label() {
11243       return this.l2label;
11244     }
11245
11246     public pushRoute_args setL2label(int l2label) {
11247       this.l2label = l2label;
11248       setL2labelIsSet(true);
11249       return this;
11250     }
11251
11252     public void unsetL2label() {
11253       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L2LABEL_ISSET_ID);
11254     }
11255
11256     /** Returns true if field l2label is set (has been assigned a value) and false otherwise */
11257     public boolean isSetL2label() {
11258       return EncodingUtils.testBit(__isset_bitfield, __L2LABEL_ISSET_ID);
11259     }
11260
11261     public void setL2labelIsSet(boolean value) {
11262       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L2LABEL_ISSET_ID, value);
11263     }
11264
11265     /**
11266      *
11267      * @see encap_type
11268      */
11269     public encap_type getEnc_type() {
11270       return this.enc_type;
11271     }
11272
11273     /**
11274      *
11275      * @see encap_type
11276      */
11277     public pushRoute_args setEnc_type(encap_type enc_type) {
11278       this.enc_type = enc_type;
11279       return this;
11280     }
11281
11282     public void unsetEnc_type() {
11283       this.enc_type = null;
11284     }
11285
11286     /** Returns true if field enc_type is set (has been assigned a value) and false otherwise */
11287     public boolean isSetEnc_type() {
11288       return this.enc_type != null;
11289     }
11290
11291     public void setEnc_typeIsSet(boolean value) {
11292       if (!value) {
11293         this.enc_type = null;
11294       }
11295     }
11296
11297     public String getRoutermac() {
11298       return this.routermac;
11299     }
11300
11301     public pushRoute_args setRoutermac(String routermac) {
11302       this.routermac = routermac;
11303       return this;
11304     }
11305
11306     public void unsetRoutermac() {
11307       this.routermac = null;
11308     }
11309
11310     /** Returns true if field routermac is set (has been assigned a value) and false otherwise */
11311     public boolean isSetRoutermac() {
11312       return this.routermac != null;
11313     }
11314
11315     public void setRoutermacIsSet(boolean value) {
11316       if (!value) {
11317         this.routermac = null;
11318       }
11319     }
11320
11321     /**
11322      *
11323      * @see af_afi
11324      */
11325     public af_afi getAfi() {
11326       return this.afi;
11327     }
11328
11329     /**
11330      *
11331      * @see af_afi
11332      */
11333     public pushRoute_args setAfi(af_afi afi) {
11334       this.afi = afi;
11335       return this;
11336     }
11337
11338     public void unsetAfi() {
11339       this.afi = null;
11340     }
11341
11342     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
11343     public boolean isSetAfi() {
11344       return this.afi != null;
11345     }
11346
11347     public void setAfiIsSet(boolean value) {
11348       if (!value) {
11349         this.afi = null;
11350       }
11351     }
11352
11353     @Override
11354         public void setFieldValue(_Fields field, Object value) {
11355       switch (field) {
11356       case P_TYPE:
11357         if (value == null) {
11358           unsetP_type();
11359         } else {
11360           setP_type((protocol_type)value);
11361         }
11362         break;
11363
11364       case PREFIX:
11365         if (value == null) {
11366           unsetPrefix();
11367         } else {
11368           setPrefix((String)value);
11369         }
11370         break;
11371
11372       case NEXTHOP:
11373         if (value == null) {
11374           unsetNexthop();
11375         } else {
11376           setNexthop((String)value);
11377         }
11378         break;
11379
11380       case RD:
11381         if (value == null) {
11382           unsetRd();
11383         } else {
11384           setRd((String)value);
11385         }
11386         break;
11387
11388       case ETHTAG:
11389         if (value == null) {
11390           unsetEthtag();
11391         } else {
11392           setEthtag((Integer)value);
11393         }
11394         break;
11395
11396       case ESI:
11397         if (value == null) {
11398           unsetEsi();
11399         } else {
11400           setEsi((String)value);
11401         }
11402         break;
11403
11404       case MACADDRESS:
11405         if (value == null) {
11406           unsetMacaddress();
11407         } else {
11408           setMacaddress((String)value);
11409         }
11410         break;
11411
11412       case L3LABEL:
11413         if (value == null) {
11414           unsetL3label();
11415         } else {
11416           setL3label((Integer)value);
11417         }
11418         break;
11419
11420       case L2LABEL:
11421         if (value == null) {
11422           unsetL2label();
11423         } else {
11424           setL2label((Integer)value);
11425         }
11426         break;
11427
11428       case ENC_TYPE:
11429         if (value == null) {
11430           unsetEnc_type();
11431         } else {
11432           setEnc_type((encap_type)value);
11433         }
11434         break;
11435
11436       case ROUTERMAC:
11437         if (value == null) {
11438           unsetRoutermac();
11439         } else {
11440           setRoutermac((String)value);
11441         }
11442         break;
11443
11444       case AFI:
11445         if (value == null) {
11446           unsetAfi();
11447         } else {
11448           setAfi((af_afi)value);
11449         }
11450         break;
11451
11452       }
11453     }
11454
11455     @Override
11456         public Object getFieldValue(_Fields field) {
11457       switch (field) {
11458       case P_TYPE:
11459         return getP_type();
11460
11461       case PREFIX:
11462         return getPrefix();
11463
11464       case NEXTHOP:
11465         return getNexthop();
11466
11467       case RD:
11468         return getRd();
11469
11470       case ETHTAG:
11471         return Integer.valueOf(getEthtag());
11472
11473       case ESI:
11474         return getEsi();
11475
11476       case MACADDRESS:
11477         return getMacaddress();
11478
11479       case L3LABEL:
11480         return Integer.valueOf(getL3label());
11481
11482       case L2LABEL:
11483         return Integer.valueOf(getL2label());
11484
11485       case ENC_TYPE:
11486         return getEnc_type();
11487
11488       case ROUTERMAC:
11489         return getRoutermac();
11490
11491       case AFI:
11492         return getAfi();
11493
11494       }
11495       throw new IllegalStateException();
11496     }
11497
11498     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11499     @Override
11500         public boolean isSet(_Fields field) {
11501       if (field == null) {
11502         throw new IllegalArgumentException();
11503       }
11504
11505       switch (field) {
11506       case P_TYPE:
11507         return isSetP_type();
11508       case PREFIX:
11509         return isSetPrefix();
11510       case NEXTHOP:
11511         return isSetNexthop();
11512       case RD:
11513         return isSetRd();
11514       case ETHTAG:
11515         return isSetEthtag();
11516       case ESI:
11517         return isSetEsi();
11518       case MACADDRESS:
11519         return isSetMacaddress();
11520       case L3LABEL:
11521         return isSetL3label();
11522       case L2LABEL:
11523         return isSetL2label();
11524       case ENC_TYPE:
11525         return isSetEnc_type();
11526       case ROUTERMAC:
11527         return isSetRoutermac();
11528       case AFI:
11529         return isSetAfi();
11530       }
11531       throw new IllegalStateException();
11532     }
11533
11534     @Override
11535     public boolean equals(Object that) {
11536       if (that == null) {
11537                 return false;
11538         }
11539       if (that instanceof pushRoute_args) {
11540                 return this.equals((pushRoute_args)that);
11541         }
11542       return false;
11543     }
11544
11545     public boolean equals(pushRoute_args that) {
11546       if (that == null) {
11547                 return false;
11548         }
11549
11550       boolean this_present_p_type = true && this.isSetP_type();
11551       boolean that_present_p_type = true && that.isSetP_type();
11552       if (this_present_p_type || that_present_p_type) {
11553         if (!(this_present_p_type && that_present_p_type)) {
11554                         return false;
11555                 }
11556         if (!this.p_type.equals(that.p_type)) {
11557                         return false;
11558                 }
11559       }
11560
11561       boolean this_present_prefix = true && this.isSetPrefix();
11562       boolean that_present_prefix = true && that.isSetPrefix();
11563       if (this_present_prefix || that_present_prefix) {
11564         if (!(this_present_prefix && that_present_prefix)) {
11565                         return false;
11566                 }
11567         if (!this.prefix.equals(that.prefix)) {
11568                         return false;
11569                 }
11570       }
11571
11572       boolean this_present_nexthop = true && this.isSetNexthop();
11573       boolean that_present_nexthop = true && that.isSetNexthop();
11574       if (this_present_nexthop || that_present_nexthop) {
11575         if (!(this_present_nexthop && that_present_nexthop)) {
11576                         return false;
11577                 }
11578         if (!this.nexthop.equals(that.nexthop)) {
11579                         return false;
11580                 }
11581       }
11582
11583       boolean this_present_rd = true && this.isSetRd();
11584       boolean that_present_rd = true && that.isSetRd();
11585       if (this_present_rd || that_present_rd) {
11586         if (!(this_present_rd && that_present_rd)) {
11587                         return false;
11588                 }
11589         if (!this.rd.equals(that.rd)) {
11590                         return false;
11591                 }
11592       }
11593
11594       boolean this_present_ethtag = true;
11595       boolean that_present_ethtag = true;
11596       if (this_present_ethtag || that_present_ethtag) {
11597         if (!(this_present_ethtag && that_present_ethtag)) {
11598                         return false;
11599                 }
11600         if (this.ethtag != that.ethtag) {
11601                         return false;
11602                 }
11603       }
11604
11605       boolean this_present_esi = true && this.isSetEsi();
11606       boolean that_present_esi = true && that.isSetEsi();
11607       if (this_present_esi || that_present_esi) {
11608         if (!(this_present_esi && that_present_esi)) {
11609                         return false;
11610                 }
11611         if (!this.esi.equals(that.esi)) {
11612                         return false;
11613                 }
11614       }
11615
11616       boolean this_present_macaddress = true && this.isSetMacaddress();
11617       boolean that_present_macaddress = true && that.isSetMacaddress();
11618       if (this_present_macaddress || that_present_macaddress) {
11619         if (!(this_present_macaddress && that_present_macaddress)) {
11620                         return false;
11621                 }
11622         if (!this.macaddress.equals(that.macaddress)) {
11623                         return false;
11624                 }
11625       }
11626
11627       boolean this_present_l3label = true;
11628       boolean that_present_l3label = true;
11629       if (this_present_l3label || that_present_l3label) {
11630         if (!(this_present_l3label && that_present_l3label)) {
11631                         return false;
11632                 }
11633         if (this.l3label != that.l3label) {
11634                         return false;
11635                 }
11636       }
11637
11638       boolean this_present_l2label = true;
11639       boolean that_present_l2label = true;
11640       if (this_present_l2label || that_present_l2label) {
11641         if (!(this_present_l2label && that_present_l2label)) {
11642                         return false;
11643                 }
11644         if (this.l2label != that.l2label) {
11645                         return false;
11646                 }
11647       }
11648
11649       boolean this_present_enc_type = true && this.isSetEnc_type();
11650       boolean that_present_enc_type = true && that.isSetEnc_type();
11651       if (this_present_enc_type || that_present_enc_type) {
11652         if (!(this_present_enc_type && that_present_enc_type)) {
11653                         return false;
11654                 }
11655         if (!this.enc_type.equals(that.enc_type)) {
11656                         return false;
11657                 }
11658       }
11659
11660       boolean this_present_routermac = true && this.isSetRoutermac();
11661       boolean that_present_routermac = true && that.isSetRoutermac();
11662       if (this_present_routermac || that_present_routermac) {
11663         if (!(this_present_routermac && that_present_routermac)) {
11664                         return false;
11665                 }
11666         if (!this.routermac.equals(that.routermac)) {
11667                         return false;
11668                 }
11669       }
11670
11671       boolean this_present_afi = true && this.isSetAfi();
11672       boolean that_present_afi = true && that.isSetAfi();
11673       if (this_present_afi || that_present_afi) {
11674         if (!(this_present_afi && that_present_afi)) {
11675                         return false;
11676                 }
11677         if (!this.afi.equals(that.afi)) {
11678                         return false;
11679                 }
11680       }
11681
11682       return true;
11683     }
11684
11685     @Override
11686     public int hashCode() {
11687       List<Object> list = new ArrayList<Object>();
11688       boolean present_p_type = true && (isSetP_type());
11689       list.add(present_p_type);
11690       if (present_p_type)
11691         list.add(p_type.getValue());
11692       boolean present_prefix = true && (isSetPrefix());
11693       list.add(present_prefix);
11694       if (present_prefix)
11695         list.add(prefix);
11696       boolean present_nexthop = true && (isSetNexthop());
11697       list.add(present_nexthop);
11698       if (present_nexthop)
11699         list.add(nexthop);
11700       boolean present_rd = true && (isSetRd());
11701       list.add(present_rd);
11702       if (present_rd)
11703         list.add(rd);
11704       boolean present_ethtag = true;
11705       list.add(present_ethtag);
11706       if (present_ethtag)
11707         list.add(ethtag);
11708       boolean present_esi = true && (isSetEsi());
11709       list.add(present_esi);
11710       if (present_esi)
11711         list.add(esi);
11712       boolean present_macaddress = true && (isSetMacaddress());
11713       list.add(present_macaddress);
11714       if (present_macaddress)
11715         list.add(macaddress);
11716       boolean present_l3label = true;
11717       list.add(present_l3label);
11718       if (present_l3label)
11719         list.add(l3label);
11720       boolean present_l2label = true;
11721       list.add(present_l2label);
11722       if (present_l2label)
11723         list.add(l2label);
11724       boolean present_enc_type = true && (isSetEnc_type());
11725       list.add(present_enc_type);
11726       if (present_enc_type)
11727         list.add(enc_type.getValue());
11728       boolean present_routermac = true && (isSetRoutermac());
11729       list.add(present_routermac);
11730       if (present_routermac)
11731         list.add(routermac);
11732       boolean present_afi = true && (isSetAfi());
11733       list.add(present_afi);
11734       if (present_afi)
11735         list.add(afi.getValue());
11736       return list.hashCode();
11737     }
11738
11739     @Override
11740     public int compareTo(pushRoute_args other) {
11741       if (!getClass().equals(other.getClass())) {
11742         return getClass().getName().compareTo(other.getClass().getName());
11743       }
11744
11745       int lastComparison = 0;
11746
11747       lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
11748       if (lastComparison != 0) {
11749         return lastComparison;
11750       }
11751       if (isSetP_type()) {
11752         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
11753         if (lastComparison != 0) {
11754           return lastComparison;
11755         }
11756       }
11757       lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
11758       if (lastComparison != 0) {
11759         return lastComparison;
11760       }
11761       if (isSetPrefix()) {
11762         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
11763         if (lastComparison != 0) {
11764           return lastComparison;
11765         }
11766       }
11767       lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
11768       if (lastComparison != 0) {
11769         return lastComparison;
11770       }
11771       if (isSetNexthop()) {
11772         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
11773         if (lastComparison != 0) {
11774           return lastComparison;
11775         }
11776       }
11777       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
11778       if (lastComparison != 0) {
11779         return lastComparison;
11780       }
11781       if (isSetRd()) {
11782         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
11783         if (lastComparison != 0) {
11784           return lastComparison;
11785         }
11786       }
11787       lastComparison = Boolean.valueOf(isSetEthtag()).compareTo(other.isSetEthtag());
11788       if (lastComparison != 0) {
11789         return lastComparison;
11790       }
11791       if (isSetEthtag()) {
11792         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ethtag, other.ethtag);
11793         if (lastComparison != 0) {
11794           return lastComparison;
11795         }
11796       }
11797       lastComparison = Boolean.valueOf(isSetEsi()).compareTo(other.isSetEsi());
11798       if (lastComparison != 0) {
11799         return lastComparison;
11800       }
11801       if (isSetEsi()) {
11802         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.esi, other.esi);
11803         if (lastComparison != 0) {
11804           return lastComparison;
11805         }
11806       }
11807       lastComparison = Boolean.valueOf(isSetMacaddress()).compareTo(other.isSetMacaddress());
11808       if (lastComparison != 0) {
11809         return lastComparison;
11810       }
11811       if (isSetMacaddress()) {
11812         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.macaddress, other.macaddress);
11813         if (lastComparison != 0) {
11814           return lastComparison;
11815         }
11816       }
11817       lastComparison = Boolean.valueOf(isSetL3label()).compareTo(other.isSetL3label());
11818       if (lastComparison != 0) {
11819         return lastComparison;
11820       }
11821       if (isSetL3label()) {
11822         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l3label, other.l3label);
11823         if (lastComparison != 0) {
11824           return lastComparison;
11825         }
11826       }
11827       lastComparison = Boolean.valueOf(isSetL2label()).compareTo(other.isSetL2label());
11828       if (lastComparison != 0) {
11829         return lastComparison;
11830       }
11831       if (isSetL2label()) {
11832         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l2label, other.l2label);
11833         if (lastComparison != 0) {
11834           return lastComparison;
11835         }
11836       }
11837       lastComparison = Boolean.valueOf(isSetEnc_type()).compareTo(other.isSetEnc_type());
11838       if (lastComparison != 0) {
11839         return lastComparison;
11840       }
11841       if (isSetEnc_type()) {
11842         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.enc_type, other.enc_type);
11843         if (lastComparison != 0) {
11844           return lastComparison;
11845         }
11846       }
11847       lastComparison = Boolean.valueOf(isSetRoutermac()).compareTo(other.isSetRoutermac());
11848       if (lastComparison != 0) {
11849         return lastComparison;
11850       }
11851       if (isSetRoutermac()) {
11852         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routermac, other.routermac);
11853         if (lastComparison != 0) {
11854           return lastComparison;
11855         }
11856       }
11857       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
11858       if (lastComparison != 0) {
11859         return lastComparison;
11860       }
11861       if (isSetAfi()) {
11862         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
11863         if (lastComparison != 0) {
11864           return lastComparison;
11865         }
11866       }
11867       return 0;
11868     }
11869
11870     @Override
11871         public _Fields fieldForId(int fieldId) {
11872       return _Fields.findByThriftId(fieldId);
11873     }
11874
11875     @Override
11876         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11877       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11878     }
11879
11880     @Override
11881         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11882       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11883     }
11884
11885     @Override
11886     public String toString() {
11887       StringBuilder sb = new StringBuilder("pushRoute_args(");
11888       boolean first = true;
11889
11890       sb.append("p_type:");
11891       if (this.p_type == null) {
11892         sb.append("null");
11893       } else {
11894         sb.append(this.p_type);
11895       }
11896       first = false;
11897       if (!first) {
11898                 sb.append(", ");
11899         }
11900       sb.append("prefix:");
11901       if (this.prefix == null) {
11902         sb.append("null");
11903       } else {
11904         sb.append(this.prefix);
11905       }
11906       first = false;
11907       if (!first) {
11908                 sb.append(", ");
11909         }
11910       sb.append("nexthop:");
11911       if (this.nexthop == null) {
11912         sb.append("null");
11913       } else {
11914         sb.append(this.nexthop);
11915       }
11916       first = false;
11917       if (!first) {
11918                 sb.append(", ");
11919         }
11920       sb.append("rd:");
11921       if (this.rd == null) {
11922         sb.append("null");
11923       } else {
11924         sb.append(this.rd);
11925       }
11926       first = false;
11927       if (!first) {
11928                 sb.append(", ");
11929         }
11930       sb.append("ethtag:");
11931       sb.append(this.ethtag);
11932       first = false;
11933       if (!first) {
11934                 sb.append(", ");
11935         }
11936       sb.append("esi:");
11937       if (this.esi == null) {
11938         sb.append("null");
11939       } else {
11940         sb.append(this.esi);
11941       }
11942       first = false;
11943       if (!first) {
11944                 sb.append(", ");
11945         }
11946       sb.append("macaddress:");
11947       if (this.macaddress == null) {
11948         sb.append("null");
11949       } else {
11950         sb.append(this.macaddress);
11951       }
11952       first = false;
11953       if (!first) {
11954                 sb.append(", ");
11955         }
11956       sb.append("l3label:");
11957       sb.append(this.l3label);
11958       first = false;
11959       if (!first) {
11960                 sb.append(", ");
11961         }
11962       sb.append("l2label:");
11963       sb.append(this.l2label);
11964       first = false;
11965       if (!first) {
11966                 sb.append(", ");
11967         }
11968       sb.append("enc_type:");
11969       if (this.enc_type == null) {
11970         sb.append("null");
11971       } else {
11972         sb.append(this.enc_type);
11973       }
11974       first = false;
11975       if (!first) {
11976                 sb.append(", ");
11977         }
11978       sb.append("routermac:");
11979       if (this.routermac == null) {
11980         sb.append("null");
11981       } else {
11982         sb.append(this.routermac);
11983       }
11984       first = false;
11985       if (!first) {
11986                 sb.append(", ");
11987         }
11988       sb.append("afi:");
11989       if (this.afi == null) {
11990         sb.append("null");
11991       } else {
11992         sb.append(this.afi);
11993       }
11994       first = false;
11995       sb.append(")");
11996       return sb.toString();
11997     }
11998
11999     public void validate() throws org.apache.thrift.TException {
12000       // check for required fields
12001       // check for sub-struct validity
12002     }
12003
12004     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12005       try {
12006         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12007       } catch (org.apache.thrift.TException te) {
12008         throw new java.io.IOException(te);
12009       }
12010     }
12011
12012     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12013       try {
12014         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12015         __isset_bitfield = 0;
12016         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12017       } catch (org.apache.thrift.TException te) {
12018         throw new java.io.IOException(te);
12019       }
12020     }
12021
12022     private static class pushRoute_argsStandardSchemeFactory implements SchemeFactory {
12023       @Override
12024         public pushRoute_argsStandardScheme getScheme() {
12025         return new pushRoute_argsStandardScheme();
12026       }
12027     }
12028
12029     private static class pushRoute_argsStandardScheme extends StandardScheme<pushRoute_args> {
12030
12031       @Override
12032         public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_args struct) throws org.apache.thrift.TException {
12033         org.apache.thrift.protocol.TField schemeField;
12034         iprot.readStructBegin();
12035         while (true)
12036         {
12037           schemeField = iprot.readFieldBegin();
12038           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12039             break;
12040           }
12041           switch (schemeField.id) {
12042             case 1: // P_TYPE
12043               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12044                 struct.p_type = protocol_type.findByValue(iprot.readI32());
12045                 struct.setP_typeIsSet(true);
12046               } else {
12047                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12048               }
12049               break;
12050             case 2: // PREFIX
12051               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12052                 struct.prefix = iprot.readString();
12053                 struct.setPrefixIsSet(true);
12054               } else {
12055                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12056               }
12057               break;
12058             case 3: // NEXTHOP
12059               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12060                 struct.nexthop = iprot.readString();
12061                 struct.setNexthopIsSet(true);
12062               } else {
12063                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12064               }
12065               break;
12066             case 4: // RD
12067               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12068                 struct.rd = iprot.readString();
12069                 struct.setRdIsSet(true);
12070               } else {
12071                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12072               }
12073               break;
12074             case 5: // ETHTAG
12075               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12076                 struct.ethtag = iprot.readI32();
12077                 struct.setEthtagIsSet(true);
12078               } else {
12079                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12080               }
12081               break;
12082             case 6: // ESI
12083               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12084                 struct.esi = iprot.readString();
12085                 struct.setEsiIsSet(true);
12086               } else {
12087                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12088               }
12089               break;
12090             case 7: // MACADDRESS
12091               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12092                 struct.macaddress = iprot.readString();
12093                 struct.setMacaddressIsSet(true);
12094               } else {
12095                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12096               }
12097               break;
12098             case 8: // L3LABEL
12099               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12100                 struct.l3label = iprot.readI32();
12101                 struct.setL3labelIsSet(true);
12102               } else {
12103                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12104               }
12105               break;
12106             case 9: // L2LABEL
12107               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12108                 struct.l2label = iprot.readI32();
12109                 struct.setL2labelIsSet(true);
12110               } else {
12111                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12112               }
12113               break;
12114             case 10: // ENC_TYPE
12115               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12116                 struct.enc_type = encap_type.findByValue(iprot.readI32());
12117                 struct.setEnc_typeIsSet(true);
12118               } else {
12119                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12120               }
12121               break;
12122             case 11: // ROUTERMAC
12123               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12124                 struct.routermac = iprot.readString();
12125                 struct.setRoutermacIsSet(true);
12126               } else {
12127                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12128               }
12129               break;
12130             case 12: // AFI
12131               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12132                 struct.afi = af_afi.findByValue(iprot.readI32());
12133                 struct.setAfiIsSet(true);
12134               } else {
12135                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12136               }
12137               break;
12138             default:
12139               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12140           }
12141           iprot.readFieldEnd();
12142         }
12143         iprot.readStructEnd();
12144
12145         // check for required fields of primitive type, which can't be checked in the validate method
12146         struct.validate();
12147       }
12148
12149       @Override
12150         public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_args struct) throws org.apache.thrift.TException {
12151         struct.validate();
12152
12153         oprot.writeStructBegin(STRUCT_DESC);
12154         if (struct.p_type != null) {
12155           oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
12156           oprot.writeI32(struct.p_type.getValue());
12157           oprot.writeFieldEnd();
12158         }
12159         if (struct.prefix != null) {
12160           oprot.writeFieldBegin(PREFIX_FIELD_DESC);
12161           oprot.writeString(struct.prefix);
12162           oprot.writeFieldEnd();
12163         }
12164         if (struct.nexthop != null) {
12165           oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
12166           oprot.writeString(struct.nexthop);
12167           oprot.writeFieldEnd();
12168         }
12169         if (struct.rd != null) {
12170           oprot.writeFieldBegin(RD_FIELD_DESC);
12171           oprot.writeString(struct.rd);
12172           oprot.writeFieldEnd();
12173         }
12174         oprot.writeFieldBegin(ETHTAG_FIELD_DESC);
12175         oprot.writeI32(struct.ethtag);
12176         oprot.writeFieldEnd();
12177         if (struct.esi != null) {
12178           oprot.writeFieldBegin(ESI_FIELD_DESC);
12179           oprot.writeString(struct.esi);
12180           oprot.writeFieldEnd();
12181         }
12182         if (struct.macaddress != null) {
12183           oprot.writeFieldBegin(MACADDRESS_FIELD_DESC);
12184           oprot.writeString(struct.macaddress);
12185           oprot.writeFieldEnd();
12186         }
12187         oprot.writeFieldBegin(L3LABEL_FIELD_DESC);
12188         oprot.writeI32(struct.l3label);
12189         oprot.writeFieldEnd();
12190         oprot.writeFieldBegin(L2LABEL_FIELD_DESC);
12191         oprot.writeI32(struct.l2label);
12192         oprot.writeFieldEnd();
12193         if (struct.enc_type != null) {
12194           oprot.writeFieldBegin(ENC_TYPE_FIELD_DESC);
12195           oprot.writeI32(struct.enc_type.getValue());
12196           oprot.writeFieldEnd();
12197         }
12198         if (struct.routermac != null) {
12199           oprot.writeFieldBegin(ROUTERMAC_FIELD_DESC);
12200           oprot.writeString(struct.routermac);
12201           oprot.writeFieldEnd();
12202         }
12203         if (struct.afi != null) {
12204           oprot.writeFieldBegin(AFI_FIELD_DESC);
12205           oprot.writeI32(struct.afi.getValue());
12206           oprot.writeFieldEnd();
12207         }
12208         oprot.writeFieldStop();
12209         oprot.writeStructEnd();
12210       }
12211
12212     }
12213
12214     private static class pushRoute_argsTupleSchemeFactory implements SchemeFactory {
12215       @Override
12216         public pushRoute_argsTupleScheme getScheme() {
12217         return new pushRoute_argsTupleScheme();
12218       }
12219     }
12220
12221     private static class pushRoute_argsTupleScheme extends TupleScheme<pushRoute_args> {
12222
12223       @Override
12224       public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
12225         TTupleProtocol oprot = (TTupleProtocol) prot;
12226         BitSet optionals = new BitSet();
12227         if (struct.isSetP_type()) {
12228           optionals.set(0);
12229         }
12230         if (struct.isSetPrefix()) {
12231           optionals.set(1);
12232         }
12233         if (struct.isSetNexthop()) {
12234           optionals.set(2);
12235         }
12236         if (struct.isSetRd()) {
12237           optionals.set(3);
12238         }
12239         if (struct.isSetEthtag()) {
12240           optionals.set(4);
12241         }
12242         if (struct.isSetEsi()) {
12243           optionals.set(5);
12244         }
12245         if (struct.isSetMacaddress()) {
12246           optionals.set(6);
12247         }
12248         if (struct.isSetL3label()) {
12249           optionals.set(7);
12250         }
12251         if (struct.isSetL2label()) {
12252           optionals.set(8);
12253         }
12254         if (struct.isSetEnc_type()) {
12255           optionals.set(9);
12256         }
12257         if (struct.isSetRoutermac()) {
12258           optionals.set(10);
12259         }
12260         if (struct.isSetAfi()) {
12261           optionals.set(11);
12262         }
12263         oprot.writeBitSet(optionals, 12);
12264         if (struct.isSetP_type()) {
12265           oprot.writeI32(struct.p_type.getValue());
12266         }
12267         if (struct.isSetPrefix()) {
12268           oprot.writeString(struct.prefix);
12269         }
12270         if (struct.isSetNexthop()) {
12271           oprot.writeString(struct.nexthop);
12272         }
12273         if (struct.isSetRd()) {
12274           oprot.writeString(struct.rd);
12275         }
12276         if (struct.isSetEthtag()) {
12277           oprot.writeI32(struct.ethtag);
12278         }
12279         if (struct.isSetEsi()) {
12280           oprot.writeString(struct.esi);
12281         }
12282         if (struct.isSetMacaddress()) {
12283           oprot.writeString(struct.macaddress);
12284         }
12285         if (struct.isSetL3label()) {
12286           oprot.writeI32(struct.l3label);
12287         }
12288         if (struct.isSetL2label()) {
12289           oprot.writeI32(struct.l2label);
12290         }
12291         if (struct.isSetEnc_type()) {
12292           oprot.writeI32(struct.enc_type.getValue());
12293         }
12294         if (struct.isSetRoutermac()) {
12295           oprot.writeString(struct.routermac);
12296         }
12297         if (struct.isSetAfi()) {
12298           oprot.writeI32(struct.afi.getValue());
12299         }
12300       }
12301
12302       @Override
12303       public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
12304         TTupleProtocol iprot = (TTupleProtocol) prot;
12305         BitSet incoming = iprot.readBitSet(12);
12306         if (incoming.get(0)) {
12307           struct.p_type = protocol_type.findByValue(iprot.readI32());
12308           struct.setP_typeIsSet(true);
12309         }
12310         if (incoming.get(1)) {
12311           struct.prefix = iprot.readString();
12312           struct.setPrefixIsSet(true);
12313         }
12314         if (incoming.get(2)) {
12315           struct.nexthop = iprot.readString();
12316           struct.setNexthopIsSet(true);
12317         }
12318         if (incoming.get(3)) {
12319           struct.rd = iprot.readString();
12320           struct.setRdIsSet(true);
12321         }
12322         if (incoming.get(4)) {
12323           struct.ethtag = iprot.readI32();
12324           struct.setEthtagIsSet(true);
12325         }
12326         if (incoming.get(5)) {
12327           struct.esi = iprot.readString();
12328           struct.setEsiIsSet(true);
12329         }
12330         if (incoming.get(6)) {
12331           struct.macaddress = iprot.readString();
12332           struct.setMacaddressIsSet(true);
12333         }
12334         if (incoming.get(7)) {
12335           struct.l3label = iprot.readI32();
12336           struct.setL3labelIsSet(true);
12337         }
12338         if (incoming.get(8)) {
12339           struct.l2label = iprot.readI32();
12340           struct.setL2labelIsSet(true);
12341         }
12342         if (incoming.get(9)) {
12343           struct.enc_type = encap_type.findByValue(iprot.readI32());
12344           struct.setEnc_typeIsSet(true);
12345         }
12346         if (incoming.get(10)) {
12347           struct.routermac = iprot.readString();
12348           struct.setRoutermacIsSet(true);
12349         }
12350         if (incoming.get(11)) {
12351           struct.afi = af_afi.findByValue(iprot.readI32());
12352           struct.setAfiIsSet(true);
12353         }
12354       }
12355     }
12356
12357   }
12358
12359   public static class pushRoute_result implements org.apache.thrift.TBase<pushRoute_result, pushRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_result>   {
12360     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_result");
12361
12362     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);
12363
12364     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12365     static {
12366       schemes.put(StandardScheme.class, new pushRoute_resultStandardSchemeFactory());
12367       schemes.put(TupleScheme.class, new pushRoute_resultTupleSchemeFactory());
12368     }
12369
12370     public int success; // required
12371
12372     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12373     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12374       SUCCESS((short)0, "success");
12375
12376       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12377
12378       static {
12379         for (_Fields field : EnumSet.allOf(_Fields.class)) {
12380           byName.put(field.getFieldName(), field);
12381         }
12382       }
12383
12384       /**
12385        * Find the _Fields constant that matches fieldId, or null if its not found.
12386        */
12387       public static _Fields findByThriftId(int fieldId) {
12388         switch(fieldId) {
12389           case 0: // SUCCESS
12390             return SUCCESS;
12391           default:
12392             return null;
12393         }
12394       }
12395
12396       /**
12397        * Find the _Fields constant that matches fieldId, throwing an exception
12398        * if it is not found.
12399        */
12400       public static _Fields findByThriftIdOrThrow(int fieldId) {
12401         _Fields fields = findByThriftId(fieldId);
12402         if (fields == null) {
12403                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12404                 }
12405         return fields;
12406       }
12407
12408       /**
12409        * Find the _Fields constant that matches name, or null if its not found.
12410        */
12411       public static _Fields findByName(String name) {
12412         return byName.get(name);
12413       }
12414
12415       private final short _thriftId;
12416       private final String _fieldName;
12417
12418       _Fields(short thriftId, String fieldName) {
12419         _thriftId = thriftId;
12420         _fieldName = fieldName;
12421       }
12422
12423       @Override
12424         public short getThriftFieldId() {
12425         return _thriftId;
12426       }
12427
12428       @Override
12429         public String getFieldName() {
12430         return _fieldName;
12431       }
12432     }
12433
12434     // isset id assignments
12435     private static final int __SUCCESS_ISSET_ID = 0;
12436     private byte __isset_bitfield = 0;
12437     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12438     static {
12439       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12440       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
12441           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12442       metaDataMap = Collections.unmodifiableMap(tmpMap);
12443       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_result.class, metaDataMap);
12444     }
12445
12446     public pushRoute_result() {
12447     }
12448
12449     public pushRoute_result(
12450       int success)
12451     {
12452       this();
12453       this.success = success;
12454       setSuccessIsSet(true);
12455     }
12456
12457     /**
12458      * Performs a deep copy on <i>other</i>.
12459      */
12460     public pushRoute_result(pushRoute_result other) {
12461       __isset_bitfield = other.__isset_bitfield;
12462       this.success = other.success;
12463     }
12464
12465     @Override
12466         public pushRoute_result deepCopy() {
12467       return new pushRoute_result(this);
12468     }
12469
12470     @Override
12471     public void clear() {
12472       setSuccessIsSet(false);
12473       this.success = 0;
12474     }
12475
12476     public int getSuccess() {
12477       return this.success;
12478     }
12479
12480     public pushRoute_result setSuccess(int success) {
12481       this.success = success;
12482       setSuccessIsSet(true);
12483       return this;
12484     }
12485
12486     public void unsetSuccess() {
12487       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12488     }
12489
12490     /** Returns true if field success is set (has been assigned a value) and false otherwise */
12491     public boolean isSetSuccess() {
12492       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12493     }
12494
12495     public void setSuccessIsSet(boolean value) {
12496       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
12497     }
12498
12499     @Override
12500         public void setFieldValue(_Fields field, Object value) {
12501       switch (field) {
12502       case SUCCESS:
12503         if (value == null) {
12504           unsetSuccess();
12505         } else {
12506           setSuccess((Integer)value);
12507         }
12508         break;
12509
12510       }
12511     }
12512
12513     @Override
12514         public Object getFieldValue(_Fields field) {
12515       switch (field) {
12516       case SUCCESS:
12517         return Integer.valueOf(getSuccess());
12518
12519       }
12520       throw new IllegalStateException();
12521     }
12522
12523     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12524     @Override
12525         public boolean isSet(_Fields field) {
12526       if (field == null) {
12527         throw new IllegalArgumentException();
12528       }
12529
12530       switch (field) {
12531       case SUCCESS:
12532         return isSetSuccess();
12533       }
12534       throw new IllegalStateException();
12535     }
12536
12537     @Override
12538     public boolean equals(Object that) {
12539       if (that == null) {
12540                 return false;
12541         }
12542       if (that instanceof pushRoute_result) {
12543                 return this.equals((pushRoute_result)that);
12544         }
12545       return false;
12546     }
12547
12548     public boolean equals(pushRoute_result that) {
12549       if (that == null) {
12550                 return false;
12551         }
12552
12553       boolean this_present_success = true;
12554       boolean that_present_success = true;
12555       if (this_present_success || that_present_success) {
12556         if (!(this_present_success && that_present_success)) {
12557                         return false;
12558                 }
12559         if (this.success != that.success) {
12560                         return false;
12561                 }
12562       }
12563
12564       return true;
12565     }
12566
12567     @Override
12568     public int hashCode() {
12569       List<Object> list = new ArrayList<Object>();
12570
12571       boolean present_success = true;
12572       list.add(present_success);
12573       if (present_success)
12574         list.add(success);
12575       return list.hashCode();
12576     }
12577
12578     @Override
12579     public int compareTo(pushRoute_result other) {
12580       if (!getClass().equals(other.getClass())) {
12581         return getClass().getName().compareTo(other.getClass().getName());
12582       }
12583
12584       int lastComparison = 0;
12585
12586       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
12587       if (lastComparison != 0) {
12588         return lastComparison;
12589       }
12590       if (isSetSuccess()) {
12591         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
12592         if (lastComparison != 0) {
12593           return lastComparison;
12594         }
12595       }
12596       return 0;
12597     }
12598
12599     @Override
12600         public _Fields fieldForId(int fieldId) {
12601       return _Fields.findByThriftId(fieldId);
12602     }
12603
12604     @Override
12605         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12606       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12607     }
12608
12609     @Override
12610         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12611       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12612       }
12613
12614     @Override
12615     public String toString() {
12616       StringBuilder sb = new StringBuilder("pushRoute_result(");
12617       boolean first = true;
12618
12619       sb.append("success:");
12620       sb.append(this.success);
12621       first = false;
12622       sb.append(")");
12623       return sb.toString();
12624     }
12625
12626     public void validate() throws org.apache.thrift.TException {
12627       // check for required fields
12628       // check for sub-struct validity
12629     }
12630
12631     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12632       try {
12633         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12634       } catch (org.apache.thrift.TException te) {
12635         throw new java.io.IOException(te);
12636       }
12637     }
12638
12639     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12640       try {
12641         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12642         __isset_bitfield = 0;
12643         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12644       } catch (org.apache.thrift.TException te) {
12645         throw new java.io.IOException(te);
12646       }
12647     }
12648
12649     private static class pushRoute_resultStandardSchemeFactory implements SchemeFactory {
12650       @Override
12651         public pushRoute_resultStandardScheme getScheme() {
12652         return new pushRoute_resultStandardScheme();
12653       }
12654     }
12655
12656     private static class pushRoute_resultStandardScheme extends StandardScheme<pushRoute_result> {
12657
12658       @Override
12659         public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_result struct) throws org.apache.thrift.TException {
12660         org.apache.thrift.protocol.TField schemeField;
12661         iprot.readStructBegin();
12662         while (true)
12663         {
12664           schemeField = iprot.readFieldBegin();
12665           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12666             break;
12667           }
12668           switch (schemeField.id) {
12669             case 0: // SUCCESS
12670               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12671                 struct.success = iprot.readI32();
12672                 struct.setSuccessIsSet(true);
12673               } else {
12674                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12675               }
12676               break;
12677             default:
12678               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12679           }
12680           iprot.readFieldEnd();
12681         }
12682         iprot.readStructEnd();
12683
12684         // check for required fields of primitive type, which can't be checked in the validate method
12685         struct.validate();
12686       }
12687
12688       @Override
12689         public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_result struct) throws org.apache.thrift.TException {
12690         struct.validate();
12691
12692         oprot.writeStructBegin(STRUCT_DESC);
12693         if (struct.isSetSuccess()) {
12694           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12695           oprot.writeI32(struct.success);
12696           oprot.writeFieldEnd();
12697         }
12698         oprot.writeFieldStop();
12699         oprot.writeStructEnd();
12700       }
12701
12702     }
12703
12704     private static class pushRoute_resultTupleSchemeFactory implements SchemeFactory {
12705       @Override
12706         public pushRoute_resultTupleScheme getScheme() {
12707         return new pushRoute_resultTupleScheme();
12708       }
12709     }
12710
12711     private static class pushRoute_resultTupleScheme extends TupleScheme<pushRoute_result> {
12712
12713       @Override
12714       public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
12715         TTupleProtocol oprot = (TTupleProtocol) prot;
12716         BitSet optionals = new BitSet();
12717         if (struct.isSetSuccess()) {
12718           optionals.set(0);
12719         }
12720         oprot.writeBitSet(optionals, 1);
12721         if (struct.isSetSuccess()) {
12722           oprot.writeI32(struct.success);
12723         }
12724       }
12725
12726       @Override
12727       public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
12728         TTupleProtocol iprot = (TTupleProtocol) prot;
12729         BitSet incoming = iprot.readBitSet(1);
12730         if (incoming.get(0)) {
12731           struct.success = iprot.readI32();
12732           struct.setSuccessIsSet(true);
12733         }
12734       }
12735     }
12736
12737   }
12738
12739   public static class withdrawRoute_args implements org.apache.thrift.TBase<withdrawRoute_args, withdrawRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_args>   {
12740     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_args");
12741
12742     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);
12743     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);
12744     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);
12745     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);
12746     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);
12747     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);
12748     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);
12749
12750     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12751     static {
12752       schemes.put(StandardScheme.class, new withdrawRoute_argsStandardSchemeFactory());
12753       schemes.put(TupleScheme.class, new withdrawRoute_argsTupleSchemeFactory());
12754     }
12755
12756     /**
12757      *
12758      * @see protocol_type
12759      */
12760     public protocol_type p_type; // required
12761     public String prefix; // required
12762     public String rd; // required
12763     public int ethtag; // required
12764     public String esi; // required
12765     public String macaddress; // required
12766     /**
12767      *
12768      * @see af_afi
12769      */
12770     public af_afi afi; // required
12771
12772     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12773     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12774       /**
12775        *
12776        * @see protocol_type
12777        */
12778       P_TYPE((short)1, "p_type"),
12779       PREFIX((short)2, "prefix"),
12780       RD((short)3, "rd"),
12781       ETHTAG((short)4, "ethtag"),
12782       ESI((short)5, "esi"),
12783       MACADDRESS((short)6, "macaddress"),
12784       /**
12785        *
12786        * @see af_afi
12787        */
12788       AFI((short)7, "afi");
12789
12790       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12791
12792       static {
12793         for (_Fields field : EnumSet.allOf(_Fields.class)) {
12794           byName.put(field.getFieldName(), field);
12795         }
12796       }
12797
12798       /**
12799        * Find the _Fields constant that matches fieldId, or null if its not found.
12800        */
12801       public static _Fields findByThriftId(int fieldId) {
12802         switch(fieldId) {
12803           case 1: // P_TYPE
12804             return P_TYPE;
12805           case 2: // PREFIX
12806             return PREFIX;
12807           case 3: // RD
12808             return RD;
12809           case 4: // ETHTAG
12810             return ETHTAG;
12811           case 5: // ESI
12812             return ESI;
12813           case 6: // MACADDRESS
12814             return MACADDRESS;
12815           case 7: // AFI
12816             return AFI;
12817           default:
12818             return null;
12819         }
12820       }
12821
12822       /**
12823        * Find the _Fields constant that matches fieldId, throwing an exception
12824        * if it is not found.
12825        */
12826       public static _Fields findByThriftIdOrThrow(int fieldId) {
12827         _Fields fields = findByThriftId(fieldId);
12828         if (fields == null) {
12829                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12830                 }
12831         return fields;
12832       }
12833
12834       /**
12835        * Find the _Fields constant that matches name, or null if its not found.
12836        */
12837       public static _Fields findByName(String name) {
12838         return byName.get(name);
12839       }
12840
12841       private final short _thriftId;
12842       private final String _fieldName;
12843
12844       _Fields(short thriftId, String fieldName) {
12845         _thriftId = thriftId;
12846         _fieldName = fieldName;
12847       }
12848
12849       @Override
12850         public short getThriftFieldId() {
12851         return _thriftId;
12852       }
12853
12854       @Override
12855         public String getFieldName() {
12856         return _fieldName;
12857       }
12858     }
12859
12860     // isset id assignments
12861     private static final int __ETHTAG_ISSET_ID = 0;
12862     private byte __isset_bitfield = 0;
12863     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12864     static {
12865       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12866       tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
12867           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
12868       tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
12869           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12870       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
12871           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12872       tmpMap.put(_Fields.ETHTAG, new org.apache.thrift.meta_data.FieldMetaData("ethtag", org.apache.thrift.TFieldRequirementType.DEFAULT,
12873           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12874       tmpMap.put(_Fields.ESI, new org.apache.thrift.meta_data.FieldMetaData("esi", org.apache.thrift.TFieldRequirementType.DEFAULT,
12875           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12876       tmpMap.put(_Fields.MACADDRESS, new org.apache.thrift.meta_data.FieldMetaData("macaddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
12877           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12878       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
12879           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
12880       metaDataMap = Collections.unmodifiableMap(tmpMap);
12881       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_args.class, metaDataMap);
12882     }
12883
12884     public withdrawRoute_args() {
12885     }
12886
12887     public withdrawRoute_args(
12888       protocol_type p_type,
12889       String prefix,
12890       String rd,
12891       int ethtag,
12892       String esi,
12893       String macaddress,
12894       af_afi afi)
12895     {
12896       this();
12897       this.p_type = p_type;
12898       this.prefix = prefix;
12899       this.rd = rd;
12900       this.ethtag = ethtag;
12901       setEthtagIsSet(true);
12902       this.esi = esi;
12903       this.macaddress = macaddress;
12904       this.afi = afi;
12905     }
12906
12907     /**
12908      * Performs a deep copy on <i>other</i>.
12909      */
12910     public withdrawRoute_args(withdrawRoute_args other) {
12911       __isset_bitfield = other.__isset_bitfield;
12912       if (other.isSetP_type()) {
12913         this.p_type = other.p_type;
12914       }
12915       if (other.isSetPrefix()) {
12916         this.prefix = other.prefix;
12917       }
12918       if (other.isSetRd()) {
12919         this.rd = other.rd;
12920       }
12921       this.ethtag = other.ethtag;
12922       if (other.isSetEsi()) {
12923         this.esi = other.esi;
12924       }
12925       if (other.isSetMacaddress()) {
12926         this.macaddress = other.macaddress;
12927       }
12928       if (other.isSetAfi()) {
12929         this.afi = other.afi;
12930       }
12931     }
12932
12933     @Override
12934         public withdrawRoute_args deepCopy() {
12935       return new withdrawRoute_args(this);
12936     }
12937
12938     @Override
12939     public void clear() {
12940       this.p_type = null;
12941       this.prefix = null;
12942       this.rd = null;
12943       setEthtagIsSet(false);
12944       this.ethtag = 0;
12945       this.esi = null;
12946       this.macaddress = null;
12947       this.afi = null;
12948     }
12949
12950     /**
12951      *
12952      * @see protocol_type
12953      */
12954     public protocol_type getP_type() {
12955       return this.p_type;
12956     }
12957
12958     /**
12959      *
12960      * @see protocol_type
12961      */
12962     public withdrawRoute_args setP_type(protocol_type p_type) {
12963       this.p_type = p_type;
12964       return this;
12965     }
12966
12967     public void unsetP_type() {
12968       this.p_type = null;
12969     }
12970
12971     /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
12972     public boolean isSetP_type() {
12973       return this.p_type != null;
12974     }
12975
12976     public void setP_typeIsSet(boolean value) {
12977       if (!value) {
12978         this.p_type = null;
12979       }
12980     }
12981
12982     public String getPrefix() {
12983       return this.prefix;
12984     }
12985
12986     public withdrawRoute_args setPrefix(String prefix) {
12987       this.prefix = prefix;
12988       return this;
12989     }
12990
12991     public void unsetPrefix() {
12992       this.prefix = null;
12993     }
12994
12995     /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
12996     public boolean isSetPrefix() {
12997       return this.prefix != null;
12998     }
12999
13000     public void setPrefixIsSet(boolean value) {
13001       if (!value) {
13002         this.prefix = null;
13003       }
13004     }
13005
13006     public String getRd() {
13007       return this.rd;
13008     }
13009
13010     public withdrawRoute_args setRd(String rd) {
13011       this.rd = rd;
13012       return this;
13013     }
13014
13015     public void unsetRd() {
13016       this.rd = null;
13017     }
13018
13019     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
13020     public boolean isSetRd() {
13021       return this.rd != null;
13022     }
13023
13024     public void setRdIsSet(boolean value) {
13025       if (!value) {
13026         this.rd = null;
13027       }
13028     }
13029
13030     public int getEthtag() {
13031       return this.ethtag;
13032     }
13033
13034     public withdrawRoute_args setEthtag(int ethtag) {
13035       this.ethtag = ethtag;
13036       setEthtagIsSet(true);
13037       return this;
13038     }
13039
13040     public void unsetEthtag() {
13041       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ETHTAG_ISSET_ID);
13042     }
13043
13044     /** Returns true if field ethtag is set (has been assigned a value) and false otherwise */
13045     public boolean isSetEthtag() {
13046       return EncodingUtils.testBit(__isset_bitfield, __ETHTAG_ISSET_ID);
13047     }
13048
13049     public void setEthtagIsSet(boolean value) {
13050       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ETHTAG_ISSET_ID, value);
13051     }
13052
13053     public String getEsi() {
13054       return this.esi;
13055     }
13056
13057     public withdrawRoute_args setEsi(String esi) {
13058       this.esi = esi;
13059       return this;
13060     }
13061
13062     public void unsetEsi() {
13063       this.esi = null;
13064     }
13065
13066     /** Returns true if field esi is set (has been assigned a value) and false otherwise */
13067     public boolean isSetEsi() {
13068       return this.esi != null;
13069     }
13070
13071     public void setEsiIsSet(boolean value) {
13072       if (!value) {
13073         this.esi = null;
13074       }
13075     }
13076
13077     public String getMacaddress() {
13078       return this.macaddress;
13079     }
13080
13081     public withdrawRoute_args setMacaddress(String macaddress) {
13082       this.macaddress = macaddress;
13083       return this;
13084     }
13085
13086     public void unsetMacaddress() {
13087       this.macaddress = null;
13088     }
13089
13090     /** Returns true if field macaddress is set (has been assigned a value) and false otherwise */
13091     public boolean isSetMacaddress() {
13092       return this.macaddress != null;
13093     }
13094
13095     public void setMacaddressIsSet(boolean value) {
13096       if (!value) {
13097         this.macaddress = null;
13098       }
13099     }
13100
13101     /**
13102      *
13103      * @see af_afi
13104      */
13105     public af_afi getAfi() {
13106       return this.afi;
13107     }
13108
13109     /**
13110      *
13111      * @see af_afi
13112      */
13113     public withdrawRoute_args setAfi(af_afi afi) {
13114       this.afi = afi;
13115       return this;
13116     }
13117
13118     public void unsetAfi() {
13119       this.afi = null;
13120     }
13121
13122     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
13123     public boolean isSetAfi() {
13124       return this.afi != null;
13125     }
13126
13127     public void setAfiIsSet(boolean value) {
13128       if (!value) {
13129         this.afi = null;
13130       }
13131     }
13132
13133     @Override
13134         public void setFieldValue(_Fields field, Object value) {
13135       switch (field) {
13136       case P_TYPE:
13137         if (value == null) {
13138           unsetP_type();
13139         } else {
13140           setP_type((protocol_type)value);
13141         }
13142         break;
13143
13144       case PREFIX:
13145         if (value == null) {
13146           unsetPrefix();
13147         } else {
13148           setPrefix((String)value);
13149         }
13150         break;
13151
13152       case RD:
13153         if (value == null) {
13154           unsetRd();
13155         } else {
13156           setRd((String)value);
13157         }
13158         break;
13159
13160       case ETHTAG:
13161         if (value == null) {
13162           unsetEthtag();
13163         } else {
13164           setEthtag((Integer)value);
13165         }
13166         break;
13167
13168       case ESI:
13169         if (value == null) {
13170           unsetEsi();
13171         } else {
13172           setEsi((String)value);
13173         }
13174         break;
13175
13176       case MACADDRESS:
13177         if (value == null) {
13178           unsetMacaddress();
13179         } else {
13180           setMacaddress((String)value);
13181         }
13182         break;
13183
13184       case AFI:
13185         if (value == null) {
13186           unsetAfi();
13187         } else {
13188           setAfi((af_afi)value);
13189         }
13190         break;
13191
13192       }
13193     }
13194
13195     @Override
13196         public Object getFieldValue(_Fields field) {
13197       switch (field) {
13198       case P_TYPE:
13199         return getP_type();
13200
13201       case PREFIX:
13202         return getPrefix();
13203
13204       case RD:
13205         return getRd();
13206
13207       case ETHTAG:
13208         return Integer.valueOf(getEthtag());
13209
13210       case ESI:
13211         return getEsi();
13212
13213       case MACADDRESS:
13214         return getMacaddress();
13215
13216       case AFI:
13217         return getAfi();
13218
13219       }
13220       throw new IllegalStateException();
13221     }
13222
13223     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13224     @Override
13225         public boolean isSet(_Fields field) {
13226       if (field == null) {
13227         throw new IllegalArgumentException();
13228       }
13229
13230       switch (field) {
13231       case P_TYPE:
13232         return isSetP_type();
13233       case PREFIX:
13234         return isSetPrefix();
13235       case RD:
13236         return isSetRd();
13237       case ETHTAG:
13238         return isSetEthtag();
13239       case ESI:
13240         return isSetEsi();
13241       case MACADDRESS:
13242         return isSetMacaddress();
13243       case AFI:
13244         return isSetAfi();
13245       }
13246       throw new IllegalStateException();
13247     }
13248
13249     @Override
13250     public boolean equals(Object that) {
13251       if (that == null) {
13252                 return false;
13253         }
13254       if (that instanceof withdrawRoute_args) {
13255                 return this.equals((withdrawRoute_args)that);
13256         }
13257       return false;
13258     }
13259
13260     public boolean equals(withdrawRoute_args that) {
13261       if (that == null) {
13262                 return false;
13263         }
13264
13265       boolean this_present_p_type = true && this.isSetP_type();
13266       boolean that_present_p_type = true && that.isSetP_type();
13267       if (this_present_p_type || that_present_p_type) {
13268         if (!(this_present_p_type && that_present_p_type)) {
13269                         return false;
13270                 }
13271         if (!this.p_type.equals(that.p_type)) {
13272                         return false;
13273                 }
13274       }
13275
13276       boolean this_present_prefix = true && this.isSetPrefix();
13277       boolean that_present_prefix = true && that.isSetPrefix();
13278       if (this_present_prefix || that_present_prefix) {
13279         if (!(this_present_prefix && that_present_prefix)) {
13280                         return false;
13281                 }
13282         if (!this.prefix.equals(that.prefix)) {
13283                         return false;
13284                 }
13285       }
13286
13287       boolean this_present_rd = true && this.isSetRd();
13288       boolean that_present_rd = true && that.isSetRd();
13289       if (this_present_rd || that_present_rd) {
13290         if (!(this_present_rd && that_present_rd)) {
13291                         return false;
13292                 }
13293         if (!this.rd.equals(that.rd)) {
13294                         return false;
13295                 }
13296       }
13297
13298       boolean this_present_ethtag = true;
13299       boolean that_present_ethtag = true;
13300       if (this_present_ethtag || that_present_ethtag) {
13301         if (!(this_present_ethtag && that_present_ethtag)) {
13302                         return false;
13303                 }
13304         if (this.ethtag != that.ethtag) {
13305                         return false;
13306                 }
13307       }
13308
13309       boolean this_present_esi = true && this.isSetEsi();
13310       boolean that_present_esi = true && that.isSetEsi();
13311       if (this_present_esi || that_present_esi) {
13312         if (!(this_present_esi && that_present_esi)) {
13313                         return false;
13314                 }
13315         if (!this.esi.equals(that.esi)) {
13316                         return false;
13317                 }
13318       }
13319
13320       boolean this_present_macaddress = true && this.isSetMacaddress();
13321       boolean that_present_macaddress = true && that.isSetMacaddress();
13322       if (this_present_macaddress || that_present_macaddress) {
13323         if (!(this_present_macaddress && that_present_macaddress)) {
13324                         return false;
13325                 }
13326         if (!this.macaddress.equals(that.macaddress)) {
13327                         return false;
13328                 }
13329       }
13330
13331       boolean this_present_afi = true && this.isSetAfi();
13332       boolean that_present_afi = true && that.isSetAfi();
13333       if (this_present_afi || that_present_afi) {
13334         if (!(this_present_afi && that_present_afi)) {
13335                         return false;
13336                 }
13337         if (!this.afi.equals(that.afi)) {
13338                         return false;
13339                 }
13340       }
13341
13342       return true;
13343     }
13344
13345     @Override
13346     public int hashCode() {
13347       List<Object> list = new ArrayList<Object>();
13348       boolean present_p_type = true && (isSetP_type());
13349       list.add(present_p_type);
13350       if (present_p_type)
13351         list.add(p_type.getValue());
13352       boolean present_prefix = true && (isSetPrefix());
13353       list.add(present_prefix);
13354       if (present_prefix)
13355         list.add(prefix);
13356       boolean present_rd = true && (isSetRd());
13357       list.add(present_rd);
13358       if (present_rd)
13359         list.add(rd);
13360       boolean present_ethtag = true;
13361       list.add(present_ethtag);
13362       if (present_ethtag)
13363         list.add(ethtag);
13364       boolean present_esi = true && (isSetEsi());
13365       list.add(present_esi);
13366       if (present_esi)
13367         list.add(esi);
13368       boolean present_macaddress = true && (isSetMacaddress());
13369       list.add(present_macaddress);
13370       if (present_macaddress)
13371         list.add(macaddress);
13372       boolean present_afi = true && (isSetAfi());
13373       list.add(present_afi);
13374       if (present_afi)
13375         list.add(afi.getValue());
13376       return list.hashCode();
13377     }
13378
13379     @Override
13380     public int compareTo(withdrawRoute_args other) {
13381       if (!getClass().equals(other.getClass())) {
13382         return getClass().getName().compareTo(other.getClass().getName());
13383       }
13384
13385       int lastComparison = 0;
13386
13387       lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
13388       if (lastComparison != 0) {
13389         return lastComparison;
13390       }
13391       if (isSetP_type()) {
13392         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
13393         if (lastComparison != 0) {
13394           return lastComparison;
13395         }
13396       }
13397       lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
13398       if (lastComparison != 0) {
13399         return lastComparison;
13400       }
13401       if (isSetPrefix()) {
13402         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
13403         if (lastComparison != 0) {
13404           return lastComparison;
13405         }
13406       }
13407       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
13408       if (lastComparison != 0) {
13409         return lastComparison;
13410       }
13411       if (isSetRd()) {
13412         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
13413         if (lastComparison != 0) {
13414           return lastComparison;
13415         }
13416       }
13417       lastComparison = Boolean.valueOf(isSetEthtag()).compareTo(other.isSetEthtag());
13418       if (lastComparison != 0) {
13419         return lastComparison;
13420       }
13421       if (isSetEthtag()) {
13422         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ethtag, other.ethtag);
13423         if (lastComparison != 0) {
13424           return lastComparison;
13425         }
13426       }
13427       lastComparison = Boolean.valueOf(isSetEsi()).compareTo(other.isSetEsi());
13428       if (lastComparison != 0) {
13429         return lastComparison;
13430       }
13431       if (isSetEsi()) {
13432         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.esi, other.esi);
13433         if (lastComparison != 0) {
13434           return lastComparison;
13435         }
13436       }
13437       lastComparison = Boolean.valueOf(isSetMacaddress()).compareTo(other.isSetMacaddress());
13438       if (lastComparison != 0) {
13439         return lastComparison;
13440       }
13441       if (isSetMacaddress()) {
13442         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.macaddress, other.macaddress);
13443         if (lastComparison != 0) {
13444           return lastComparison;
13445         }
13446       }
13447       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
13448       if (lastComparison != 0) {
13449         return lastComparison;
13450       }
13451       if (isSetAfi()) {
13452         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
13453         if (lastComparison != 0) {
13454           return lastComparison;
13455         }
13456       }
13457       return 0;
13458     }
13459
13460     @Override
13461         public _Fields fieldForId(int fieldId) {
13462       return _Fields.findByThriftId(fieldId);
13463     }
13464
13465     @Override
13466         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13467       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13468     }
13469
13470     @Override
13471         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13472       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13473     }
13474
13475     @Override
13476     public String toString() {
13477       StringBuilder sb = new StringBuilder("withdrawRoute_args(");
13478       boolean first = true;
13479
13480       sb.append("p_type:");
13481       if (this.p_type == null) {
13482         sb.append("null");
13483       } else {
13484         sb.append(this.p_type);
13485       }
13486       first = false;
13487       if (!first) {
13488                 sb.append(", ");
13489         }
13490       sb.append("prefix:");
13491       if (this.prefix == null) {
13492         sb.append("null");
13493       } else {
13494         sb.append(this.prefix);
13495       }
13496       first = false;
13497       if (!first) {
13498                 sb.append(", ");
13499         }
13500       sb.append("rd:");
13501       if (this.rd == null) {
13502         sb.append("null");
13503       } else {
13504         sb.append(this.rd);
13505       }
13506       first = false;
13507       if (!first) {
13508                 sb.append(", ");
13509         }
13510       sb.append("ethtag:");
13511       sb.append(this.ethtag);
13512       first = false;
13513       if (!first) {
13514                 sb.append(", ");
13515         }
13516       sb.append("esi:");
13517       if (this.esi == null) {
13518         sb.append("null");
13519       } else {
13520         sb.append(this.esi);
13521       }
13522       first = false;
13523       if (!first) {
13524                 sb.append(", ");
13525         }
13526       sb.append("macaddress:");
13527       if (this.macaddress == null) {
13528         sb.append("null");
13529       } else {
13530         sb.append(this.macaddress);
13531       }
13532       first = false;
13533       if (!first) {
13534                 sb.append(", ");
13535         }
13536       sb.append("afi:");
13537       if (this.afi == null) {
13538         sb.append("null");
13539       } else {
13540         sb.append(this.afi);
13541       }
13542       first = false;
13543       sb.append(")");
13544       return sb.toString();
13545     }
13546
13547     public void validate() throws org.apache.thrift.TException {
13548       // check for required fields
13549       // check for sub-struct validity
13550     }
13551
13552     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13553       try {
13554         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13555       } catch (org.apache.thrift.TException te) {
13556         throw new java.io.IOException(te);
13557       }
13558     }
13559
13560     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13561       try {
13562         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13563         __isset_bitfield = 0;
13564         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13565       } catch (org.apache.thrift.TException te) {
13566         throw new java.io.IOException(te);
13567       }
13568     }
13569
13570     private static class withdrawRoute_argsStandardSchemeFactory implements SchemeFactory {
13571       @Override
13572         public withdrawRoute_argsStandardScheme getScheme() {
13573         return new withdrawRoute_argsStandardScheme();
13574       }
13575     }
13576
13577     private static class withdrawRoute_argsStandardScheme extends StandardScheme<withdrawRoute_args> {
13578
13579       @Override
13580         public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
13581         org.apache.thrift.protocol.TField schemeField;
13582         iprot.readStructBegin();
13583         while (true)
13584         {
13585           schemeField = iprot.readFieldBegin();
13586           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13587             break;
13588           }
13589           switch (schemeField.id) {
13590             case 1: // P_TYPE
13591               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13592                 struct.p_type = protocol_type.findByValue(iprot.readI32());
13593                 struct.setP_typeIsSet(true);
13594               } else {
13595                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13596               }
13597               break;
13598             case 2: // PREFIX
13599               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13600                 struct.prefix = iprot.readString();
13601                 struct.setPrefixIsSet(true);
13602               } else {
13603                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13604               }
13605               break;
13606             case 3: // RD
13607               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13608                 struct.rd = iprot.readString();
13609                 struct.setRdIsSet(true);
13610               } else {
13611                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13612               }
13613               break;
13614             case 4: // ETHTAG
13615               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13616                 struct.ethtag = iprot.readI32();
13617                 struct.setEthtagIsSet(true);
13618               } else {
13619                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13620               }
13621               break;
13622             case 5: // ESI
13623               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13624                 struct.esi = iprot.readString();
13625                 struct.setEsiIsSet(true);
13626               } else {
13627                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13628               }
13629               break;
13630             case 6: // MACADDRESS
13631               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13632                 struct.macaddress = iprot.readString();
13633                 struct.setMacaddressIsSet(true);
13634               } else {
13635                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13636               }
13637               break;
13638             case 7: // AFI
13639               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13640                 struct.afi = af_afi.findByValue(iprot.readI32());
13641                 struct.setAfiIsSet(true);
13642               } else {
13643                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13644               }
13645               break;
13646             default:
13647               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13648           }
13649           iprot.readFieldEnd();
13650         }
13651         iprot.readStructEnd();
13652
13653         // check for required fields of primitive type, which can't be checked in the validate method
13654         struct.validate();
13655       }
13656
13657       @Override
13658         public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
13659         struct.validate();
13660
13661         oprot.writeStructBegin(STRUCT_DESC);
13662         if (struct.p_type != null) {
13663           oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
13664           oprot.writeI32(struct.p_type.getValue());
13665           oprot.writeFieldEnd();
13666         }
13667         if (struct.prefix != null) {
13668           oprot.writeFieldBegin(PREFIX_FIELD_DESC);
13669           oprot.writeString(struct.prefix);
13670           oprot.writeFieldEnd();
13671         }
13672         if (struct.rd != null) {
13673           oprot.writeFieldBegin(RD_FIELD_DESC);
13674           oprot.writeString(struct.rd);
13675           oprot.writeFieldEnd();
13676         }
13677         oprot.writeFieldBegin(ETHTAG_FIELD_DESC);
13678         oprot.writeI32(struct.ethtag);
13679         oprot.writeFieldEnd();
13680         if (struct.esi != null) {
13681           oprot.writeFieldBegin(ESI_FIELD_DESC);
13682           oprot.writeString(struct.esi);
13683           oprot.writeFieldEnd();
13684         }
13685         if (struct.macaddress != null) {
13686           oprot.writeFieldBegin(MACADDRESS_FIELD_DESC);
13687           oprot.writeString(struct.macaddress);
13688           oprot.writeFieldEnd();
13689         }
13690         if (struct.afi != null) {
13691           oprot.writeFieldBegin(AFI_FIELD_DESC);
13692           oprot.writeI32(struct.afi.getValue());
13693           oprot.writeFieldEnd();
13694         }
13695         oprot.writeFieldStop();
13696         oprot.writeStructEnd();
13697       }
13698
13699     }
13700
13701     private static class withdrawRoute_argsTupleSchemeFactory implements SchemeFactory {
13702       @Override
13703         public withdrawRoute_argsTupleScheme getScheme() {
13704         return new withdrawRoute_argsTupleScheme();
13705       }
13706     }
13707
13708     private static class withdrawRoute_argsTupleScheme extends TupleScheme<withdrawRoute_args> {
13709
13710       @Override
13711       public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
13712         TTupleProtocol oprot = (TTupleProtocol) prot;
13713         BitSet optionals = new BitSet();
13714         if (struct.isSetP_type()) {
13715           optionals.set(0);
13716         }
13717         if (struct.isSetPrefix()) {
13718           optionals.set(1);
13719         }
13720         if (struct.isSetRd()) {
13721           optionals.set(2);
13722         }
13723         if (struct.isSetEthtag()) {
13724           optionals.set(3);
13725         }
13726         if (struct.isSetEsi()) {
13727           optionals.set(4);
13728         }
13729         if (struct.isSetMacaddress()) {
13730           optionals.set(5);
13731         }
13732         if (struct.isSetAfi()) {
13733           optionals.set(6);
13734         }
13735         oprot.writeBitSet(optionals, 7);
13736         if (struct.isSetP_type()) {
13737           oprot.writeI32(struct.p_type.getValue());
13738         }
13739         if (struct.isSetPrefix()) {
13740           oprot.writeString(struct.prefix);
13741         }
13742         if (struct.isSetRd()) {
13743           oprot.writeString(struct.rd);
13744         }
13745         if (struct.isSetEthtag()) {
13746           oprot.writeI32(struct.ethtag);
13747         }
13748         if (struct.isSetEsi()) {
13749           oprot.writeString(struct.esi);
13750         }
13751         if (struct.isSetMacaddress()) {
13752           oprot.writeString(struct.macaddress);
13753         }
13754         if (struct.isSetAfi()) {
13755           oprot.writeI32(struct.afi.getValue());
13756         }
13757       }
13758
13759       @Override
13760       public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
13761         TTupleProtocol iprot = (TTupleProtocol) prot;
13762         BitSet incoming = iprot.readBitSet(7);
13763         if (incoming.get(0)) {
13764           struct.p_type = protocol_type.findByValue(iprot.readI32());
13765           struct.setP_typeIsSet(true);
13766         }
13767         if (incoming.get(1)) {
13768           struct.prefix = iprot.readString();
13769           struct.setPrefixIsSet(true);
13770         }
13771         if (incoming.get(2)) {
13772           struct.rd = iprot.readString();
13773           struct.setRdIsSet(true);
13774         }
13775         if (incoming.get(3)) {
13776           struct.ethtag = iprot.readI32();
13777           struct.setEthtagIsSet(true);
13778         }
13779         if (incoming.get(4)) {
13780           struct.esi = iprot.readString();
13781           struct.setEsiIsSet(true);
13782         }
13783         if (incoming.get(5)) {
13784           struct.macaddress = iprot.readString();
13785           struct.setMacaddressIsSet(true);
13786         }
13787         if (incoming.get(6)) {
13788           struct.afi = af_afi.findByValue(iprot.readI32());
13789           struct.setAfiIsSet(true);
13790         }
13791       }
13792     }
13793
13794   }
13795
13796   public static class withdrawRoute_result implements org.apache.thrift.TBase<withdrawRoute_result, withdrawRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_result>   {
13797     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_result");
13798
13799     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);
13800
13801     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13802     static {
13803       schemes.put(StandardScheme.class, new withdrawRoute_resultStandardSchemeFactory());
13804       schemes.put(TupleScheme.class, new withdrawRoute_resultTupleSchemeFactory());
13805     }
13806
13807     public int success; // required
13808
13809     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13810     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13811       SUCCESS((short)0, "success");
13812
13813       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13814
13815       static {
13816         for (_Fields field : EnumSet.allOf(_Fields.class)) {
13817           byName.put(field.getFieldName(), field);
13818         }
13819       }
13820
13821       /**
13822        * Find the _Fields constant that matches fieldId, or null if its not found.
13823        */
13824       public static _Fields findByThriftId(int fieldId) {
13825         switch(fieldId) {
13826           case 0: // SUCCESS
13827             return SUCCESS;
13828           default:
13829             return null;
13830         }
13831       }
13832
13833       /**
13834        * Find the _Fields constant that matches fieldId, throwing an exception
13835        * if it is not found.
13836        */
13837       public static _Fields findByThriftIdOrThrow(int fieldId) {
13838         _Fields fields = findByThriftId(fieldId);
13839         if (fields == null) {
13840                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13841                 }
13842         return fields;
13843       }
13844
13845       /**
13846        * Find the _Fields constant that matches name, or null if its not found.
13847        */
13848       public static _Fields findByName(String name) {
13849         return byName.get(name);
13850       }
13851
13852       private final short _thriftId;
13853       private final String _fieldName;
13854
13855       _Fields(short thriftId, String fieldName) {
13856         _thriftId = thriftId;
13857         _fieldName = fieldName;
13858       }
13859
13860       @Override
13861         public short getThriftFieldId() {
13862         return _thriftId;
13863       }
13864
13865       @Override
13866         public String getFieldName() {
13867         return _fieldName;
13868       }
13869     }
13870
13871     // isset id assignments
13872     private static final int __SUCCESS_ISSET_ID = 0;
13873     private byte __isset_bitfield = 0;
13874     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13875     static {
13876       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13877       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
13878           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
13879       metaDataMap = Collections.unmodifiableMap(tmpMap);
13880       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_result.class, metaDataMap);
13881     }
13882
13883     public withdrawRoute_result() {
13884     }
13885
13886     public withdrawRoute_result(
13887       int success)
13888     {
13889       this();
13890       this.success = success;
13891       setSuccessIsSet(true);
13892     }
13893
13894     /**
13895      * Performs a deep copy on <i>other</i>.
13896      */
13897     public withdrawRoute_result(withdrawRoute_result other) {
13898       __isset_bitfield = other.__isset_bitfield;
13899       this.success = other.success;
13900     }
13901
13902     @Override
13903         public withdrawRoute_result deepCopy() {
13904       return new withdrawRoute_result(this);
13905     }
13906
13907     @Override
13908     public void clear() {
13909       setSuccessIsSet(false);
13910       this.success = 0;
13911     }
13912
13913     public int getSuccess() {
13914       return this.success;
13915     }
13916
13917     public withdrawRoute_result setSuccess(int success) {
13918       this.success = success;
13919       setSuccessIsSet(true);
13920       return this;
13921     }
13922
13923     public void unsetSuccess() {
13924       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13925     }
13926
13927     /** Returns true if field success is set (has been assigned a value) and false otherwise */
13928     public boolean isSetSuccess() {
13929       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13930     }
13931
13932     public void setSuccessIsSet(boolean value) {
13933       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
13934     }
13935
13936     @Override
13937         public void setFieldValue(_Fields field, Object value) {
13938       switch (field) {
13939       case SUCCESS:
13940         if (value == null) {
13941           unsetSuccess();
13942         } else {
13943           setSuccess((Integer)value);
13944         }
13945         break;
13946
13947       }
13948     }
13949
13950     @Override
13951         public Object getFieldValue(_Fields field) {
13952       switch (field) {
13953       case SUCCESS:
13954         return Integer.valueOf(getSuccess());
13955
13956       }
13957       throw new IllegalStateException();
13958     }
13959
13960     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13961     @Override
13962         public boolean isSet(_Fields field) {
13963       if (field == null) {
13964         throw new IllegalArgumentException();
13965       }
13966
13967       switch (field) {
13968       case SUCCESS:
13969         return isSetSuccess();
13970       }
13971       throw new IllegalStateException();
13972     }
13973
13974     @Override
13975     public boolean equals(Object that) {
13976       if (that == null) {
13977                 return false;
13978         }
13979       if (that instanceof withdrawRoute_result) {
13980                 return this.equals((withdrawRoute_result)that);
13981         }
13982       return false;
13983     }
13984
13985     public boolean equals(withdrawRoute_result that) {
13986       if (that == null) {
13987                 return false;
13988         }
13989
13990       boolean this_present_success = true;
13991       boolean that_present_success = true;
13992       if (this_present_success || that_present_success) {
13993         if (!(this_present_success && that_present_success)) {
13994                         return false;
13995                 }
13996         if (this.success != that.success) {
13997                         return false;
13998                 }
13999       }
14000
14001       return true;
14002     }
14003
14004     @Override
14005     public int hashCode() {
14006       List<Object> list = new ArrayList<Object>();
14007
14008       boolean present_success = true;
14009       list.add(present_success);
14010       if (present_success)
14011         list.add(success);
14012       return list.hashCode();
14013     }
14014
14015     @Override
14016     public int compareTo(withdrawRoute_result other) {
14017       if (!getClass().equals(other.getClass())) {
14018         return getClass().getName().compareTo(other.getClass().getName());
14019       }
14020
14021       int lastComparison = 0;
14022
14023       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
14024       if (lastComparison != 0) {
14025         return lastComparison;
14026       }
14027       if (isSetSuccess()) {
14028         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
14029         if (lastComparison != 0) {
14030           return lastComparison;
14031         }
14032       }
14033       return 0;
14034     }
14035
14036     @Override
14037         public _Fields fieldForId(int fieldId) {
14038       return _Fields.findByThriftId(fieldId);
14039     }
14040
14041     @Override
14042         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14043       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14044     }
14045
14046     @Override
14047         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14048       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14049       }
14050
14051     @Override
14052     public String toString() {
14053       StringBuilder sb = new StringBuilder("withdrawRoute_result(");
14054       boolean first = true;
14055
14056       sb.append("success:");
14057       sb.append(this.success);
14058       first = false;
14059       sb.append(")");
14060       return sb.toString();
14061     }
14062
14063     public void validate() throws org.apache.thrift.TException {
14064       // check for required fields
14065       // check for sub-struct validity
14066     }
14067
14068     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14069       try {
14070         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14071       } catch (org.apache.thrift.TException te) {
14072         throw new java.io.IOException(te);
14073       }
14074     }
14075
14076     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14077       try {
14078         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14079         __isset_bitfield = 0;
14080         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14081       } catch (org.apache.thrift.TException te) {
14082         throw new java.io.IOException(te);
14083       }
14084     }
14085
14086     private static class withdrawRoute_resultStandardSchemeFactory implements SchemeFactory {
14087       @Override
14088         public withdrawRoute_resultStandardScheme getScheme() {
14089         return new withdrawRoute_resultStandardScheme();
14090       }
14091     }
14092
14093     private static class withdrawRoute_resultStandardScheme extends StandardScheme<withdrawRoute_result> {
14094
14095       @Override
14096         public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
14097         org.apache.thrift.protocol.TField schemeField;
14098         iprot.readStructBegin();
14099         while (true)
14100         {
14101           schemeField = iprot.readFieldBegin();
14102           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14103             break;
14104           }
14105           switch (schemeField.id) {
14106             case 0: // SUCCESS
14107               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14108                 struct.success = iprot.readI32();
14109                 struct.setSuccessIsSet(true);
14110               } else {
14111                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14112               }
14113               break;
14114             default:
14115               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14116           }
14117           iprot.readFieldEnd();
14118         }
14119         iprot.readStructEnd();
14120
14121         // check for required fields of primitive type, which can't be checked in the validate method
14122         struct.validate();
14123       }
14124
14125       @Override
14126         public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
14127         struct.validate();
14128
14129         oprot.writeStructBegin(STRUCT_DESC);
14130         if (struct.isSetSuccess()) {
14131           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14132           oprot.writeI32(struct.success);
14133           oprot.writeFieldEnd();
14134         }
14135         oprot.writeFieldStop();
14136         oprot.writeStructEnd();
14137       }
14138
14139     }
14140
14141     private static class withdrawRoute_resultTupleSchemeFactory implements SchemeFactory {
14142       @Override
14143         public withdrawRoute_resultTupleScheme getScheme() {
14144         return new withdrawRoute_resultTupleScheme();
14145       }
14146     }
14147
14148     private static class withdrawRoute_resultTupleScheme extends TupleScheme<withdrawRoute_result> {
14149
14150       @Override
14151       public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
14152         TTupleProtocol oprot = (TTupleProtocol) prot;
14153         BitSet optionals = new BitSet();
14154         if (struct.isSetSuccess()) {
14155           optionals.set(0);
14156         }
14157         oprot.writeBitSet(optionals, 1);
14158         if (struct.isSetSuccess()) {
14159           oprot.writeI32(struct.success);
14160         }
14161       }
14162
14163       @Override
14164       public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
14165         TTupleProtocol iprot = (TTupleProtocol) prot;
14166         BitSet incoming = iprot.readBitSet(1);
14167         if (incoming.get(0)) {
14168           struct.success = iprot.readI32();
14169           struct.setSuccessIsSet(true);
14170         }
14171       }
14172     }
14173
14174   }
14175
14176   public static class setEbgpMultihop_args implements org.apache.thrift.TBase<setEbgpMultihop_args, setEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_args>   {
14177     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_args");
14178
14179     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);
14180     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);
14181
14182     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14183     static {
14184       schemes.put(StandardScheme.class, new setEbgpMultihop_argsStandardSchemeFactory());
14185       schemes.put(TupleScheme.class, new setEbgpMultihop_argsTupleSchemeFactory());
14186     }
14187
14188     public String peerIp; // required
14189     public int nHops; // required
14190
14191     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14192     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14193       PEER_IP((short)1, "peerIp"),
14194       N_HOPS((short)2, "nHops");
14195
14196       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14197
14198       static {
14199         for (_Fields field : EnumSet.allOf(_Fields.class)) {
14200           byName.put(field.getFieldName(), field);
14201         }
14202       }
14203
14204       /**
14205        * Find the _Fields constant that matches fieldId, or null if its not found.
14206        */
14207       public static _Fields findByThriftId(int fieldId) {
14208         switch(fieldId) {
14209           case 1: // PEER_IP
14210             return PEER_IP;
14211           case 2: // N_HOPS
14212             return N_HOPS;
14213           default:
14214             return null;
14215         }
14216       }
14217
14218       /**
14219        * Find the _Fields constant that matches fieldId, throwing an exception
14220        * if it is not found.
14221        */
14222       public static _Fields findByThriftIdOrThrow(int fieldId) {
14223         _Fields fields = findByThriftId(fieldId);
14224         if (fields == null) {
14225                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14226                 }
14227         return fields;
14228       }
14229
14230       /**
14231        * Find the _Fields constant that matches name, or null if its not found.
14232        */
14233       public static _Fields findByName(String name) {
14234         return byName.get(name);
14235       }
14236
14237       private final short _thriftId;
14238       private final String _fieldName;
14239
14240       _Fields(short thriftId, String fieldName) {
14241         _thriftId = thriftId;
14242         _fieldName = fieldName;
14243       }
14244
14245       @Override
14246         public short getThriftFieldId() {
14247         return _thriftId;
14248       }
14249
14250       @Override
14251         public String getFieldName() {
14252         return _fieldName;
14253       }
14254     }
14255
14256     // isset id assignments
14257     private static final int __NHOPS_ISSET_ID = 0;
14258     private byte __isset_bitfield = 0;
14259     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14260     static {
14261       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14262       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
14263           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14264       tmpMap.put(_Fields.N_HOPS, new org.apache.thrift.meta_data.FieldMetaData("nHops", org.apache.thrift.TFieldRequirementType.DEFAULT,
14265           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
14266       metaDataMap = Collections.unmodifiableMap(tmpMap);
14267       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_args.class, metaDataMap);
14268     }
14269
14270     public setEbgpMultihop_args() {
14271     }
14272
14273     public setEbgpMultihop_args(
14274       String peerIp,
14275       int nHops)
14276     {
14277       this();
14278       this.peerIp = peerIp;
14279       this.nHops = nHops;
14280       setNHopsIsSet(true);
14281     }
14282
14283     /**
14284      * Performs a deep copy on <i>other</i>.
14285      */
14286     public setEbgpMultihop_args(setEbgpMultihop_args other) {
14287       __isset_bitfield = other.__isset_bitfield;
14288       if (other.isSetPeerIp()) {
14289         this.peerIp = other.peerIp;
14290       }
14291       this.nHops = other.nHops;
14292     }
14293
14294     @Override
14295         public setEbgpMultihop_args deepCopy() {
14296       return new setEbgpMultihop_args(this);
14297     }
14298
14299     @Override
14300     public void clear() {
14301       this.peerIp = null;
14302       setNHopsIsSet(false);
14303       this.nHops = 0;
14304     }
14305
14306     public String getPeerIp() {
14307       return this.peerIp;
14308     }
14309
14310     public setEbgpMultihop_args setPeerIp(String peerIp) {
14311       this.peerIp = peerIp;
14312       return this;
14313     }
14314
14315     public void unsetPeerIp() {
14316       this.peerIp = null;
14317     }
14318
14319     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
14320     public boolean isSetPeerIp() {
14321       return this.peerIp != null;
14322     }
14323
14324     public void setPeerIpIsSet(boolean value) {
14325       if (!value) {
14326         this.peerIp = null;
14327       }
14328     }
14329
14330     public int getNHops() {
14331       return this.nHops;
14332     }
14333
14334     public setEbgpMultihop_args setNHops(int nHops) {
14335       this.nHops = nHops;
14336       setNHopsIsSet(true);
14337       return this;
14338     }
14339
14340     public void unsetNHops() {
14341       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NHOPS_ISSET_ID);
14342     }
14343
14344     /** Returns true if field nHops is set (has been assigned a value) and false otherwise */
14345     public boolean isSetNHops() {
14346       return EncodingUtils.testBit(__isset_bitfield, __NHOPS_ISSET_ID);
14347     }
14348
14349     public void setNHopsIsSet(boolean value) {
14350       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NHOPS_ISSET_ID, value);
14351     }
14352
14353     @Override
14354         public void setFieldValue(_Fields field, Object value) {
14355       switch (field) {
14356       case PEER_IP:
14357         if (value == null) {
14358           unsetPeerIp();
14359         } else {
14360           setPeerIp((String)value);
14361         }
14362         break;
14363
14364       case N_HOPS:
14365         if (value == null) {
14366           unsetNHops();
14367         } else {
14368           setNHops((Integer)value);
14369         }
14370         break;
14371
14372       }
14373     }
14374
14375     @Override
14376         public Object getFieldValue(_Fields field) {
14377       switch (field) {
14378       case PEER_IP:
14379         return getPeerIp();
14380
14381       case N_HOPS:
14382         return Integer.valueOf(getNHops());
14383
14384       }
14385       throw new IllegalStateException();
14386     }
14387
14388     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14389     @Override
14390         public boolean isSet(_Fields field) {
14391       if (field == null) {
14392         throw new IllegalArgumentException();
14393       }
14394
14395       switch (field) {
14396       case PEER_IP:
14397         return isSetPeerIp();
14398       case N_HOPS:
14399         return isSetNHops();
14400       }
14401       throw new IllegalStateException();
14402     }
14403
14404     @Override
14405     public boolean equals(Object that) {
14406       if (that == null) {
14407                 return false;
14408         }
14409       if (that instanceof setEbgpMultihop_args) {
14410                 return this.equals((setEbgpMultihop_args)that);
14411         }
14412       return false;
14413     }
14414
14415     public boolean equals(setEbgpMultihop_args that) {
14416       if (that == null) {
14417                 return false;
14418         }
14419
14420       boolean this_present_peerIp = true && this.isSetPeerIp();
14421       boolean that_present_peerIp = true && that.isSetPeerIp();
14422       if (this_present_peerIp || that_present_peerIp) {
14423         if (!(this_present_peerIp && that_present_peerIp)) {
14424                         return false;
14425                 }
14426         if (!this.peerIp.equals(that.peerIp)) {
14427                         return false;
14428                 }
14429       }
14430
14431       boolean this_present_nHops = true;
14432       boolean that_present_nHops = true;
14433       if (this_present_nHops || that_present_nHops) {
14434         if (!(this_present_nHops && that_present_nHops)) {
14435                         return false;
14436                 }
14437         if (this.nHops != that.nHops) {
14438                         return false;
14439                 }
14440       }
14441
14442       return true;
14443     }
14444
14445     @Override
14446     public int hashCode() {
14447       List<Object> list = new ArrayList<Object>();
14448
14449       boolean present_peerIp = true && (isSetPeerIp());
14450       list.add(present_peerIp);
14451       if (present_peerIp)
14452         list.add(peerIp);
14453       boolean present_nHops = true;
14454       list.add(present_nHops);
14455       if (present_nHops)
14456         list.add(nHops);
14457       return list.hashCode();
14458     }
14459
14460     @Override
14461     public int compareTo(setEbgpMultihop_args other) {
14462       if (!getClass().equals(other.getClass())) {
14463         return getClass().getName().compareTo(other.getClass().getName());
14464       }
14465
14466       int lastComparison = 0;
14467
14468       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
14469       if (lastComparison != 0) {
14470         return lastComparison;
14471       }
14472       if (isSetPeerIp()) {
14473         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
14474         if (lastComparison != 0) {
14475           return lastComparison;
14476         }
14477       }
14478       lastComparison = Boolean.valueOf(isSetNHops()).compareTo(other.isSetNHops());
14479       if (lastComparison != 0) {
14480         return lastComparison;
14481       }
14482       if (isSetNHops()) {
14483         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nHops, other.nHops);
14484         if (lastComparison != 0) {
14485           return lastComparison;
14486         }
14487       }
14488       return 0;
14489     }
14490
14491     @Override
14492         public _Fields fieldForId(int fieldId) {
14493       return _Fields.findByThriftId(fieldId);
14494     }
14495
14496     @Override
14497         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14498       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14499     }
14500
14501     @Override
14502         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14503       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14504     }
14505
14506     @Override
14507     public String toString() {
14508       StringBuilder sb = new StringBuilder("setEbgpMultihop_args(");
14509       boolean first = true;
14510
14511       sb.append("peerIp:");
14512       if (this.peerIp == null) {
14513         sb.append("null");
14514       } else {
14515         sb.append(this.peerIp);
14516       }
14517       first = false;
14518       if (!first) {
14519                 sb.append(", ");
14520         }
14521       sb.append("nHops:");
14522       sb.append(this.nHops);
14523       first = false;
14524       sb.append(")");
14525       return sb.toString();
14526     }
14527
14528     public void validate() throws org.apache.thrift.TException {
14529       // check for required fields
14530       // check for sub-struct validity
14531     }
14532
14533     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14534       try {
14535         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14536       } catch (org.apache.thrift.TException te) {
14537         throw new java.io.IOException(te);
14538       }
14539     }
14540
14541     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14542       try {
14543         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14544         __isset_bitfield = 0;
14545         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14546       } catch (org.apache.thrift.TException te) {
14547         throw new java.io.IOException(te);
14548       }
14549     }
14550
14551     private static class setEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
14552       @Override
14553         public setEbgpMultihop_argsStandardScheme getScheme() {
14554         return new setEbgpMultihop_argsStandardScheme();
14555       }
14556     }
14557
14558     private static class setEbgpMultihop_argsStandardScheme extends StandardScheme<setEbgpMultihop_args> {
14559
14560       @Override
14561         public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
14562         org.apache.thrift.protocol.TField schemeField;
14563         iprot.readStructBegin();
14564         while (true)
14565         {
14566           schemeField = iprot.readFieldBegin();
14567           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14568             break;
14569           }
14570           switch (schemeField.id) {
14571             case 1: // PEER_IP
14572               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14573                 struct.peerIp = iprot.readString();
14574                 struct.setPeerIpIsSet(true);
14575               } else {
14576                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14577               }
14578               break;
14579             case 2: // N_HOPS
14580               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14581                 struct.nHops = iprot.readI32();
14582                 struct.setNHopsIsSet(true);
14583               } else {
14584                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14585               }
14586               break;
14587             default:
14588               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14589           }
14590           iprot.readFieldEnd();
14591         }
14592         iprot.readStructEnd();
14593
14594         // check for required fields of primitive type, which can't be checked in the validate method
14595         struct.validate();
14596       }
14597
14598       @Override
14599         public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
14600         struct.validate();
14601
14602         oprot.writeStructBegin(STRUCT_DESC);
14603         if (struct.peerIp != null) {
14604           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
14605           oprot.writeString(struct.peerIp);
14606           oprot.writeFieldEnd();
14607         }
14608         oprot.writeFieldBegin(N_HOPS_FIELD_DESC);
14609         oprot.writeI32(struct.nHops);
14610         oprot.writeFieldEnd();
14611         oprot.writeFieldStop();
14612         oprot.writeStructEnd();
14613       }
14614
14615     }
14616
14617     private static class setEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
14618       @Override
14619         public setEbgpMultihop_argsTupleScheme getScheme() {
14620         return new setEbgpMultihop_argsTupleScheme();
14621       }
14622     }
14623
14624     private static class setEbgpMultihop_argsTupleScheme extends TupleScheme<setEbgpMultihop_args> {
14625
14626       @Override
14627       public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
14628         TTupleProtocol oprot = (TTupleProtocol) prot;
14629         BitSet optionals = new BitSet();
14630         if (struct.isSetPeerIp()) {
14631           optionals.set(0);
14632         }
14633         if (struct.isSetNHops()) {
14634           optionals.set(1);
14635         }
14636         oprot.writeBitSet(optionals, 2);
14637         if (struct.isSetPeerIp()) {
14638           oprot.writeString(struct.peerIp);
14639         }
14640         if (struct.isSetNHops()) {
14641           oprot.writeI32(struct.nHops);
14642         }
14643       }
14644
14645       @Override
14646       public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
14647         TTupleProtocol iprot = (TTupleProtocol) prot;
14648         BitSet incoming = iprot.readBitSet(2);
14649         if (incoming.get(0)) {
14650           struct.peerIp = iprot.readString();
14651           struct.setPeerIpIsSet(true);
14652         }
14653         if (incoming.get(1)) {
14654           struct.nHops = iprot.readI32();
14655           struct.setNHopsIsSet(true);
14656         }
14657       }
14658     }
14659
14660   }
14661
14662   public static class setEbgpMultihop_result implements org.apache.thrift.TBase<setEbgpMultihop_result, setEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_result>   {
14663     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_result");
14664
14665     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);
14666
14667     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14668     static {
14669       schemes.put(StandardScheme.class, new setEbgpMultihop_resultStandardSchemeFactory());
14670       schemes.put(TupleScheme.class, new setEbgpMultihop_resultTupleSchemeFactory());
14671     }
14672
14673     public int success; // required
14674
14675     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14676     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14677       SUCCESS((short)0, "success");
14678
14679       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14680
14681       static {
14682         for (_Fields field : EnumSet.allOf(_Fields.class)) {
14683           byName.put(field.getFieldName(), field);
14684         }
14685       }
14686
14687       /**
14688        * Find the _Fields constant that matches fieldId, or null if its not found.
14689        */
14690       public static _Fields findByThriftId(int fieldId) {
14691         switch(fieldId) {
14692           case 0: // SUCCESS
14693             return SUCCESS;
14694           default:
14695             return null;
14696         }
14697       }
14698
14699       /**
14700        * Find the _Fields constant that matches fieldId, throwing an exception
14701        * if it is not found.
14702        */
14703       public static _Fields findByThriftIdOrThrow(int fieldId) {
14704         _Fields fields = findByThriftId(fieldId);
14705         if (fields == null) {
14706                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14707                 }
14708         return fields;
14709       }
14710
14711       /**
14712        * Find the _Fields constant that matches name, or null if its not found.
14713        */
14714       public static _Fields findByName(String name) {
14715         return byName.get(name);
14716       }
14717
14718       private final short _thriftId;
14719       private final String _fieldName;
14720
14721       _Fields(short thriftId, String fieldName) {
14722         _thriftId = thriftId;
14723         _fieldName = fieldName;
14724       }
14725
14726       @Override
14727         public short getThriftFieldId() {
14728         return _thriftId;
14729       }
14730
14731       @Override
14732         public String getFieldName() {
14733         return _fieldName;
14734       }
14735     }
14736
14737     // isset id assignments
14738     private static final int __SUCCESS_ISSET_ID = 0;
14739     private byte __isset_bitfield = 0;
14740     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14741     static {
14742       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14743       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
14744           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
14745       metaDataMap = Collections.unmodifiableMap(tmpMap);
14746       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_result.class, metaDataMap);
14747     }
14748
14749     public setEbgpMultihop_result() {
14750     }
14751
14752     public setEbgpMultihop_result(
14753       int success)
14754     {
14755       this();
14756       this.success = success;
14757       setSuccessIsSet(true);
14758     }
14759
14760     /**
14761      * Performs a deep copy on <i>other</i>.
14762      */
14763     public setEbgpMultihop_result(setEbgpMultihop_result other) {
14764       __isset_bitfield = other.__isset_bitfield;
14765       this.success = other.success;
14766     }
14767
14768     @Override
14769         public setEbgpMultihop_result deepCopy() {
14770       return new setEbgpMultihop_result(this);
14771     }
14772
14773     @Override
14774     public void clear() {
14775       setSuccessIsSet(false);
14776       this.success = 0;
14777     }
14778
14779     public int getSuccess() {
14780       return this.success;
14781     }
14782
14783     public setEbgpMultihop_result setSuccess(int success) {
14784       this.success = success;
14785       setSuccessIsSet(true);
14786       return this;
14787     }
14788
14789     public void unsetSuccess() {
14790       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14791     }
14792
14793     /** Returns true if field success is set (has been assigned a value) and false otherwise */
14794     public boolean isSetSuccess() {
14795       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14796     }
14797
14798     public void setSuccessIsSet(boolean value) {
14799       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
14800     }
14801
14802     @Override
14803         public void setFieldValue(_Fields field, Object value) {
14804       switch (field) {
14805       case SUCCESS:
14806         if (value == null) {
14807           unsetSuccess();
14808         } else {
14809           setSuccess((Integer)value);
14810         }
14811         break;
14812
14813       }
14814     }
14815
14816     @Override
14817         public Object getFieldValue(_Fields field) {
14818       switch (field) {
14819       case SUCCESS:
14820         return Integer.valueOf(getSuccess());
14821
14822       }
14823       throw new IllegalStateException();
14824     }
14825
14826     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14827     @Override
14828         public boolean isSet(_Fields field) {
14829       if (field == null) {
14830         throw new IllegalArgumentException();
14831       }
14832
14833       switch (field) {
14834       case SUCCESS:
14835         return isSetSuccess();
14836       }
14837       throw new IllegalStateException();
14838     }
14839
14840     @Override
14841     public boolean equals(Object that) {
14842       if (that == null) {
14843                 return false;
14844         }
14845       if (that instanceof setEbgpMultihop_result) {
14846                 return this.equals((setEbgpMultihop_result)that);
14847         }
14848       return false;
14849     }
14850
14851     public boolean equals(setEbgpMultihop_result that) {
14852       if (that == null) {
14853                 return false;
14854         }
14855
14856       boolean this_present_success = true;
14857       boolean that_present_success = true;
14858       if (this_present_success || that_present_success) {
14859         if (!(this_present_success && that_present_success)) {
14860                         return false;
14861                 }
14862         if (this.success != that.success) {
14863                         return false;
14864                 }
14865       }
14866
14867       return true;
14868     }
14869
14870     @Override
14871     public int hashCode() {
14872       List<Object> list = new ArrayList<Object>();
14873
14874       boolean present_success = true;
14875       list.add(present_success);
14876       if (present_success)
14877         list.add(success);
14878       return list.hashCode();
14879     }
14880
14881     @Override
14882     public int compareTo(setEbgpMultihop_result other) {
14883       if (!getClass().equals(other.getClass())) {
14884         return getClass().getName().compareTo(other.getClass().getName());
14885       }
14886
14887       int lastComparison = 0;
14888
14889       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
14890       if (lastComparison != 0) {
14891         return lastComparison;
14892       }
14893       if (isSetSuccess()) {
14894         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
14895         if (lastComparison != 0) {
14896           return lastComparison;
14897         }
14898       }
14899       return 0;
14900     }
14901
14902     @Override
14903         public _Fields fieldForId(int fieldId) {
14904       return _Fields.findByThriftId(fieldId);
14905     }
14906
14907     @Override
14908         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14909       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14910     }
14911
14912     @Override
14913         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14914       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14915       }
14916
14917     @Override
14918     public String toString() {
14919       StringBuilder sb = new StringBuilder("setEbgpMultihop_result(");
14920       boolean first = true;
14921
14922       sb.append("success:");
14923       sb.append(this.success);
14924       first = false;
14925       sb.append(")");
14926       return sb.toString();
14927     }
14928
14929     public void validate() throws org.apache.thrift.TException {
14930       // check for required fields
14931       // check for sub-struct validity
14932     }
14933
14934     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14935       try {
14936         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14937       } catch (org.apache.thrift.TException te) {
14938         throw new java.io.IOException(te);
14939       }
14940     }
14941
14942     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14943       try {
14944         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14945         __isset_bitfield = 0;
14946         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14947       } catch (org.apache.thrift.TException te) {
14948         throw new java.io.IOException(te);
14949       }
14950     }
14951
14952     private static class setEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
14953       @Override
14954         public setEbgpMultihop_resultStandardScheme getScheme() {
14955         return new setEbgpMultihop_resultStandardScheme();
14956       }
14957     }
14958
14959     private static class setEbgpMultihop_resultStandardScheme extends StandardScheme<setEbgpMultihop_result> {
14960
14961       @Override
14962         public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
14963         org.apache.thrift.protocol.TField schemeField;
14964         iprot.readStructBegin();
14965         while (true)
14966         {
14967           schemeField = iprot.readFieldBegin();
14968           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14969             break;
14970           }
14971           switch (schemeField.id) {
14972             case 0: // SUCCESS
14973               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14974                 struct.success = iprot.readI32();
14975                 struct.setSuccessIsSet(true);
14976               } else {
14977                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14978               }
14979               break;
14980             default:
14981               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14982           }
14983           iprot.readFieldEnd();
14984         }
14985         iprot.readStructEnd();
14986
14987         // check for required fields of primitive type, which can't be checked in the validate method
14988         struct.validate();
14989       }
14990
14991       @Override
14992         public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
14993         struct.validate();
14994
14995         oprot.writeStructBegin(STRUCT_DESC);
14996         if (struct.isSetSuccess()) {
14997           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14998           oprot.writeI32(struct.success);
14999           oprot.writeFieldEnd();
15000         }
15001         oprot.writeFieldStop();
15002         oprot.writeStructEnd();
15003       }
15004
15005     }
15006
15007     private static class setEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
15008       @Override
15009         public setEbgpMultihop_resultTupleScheme getScheme() {
15010         return new setEbgpMultihop_resultTupleScheme();
15011       }
15012     }
15013
15014     private static class setEbgpMultihop_resultTupleScheme extends TupleScheme<setEbgpMultihop_result> {
15015
15016       @Override
15017       public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
15018         TTupleProtocol oprot = (TTupleProtocol) prot;
15019         BitSet optionals = new BitSet();
15020         if (struct.isSetSuccess()) {
15021           optionals.set(0);
15022         }
15023         oprot.writeBitSet(optionals, 1);
15024         if (struct.isSetSuccess()) {
15025           oprot.writeI32(struct.success);
15026         }
15027       }
15028
15029       @Override
15030       public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
15031         TTupleProtocol iprot = (TTupleProtocol) prot;
15032         BitSet incoming = iprot.readBitSet(1);
15033         if (incoming.get(0)) {
15034           struct.success = iprot.readI32();
15035           struct.setSuccessIsSet(true);
15036         }
15037       }
15038     }
15039
15040   }
15041
15042   public static class unsetEbgpMultihop_args implements org.apache.thrift.TBase<unsetEbgpMultihop_args, unsetEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_args>   {
15043     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_args");
15044
15045     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);
15046
15047     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15048     static {
15049       schemes.put(StandardScheme.class, new unsetEbgpMultihop_argsStandardSchemeFactory());
15050       schemes.put(TupleScheme.class, new unsetEbgpMultihop_argsTupleSchemeFactory());
15051     }
15052
15053     public String peerIp; // required
15054
15055     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15056     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15057       PEER_IP((short)1, "peerIp");
15058
15059       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15060
15061       static {
15062         for (_Fields field : EnumSet.allOf(_Fields.class)) {
15063           byName.put(field.getFieldName(), field);
15064         }
15065       }
15066
15067       /**
15068        * Find the _Fields constant that matches fieldId, or null if its not found.
15069        */
15070       public static _Fields findByThriftId(int fieldId) {
15071         switch(fieldId) {
15072           case 1: // PEER_IP
15073             return PEER_IP;
15074           default:
15075             return null;
15076         }
15077       }
15078
15079       /**
15080        * Find the _Fields constant that matches fieldId, throwing an exception
15081        * if it is not found.
15082        */
15083       public static _Fields findByThriftIdOrThrow(int fieldId) {
15084         _Fields fields = findByThriftId(fieldId);
15085         if (fields == null) {
15086                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15087                 }
15088         return fields;
15089       }
15090
15091       /**
15092        * Find the _Fields constant that matches name, or null if its not found.
15093        */
15094       public static _Fields findByName(String name) {
15095         return byName.get(name);
15096       }
15097
15098       private final short _thriftId;
15099       private final String _fieldName;
15100
15101       _Fields(short thriftId, String fieldName) {
15102         _thriftId = thriftId;
15103         _fieldName = fieldName;
15104       }
15105
15106       @Override
15107         public short getThriftFieldId() {
15108         return _thriftId;
15109       }
15110
15111       @Override
15112         public String getFieldName() {
15113         return _fieldName;
15114       }
15115     }
15116
15117     // isset id assignments
15118     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15119     static {
15120       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15121       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
15122           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15123       metaDataMap = Collections.unmodifiableMap(tmpMap);
15124       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_args.class, metaDataMap);
15125     }
15126
15127     public unsetEbgpMultihop_args() {
15128     }
15129
15130     public unsetEbgpMultihop_args(
15131       String peerIp)
15132     {
15133       this();
15134       this.peerIp = peerIp;
15135     }
15136
15137     /**
15138      * Performs a deep copy on <i>other</i>.
15139      */
15140     public unsetEbgpMultihop_args(unsetEbgpMultihop_args other) {
15141       if (other.isSetPeerIp()) {
15142         this.peerIp = other.peerIp;
15143       }
15144     }
15145
15146     @Override
15147         public unsetEbgpMultihop_args deepCopy() {
15148       return new unsetEbgpMultihop_args(this);
15149     }
15150
15151     @Override
15152     public void clear() {
15153       this.peerIp = null;
15154     }
15155
15156     public String getPeerIp() {
15157       return this.peerIp;
15158     }
15159
15160     public unsetEbgpMultihop_args setPeerIp(String peerIp) {
15161       this.peerIp = peerIp;
15162       return this;
15163     }
15164
15165     public void unsetPeerIp() {
15166       this.peerIp = null;
15167     }
15168
15169     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
15170     public boolean isSetPeerIp() {
15171       return this.peerIp != null;
15172     }
15173
15174     public void setPeerIpIsSet(boolean value) {
15175       if (!value) {
15176         this.peerIp = null;
15177       }
15178     }
15179
15180     @Override
15181         public void setFieldValue(_Fields field, Object value) {
15182       switch (field) {
15183       case PEER_IP:
15184         if (value == null) {
15185           unsetPeerIp();
15186         } else {
15187           setPeerIp((String)value);
15188         }
15189         break;
15190
15191       }
15192     }
15193
15194     @Override
15195         public Object getFieldValue(_Fields field) {
15196       switch (field) {
15197       case PEER_IP:
15198         return getPeerIp();
15199
15200       }
15201       throw new IllegalStateException();
15202     }
15203
15204     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15205     @Override
15206         public boolean isSet(_Fields field) {
15207       if (field == null) {
15208         throw new IllegalArgumentException();
15209       }
15210
15211       switch (field) {
15212       case PEER_IP:
15213         return isSetPeerIp();
15214       }
15215       throw new IllegalStateException();
15216     }
15217
15218     @Override
15219     public boolean equals(Object that) {
15220       if (that == null) {
15221                 return false;
15222         }
15223       if (that instanceof unsetEbgpMultihop_args) {
15224                 return this.equals((unsetEbgpMultihop_args)that);
15225         }
15226       return false;
15227     }
15228
15229     public boolean equals(unsetEbgpMultihop_args that) {
15230       if (that == null) {
15231                 return false;
15232         }
15233
15234       boolean this_present_peerIp = true && this.isSetPeerIp();
15235       boolean that_present_peerIp = true && that.isSetPeerIp();
15236       if (this_present_peerIp || that_present_peerIp) {
15237         if (!(this_present_peerIp && that_present_peerIp)) {
15238                         return false;
15239                 }
15240         if (!this.peerIp.equals(that.peerIp)) {
15241                         return false;
15242                 }
15243       }
15244
15245       return true;
15246     }
15247
15248     @Override
15249     public int hashCode() {
15250       List<Object> list = new ArrayList<Object>();
15251
15252       boolean present_peerIp = true && (isSetPeerIp());
15253       list.add(present_peerIp);
15254       if (present_peerIp)
15255         list.add(peerIp);
15256       return list.hashCode();
15257     }
15258
15259     @Override
15260     public int compareTo(unsetEbgpMultihop_args other) {
15261       if (!getClass().equals(other.getClass())) {
15262         return getClass().getName().compareTo(other.getClass().getName());
15263       }
15264
15265       int lastComparison = 0;
15266
15267       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
15268       if (lastComparison != 0) {
15269         return lastComparison;
15270       }
15271       if (isSetPeerIp()) {
15272         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
15273         if (lastComparison != 0) {
15274           return lastComparison;
15275         }
15276       }
15277       return 0;
15278     }
15279
15280     @Override
15281         public _Fields fieldForId(int fieldId) {
15282       return _Fields.findByThriftId(fieldId);
15283     }
15284
15285     @Override
15286         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15287       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15288     }
15289
15290     @Override
15291         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15292       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15293     }
15294
15295     @Override
15296     public String toString() {
15297       StringBuilder sb = new StringBuilder("unsetEbgpMultihop_args(");
15298       boolean first = true;
15299
15300       sb.append("peerIp:");
15301       if (this.peerIp == null) {
15302         sb.append("null");
15303       } else {
15304         sb.append(this.peerIp);
15305       }
15306       first = false;
15307       sb.append(")");
15308       return sb.toString();
15309     }
15310
15311     public void validate() throws org.apache.thrift.TException {
15312       // check for required fields
15313       // check for sub-struct validity
15314     }
15315
15316     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15317       try {
15318         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15319       } catch (org.apache.thrift.TException te) {
15320         throw new java.io.IOException(te);
15321       }
15322     }
15323
15324     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15325       try {
15326         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15327       } catch (org.apache.thrift.TException te) {
15328         throw new java.io.IOException(te);
15329       }
15330     }
15331
15332     private static class unsetEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
15333       @Override
15334         public unsetEbgpMultihop_argsStandardScheme getScheme() {
15335         return new unsetEbgpMultihop_argsStandardScheme();
15336       }
15337     }
15338
15339     private static class unsetEbgpMultihop_argsStandardScheme extends StandardScheme<unsetEbgpMultihop_args> {
15340
15341       @Override
15342         public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
15343         org.apache.thrift.protocol.TField schemeField;
15344         iprot.readStructBegin();
15345         while (true)
15346         {
15347           schemeField = iprot.readFieldBegin();
15348           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15349             break;
15350           }
15351           switch (schemeField.id) {
15352             case 1: // PEER_IP
15353               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15354                 struct.peerIp = iprot.readString();
15355                 struct.setPeerIpIsSet(true);
15356               } else {
15357                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15358               }
15359               break;
15360             default:
15361               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15362           }
15363           iprot.readFieldEnd();
15364         }
15365         iprot.readStructEnd();
15366
15367         // check for required fields of primitive type, which can't be checked in the validate method
15368         struct.validate();
15369       }
15370
15371       @Override
15372         public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
15373         struct.validate();
15374
15375         oprot.writeStructBegin(STRUCT_DESC);
15376         if (struct.peerIp != null) {
15377           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
15378           oprot.writeString(struct.peerIp);
15379           oprot.writeFieldEnd();
15380         }
15381         oprot.writeFieldStop();
15382         oprot.writeStructEnd();
15383       }
15384
15385     }
15386
15387     private static class unsetEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
15388       @Override
15389         public unsetEbgpMultihop_argsTupleScheme getScheme() {
15390         return new unsetEbgpMultihop_argsTupleScheme();
15391       }
15392     }
15393
15394     private static class unsetEbgpMultihop_argsTupleScheme extends TupleScheme<unsetEbgpMultihop_args> {
15395
15396       @Override
15397       public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
15398         TTupleProtocol oprot = (TTupleProtocol) prot;
15399         BitSet optionals = new BitSet();
15400         if (struct.isSetPeerIp()) {
15401           optionals.set(0);
15402         }
15403         oprot.writeBitSet(optionals, 1);
15404         if (struct.isSetPeerIp()) {
15405           oprot.writeString(struct.peerIp);
15406         }
15407       }
15408
15409       @Override
15410       public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
15411         TTupleProtocol iprot = (TTupleProtocol) prot;
15412         BitSet incoming = iprot.readBitSet(1);
15413         if (incoming.get(0)) {
15414           struct.peerIp = iprot.readString();
15415           struct.setPeerIpIsSet(true);
15416         }
15417       }
15418     }
15419
15420   }
15421
15422   public static class unsetEbgpMultihop_result implements org.apache.thrift.TBase<unsetEbgpMultihop_result, unsetEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_result>   {
15423     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_result");
15424
15425     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);
15426
15427     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15428     static {
15429       schemes.put(StandardScheme.class, new unsetEbgpMultihop_resultStandardSchemeFactory());
15430       schemes.put(TupleScheme.class, new unsetEbgpMultihop_resultTupleSchemeFactory());
15431     }
15432
15433     public int success; // required
15434
15435     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15436     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15437       SUCCESS((short)0, "success");
15438
15439       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15440
15441       static {
15442         for (_Fields field : EnumSet.allOf(_Fields.class)) {
15443           byName.put(field.getFieldName(), field);
15444         }
15445       }
15446
15447       /**
15448        * Find the _Fields constant that matches fieldId, or null if its not found.
15449        */
15450       public static _Fields findByThriftId(int fieldId) {
15451         switch(fieldId) {
15452           case 0: // SUCCESS
15453             return SUCCESS;
15454           default:
15455             return null;
15456         }
15457       }
15458
15459       /**
15460        * Find the _Fields constant that matches fieldId, throwing an exception
15461        * if it is not found.
15462        */
15463       public static _Fields findByThriftIdOrThrow(int fieldId) {
15464         _Fields fields = findByThriftId(fieldId);
15465         if (fields == null) {
15466                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15467                 }
15468         return fields;
15469       }
15470
15471       /**
15472        * Find the _Fields constant that matches name, or null if its not found.
15473        */
15474       public static _Fields findByName(String name) {
15475         return byName.get(name);
15476       }
15477
15478       private final short _thriftId;
15479       private final String _fieldName;
15480
15481       _Fields(short thriftId, String fieldName) {
15482         _thriftId = thriftId;
15483         _fieldName = fieldName;
15484       }
15485
15486       @Override
15487         public short getThriftFieldId() {
15488         return _thriftId;
15489       }
15490
15491       @Override
15492         public String getFieldName() {
15493         return _fieldName;
15494       }
15495     }
15496
15497     // isset id assignments
15498     private static final int __SUCCESS_ISSET_ID = 0;
15499     private byte __isset_bitfield = 0;
15500     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15501     static {
15502       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15503       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
15504           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15505       metaDataMap = Collections.unmodifiableMap(tmpMap);
15506       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_result.class, metaDataMap);
15507     }
15508
15509     public unsetEbgpMultihop_result() {
15510     }
15511
15512     public unsetEbgpMultihop_result(
15513       int success)
15514     {
15515       this();
15516       this.success = success;
15517       setSuccessIsSet(true);
15518     }
15519
15520     /**
15521      * Performs a deep copy on <i>other</i>.
15522      */
15523     public unsetEbgpMultihop_result(unsetEbgpMultihop_result other) {
15524       __isset_bitfield = other.__isset_bitfield;
15525       this.success = other.success;
15526     }
15527
15528     @Override
15529         public unsetEbgpMultihop_result deepCopy() {
15530       return new unsetEbgpMultihop_result(this);
15531     }
15532
15533     @Override
15534     public void clear() {
15535       setSuccessIsSet(false);
15536       this.success = 0;
15537     }
15538
15539     public int getSuccess() {
15540       return this.success;
15541     }
15542
15543     public unsetEbgpMultihop_result setSuccess(int success) {
15544       this.success = success;
15545       setSuccessIsSet(true);
15546       return this;
15547     }
15548
15549     public void unsetSuccess() {
15550       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15551     }
15552
15553     /** Returns true if field success is set (has been assigned a value) and false otherwise */
15554     public boolean isSetSuccess() {
15555       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15556     }
15557
15558     public void setSuccessIsSet(boolean value) {
15559       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
15560     }
15561
15562     @Override
15563         public void setFieldValue(_Fields field, Object value) {
15564       switch (field) {
15565       case SUCCESS:
15566         if (value == null) {
15567           unsetSuccess();
15568         } else {
15569           setSuccess((Integer)value);
15570         }
15571         break;
15572
15573       }
15574     }
15575
15576     @Override
15577         public Object getFieldValue(_Fields field) {
15578       switch (field) {
15579       case SUCCESS:
15580         return Integer.valueOf(getSuccess());
15581
15582       }
15583       throw new IllegalStateException();
15584     }
15585
15586     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15587     @Override
15588         public boolean isSet(_Fields field) {
15589       if (field == null) {
15590         throw new IllegalArgumentException();
15591       }
15592
15593       switch (field) {
15594       case SUCCESS:
15595         return isSetSuccess();
15596       }
15597       throw new IllegalStateException();
15598     }
15599
15600     @Override
15601     public boolean equals(Object that) {
15602       if (that == null) {
15603                 return false;
15604         }
15605       if (that instanceof unsetEbgpMultihop_result) {
15606                 return this.equals((unsetEbgpMultihop_result)that);
15607         }
15608       return false;
15609     }
15610
15611     public boolean equals(unsetEbgpMultihop_result that) {
15612       if (that == null) {
15613                 return false;
15614         }
15615
15616       boolean this_present_success = true;
15617       boolean that_present_success = true;
15618       if (this_present_success || that_present_success) {
15619         if (!(this_present_success && that_present_success)) {
15620                         return false;
15621                 }
15622         if (this.success != that.success) {
15623                         return false;
15624                 }
15625       }
15626
15627       return true;
15628     }
15629
15630     @Override
15631     public int hashCode() {
15632       List<Object> list = new ArrayList<Object>();
15633
15634       boolean present_success = true;
15635       list.add(present_success);
15636       if (present_success)
15637         list.add(success);
15638       return list.hashCode();
15639     }
15640
15641     @Override
15642     public int compareTo(unsetEbgpMultihop_result other) {
15643       if (!getClass().equals(other.getClass())) {
15644         return getClass().getName().compareTo(other.getClass().getName());
15645       }
15646
15647       int lastComparison = 0;
15648
15649       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15650       if (lastComparison != 0) {
15651         return lastComparison;
15652       }
15653       if (isSetSuccess()) {
15654         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15655         if (lastComparison != 0) {
15656           return lastComparison;
15657         }
15658       }
15659       return 0;
15660     }
15661
15662     @Override
15663         public _Fields fieldForId(int fieldId) {
15664       return _Fields.findByThriftId(fieldId);
15665     }
15666
15667     @Override
15668         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15669       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15670     }
15671
15672     @Override
15673         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15674       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15675       }
15676
15677     @Override
15678     public String toString() {
15679       StringBuilder sb = new StringBuilder("unsetEbgpMultihop_result(");
15680       boolean first = true;
15681
15682       sb.append("success:");
15683       sb.append(this.success);
15684       first = false;
15685       sb.append(")");
15686       return sb.toString();
15687     }
15688
15689     public void validate() throws org.apache.thrift.TException {
15690       // check for required fields
15691       // check for sub-struct validity
15692     }
15693
15694     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15695       try {
15696         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15697       } catch (org.apache.thrift.TException te) {
15698         throw new java.io.IOException(te);
15699       }
15700     }
15701
15702     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15703       try {
15704         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15705         __isset_bitfield = 0;
15706         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15707       } catch (org.apache.thrift.TException te) {
15708         throw new java.io.IOException(te);
15709       }
15710     }
15711
15712     private static class unsetEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
15713       @Override
15714         public unsetEbgpMultihop_resultStandardScheme getScheme() {
15715         return new unsetEbgpMultihop_resultStandardScheme();
15716       }
15717     }
15718
15719     private static class unsetEbgpMultihop_resultStandardScheme extends StandardScheme<unsetEbgpMultihop_result> {
15720
15721       @Override
15722         public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
15723         org.apache.thrift.protocol.TField schemeField;
15724         iprot.readStructBegin();
15725         while (true)
15726         {
15727           schemeField = iprot.readFieldBegin();
15728           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15729             break;
15730           }
15731           switch (schemeField.id) {
15732             case 0: // SUCCESS
15733               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15734                 struct.success = iprot.readI32();
15735                 struct.setSuccessIsSet(true);
15736               } else {
15737                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15738               }
15739               break;
15740             default:
15741               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15742           }
15743           iprot.readFieldEnd();
15744         }
15745         iprot.readStructEnd();
15746
15747         // check for required fields of primitive type, which can't be checked in the validate method
15748         struct.validate();
15749       }
15750
15751       @Override
15752         public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
15753         struct.validate();
15754
15755         oprot.writeStructBegin(STRUCT_DESC);
15756         if (struct.isSetSuccess()) {
15757           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15758           oprot.writeI32(struct.success);
15759           oprot.writeFieldEnd();
15760         }
15761         oprot.writeFieldStop();
15762         oprot.writeStructEnd();
15763       }
15764
15765     }
15766
15767     private static class unsetEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
15768       @Override
15769         public unsetEbgpMultihop_resultTupleScheme getScheme() {
15770         return new unsetEbgpMultihop_resultTupleScheme();
15771       }
15772     }
15773
15774     private static class unsetEbgpMultihop_resultTupleScheme extends TupleScheme<unsetEbgpMultihop_result> {
15775
15776       @Override
15777       public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
15778         TTupleProtocol oprot = (TTupleProtocol) prot;
15779         BitSet optionals = new BitSet();
15780         if (struct.isSetSuccess()) {
15781           optionals.set(0);
15782         }
15783         oprot.writeBitSet(optionals, 1);
15784         if (struct.isSetSuccess()) {
15785           oprot.writeI32(struct.success);
15786         }
15787       }
15788
15789       @Override
15790       public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
15791         TTupleProtocol iprot = (TTupleProtocol) prot;
15792         BitSet incoming = iprot.readBitSet(1);
15793         if (incoming.get(0)) {
15794           struct.success = iprot.readI32();
15795           struct.setSuccessIsSet(true);
15796         }
15797       }
15798     }
15799
15800   }
15801
15802   public static class setUpdateSource_args implements org.apache.thrift.TBase<setUpdateSource_args, setUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_args>   {
15803     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_args");
15804
15805     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);
15806     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);
15807
15808     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15809     static {
15810       schemes.put(StandardScheme.class, new setUpdateSource_argsStandardSchemeFactory());
15811       schemes.put(TupleScheme.class, new setUpdateSource_argsTupleSchemeFactory());
15812     }
15813
15814     public String peerIp; // required
15815     public String srcIp; // required
15816
15817     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15818     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15819       PEER_IP((short)1, "peerIp"),
15820       SRC_IP((short)2, "srcIp");
15821
15822       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15823
15824       static {
15825         for (_Fields field : EnumSet.allOf(_Fields.class)) {
15826           byName.put(field.getFieldName(), field);
15827         }
15828       }
15829
15830       /**
15831        * Find the _Fields constant that matches fieldId, or null if its not found.
15832        */
15833       public static _Fields findByThriftId(int fieldId) {
15834         switch(fieldId) {
15835           case 1: // PEER_IP
15836             return PEER_IP;
15837           case 2: // SRC_IP
15838             return SRC_IP;
15839           default:
15840             return null;
15841         }
15842       }
15843
15844       /**
15845        * Find the _Fields constant that matches fieldId, throwing an exception
15846        * if it is not found.
15847        */
15848       public static _Fields findByThriftIdOrThrow(int fieldId) {
15849         _Fields fields = findByThriftId(fieldId);
15850         if (fields == null) {
15851                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15852                 }
15853         return fields;
15854       }
15855
15856       /**
15857        * Find the _Fields constant that matches name, or null if its not found.
15858        */
15859       public static _Fields findByName(String name) {
15860         return byName.get(name);
15861       }
15862
15863       private final short _thriftId;
15864       private final String _fieldName;
15865
15866       _Fields(short thriftId, String fieldName) {
15867         _thriftId = thriftId;
15868         _fieldName = fieldName;
15869       }
15870
15871       @Override
15872         public short getThriftFieldId() {
15873         return _thriftId;
15874       }
15875
15876       @Override
15877         public String getFieldName() {
15878         return _fieldName;
15879       }
15880     }
15881
15882     // isset id assignments
15883     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15884     static {
15885       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15886       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
15887           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15888       tmpMap.put(_Fields.SRC_IP, new org.apache.thrift.meta_data.FieldMetaData("srcIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
15889           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15890       metaDataMap = Collections.unmodifiableMap(tmpMap);
15891       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_args.class, metaDataMap);
15892     }
15893
15894     public setUpdateSource_args() {
15895     }
15896
15897     public setUpdateSource_args(
15898       String peerIp,
15899       String srcIp)
15900     {
15901       this();
15902       this.peerIp = peerIp;
15903       this.srcIp = srcIp;
15904     }
15905
15906     /**
15907      * Performs a deep copy on <i>other</i>.
15908      */
15909     public setUpdateSource_args(setUpdateSource_args other) {
15910       if (other.isSetPeerIp()) {
15911         this.peerIp = other.peerIp;
15912       }
15913       if (other.isSetSrcIp()) {
15914         this.srcIp = other.srcIp;
15915       }
15916     }
15917
15918     @Override
15919         public setUpdateSource_args deepCopy() {
15920       return new setUpdateSource_args(this);
15921     }
15922
15923     @Override
15924     public void clear() {
15925       this.peerIp = null;
15926       this.srcIp = null;
15927     }
15928
15929     public String getPeerIp() {
15930       return this.peerIp;
15931     }
15932
15933     public setUpdateSource_args setPeerIp(String peerIp) {
15934       this.peerIp = peerIp;
15935       return this;
15936     }
15937
15938     public void unsetPeerIp() {
15939       this.peerIp = null;
15940     }
15941
15942     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
15943     public boolean isSetPeerIp() {
15944       return this.peerIp != null;
15945     }
15946
15947     public void setPeerIpIsSet(boolean value) {
15948       if (!value) {
15949         this.peerIp = null;
15950       }
15951     }
15952
15953     public String getSrcIp() {
15954       return this.srcIp;
15955     }
15956
15957     public setUpdateSource_args setSrcIp(String srcIp) {
15958       this.srcIp = srcIp;
15959       return this;
15960     }
15961
15962     public void unsetSrcIp() {
15963       this.srcIp = null;
15964     }
15965
15966     /** Returns true if field srcIp is set (has been assigned a value) and false otherwise */
15967     public boolean isSetSrcIp() {
15968       return this.srcIp != null;
15969     }
15970
15971     public void setSrcIpIsSet(boolean value) {
15972       if (!value) {
15973         this.srcIp = null;
15974       }
15975     }
15976
15977     @Override
15978         public void setFieldValue(_Fields field, Object value) {
15979       switch (field) {
15980       case PEER_IP:
15981         if (value == null) {
15982           unsetPeerIp();
15983         } else {
15984           setPeerIp((String)value);
15985         }
15986         break;
15987
15988       case SRC_IP:
15989         if (value == null) {
15990           unsetSrcIp();
15991         } else {
15992           setSrcIp((String)value);
15993         }
15994         break;
15995
15996       }
15997     }
15998
15999     @Override
16000         public Object getFieldValue(_Fields field) {
16001       switch (field) {
16002       case PEER_IP:
16003         return getPeerIp();
16004
16005       case SRC_IP:
16006         return getSrcIp();
16007
16008       }
16009       throw new IllegalStateException();
16010     }
16011
16012     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16013     @Override
16014         public boolean isSet(_Fields field) {
16015       if (field == null) {
16016         throw new IllegalArgumentException();
16017       }
16018
16019       switch (field) {
16020       case PEER_IP:
16021         return isSetPeerIp();
16022       case SRC_IP:
16023         return isSetSrcIp();
16024       }
16025       throw new IllegalStateException();
16026     }
16027
16028     @Override
16029     public boolean equals(Object that) {
16030       if (that == null) {
16031                 return false;
16032         }
16033       if (that instanceof setUpdateSource_args) {
16034                 return this.equals((setUpdateSource_args)that);
16035         }
16036       return false;
16037     }
16038
16039     public boolean equals(setUpdateSource_args that) {
16040       if (that == null) {
16041                 return false;
16042         }
16043
16044       boolean this_present_peerIp = true && this.isSetPeerIp();
16045       boolean that_present_peerIp = true && that.isSetPeerIp();
16046       if (this_present_peerIp || that_present_peerIp) {
16047         if (!(this_present_peerIp && that_present_peerIp)) {
16048                         return false;
16049                 }
16050         if (!this.peerIp.equals(that.peerIp)) {
16051                         return false;
16052                 }
16053       }
16054
16055       boolean this_present_srcIp = true && this.isSetSrcIp();
16056       boolean that_present_srcIp = true && that.isSetSrcIp();
16057       if (this_present_srcIp || that_present_srcIp) {
16058         if (!(this_present_srcIp && that_present_srcIp)) {
16059                         return false;
16060                 }
16061         if (!this.srcIp.equals(that.srcIp)) {
16062                         return false;
16063                 }
16064       }
16065
16066       return true;
16067     }
16068
16069     @Override
16070     public int hashCode() {
16071       List<Object> list = new ArrayList<Object>();
16072
16073       boolean present_peerIp = true && (isSetPeerIp());
16074       list.add(present_peerIp);
16075       if (present_peerIp)
16076         list.add(peerIp);
16077       boolean present_srcIp = true && (isSetSrcIp());
16078       list.add(present_srcIp);
16079       if (present_srcIp)
16080         list.add(srcIp);
16081       return list.hashCode();
16082     }
16083
16084     @Override
16085     public int compareTo(setUpdateSource_args other) {
16086       if (!getClass().equals(other.getClass())) {
16087         return getClass().getName().compareTo(other.getClass().getName());
16088       }
16089
16090       int lastComparison = 0;
16091
16092       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
16093       if (lastComparison != 0) {
16094         return lastComparison;
16095       }
16096       if (isSetPeerIp()) {
16097         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
16098         if (lastComparison != 0) {
16099           return lastComparison;
16100         }
16101       }
16102       lastComparison = Boolean.valueOf(isSetSrcIp()).compareTo(other.isSetSrcIp());
16103       if (lastComparison != 0) {
16104         return lastComparison;
16105       }
16106       if (isSetSrcIp()) {
16107         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.srcIp, other.srcIp);
16108         if (lastComparison != 0) {
16109           return lastComparison;
16110         }
16111       }
16112       return 0;
16113     }
16114
16115     @Override
16116         public _Fields fieldForId(int fieldId) {
16117       return _Fields.findByThriftId(fieldId);
16118     }
16119
16120     @Override
16121         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16122       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16123     }
16124
16125     @Override
16126         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16127       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16128     }
16129
16130     @Override
16131     public String toString() {
16132       StringBuilder sb = new StringBuilder("setUpdateSource_args(");
16133       boolean first = true;
16134
16135       sb.append("peerIp:");
16136       if (this.peerIp == null) {
16137         sb.append("null");
16138       } else {
16139         sb.append(this.peerIp);
16140       }
16141       first = false;
16142       if (!first) {
16143                 sb.append(", ");
16144         }
16145       sb.append("srcIp:");
16146       if (this.srcIp == null) {
16147         sb.append("null");
16148       } else {
16149         sb.append(this.srcIp);
16150       }
16151       first = false;
16152       sb.append(")");
16153       return sb.toString();
16154     }
16155
16156     public void validate() throws org.apache.thrift.TException {
16157       // check for required fields
16158       // check for sub-struct validity
16159     }
16160
16161     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16162       try {
16163         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16164       } catch (org.apache.thrift.TException te) {
16165         throw new java.io.IOException(te);
16166       }
16167     }
16168
16169     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16170       try {
16171         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16172       } catch (org.apache.thrift.TException te) {
16173         throw new java.io.IOException(te);
16174       }
16175     }
16176
16177     private static class setUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
16178       @Override
16179         public setUpdateSource_argsStandardScheme getScheme() {
16180         return new setUpdateSource_argsStandardScheme();
16181       }
16182     }
16183
16184     private static class setUpdateSource_argsStandardScheme extends StandardScheme<setUpdateSource_args> {
16185
16186       @Override
16187         public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
16188         org.apache.thrift.protocol.TField schemeField;
16189         iprot.readStructBegin();
16190         while (true)
16191         {
16192           schemeField = iprot.readFieldBegin();
16193           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16194             break;
16195           }
16196           switch (schemeField.id) {
16197             case 1: // PEER_IP
16198               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16199                 struct.peerIp = iprot.readString();
16200                 struct.setPeerIpIsSet(true);
16201               } else {
16202                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16203               }
16204               break;
16205             case 2: // SRC_IP
16206               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16207                 struct.srcIp = iprot.readString();
16208                 struct.setSrcIpIsSet(true);
16209               } else {
16210                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16211               }
16212               break;
16213             default:
16214               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16215           }
16216           iprot.readFieldEnd();
16217         }
16218         iprot.readStructEnd();
16219
16220         // check for required fields of primitive type, which can't be checked in the validate method
16221         struct.validate();
16222       }
16223
16224       @Override
16225         public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
16226         struct.validate();
16227
16228         oprot.writeStructBegin(STRUCT_DESC);
16229         if (struct.peerIp != null) {
16230           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
16231           oprot.writeString(struct.peerIp);
16232           oprot.writeFieldEnd();
16233         }
16234         if (struct.srcIp != null) {
16235           oprot.writeFieldBegin(SRC_IP_FIELD_DESC);
16236           oprot.writeString(struct.srcIp);
16237           oprot.writeFieldEnd();
16238         }
16239         oprot.writeFieldStop();
16240         oprot.writeStructEnd();
16241       }
16242
16243     }
16244
16245     private static class setUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
16246       @Override
16247         public setUpdateSource_argsTupleScheme getScheme() {
16248         return new setUpdateSource_argsTupleScheme();
16249       }
16250     }
16251
16252     private static class setUpdateSource_argsTupleScheme extends TupleScheme<setUpdateSource_args> {
16253
16254       @Override
16255       public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
16256         TTupleProtocol oprot = (TTupleProtocol) prot;
16257         BitSet optionals = new BitSet();
16258         if (struct.isSetPeerIp()) {
16259           optionals.set(0);
16260         }
16261         if (struct.isSetSrcIp()) {
16262           optionals.set(1);
16263         }
16264         oprot.writeBitSet(optionals, 2);
16265         if (struct.isSetPeerIp()) {
16266           oprot.writeString(struct.peerIp);
16267         }
16268         if (struct.isSetSrcIp()) {
16269           oprot.writeString(struct.srcIp);
16270         }
16271       }
16272
16273       @Override
16274       public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
16275         TTupleProtocol iprot = (TTupleProtocol) prot;
16276         BitSet incoming = iprot.readBitSet(2);
16277         if (incoming.get(0)) {
16278           struct.peerIp = iprot.readString();
16279           struct.setPeerIpIsSet(true);
16280         }
16281         if (incoming.get(1)) {
16282           struct.srcIp = iprot.readString();
16283           struct.setSrcIpIsSet(true);
16284         }
16285       }
16286     }
16287
16288   }
16289
16290   public static class setUpdateSource_result implements org.apache.thrift.TBase<setUpdateSource_result, setUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_result>   {
16291     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_result");
16292
16293     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);
16294
16295     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16296     static {
16297       schemes.put(StandardScheme.class, new setUpdateSource_resultStandardSchemeFactory());
16298       schemes.put(TupleScheme.class, new setUpdateSource_resultTupleSchemeFactory());
16299     }
16300
16301     public int success; // required
16302
16303     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16304     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16305       SUCCESS((short)0, "success");
16306
16307       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16308
16309       static {
16310         for (_Fields field : EnumSet.allOf(_Fields.class)) {
16311           byName.put(field.getFieldName(), field);
16312         }
16313       }
16314
16315       /**
16316        * Find the _Fields constant that matches fieldId, or null if its not found.
16317        */
16318       public static _Fields findByThriftId(int fieldId) {
16319         switch(fieldId) {
16320           case 0: // SUCCESS
16321             return SUCCESS;
16322           default:
16323             return null;
16324         }
16325       }
16326
16327       /**
16328        * Find the _Fields constant that matches fieldId, throwing an exception
16329        * if it is not found.
16330        */
16331       public static _Fields findByThriftIdOrThrow(int fieldId) {
16332         _Fields fields = findByThriftId(fieldId);
16333         if (fields == null) {
16334                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16335                 }
16336         return fields;
16337       }
16338
16339       /**
16340        * Find the _Fields constant that matches name, or null if its not found.
16341        */
16342       public static _Fields findByName(String name) {
16343         return byName.get(name);
16344       }
16345
16346       private final short _thriftId;
16347       private final String _fieldName;
16348
16349       _Fields(short thriftId, String fieldName) {
16350         _thriftId = thriftId;
16351         _fieldName = fieldName;
16352       }
16353
16354       @Override
16355         public short getThriftFieldId() {
16356         return _thriftId;
16357       }
16358
16359       @Override
16360         public String getFieldName() {
16361         return _fieldName;
16362       }
16363     }
16364
16365     // isset id assignments
16366     private static final int __SUCCESS_ISSET_ID = 0;
16367     private byte __isset_bitfield = 0;
16368     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16369     static {
16370       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16371       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
16372           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16373       metaDataMap = Collections.unmodifiableMap(tmpMap);
16374       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_result.class, metaDataMap);
16375     }
16376
16377     public setUpdateSource_result() {
16378     }
16379
16380     public setUpdateSource_result(
16381       int success)
16382     {
16383       this();
16384       this.success = success;
16385       setSuccessIsSet(true);
16386     }
16387
16388     /**
16389      * Performs a deep copy on <i>other</i>.
16390      */
16391     public setUpdateSource_result(setUpdateSource_result other) {
16392       __isset_bitfield = other.__isset_bitfield;
16393       this.success = other.success;
16394     }
16395
16396     @Override
16397         public setUpdateSource_result deepCopy() {
16398       return new setUpdateSource_result(this);
16399     }
16400
16401     @Override
16402     public void clear() {
16403       setSuccessIsSet(false);
16404       this.success = 0;
16405     }
16406
16407     public int getSuccess() {
16408       return this.success;
16409     }
16410
16411     public setUpdateSource_result setSuccess(int success) {
16412       this.success = success;
16413       setSuccessIsSet(true);
16414       return this;
16415     }
16416
16417     public void unsetSuccess() {
16418       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16419     }
16420
16421     /** Returns true if field success is set (has been assigned a value) and false otherwise */
16422     public boolean isSetSuccess() {
16423       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16424     }
16425
16426     public void setSuccessIsSet(boolean value) {
16427       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
16428     }
16429
16430     @Override
16431         public void setFieldValue(_Fields field, Object value) {
16432       switch (field) {
16433       case SUCCESS:
16434         if (value == null) {
16435           unsetSuccess();
16436         } else {
16437           setSuccess((Integer)value);
16438         }
16439         break;
16440
16441       }
16442     }
16443
16444     @Override
16445         public Object getFieldValue(_Fields field) {
16446       switch (field) {
16447       case SUCCESS:
16448         return Integer.valueOf(getSuccess());
16449
16450       }
16451       throw new IllegalStateException();
16452     }
16453
16454     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16455     @Override
16456         public boolean isSet(_Fields field) {
16457       if (field == null) {
16458         throw new IllegalArgumentException();
16459       }
16460
16461       switch (field) {
16462       case SUCCESS:
16463         return isSetSuccess();
16464       }
16465       throw new IllegalStateException();
16466     }
16467
16468     @Override
16469     public boolean equals(Object that) {
16470       if (that == null) {
16471                 return false;
16472         }
16473       if (that instanceof setUpdateSource_result) {
16474                 return this.equals((setUpdateSource_result)that);
16475         }
16476       return false;
16477     }
16478
16479     public boolean equals(setUpdateSource_result that) {
16480       if (that == null) {
16481                 return false;
16482         }
16483
16484       boolean this_present_success = true;
16485       boolean that_present_success = true;
16486       if (this_present_success || that_present_success) {
16487         if (!(this_present_success && that_present_success)) {
16488                         return false;
16489                 }
16490         if (this.success != that.success) {
16491                         return false;
16492                 }
16493       }
16494
16495       return true;
16496     }
16497
16498     @Override
16499     public int hashCode() {
16500       List<Object> list = new ArrayList<Object>();
16501
16502       boolean present_success = true;
16503       list.add(present_success);
16504       if (present_success)
16505         list.add(success);
16506       return list.hashCode();
16507     }
16508
16509     @Override
16510     public int compareTo(setUpdateSource_result other) {
16511       if (!getClass().equals(other.getClass())) {
16512         return getClass().getName().compareTo(other.getClass().getName());
16513       }
16514
16515       int lastComparison = 0;
16516
16517       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
16518       if (lastComparison != 0) {
16519         return lastComparison;
16520       }
16521       if (isSetSuccess()) {
16522         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
16523         if (lastComparison != 0) {
16524           return lastComparison;
16525         }
16526       }
16527       return 0;
16528     }
16529
16530     @Override
16531         public _Fields fieldForId(int fieldId) {
16532       return _Fields.findByThriftId(fieldId);
16533     }
16534
16535     @Override
16536         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16537       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16538     }
16539
16540     @Override
16541         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16542       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16543       }
16544
16545     @Override
16546     public String toString() {
16547       StringBuilder sb = new StringBuilder("setUpdateSource_result(");
16548       boolean first = true;
16549
16550       sb.append("success:");
16551       sb.append(this.success);
16552       first = false;
16553       sb.append(")");
16554       return sb.toString();
16555     }
16556
16557     public void validate() throws org.apache.thrift.TException {
16558       // check for required fields
16559       // check for sub-struct validity
16560     }
16561
16562     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16563       try {
16564         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16565       } catch (org.apache.thrift.TException te) {
16566         throw new java.io.IOException(te);
16567       }
16568     }
16569
16570     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16571       try {
16572         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16573         __isset_bitfield = 0;
16574         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16575       } catch (org.apache.thrift.TException te) {
16576         throw new java.io.IOException(te);
16577       }
16578     }
16579
16580     private static class setUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
16581       @Override
16582         public setUpdateSource_resultStandardScheme getScheme() {
16583         return new setUpdateSource_resultStandardScheme();
16584       }
16585     }
16586
16587     private static class setUpdateSource_resultStandardScheme extends StandardScheme<setUpdateSource_result> {
16588
16589       @Override
16590         public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
16591         org.apache.thrift.protocol.TField schemeField;
16592         iprot.readStructBegin();
16593         while (true)
16594         {
16595           schemeField = iprot.readFieldBegin();
16596           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16597             break;
16598           }
16599           switch (schemeField.id) {
16600             case 0: // SUCCESS
16601               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16602                 struct.success = iprot.readI32();
16603                 struct.setSuccessIsSet(true);
16604               } else {
16605                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16606               }
16607               break;
16608             default:
16609               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16610           }
16611           iprot.readFieldEnd();
16612         }
16613         iprot.readStructEnd();
16614
16615         // check for required fields of primitive type, which can't be checked in the validate method
16616         struct.validate();
16617       }
16618
16619       @Override
16620         public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
16621         struct.validate();
16622
16623         oprot.writeStructBegin(STRUCT_DESC);
16624         if (struct.isSetSuccess()) {
16625           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16626           oprot.writeI32(struct.success);
16627           oprot.writeFieldEnd();
16628         }
16629         oprot.writeFieldStop();
16630         oprot.writeStructEnd();
16631       }
16632
16633     }
16634
16635     private static class setUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
16636       @Override
16637         public setUpdateSource_resultTupleScheme getScheme() {
16638         return new setUpdateSource_resultTupleScheme();
16639       }
16640     }
16641
16642     private static class setUpdateSource_resultTupleScheme extends TupleScheme<setUpdateSource_result> {
16643
16644       @Override
16645       public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
16646         TTupleProtocol oprot = (TTupleProtocol) prot;
16647         BitSet optionals = new BitSet();
16648         if (struct.isSetSuccess()) {
16649           optionals.set(0);
16650         }
16651         oprot.writeBitSet(optionals, 1);
16652         if (struct.isSetSuccess()) {
16653           oprot.writeI32(struct.success);
16654         }
16655       }
16656
16657       @Override
16658       public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
16659         TTupleProtocol iprot = (TTupleProtocol) prot;
16660         BitSet incoming = iprot.readBitSet(1);
16661         if (incoming.get(0)) {
16662           struct.success = iprot.readI32();
16663           struct.setSuccessIsSet(true);
16664         }
16665       }
16666     }
16667
16668   }
16669
16670   public static class unsetUpdateSource_args implements org.apache.thrift.TBase<unsetUpdateSource_args, unsetUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_args>   {
16671     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_args");
16672
16673     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);
16674
16675     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16676     static {
16677       schemes.put(StandardScheme.class, new unsetUpdateSource_argsStandardSchemeFactory());
16678       schemes.put(TupleScheme.class, new unsetUpdateSource_argsTupleSchemeFactory());
16679     }
16680
16681     public String peerIp; // required
16682
16683     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16684     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16685       PEER_IP((short)1, "peerIp");
16686
16687       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16688
16689       static {
16690         for (_Fields field : EnumSet.allOf(_Fields.class)) {
16691           byName.put(field.getFieldName(), field);
16692         }
16693       }
16694
16695       /**
16696        * Find the _Fields constant that matches fieldId, or null if its not found.
16697        */
16698       public static _Fields findByThriftId(int fieldId) {
16699         switch(fieldId) {
16700           case 1: // PEER_IP
16701             return PEER_IP;
16702           default:
16703             return null;
16704         }
16705       }
16706
16707       /**
16708        * Find the _Fields constant that matches fieldId, throwing an exception
16709        * if it is not found.
16710        */
16711       public static _Fields findByThriftIdOrThrow(int fieldId) {
16712         _Fields fields = findByThriftId(fieldId);
16713         if (fields == null) {
16714                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16715                 }
16716         return fields;
16717       }
16718
16719       /**
16720        * Find the _Fields constant that matches name, or null if its not found.
16721        */
16722       public static _Fields findByName(String name) {
16723         return byName.get(name);
16724       }
16725
16726       private final short _thriftId;
16727       private final String _fieldName;
16728
16729       _Fields(short thriftId, String fieldName) {
16730         _thriftId = thriftId;
16731         _fieldName = fieldName;
16732       }
16733
16734       @Override
16735         public short getThriftFieldId() {
16736         return _thriftId;
16737       }
16738
16739       @Override
16740         public String getFieldName() {
16741         return _fieldName;
16742       }
16743     }
16744
16745     // isset id assignments
16746     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16747     static {
16748       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16749       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
16750           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16751       metaDataMap = Collections.unmodifiableMap(tmpMap);
16752       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_args.class, metaDataMap);
16753     }
16754
16755     public unsetUpdateSource_args() {
16756     }
16757
16758     public unsetUpdateSource_args(
16759       String peerIp)
16760     {
16761       this();
16762       this.peerIp = peerIp;
16763     }
16764
16765     /**
16766      * Performs a deep copy on <i>other</i>.
16767      */
16768     public unsetUpdateSource_args(unsetUpdateSource_args other) {
16769       if (other.isSetPeerIp()) {
16770         this.peerIp = other.peerIp;
16771       }
16772     }
16773
16774     @Override
16775         public unsetUpdateSource_args deepCopy() {
16776       return new unsetUpdateSource_args(this);
16777     }
16778
16779     @Override
16780     public void clear() {
16781       this.peerIp = null;
16782     }
16783
16784     public String getPeerIp() {
16785       return this.peerIp;
16786     }
16787
16788     public unsetUpdateSource_args setPeerIp(String peerIp) {
16789       this.peerIp = peerIp;
16790       return this;
16791     }
16792
16793     public void unsetPeerIp() {
16794       this.peerIp = null;
16795     }
16796
16797     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
16798     public boolean isSetPeerIp() {
16799       return this.peerIp != null;
16800     }
16801
16802     public void setPeerIpIsSet(boolean value) {
16803       if (!value) {
16804         this.peerIp = null;
16805       }
16806     }
16807
16808     @Override
16809         public void setFieldValue(_Fields field, Object value) {
16810       switch (field) {
16811       case PEER_IP:
16812         if (value == null) {
16813           unsetPeerIp();
16814         } else {
16815           setPeerIp((String)value);
16816         }
16817         break;
16818
16819       }
16820     }
16821
16822     @Override
16823         public Object getFieldValue(_Fields field) {
16824       switch (field) {
16825       case PEER_IP:
16826         return getPeerIp();
16827
16828       }
16829       throw new IllegalStateException();
16830     }
16831
16832     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16833     @Override
16834         public boolean isSet(_Fields field) {
16835       if (field == null) {
16836         throw new IllegalArgumentException();
16837       }
16838
16839       switch (field) {
16840       case PEER_IP:
16841         return isSetPeerIp();
16842       }
16843       throw new IllegalStateException();
16844     }
16845
16846     @Override
16847     public boolean equals(Object that) {
16848       if (that == null) {
16849                 return false;
16850         }
16851       if (that instanceof unsetUpdateSource_args) {
16852                 return this.equals((unsetUpdateSource_args)that);
16853         }
16854       return false;
16855     }
16856
16857     public boolean equals(unsetUpdateSource_args that) {
16858       if (that == null) {
16859                 return false;
16860         }
16861
16862       boolean this_present_peerIp = true && this.isSetPeerIp();
16863       boolean that_present_peerIp = true && that.isSetPeerIp();
16864       if (this_present_peerIp || that_present_peerIp) {
16865         if (!(this_present_peerIp && that_present_peerIp)) {
16866                         return false;
16867                 }
16868         if (!this.peerIp.equals(that.peerIp)) {
16869                         return false;
16870                 }
16871       }
16872
16873       return true;
16874     }
16875
16876     @Override
16877     public int hashCode() {
16878       List<Object> list = new ArrayList<Object>();
16879
16880       boolean present_peerIp = true && (isSetPeerIp());
16881       list.add(present_peerIp);
16882       if (present_peerIp)
16883         list.add(peerIp);
16884       return list.hashCode();
16885     }
16886
16887     @Override
16888     public int compareTo(unsetUpdateSource_args other) {
16889       if (!getClass().equals(other.getClass())) {
16890         return getClass().getName().compareTo(other.getClass().getName());
16891       }
16892
16893       int lastComparison = 0;
16894
16895       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
16896       if (lastComparison != 0) {
16897         return lastComparison;
16898       }
16899       if (isSetPeerIp()) {
16900         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
16901         if (lastComparison != 0) {
16902           return lastComparison;
16903         }
16904       }
16905       return 0;
16906     }
16907
16908     @Override
16909         public _Fields fieldForId(int fieldId) {
16910       return _Fields.findByThriftId(fieldId);
16911     }
16912
16913     @Override
16914         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16915       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16916     }
16917
16918     @Override
16919         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16920       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16921     }
16922
16923     @Override
16924     public String toString() {
16925       StringBuilder sb = new StringBuilder("unsetUpdateSource_args(");
16926       boolean first = true;
16927
16928       sb.append("peerIp:");
16929       if (this.peerIp == null) {
16930         sb.append("null");
16931       } else {
16932         sb.append(this.peerIp);
16933       }
16934       first = false;
16935       sb.append(")");
16936       return sb.toString();
16937     }
16938
16939     public void validate() throws org.apache.thrift.TException {
16940       // check for required fields
16941       // check for sub-struct validity
16942     }
16943
16944     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16945       try {
16946         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16947       } catch (org.apache.thrift.TException te) {
16948         throw new java.io.IOException(te);
16949       }
16950     }
16951
16952     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16953       try {
16954         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16955       } catch (org.apache.thrift.TException te) {
16956         throw new java.io.IOException(te);
16957       }
16958     }
16959
16960     private static class unsetUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
16961       @Override
16962         public unsetUpdateSource_argsStandardScheme getScheme() {
16963         return new unsetUpdateSource_argsStandardScheme();
16964       }
16965     }
16966
16967     private static class unsetUpdateSource_argsStandardScheme extends StandardScheme<unsetUpdateSource_args> {
16968
16969       @Override
16970         public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
16971         org.apache.thrift.protocol.TField schemeField;
16972         iprot.readStructBegin();
16973         while (true)
16974         {
16975           schemeField = iprot.readFieldBegin();
16976           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16977             break;
16978           }
16979           switch (schemeField.id) {
16980             case 1: // PEER_IP
16981               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16982                 struct.peerIp = iprot.readString();
16983                 struct.setPeerIpIsSet(true);
16984               } else {
16985                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16986               }
16987               break;
16988             default:
16989               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16990           }
16991           iprot.readFieldEnd();
16992         }
16993         iprot.readStructEnd();
16994
16995         // check for required fields of primitive type, which can't be checked in the validate method
16996         struct.validate();
16997       }
16998
16999       @Override
17000         public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
17001         struct.validate();
17002
17003         oprot.writeStructBegin(STRUCT_DESC);
17004         if (struct.peerIp != null) {
17005           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
17006           oprot.writeString(struct.peerIp);
17007           oprot.writeFieldEnd();
17008         }
17009         oprot.writeFieldStop();
17010         oprot.writeStructEnd();
17011       }
17012
17013     }
17014
17015     private static class unsetUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
17016       @Override
17017         public unsetUpdateSource_argsTupleScheme getScheme() {
17018         return new unsetUpdateSource_argsTupleScheme();
17019       }
17020     }
17021
17022     private static class unsetUpdateSource_argsTupleScheme extends TupleScheme<unsetUpdateSource_args> {
17023
17024       @Override
17025       public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
17026         TTupleProtocol oprot = (TTupleProtocol) prot;
17027         BitSet optionals = new BitSet();
17028         if (struct.isSetPeerIp()) {
17029           optionals.set(0);
17030         }
17031         oprot.writeBitSet(optionals, 1);
17032         if (struct.isSetPeerIp()) {
17033           oprot.writeString(struct.peerIp);
17034         }
17035       }
17036
17037       @Override
17038       public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
17039         TTupleProtocol iprot = (TTupleProtocol) prot;
17040         BitSet incoming = iprot.readBitSet(1);
17041         if (incoming.get(0)) {
17042           struct.peerIp = iprot.readString();
17043           struct.setPeerIpIsSet(true);
17044         }
17045       }
17046     }
17047
17048   }
17049
17050   public static class unsetUpdateSource_result implements org.apache.thrift.TBase<unsetUpdateSource_result, unsetUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_result>   {
17051     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_result");
17052
17053     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);
17054
17055     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17056     static {
17057       schemes.put(StandardScheme.class, new unsetUpdateSource_resultStandardSchemeFactory());
17058       schemes.put(TupleScheme.class, new unsetUpdateSource_resultTupleSchemeFactory());
17059     }
17060
17061     public int success; // required
17062
17063     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17064     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17065       SUCCESS((short)0, "success");
17066
17067       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17068
17069       static {
17070         for (_Fields field : EnumSet.allOf(_Fields.class)) {
17071           byName.put(field.getFieldName(), field);
17072         }
17073       }
17074
17075       /**
17076        * Find the _Fields constant that matches fieldId, or null if its not found.
17077        */
17078       public static _Fields findByThriftId(int fieldId) {
17079         switch(fieldId) {
17080           case 0: // SUCCESS
17081             return SUCCESS;
17082           default:
17083             return null;
17084         }
17085       }
17086
17087       /**
17088        * Find the _Fields constant that matches fieldId, throwing an exception
17089        * if it is not found.
17090        */
17091       public static _Fields findByThriftIdOrThrow(int fieldId) {
17092         _Fields fields = findByThriftId(fieldId);
17093         if (fields == null) {
17094                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17095                 }
17096         return fields;
17097       }
17098
17099       /**
17100        * Find the _Fields constant that matches name, or null if its not found.
17101        */
17102       public static _Fields findByName(String name) {
17103         return byName.get(name);
17104       }
17105
17106       private final short _thriftId;
17107       private final String _fieldName;
17108
17109       _Fields(short thriftId, String fieldName) {
17110         _thriftId = thriftId;
17111         _fieldName = fieldName;
17112       }
17113
17114       @Override
17115         public short getThriftFieldId() {
17116         return _thriftId;
17117       }
17118
17119       @Override
17120         public String getFieldName() {
17121         return _fieldName;
17122       }
17123     }
17124
17125     // isset id assignments
17126     private static final int __SUCCESS_ISSET_ID = 0;
17127     private byte __isset_bitfield = 0;
17128     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17129     static {
17130       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17131       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
17132           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
17133       metaDataMap = Collections.unmodifiableMap(tmpMap);
17134       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_result.class, metaDataMap);
17135     }
17136
17137     public unsetUpdateSource_result() {
17138     }
17139
17140     public unsetUpdateSource_result(
17141       int success)
17142     {
17143       this();
17144       this.success = success;
17145       setSuccessIsSet(true);
17146     }
17147
17148     /**
17149      * Performs a deep copy on <i>other</i>.
17150      */
17151     public unsetUpdateSource_result(unsetUpdateSource_result other) {
17152       __isset_bitfield = other.__isset_bitfield;
17153       this.success = other.success;
17154     }
17155
17156     @Override
17157         public unsetUpdateSource_result deepCopy() {
17158       return new unsetUpdateSource_result(this);
17159     }
17160
17161     @Override
17162     public void clear() {
17163       setSuccessIsSet(false);
17164       this.success = 0;
17165     }
17166
17167     public int getSuccess() {
17168       return this.success;
17169     }
17170
17171     public unsetUpdateSource_result setSuccess(int success) {
17172       this.success = success;
17173       setSuccessIsSet(true);
17174       return this;
17175     }
17176
17177     public void unsetSuccess() {
17178       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
17179     }
17180
17181     /** Returns true if field success is set (has been assigned a value) and false otherwise */
17182     public boolean isSetSuccess() {
17183       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
17184     }
17185
17186     public void setSuccessIsSet(boolean value) {
17187       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
17188     }
17189
17190     @Override
17191         public void setFieldValue(_Fields field, Object value) {
17192       switch (field) {
17193       case SUCCESS:
17194         if (value == null) {
17195           unsetSuccess();
17196         } else {
17197           setSuccess((Integer)value);
17198         }
17199         break;
17200
17201       }
17202     }
17203
17204     @Override
17205         public Object getFieldValue(_Fields field) {
17206       switch (field) {
17207       case SUCCESS:
17208         return Integer.valueOf(getSuccess());
17209
17210       }
17211       throw new IllegalStateException();
17212     }
17213
17214     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17215     @Override
17216         public boolean isSet(_Fields field) {
17217       if (field == null) {
17218         throw new IllegalArgumentException();
17219       }
17220
17221       switch (field) {
17222       case SUCCESS:
17223         return isSetSuccess();
17224       }
17225       throw new IllegalStateException();
17226     }
17227
17228     @Override
17229     public boolean equals(Object that) {
17230       if (that == null) {
17231                 return false;
17232         }
17233       if (that instanceof unsetUpdateSource_result) {
17234                 return this.equals((unsetUpdateSource_result)that);
17235         }
17236       return false;
17237     }
17238
17239     public boolean equals(unsetUpdateSource_result that) {
17240       if (that == null) {
17241                 return false;
17242         }
17243
17244       boolean this_present_success = true;
17245       boolean that_present_success = true;
17246       if (this_present_success || that_present_success) {
17247         if (!(this_present_success && that_present_success)) {
17248                         return false;
17249                 }
17250         if (this.success != that.success) {
17251                         return false;
17252                 }
17253       }
17254
17255       return true;
17256     }
17257
17258     @Override
17259     public int hashCode() {
17260       List<Object> list = new ArrayList<Object>();
17261
17262       boolean present_success = true;
17263       list.add(present_success);
17264       if (present_success)
17265         list.add(success);
17266       return list.hashCode();
17267     }
17268
17269     @Override
17270     public int compareTo(unsetUpdateSource_result other) {
17271       if (!getClass().equals(other.getClass())) {
17272         return getClass().getName().compareTo(other.getClass().getName());
17273       }
17274
17275       int lastComparison = 0;
17276
17277       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
17278       if (lastComparison != 0) {
17279         return lastComparison;
17280       }
17281       if (isSetSuccess()) {
17282         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
17283         if (lastComparison != 0) {
17284           return lastComparison;
17285         }
17286       }
17287       return 0;
17288     }
17289
17290     @Override
17291         public _Fields fieldForId(int fieldId) {
17292       return _Fields.findByThriftId(fieldId);
17293     }
17294
17295     @Override
17296         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17297       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17298     }
17299
17300     @Override
17301         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17302       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17303       }
17304
17305     @Override
17306     public String toString() {
17307       StringBuilder sb = new StringBuilder("unsetUpdateSource_result(");
17308       boolean first = true;
17309
17310       sb.append("success:");
17311       sb.append(this.success);
17312       first = false;
17313       sb.append(")");
17314       return sb.toString();
17315     }
17316
17317     public void validate() throws org.apache.thrift.TException {
17318       // check for required fields
17319       // check for sub-struct validity
17320     }
17321
17322     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17323       try {
17324         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17325       } catch (org.apache.thrift.TException te) {
17326         throw new java.io.IOException(te);
17327       }
17328     }
17329
17330     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17331       try {
17332         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17333         __isset_bitfield = 0;
17334         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17335       } catch (org.apache.thrift.TException te) {
17336         throw new java.io.IOException(te);
17337       }
17338     }
17339
17340     private static class unsetUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
17341       @Override
17342         public unsetUpdateSource_resultStandardScheme getScheme() {
17343         return new unsetUpdateSource_resultStandardScheme();
17344       }
17345     }
17346
17347     private static class unsetUpdateSource_resultStandardScheme extends StandardScheme<unsetUpdateSource_result> {
17348
17349       @Override
17350         public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
17351         org.apache.thrift.protocol.TField schemeField;
17352         iprot.readStructBegin();
17353         while (true)
17354         {
17355           schemeField = iprot.readFieldBegin();
17356           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17357             break;
17358           }
17359           switch (schemeField.id) {
17360             case 0: // SUCCESS
17361               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17362                 struct.success = iprot.readI32();
17363                 struct.setSuccessIsSet(true);
17364               } else {
17365                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17366               }
17367               break;
17368             default:
17369               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17370           }
17371           iprot.readFieldEnd();
17372         }
17373         iprot.readStructEnd();
17374
17375         // check for required fields of primitive type, which can't be checked in the validate method
17376         struct.validate();
17377       }
17378
17379       @Override
17380         public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
17381         struct.validate();
17382
17383         oprot.writeStructBegin(STRUCT_DESC);
17384         if (struct.isSetSuccess()) {
17385           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17386           oprot.writeI32(struct.success);
17387           oprot.writeFieldEnd();
17388         }
17389         oprot.writeFieldStop();
17390         oprot.writeStructEnd();
17391       }
17392
17393     }
17394
17395     private static class unsetUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
17396       @Override
17397         public unsetUpdateSource_resultTupleScheme getScheme() {
17398         return new unsetUpdateSource_resultTupleScheme();
17399       }
17400     }
17401
17402     private static class unsetUpdateSource_resultTupleScheme extends TupleScheme<unsetUpdateSource_result> {
17403
17404       @Override
17405       public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
17406         TTupleProtocol oprot = (TTupleProtocol) prot;
17407         BitSet optionals = new BitSet();
17408         if (struct.isSetSuccess()) {
17409           optionals.set(0);
17410         }
17411         oprot.writeBitSet(optionals, 1);
17412         if (struct.isSetSuccess()) {
17413           oprot.writeI32(struct.success);
17414         }
17415       }
17416
17417       @Override
17418       public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
17419         TTupleProtocol iprot = (TTupleProtocol) prot;
17420         BitSet incoming = iprot.readBitSet(1);
17421         if (incoming.get(0)) {
17422           struct.success = iprot.readI32();
17423           struct.setSuccessIsSet(true);
17424         }
17425       }
17426     }
17427
17428   }
17429
17430   public static class enableAddressFamily_args implements org.apache.thrift.TBase<enableAddressFamily_args, enableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_args>   {
17431     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_args");
17432
17433     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);
17434     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);
17435     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);
17436
17437     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17438     static {
17439       schemes.put(StandardScheme.class, new enableAddressFamily_argsStandardSchemeFactory());
17440       schemes.put(TupleScheme.class, new enableAddressFamily_argsTupleSchemeFactory());
17441     }
17442
17443     public String peerIp; // required
17444     /**
17445      *
17446      * @see af_afi
17447      */
17448     public af_afi afi; // required
17449     /**
17450      *
17451      * @see af_safi
17452      */
17453     public af_safi safi; // required
17454
17455     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17456     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17457       PEER_IP((short)1, "peerIp"),
17458       /**
17459        *
17460        * @see af_afi
17461        */
17462       AFI((short)2, "afi"),
17463       /**
17464        *
17465        * @see af_safi
17466        */
17467       SAFI((short)3, "safi");
17468
17469       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17470
17471       static {
17472         for (_Fields field : EnumSet.allOf(_Fields.class)) {
17473           byName.put(field.getFieldName(), field);
17474         }
17475       }
17476
17477       /**
17478        * Find the _Fields constant that matches fieldId, or null if its not found.
17479        */
17480       public static _Fields findByThriftId(int fieldId) {
17481         switch(fieldId) {
17482           case 1: // PEER_IP
17483             return PEER_IP;
17484           case 2: // AFI
17485             return AFI;
17486           case 3: // SAFI
17487             return SAFI;
17488           default:
17489             return null;
17490         }
17491       }
17492
17493       /**
17494        * Find the _Fields constant that matches fieldId, throwing an exception
17495        * if it is not found.
17496        */
17497       public static _Fields findByThriftIdOrThrow(int fieldId) {
17498         _Fields fields = findByThriftId(fieldId);
17499         if (fields == null) {
17500                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17501                 }
17502         return fields;
17503       }
17504
17505       /**
17506        * Find the _Fields constant that matches name, or null if its not found.
17507        */
17508       public static _Fields findByName(String name) {
17509         return byName.get(name);
17510       }
17511
17512       private final short _thriftId;
17513       private final String _fieldName;
17514
17515       _Fields(short thriftId, String fieldName) {
17516         _thriftId = thriftId;
17517         _fieldName = fieldName;
17518       }
17519
17520       @Override
17521         public short getThriftFieldId() {
17522         return _thriftId;
17523       }
17524
17525       @Override
17526         public String getFieldName() {
17527         return _fieldName;
17528       }
17529     }
17530
17531     // isset id assignments
17532     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17533     static {
17534       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17535       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
17536           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17537       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
17538           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
17539       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
17540           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
17541       metaDataMap = Collections.unmodifiableMap(tmpMap);
17542       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_args.class, metaDataMap);
17543     }
17544
17545     public enableAddressFamily_args() {
17546     }
17547
17548     public enableAddressFamily_args(
17549       String peerIp,
17550       af_afi afi,
17551       af_safi safi)
17552     {
17553       this();
17554       this.peerIp = peerIp;
17555       this.afi = afi;
17556       this.safi = safi;
17557     }
17558
17559     /**
17560      * Performs a deep copy on <i>other</i>.
17561      */
17562     public enableAddressFamily_args(enableAddressFamily_args other) {
17563       if (other.isSetPeerIp()) {
17564         this.peerIp = other.peerIp;
17565       }
17566       if (other.isSetAfi()) {
17567         this.afi = other.afi;
17568       }
17569       if (other.isSetSafi()) {
17570         this.safi = other.safi;
17571       }
17572     }
17573
17574     @Override
17575         public enableAddressFamily_args deepCopy() {
17576       return new enableAddressFamily_args(this);
17577     }
17578
17579     @Override
17580     public void clear() {
17581       this.peerIp = null;
17582       this.afi = null;
17583       this.safi = null;
17584     }
17585
17586     public String getPeerIp() {
17587       return this.peerIp;
17588     }
17589
17590     public enableAddressFamily_args setPeerIp(String peerIp) {
17591       this.peerIp = peerIp;
17592       return this;
17593     }
17594
17595     public void unsetPeerIp() {
17596       this.peerIp = null;
17597     }
17598
17599     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
17600     public boolean isSetPeerIp() {
17601       return this.peerIp != null;
17602     }
17603
17604     public void setPeerIpIsSet(boolean value) {
17605       if (!value) {
17606         this.peerIp = null;
17607       }
17608     }
17609
17610     /**
17611      *
17612      * @see af_afi
17613      */
17614     public af_afi getAfi() {
17615       return this.afi;
17616     }
17617
17618     /**
17619      *
17620      * @see af_afi
17621      */
17622     public enableAddressFamily_args setAfi(af_afi afi) {
17623       this.afi = afi;
17624       return this;
17625     }
17626
17627     public void unsetAfi() {
17628       this.afi = null;
17629     }
17630
17631     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
17632     public boolean isSetAfi() {
17633       return this.afi != null;
17634     }
17635
17636     public void setAfiIsSet(boolean value) {
17637       if (!value) {
17638         this.afi = null;
17639       }
17640     }
17641
17642     /**
17643      *
17644      * @see af_safi
17645      */
17646     public af_safi getSafi() {
17647       return this.safi;
17648     }
17649
17650     /**
17651      *
17652      * @see af_safi
17653      */
17654     public enableAddressFamily_args setSafi(af_safi safi) {
17655       this.safi = safi;
17656       return this;
17657     }
17658
17659     public void unsetSafi() {
17660       this.safi = null;
17661     }
17662
17663     /** Returns true if field safi is set (has been assigned a value) and false otherwise */
17664     public boolean isSetSafi() {
17665       return this.safi != null;
17666     }
17667
17668     public void setSafiIsSet(boolean value) {
17669       if (!value) {
17670         this.safi = null;
17671       }
17672     }
17673
17674     @Override
17675         public void setFieldValue(_Fields field, Object value) {
17676       switch (field) {
17677       case PEER_IP:
17678         if (value == null) {
17679           unsetPeerIp();
17680         } else {
17681           setPeerIp((String)value);
17682         }
17683         break;
17684
17685       case AFI:
17686         if (value == null) {
17687           unsetAfi();
17688         } else {
17689           setAfi((af_afi)value);
17690         }
17691         break;
17692
17693       case SAFI:
17694         if (value == null) {
17695           unsetSafi();
17696         } else {
17697           setSafi((af_safi)value);
17698         }
17699         break;
17700
17701       }
17702     }
17703
17704     @Override
17705         public Object getFieldValue(_Fields field) {
17706       switch (field) {
17707       case PEER_IP:
17708         return getPeerIp();
17709
17710       case AFI:
17711         return getAfi();
17712
17713       case SAFI:
17714         return getSafi();
17715
17716       }
17717       throw new IllegalStateException();
17718     }
17719
17720     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17721     @Override
17722         public boolean isSet(_Fields field) {
17723       if (field == null) {
17724         throw new IllegalArgumentException();
17725       }
17726
17727       switch (field) {
17728       case PEER_IP:
17729         return isSetPeerIp();
17730       case AFI:
17731         return isSetAfi();
17732       case SAFI:
17733         return isSetSafi();
17734       }
17735       throw new IllegalStateException();
17736     }
17737
17738     @Override
17739     public boolean equals(Object that) {
17740       if (that == null) {
17741                 return false;
17742         }
17743       if (that instanceof enableAddressFamily_args) {
17744                 return this.equals((enableAddressFamily_args)that);
17745         }
17746       return false;
17747     }
17748
17749     public boolean equals(enableAddressFamily_args that) {
17750       if (that == null) {
17751                 return false;
17752         }
17753
17754       boolean this_present_peerIp = true && this.isSetPeerIp();
17755       boolean that_present_peerIp = true && that.isSetPeerIp();
17756       if (this_present_peerIp || that_present_peerIp) {
17757         if (!(this_present_peerIp && that_present_peerIp)) {
17758                         return false;
17759                 }
17760         if (!this.peerIp.equals(that.peerIp)) {
17761                         return false;
17762                 }
17763       }
17764
17765       boolean this_present_afi = true && this.isSetAfi();
17766       boolean that_present_afi = true && that.isSetAfi();
17767       if (this_present_afi || that_present_afi) {
17768         if (!(this_present_afi && that_present_afi)) {
17769                         return false;
17770                 }
17771         if (!this.afi.equals(that.afi)) {
17772                         return false;
17773                 }
17774       }
17775
17776       boolean this_present_safi = true && this.isSetSafi();
17777       boolean that_present_safi = true && that.isSetSafi();
17778       if (this_present_safi || that_present_safi) {
17779         if (!(this_present_safi && that_present_safi)) {
17780                         return false;
17781                 }
17782         if (!this.safi.equals(that.safi)) {
17783                         return false;
17784                 }
17785       }
17786
17787       return true;
17788     }
17789
17790     @Override
17791     public int hashCode() {
17792       List<Object> list = new ArrayList<Object>();
17793
17794       boolean present_peerIp = true && (isSetPeerIp());
17795       list.add(present_peerIp);
17796       if (present_peerIp)
17797         list.add(peerIp);
17798       boolean present_afi = true && (isSetAfi());
17799       list.add(present_afi);
17800       if (present_afi)
17801         list.add(afi.getValue());
17802       boolean present_safi = true && (isSetSafi());
17803       list.add(present_safi);
17804       if (present_safi)
17805         list.add(safi.getValue());
17806       return list.hashCode();
17807     }
17808
17809     @Override
17810     public int compareTo(enableAddressFamily_args other) {
17811       if (!getClass().equals(other.getClass())) {
17812         return getClass().getName().compareTo(other.getClass().getName());
17813       }
17814
17815       int lastComparison = 0;
17816
17817       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
17818       if (lastComparison != 0) {
17819         return lastComparison;
17820       }
17821       if (isSetPeerIp()) {
17822         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
17823         if (lastComparison != 0) {
17824           return lastComparison;
17825         }
17826       }
17827       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
17828       if (lastComparison != 0) {
17829         return lastComparison;
17830       }
17831       if (isSetAfi()) {
17832         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
17833         if (lastComparison != 0) {
17834           return lastComparison;
17835         }
17836       }
17837       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
17838       if (lastComparison != 0) {
17839         return lastComparison;
17840       }
17841       if (isSetSafi()) {
17842         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
17843         if (lastComparison != 0) {
17844           return lastComparison;
17845         }
17846       }
17847       return 0;
17848     }
17849
17850     @Override
17851         public _Fields fieldForId(int fieldId) {
17852       return _Fields.findByThriftId(fieldId);
17853     }
17854
17855     @Override
17856         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17857       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17858     }
17859
17860     @Override
17861         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17862       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17863     }
17864
17865     @Override
17866     public String toString() {
17867       StringBuilder sb = new StringBuilder("enableAddressFamily_args(");
17868       boolean first = true;
17869
17870       sb.append("peerIp:");
17871       if (this.peerIp == null) {
17872         sb.append("null");
17873       } else {
17874         sb.append(this.peerIp);
17875       }
17876       first = false;
17877       if (!first) {
17878                 sb.append(", ");
17879         }
17880       sb.append("afi:");
17881       if (this.afi == null) {
17882         sb.append("null");
17883       } else {
17884         sb.append(this.afi);
17885       }
17886       first = false;
17887       if (!first) {
17888                 sb.append(", ");
17889         }
17890       sb.append("safi:");
17891       if (this.safi == null) {
17892         sb.append("null");
17893       } else {
17894         sb.append(this.safi);
17895       }
17896       first = false;
17897       sb.append(")");
17898       return sb.toString();
17899     }
17900
17901     public void validate() throws org.apache.thrift.TException {
17902       // check for required fields
17903       // check for sub-struct validity
17904     }
17905
17906     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17907       try {
17908         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17909       } catch (org.apache.thrift.TException te) {
17910         throw new java.io.IOException(te);
17911       }
17912     }
17913
17914     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17915       try {
17916         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17917       } catch (org.apache.thrift.TException te) {
17918         throw new java.io.IOException(te);
17919       }
17920     }
17921
17922     private static class enableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
17923       @Override
17924         public enableAddressFamily_argsStandardScheme getScheme() {
17925         return new enableAddressFamily_argsStandardScheme();
17926       }
17927     }
17928
17929     private static class enableAddressFamily_argsStandardScheme extends StandardScheme<enableAddressFamily_args> {
17930
17931       @Override
17932         public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
17933         org.apache.thrift.protocol.TField schemeField;
17934         iprot.readStructBegin();
17935         while (true)
17936         {
17937           schemeField = iprot.readFieldBegin();
17938           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17939             break;
17940           }
17941           switch (schemeField.id) {
17942             case 1: // PEER_IP
17943               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
17944                 struct.peerIp = iprot.readString();
17945                 struct.setPeerIpIsSet(true);
17946               } else {
17947                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17948               }
17949               break;
17950             case 2: // AFI
17951               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17952                 struct.afi = af_afi.findByValue(iprot.readI32());
17953                 struct.setAfiIsSet(true);
17954               } else {
17955                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17956               }
17957               break;
17958             case 3: // SAFI
17959               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17960                 struct.safi = af_safi.findByValue(iprot.readI32());
17961                 struct.setSafiIsSet(true);
17962               } else {
17963                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17964               }
17965               break;
17966             default:
17967               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17968           }
17969           iprot.readFieldEnd();
17970         }
17971         iprot.readStructEnd();
17972
17973         // check for required fields of primitive type, which can't be checked in the validate method
17974         struct.validate();
17975       }
17976
17977       @Override
17978         public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
17979         struct.validate();
17980
17981         oprot.writeStructBegin(STRUCT_DESC);
17982         if (struct.peerIp != null) {
17983           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
17984           oprot.writeString(struct.peerIp);
17985           oprot.writeFieldEnd();
17986         }
17987         if (struct.afi != null) {
17988           oprot.writeFieldBegin(AFI_FIELD_DESC);
17989           oprot.writeI32(struct.afi.getValue());
17990           oprot.writeFieldEnd();
17991         }
17992         if (struct.safi != null) {
17993           oprot.writeFieldBegin(SAFI_FIELD_DESC);
17994           oprot.writeI32(struct.safi.getValue());
17995           oprot.writeFieldEnd();
17996         }
17997         oprot.writeFieldStop();
17998         oprot.writeStructEnd();
17999       }
18000
18001     }
18002
18003     private static class enableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
18004       @Override
18005         public enableAddressFamily_argsTupleScheme getScheme() {
18006         return new enableAddressFamily_argsTupleScheme();
18007       }
18008     }
18009
18010     private static class enableAddressFamily_argsTupleScheme extends TupleScheme<enableAddressFamily_args> {
18011
18012       @Override
18013       public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
18014         TTupleProtocol oprot = (TTupleProtocol) prot;
18015         BitSet optionals = new BitSet();
18016         if (struct.isSetPeerIp()) {
18017           optionals.set(0);
18018         }
18019         if (struct.isSetAfi()) {
18020           optionals.set(1);
18021         }
18022         if (struct.isSetSafi()) {
18023           optionals.set(2);
18024         }
18025         oprot.writeBitSet(optionals, 3);
18026         if (struct.isSetPeerIp()) {
18027           oprot.writeString(struct.peerIp);
18028         }
18029         if (struct.isSetAfi()) {
18030           oprot.writeI32(struct.afi.getValue());
18031         }
18032         if (struct.isSetSafi()) {
18033           oprot.writeI32(struct.safi.getValue());
18034         }
18035       }
18036
18037       @Override
18038       public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
18039         TTupleProtocol iprot = (TTupleProtocol) prot;
18040         BitSet incoming = iprot.readBitSet(3);
18041         if (incoming.get(0)) {
18042           struct.peerIp = iprot.readString();
18043           struct.setPeerIpIsSet(true);
18044         }
18045         if (incoming.get(1)) {
18046           struct.afi = af_afi.findByValue(iprot.readI32());
18047           struct.setAfiIsSet(true);
18048         }
18049         if (incoming.get(2)) {
18050           struct.safi = af_safi.findByValue(iprot.readI32());
18051           struct.setSafiIsSet(true);
18052         }
18053       }
18054     }
18055
18056   }
18057
18058   public static class enableAddressFamily_result implements org.apache.thrift.TBase<enableAddressFamily_result, enableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_result>   {
18059     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_result");
18060
18061     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);
18062
18063     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18064     static {
18065       schemes.put(StandardScheme.class, new enableAddressFamily_resultStandardSchemeFactory());
18066       schemes.put(TupleScheme.class, new enableAddressFamily_resultTupleSchemeFactory());
18067     }
18068
18069     public int success; // required
18070
18071     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18072     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18073       SUCCESS((short)0, "success");
18074
18075       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18076
18077       static {
18078         for (_Fields field : EnumSet.allOf(_Fields.class)) {
18079           byName.put(field.getFieldName(), field);
18080         }
18081       }
18082
18083       /**
18084        * Find the _Fields constant that matches fieldId, or null if its not found.
18085        */
18086       public static _Fields findByThriftId(int fieldId) {
18087         switch(fieldId) {
18088           case 0: // SUCCESS
18089             return SUCCESS;
18090           default:
18091             return null;
18092         }
18093       }
18094
18095       /**
18096        * Find the _Fields constant that matches fieldId, throwing an exception
18097        * if it is not found.
18098        */
18099       public static _Fields findByThriftIdOrThrow(int fieldId) {
18100         _Fields fields = findByThriftId(fieldId);
18101         if (fields == null) {
18102                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18103                 }
18104         return fields;
18105       }
18106
18107       /**
18108        * Find the _Fields constant that matches name, or null if its not found.
18109        */
18110       public static _Fields findByName(String name) {
18111         return byName.get(name);
18112       }
18113
18114       private final short _thriftId;
18115       private final String _fieldName;
18116
18117       _Fields(short thriftId, String fieldName) {
18118         _thriftId = thriftId;
18119         _fieldName = fieldName;
18120       }
18121
18122       @Override
18123         public short getThriftFieldId() {
18124         return _thriftId;
18125       }
18126
18127       @Override
18128         public String getFieldName() {
18129         return _fieldName;
18130       }
18131     }
18132
18133     // isset id assignments
18134     private static final int __SUCCESS_ISSET_ID = 0;
18135     private byte __isset_bitfield = 0;
18136     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18137     static {
18138       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18139       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
18140           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
18141       metaDataMap = Collections.unmodifiableMap(tmpMap);
18142       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_result.class, metaDataMap);
18143     }
18144
18145     public enableAddressFamily_result() {
18146     }
18147
18148     public enableAddressFamily_result(
18149       int success)
18150     {
18151       this();
18152       this.success = success;
18153       setSuccessIsSet(true);
18154     }
18155
18156     /**
18157      * Performs a deep copy on <i>other</i>.
18158      */
18159     public enableAddressFamily_result(enableAddressFamily_result other) {
18160       __isset_bitfield = other.__isset_bitfield;
18161       this.success = other.success;
18162     }
18163
18164     @Override
18165         public enableAddressFamily_result deepCopy() {
18166       return new enableAddressFamily_result(this);
18167     }
18168
18169     @Override
18170     public void clear() {
18171       setSuccessIsSet(false);
18172       this.success = 0;
18173     }
18174
18175     public int getSuccess() {
18176       return this.success;
18177     }
18178
18179     public enableAddressFamily_result setSuccess(int success) {
18180       this.success = success;
18181       setSuccessIsSet(true);
18182       return this;
18183     }
18184
18185     public void unsetSuccess() {
18186       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
18187     }
18188
18189     /** Returns true if field success is set (has been assigned a value) and false otherwise */
18190     public boolean isSetSuccess() {
18191       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
18192     }
18193
18194     public void setSuccessIsSet(boolean value) {
18195       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
18196     }
18197
18198     @Override
18199         public void setFieldValue(_Fields field, Object value) {
18200       switch (field) {
18201       case SUCCESS:
18202         if (value == null) {
18203           unsetSuccess();
18204         } else {
18205           setSuccess((Integer)value);
18206         }
18207         break;
18208
18209       }
18210     }
18211
18212     @Override
18213         public Object getFieldValue(_Fields field) {
18214       switch (field) {
18215       case SUCCESS:
18216         return Integer.valueOf(getSuccess());
18217
18218       }
18219       throw new IllegalStateException();
18220     }
18221
18222     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18223     @Override
18224         public boolean isSet(_Fields field) {
18225       if (field == null) {
18226         throw new IllegalArgumentException();
18227       }
18228
18229       switch (field) {
18230       case SUCCESS:
18231         return isSetSuccess();
18232       }
18233       throw new IllegalStateException();
18234     }
18235
18236     @Override
18237     public boolean equals(Object that) {
18238       if (that == null) {
18239                 return false;
18240         }
18241       if (that instanceof enableAddressFamily_result) {
18242                 return this.equals((enableAddressFamily_result)that);
18243         }
18244       return false;
18245     }
18246
18247     public boolean equals(enableAddressFamily_result that) {
18248       if (that == null) {
18249                 return false;
18250         }
18251
18252       boolean this_present_success = true;
18253       boolean that_present_success = true;
18254       if (this_present_success || that_present_success) {
18255         if (!(this_present_success && that_present_success)) {
18256                         return false;
18257                 }
18258         if (this.success != that.success) {
18259                         return false;
18260                 }
18261       }
18262
18263       return true;
18264     }
18265
18266     @Override
18267     public int hashCode() {
18268       List<Object> list = new ArrayList<Object>();
18269
18270       boolean present_success = true;
18271       list.add(present_success);
18272       if (present_success)
18273         list.add(success);
18274       return list.hashCode();
18275     }
18276
18277     @Override
18278     public int compareTo(enableAddressFamily_result other) {
18279       if (!getClass().equals(other.getClass())) {
18280         return getClass().getName().compareTo(other.getClass().getName());
18281       }
18282
18283       int lastComparison = 0;
18284
18285       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
18286       if (lastComparison != 0) {
18287         return lastComparison;
18288       }
18289       if (isSetSuccess()) {
18290         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
18291         if (lastComparison != 0) {
18292           return lastComparison;
18293         }
18294       }
18295       return 0;
18296     }
18297
18298     @Override
18299         public _Fields fieldForId(int fieldId) {
18300       return _Fields.findByThriftId(fieldId);
18301     }
18302
18303     @Override
18304         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18305       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18306     }
18307
18308     @Override
18309         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18310       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18311       }
18312
18313     @Override
18314     public String toString() {
18315       StringBuilder sb = new StringBuilder("enableAddressFamily_result(");
18316       boolean first = true;
18317
18318       sb.append("success:");
18319       sb.append(this.success);
18320       first = false;
18321       sb.append(")");
18322       return sb.toString();
18323     }
18324
18325     public void validate() throws org.apache.thrift.TException {
18326       // check for required fields
18327       // check for sub-struct validity
18328     }
18329
18330     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18331       try {
18332         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18333       } catch (org.apache.thrift.TException te) {
18334         throw new java.io.IOException(te);
18335       }
18336     }
18337
18338     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18339       try {
18340         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18341         __isset_bitfield = 0;
18342         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18343       } catch (org.apache.thrift.TException te) {
18344         throw new java.io.IOException(te);
18345       }
18346     }
18347
18348     private static class enableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
18349       @Override
18350         public enableAddressFamily_resultStandardScheme getScheme() {
18351         return new enableAddressFamily_resultStandardScheme();
18352       }
18353     }
18354
18355     private static class enableAddressFamily_resultStandardScheme extends StandardScheme<enableAddressFamily_result> {
18356
18357       @Override
18358         public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
18359         org.apache.thrift.protocol.TField schemeField;
18360         iprot.readStructBegin();
18361         while (true)
18362         {
18363           schemeField = iprot.readFieldBegin();
18364           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
18365             break;
18366           }
18367           switch (schemeField.id) {
18368             case 0: // SUCCESS
18369               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
18370                 struct.success = iprot.readI32();
18371                 struct.setSuccessIsSet(true);
18372               } else {
18373                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18374               }
18375               break;
18376             default:
18377               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18378           }
18379           iprot.readFieldEnd();
18380         }
18381         iprot.readStructEnd();
18382
18383         // check for required fields of primitive type, which can't be checked in the validate method
18384         struct.validate();
18385       }
18386
18387       @Override
18388         public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
18389         struct.validate();
18390
18391         oprot.writeStructBegin(STRUCT_DESC);
18392         if (struct.isSetSuccess()) {
18393           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18394           oprot.writeI32(struct.success);
18395           oprot.writeFieldEnd();
18396         }
18397         oprot.writeFieldStop();
18398         oprot.writeStructEnd();
18399       }
18400
18401     }
18402
18403     private static class enableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
18404       @Override
18405         public enableAddressFamily_resultTupleScheme getScheme() {
18406         return new enableAddressFamily_resultTupleScheme();
18407       }
18408     }
18409
18410     private static class enableAddressFamily_resultTupleScheme extends TupleScheme<enableAddressFamily_result> {
18411
18412       @Override
18413       public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
18414         TTupleProtocol oprot = (TTupleProtocol) prot;
18415         BitSet optionals = new BitSet();
18416         if (struct.isSetSuccess()) {
18417           optionals.set(0);
18418         }
18419         oprot.writeBitSet(optionals, 1);
18420         if (struct.isSetSuccess()) {
18421           oprot.writeI32(struct.success);
18422         }
18423       }
18424
18425       @Override
18426       public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
18427         TTupleProtocol iprot = (TTupleProtocol) prot;
18428         BitSet incoming = iprot.readBitSet(1);
18429         if (incoming.get(0)) {
18430           struct.success = iprot.readI32();
18431           struct.setSuccessIsSet(true);
18432         }
18433       }
18434     }
18435
18436   }
18437
18438   public static class disableAddressFamily_args implements org.apache.thrift.TBase<disableAddressFamily_args, disableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_args>   {
18439     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_args");
18440
18441     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);
18442     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);
18443     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);
18444
18445     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18446     static {
18447       schemes.put(StandardScheme.class, new disableAddressFamily_argsStandardSchemeFactory());
18448       schemes.put(TupleScheme.class, new disableAddressFamily_argsTupleSchemeFactory());
18449     }
18450
18451     public String peerIp; // required
18452     /**
18453      *
18454      * @see af_afi
18455      */
18456     public af_afi afi; // required
18457     /**
18458      *
18459      * @see af_safi
18460      */
18461     public af_safi safi; // required
18462
18463     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18464     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18465       PEER_IP((short)1, "peerIp"),
18466       /**
18467        *
18468        * @see af_afi
18469        */
18470       AFI((short)2, "afi"),
18471       /**
18472        *
18473        * @see af_safi
18474        */
18475       SAFI((short)3, "safi");
18476
18477       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18478
18479       static {
18480         for (_Fields field : EnumSet.allOf(_Fields.class)) {
18481           byName.put(field.getFieldName(), field);
18482         }
18483       }
18484
18485       /**
18486        * Find the _Fields constant that matches fieldId, or null if its not found.
18487        */
18488       public static _Fields findByThriftId(int fieldId) {
18489         switch(fieldId) {
18490           case 1: // PEER_IP
18491             return PEER_IP;
18492           case 2: // AFI
18493             return AFI;
18494           case 3: // SAFI
18495             return SAFI;
18496           default:
18497             return null;
18498         }
18499       }
18500
18501       /**
18502        * Find the _Fields constant that matches fieldId, throwing an exception
18503        * if it is not found.
18504        */
18505       public static _Fields findByThriftIdOrThrow(int fieldId) {
18506         _Fields fields = findByThriftId(fieldId);
18507         if (fields == null) {
18508                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18509                 }
18510         return fields;
18511       }
18512
18513       /**
18514        * Find the _Fields constant that matches name, or null if its not found.
18515        */
18516       public static _Fields findByName(String name) {
18517         return byName.get(name);
18518       }
18519
18520       private final short _thriftId;
18521       private final String _fieldName;
18522
18523       _Fields(short thriftId, String fieldName) {
18524         _thriftId = thriftId;
18525         _fieldName = fieldName;
18526       }
18527
18528       @Override
18529         public short getThriftFieldId() {
18530         return _thriftId;
18531       }
18532
18533       @Override
18534         public String getFieldName() {
18535         return _fieldName;
18536       }
18537     }
18538
18539     // isset id assignments
18540     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18541     static {
18542       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18543       tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
18544           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18545       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
18546           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
18547       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
18548           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
18549       metaDataMap = Collections.unmodifiableMap(tmpMap);
18550       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_args.class, metaDataMap);
18551     }
18552
18553     public disableAddressFamily_args() {
18554     }
18555
18556     public disableAddressFamily_args(
18557       String peerIp,
18558       af_afi afi,
18559       af_safi safi)
18560     {
18561       this();
18562       this.peerIp = peerIp;
18563       this.afi = afi;
18564       this.safi = safi;
18565     }
18566
18567     /**
18568      * Performs a deep copy on <i>other</i>.
18569      */
18570     public disableAddressFamily_args(disableAddressFamily_args other) {
18571       if (other.isSetPeerIp()) {
18572         this.peerIp = other.peerIp;
18573       }
18574       if (other.isSetAfi()) {
18575         this.afi = other.afi;
18576       }
18577       if (other.isSetSafi()) {
18578         this.safi = other.safi;
18579       }
18580     }
18581
18582     @Override
18583         public disableAddressFamily_args deepCopy() {
18584       return new disableAddressFamily_args(this);
18585     }
18586
18587     @Override
18588     public void clear() {
18589       this.peerIp = null;
18590       this.afi = null;
18591       this.safi = null;
18592     }
18593
18594     public String getPeerIp() {
18595       return this.peerIp;
18596     }
18597
18598     public disableAddressFamily_args setPeerIp(String peerIp) {
18599       this.peerIp = peerIp;
18600       return this;
18601     }
18602
18603     public void unsetPeerIp() {
18604       this.peerIp = null;
18605     }
18606
18607     /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
18608     public boolean isSetPeerIp() {
18609       return this.peerIp != null;
18610     }
18611
18612     public void setPeerIpIsSet(boolean value) {
18613       if (!value) {
18614         this.peerIp = null;
18615       }
18616     }
18617
18618     /**
18619      *
18620      * @see af_afi
18621      */
18622     public af_afi getAfi() {
18623       return this.afi;
18624     }
18625
18626     /**
18627      *
18628      * @see af_afi
18629      */
18630     public disableAddressFamily_args setAfi(af_afi afi) {
18631       this.afi = afi;
18632       return this;
18633     }
18634
18635     public void unsetAfi() {
18636       this.afi = null;
18637     }
18638
18639     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
18640     public boolean isSetAfi() {
18641       return this.afi != null;
18642     }
18643
18644     public void setAfiIsSet(boolean value) {
18645       if (!value) {
18646         this.afi = null;
18647       }
18648     }
18649
18650     /**
18651      *
18652      * @see af_safi
18653      */
18654     public af_safi getSafi() {
18655       return this.safi;
18656     }
18657
18658     /**
18659      *
18660      * @see af_safi
18661      */
18662     public disableAddressFamily_args setSafi(af_safi safi) {
18663       this.safi = safi;
18664       return this;
18665     }
18666
18667     public void unsetSafi() {
18668       this.safi = null;
18669     }
18670
18671     /** Returns true if field safi is set (has been assigned a value) and false otherwise */
18672     public boolean isSetSafi() {
18673       return this.safi != null;
18674     }
18675
18676     public void setSafiIsSet(boolean value) {
18677       if (!value) {
18678         this.safi = null;
18679       }
18680     }
18681
18682     @Override
18683         public void setFieldValue(_Fields field, Object value) {
18684       switch (field) {
18685       case PEER_IP:
18686         if (value == null) {
18687           unsetPeerIp();
18688         } else {
18689           setPeerIp((String)value);
18690         }
18691         break;
18692
18693       case AFI:
18694         if (value == null) {
18695           unsetAfi();
18696         } else {
18697           setAfi((af_afi)value);
18698         }
18699         break;
18700
18701       case SAFI:
18702         if (value == null) {
18703           unsetSafi();
18704         } else {
18705           setSafi((af_safi)value);
18706         }
18707         break;
18708
18709       }
18710     }
18711
18712     @Override
18713         public Object getFieldValue(_Fields field) {
18714       switch (field) {
18715       case PEER_IP:
18716         return getPeerIp();
18717
18718       case AFI:
18719         return getAfi();
18720
18721       case SAFI:
18722         return getSafi();
18723
18724       }
18725       throw new IllegalStateException();
18726     }
18727
18728     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18729     @Override
18730         public boolean isSet(_Fields field) {
18731       if (field == null) {
18732         throw new IllegalArgumentException();
18733       }
18734
18735       switch (field) {
18736       case PEER_IP:
18737         return isSetPeerIp();
18738       case AFI:
18739         return isSetAfi();
18740       case SAFI:
18741         return isSetSafi();
18742       }
18743       throw new IllegalStateException();
18744     }
18745
18746     @Override
18747     public boolean equals(Object that) {
18748       if (that == null) {
18749                 return false;
18750         }
18751       if (that instanceof disableAddressFamily_args) {
18752                 return this.equals((disableAddressFamily_args)that);
18753         }
18754       return false;
18755     }
18756
18757     public boolean equals(disableAddressFamily_args that) {
18758       if (that == null) {
18759                 return false;
18760         }
18761
18762       boolean this_present_peerIp = true && this.isSetPeerIp();
18763       boolean that_present_peerIp = true && that.isSetPeerIp();
18764       if (this_present_peerIp || that_present_peerIp) {
18765         if (!(this_present_peerIp && that_present_peerIp)) {
18766                         return false;
18767                 }
18768         if (!this.peerIp.equals(that.peerIp)) {
18769                         return false;
18770                 }
18771       }
18772
18773       boolean this_present_afi = true && this.isSetAfi();
18774       boolean that_present_afi = true && that.isSetAfi();
18775       if (this_present_afi || that_present_afi) {
18776         if (!(this_present_afi && that_present_afi)) {
18777                         return false;
18778                 }
18779         if (!this.afi.equals(that.afi)) {
18780                         return false;
18781                 }
18782       }
18783
18784       boolean this_present_safi = true && this.isSetSafi();
18785       boolean that_present_safi = true && that.isSetSafi();
18786       if (this_present_safi || that_present_safi) {
18787         if (!(this_present_safi && that_present_safi)) {
18788                         return false;
18789                 }
18790         if (!this.safi.equals(that.safi)) {
18791                         return false;
18792                 }
18793       }
18794
18795       return true;
18796     }
18797
18798     @Override
18799     public int hashCode() {
18800       List<Object> list = new ArrayList<Object>();
18801
18802       boolean present_peerIp = true && (isSetPeerIp());
18803       list.add(present_peerIp);
18804       if (present_peerIp)
18805         list.add(peerIp);
18806       boolean present_afi = true && (isSetAfi());
18807       list.add(present_afi);
18808       if (present_afi)
18809         list.add(afi.getValue());
18810       boolean present_safi = true && (isSetSafi());
18811       list.add(present_safi);
18812       if (present_safi)
18813         list.add(safi.getValue());
18814       return list.hashCode();
18815     }
18816
18817     @Override
18818     public int compareTo(disableAddressFamily_args other) {
18819       if (!getClass().equals(other.getClass())) {
18820         return getClass().getName().compareTo(other.getClass().getName());
18821       }
18822
18823       int lastComparison = 0;
18824
18825       lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
18826       if (lastComparison != 0) {
18827         return lastComparison;
18828       }
18829       if (isSetPeerIp()) {
18830         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
18831         if (lastComparison != 0) {
18832           return lastComparison;
18833         }
18834       }
18835       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
18836       if (lastComparison != 0) {
18837         return lastComparison;
18838       }
18839       if (isSetAfi()) {
18840         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
18841         if (lastComparison != 0) {
18842           return lastComparison;
18843         }
18844       }
18845       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
18846       if (lastComparison != 0) {
18847         return lastComparison;
18848       }
18849       if (isSetSafi()) {
18850         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
18851         if (lastComparison != 0) {
18852           return lastComparison;
18853         }
18854       }
18855       return 0;
18856     }
18857
18858     @Override
18859         public _Fields fieldForId(int fieldId) {
18860       return _Fields.findByThriftId(fieldId);
18861     }
18862
18863     @Override
18864         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18865       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18866     }
18867
18868     @Override
18869         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18870       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18871     }
18872
18873     @Override
18874     public String toString() {
18875       StringBuilder sb = new StringBuilder("disableAddressFamily_args(");
18876       boolean first = true;
18877
18878       sb.append("peerIp:");
18879       if (this.peerIp == null) {
18880         sb.append("null");
18881       } else {
18882         sb.append(this.peerIp);
18883       }
18884       first = false;
18885       if (!first) {
18886                 sb.append(", ");
18887         }
18888       sb.append("afi:");
18889       if (this.afi == null) {
18890         sb.append("null");
18891       } else {
18892         sb.append(this.afi);
18893       }
18894       first = false;
18895       if (!first) {
18896                 sb.append(", ");
18897         }
18898       sb.append("safi:");
18899       if (this.safi == null) {
18900         sb.append("null");
18901       } else {
18902         sb.append(this.safi);
18903       }
18904       first = false;
18905       sb.append(")");
18906       return sb.toString();
18907     }
18908
18909     public void validate() throws org.apache.thrift.TException {
18910       // check for required fields
18911       // check for sub-struct validity
18912     }
18913
18914     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18915       try {
18916         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18917       } catch (org.apache.thrift.TException te) {
18918         throw new java.io.IOException(te);
18919       }
18920     }
18921
18922     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18923       try {
18924         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18925       } catch (org.apache.thrift.TException te) {
18926         throw new java.io.IOException(te);
18927       }
18928     }
18929
18930     private static class disableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
18931       @Override
18932         public disableAddressFamily_argsStandardScheme getScheme() {
18933         return new disableAddressFamily_argsStandardScheme();
18934       }
18935     }
18936
18937     private static class disableAddressFamily_argsStandardScheme extends StandardScheme<disableAddressFamily_args> {
18938
18939       @Override
18940         public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
18941         org.apache.thrift.protocol.TField schemeField;
18942         iprot.readStructBegin();
18943         while (true)
18944         {
18945           schemeField = iprot.readFieldBegin();
18946           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
18947             break;
18948           }
18949           switch (schemeField.id) {
18950             case 1: // PEER_IP
18951               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
18952                 struct.peerIp = iprot.readString();
18953                 struct.setPeerIpIsSet(true);
18954               } else {
18955                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18956               }
18957               break;
18958             case 2: // AFI
18959               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
18960                 struct.afi = af_afi.findByValue(iprot.readI32());
18961                 struct.setAfiIsSet(true);
18962               } else {
18963                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18964               }
18965               break;
18966             case 3: // SAFI
18967               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
18968                 struct.safi = af_safi.findByValue(iprot.readI32());
18969                 struct.setSafiIsSet(true);
18970               } else {
18971                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18972               }
18973               break;
18974             default:
18975               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18976           }
18977           iprot.readFieldEnd();
18978         }
18979         iprot.readStructEnd();
18980
18981         // check for required fields of primitive type, which can't be checked in the validate method
18982         struct.validate();
18983       }
18984
18985       @Override
18986         public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
18987         struct.validate();
18988
18989         oprot.writeStructBegin(STRUCT_DESC);
18990         if (struct.peerIp != null) {
18991           oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
18992           oprot.writeString(struct.peerIp);
18993           oprot.writeFieldEnd();
18994         }
18995         if (struct.afi != null) {
18996           oprot.writeFieldBegin(AFI_FIELD_DESC);
18997           oprot.writeI32(struct.afi.getValue());
18998           oprot.writeFieldEnd();
18999         }
19000         if (struct.safi != null) {
19001           oprot.writeFieldBegin(SAFI_FIELD_DESC);
19002           oprot.writeI32(struct.safi.getValue());
19003           oprot.writeFieldEnd();
19004         }
19005         oprot.writeFieldStop();
19006         oprot.writeStructEnd();
19007       }
19008
19009     }
19010
19011     private static class disableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
19012       @Override
19013         public disableAddressFamily_argsTupleScheme getScheme() {
19014         return new disableAddressFamily_argsTupleScheme();
19015       }
19016     }
19017
19018     private static class disableAddressFamily_argsTupleScheme extends TupleScheme<disableAddressFamily_args> {
19019
19020       @Override
19021       public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
19022         TTupleProtocol oprot = (TTupleProtocol) prot;
19023         BitSet optionals = new BitSet();
19024         if (struct.isSetPeerIp()) {
19025           optionals.set(0);
19026         }
19027         if (struct.isSetAfi()) {
19028           optionals.set(1);
19029         }
19030         if (struct.isSetSafi()) {
19031           optionals.set(2);
19032         }
19033         oprot.writeBitSet(optionals, 3);
19034         if (struct.isSetPeerIp()) {
19035           oprot.writeString(struct.peerIp);
19036         }
19037         if (struct.isSetAfi()) {
19038           oprot.writeI32(struct.afi.getValue());
19039         }
19040         if (struct.isSetSafi()) {
19041           oprot.writeI32(struct.safi.getValue());
19042         }
19043       }
19044
19045       @Override
19046       public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
19047         TTupleProtocol iprot = (TTupleProtocol) prot;
19048         BitSet incoming = iprot.readBitSet(3);
19049         if (incoming.get(0)) {
19050           struct.peerIp = iprot.readString();
19051           struct.setPeerIpIsSet(true);
19052         }
19053         if (incoming.get(1)) {
19054           struct.afi = af_afi.findByValue(iprot.readI32());
19055           struct.setAfiIsSet(true);
19056         }
19057         if (incoming.get(2)) {
19058           struct.safi = af_safi.findByValue(iprot.readI32());
19059           struct.setSafiIsSet(true);
19060         }
19061       }
19062     }
19063
19064   }
19065
19066   public static class disableAddressFamily_result implements org.apache.thrift.TBase<disableAddressFamily_result, disableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_result>   {
19067     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_result");
19068
19069     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);
19070
19071     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19072     static {
19073       schemes.put(StandardScheme.class, new disableAddressFamily_resultStandardSchemeFactory());
19074       schemes.put(TupleScheme.class, new disableAddressFamily_resultTupleSchemeFactory());
19075     }
19076
19077     public int success; // required
19078
19079     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19080     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19081       SUCCESS((short)0, "success");
19082
19083       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19084
19085       static {
19086         for (_Fields field : EnumSet.allOf(_Fields.class)) {
19087           byName.put(field.getFieldName(), field);
19088         }
19089       }
19090
19091       /**
19092        * Find the _Fields constant that matches fieldId, or null if its not found.
19093        */
19094       public static _Fields findByThriftId(int fieldId) {
19095         switch(fieldId) {
19096           case 0: // SUCCESS
19097             return SUCCESS;
19098           default:
19099             return null;
19100         }
19101       }
19102
19103       /**
19104        * Find the _Fields constant that matches fieldId, throwing an exception
19105        * if it is not found.
19106        */
19107       public static _Fields findByThriftIdOrThrow(int fieldId) {
19108         _Fields fields = findByThriftId(fieldId);
19109         if (fields == null) {
19110                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19111                 }
19112         return fields;
19113       }
19114
19115       /**
19116        * Find the _Fields constant that matches name, or null if its not found.
19117        */
19118       public static _Fields findByName(String name) {
19119         return byName.get(name);
19120       }
19121
19122       private final short _thriftId;
19123       private final String _fieldName;
19124
19125       _Fields(short thriftId, String fieldName) {
19126         _thriftId = thriftId;
19127         _fieldName = fieldName;
19128       }
19129
19130       @Override
19131         public short getThriftFieldId() {
19132         return _thriftId;
19133       }
19134
19135       @Override
19136         public String getFieldName() {
19137         return _fieldName;
19138       }
19139     }
19140
19141     // isset id assignments
19142     private static final int __SUCCESS_ISSET_ID = 0;
19143     private byte __isset_bitfield = 0;
19144     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19145     static {
19146       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19147       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
19148           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
19149       metaDataMap = Collections.unmodifiableMap(tmpMap);
19150       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_result.class, metaDataMap);
19151     }
19152
19153     public disableAddressFamily_result() {
19154     }
19155
19156     public disableAddressFamily_result(
19157       int success)
19158     {
19159       this();
19160       this.success = success;
19161       setSuccessIsSet(true);
19162     }
19163
19164     /**
19165      * Performs a deep copy on <i>other</i>.
19166      */
19167     public disableAddressFamily_result(disableAddressFamily_result other) {
19168       __isset_bitfield = other.__isset_bitfield;
19169       this.success = other.success;
19170     }
19171
19172     @Override
19173         public disableAddressFamily_result deepCopy() {
19174       return new disableAddressFamily_result(this);
19175     }
19176
19177     @Override
19178     public void clear() {
19179       setSuccessIsSet(false);
19180       this.success = 0;
19181     }
19182
19183     public int getSuccess() {
19184       return this.success;
19185     }
19186
19187     public disableAddressFamily_result setSuccess(int success) {
19188       this.success = success;
19189       setSuccessIsSet(true);
19190       return this;
19191     }
19192
19193     public void unsetSuccess() {
19194       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
19195     }
19196
19197     /** Returns true if field success is set (has been assigned a value) and false otherwise */
19198     public boolean isSetSuccess() {
19199       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
19200     }
19201
19202     public void setSuccessIsSet(boolean value) {
19203       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
19204     }
19205
19206     @Override
19207         public void setFieldValue(_Fields field, Object value) {
19208       switch (field) {
19209       case SUCCESS:
19210         if (value == null) {
19211           unsetSuccess();
19212         } else {
19213           setSuccess((Integer)value);
19214         }
19215         break;
19216
19217       }
19218     }
19219
19220     @Override
19221         public Object getFieldValue(_Fields field) {
19222       switch (field) {
19223       case SUCCESS:
19224         return Integer.valueOf(getSuccess());
19225
19226       }
19227       throw new IllegalStateException();
19228     }
19229
19230     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19231     @Override
19232         public boolean isSet(_Fields field) {
19233       if (field == null) {
19234         throw new IllegalArgumentException();
19235       }
19236
19237       switch (field) {
19238       case SUCCESS:
19239         return isSetSuccess();
19240       }
19241       throw new IllegalStateException();
19242     }
19243
19244     @Override
19245     public boolean equals(Object that) {
19246       if (that == null) {
19247                 return false;
19248         }
19249       if (that instanceof disableAddressFamily_result) {
19250                 return this.equals((disableAddressFamily_result)that);
19251         }
19252       return false;
19253     }
19254
19255     public boolean equals(disableAddressFamily_result that) {
19256       if (that == null) {
19257                 return false;
19258         }
19259
19260       boolean this_present_success = true;
19261       boolean that_present_success = true;
19262       if (this_present_success || that_present_success) {
19263         if (!(this_present_success && that_present_success)) {
19264                         return false;
19265                 }
19266         if (this.success != that.success) {
19267                         return false;
19268                 }
19269       }
19270
19271       return true;
19272     }
19273
19274     @Override
19275     public int hashCode() {
19276       List<Object> list = new ArrayList<Object>();
19277
19278       boolean present_success = true;
19279       list.add(present_success);
19280       if (present_success)
19281         list.add(success);
19282       return list.hashCode();
19283     }
19284
19285     @Override
19286     public int compareTo(disableAddressFamily_result other) {
19287       if (!getClass().equals(other.getClass())) {
19288         return getClass().getName().compareTo(other.getClass().getName());
19289       }
19290
19291       int lastComparison = 0;
19292
19293       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
19294       if (lastComparison != 0) {
19295         return lastComparison;
19296       }
19297       if (isSetSuccess()) {
19298         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
19299         if (lastComparison != 0) {
19300           return lastComparison;
19301         }
19302       }
19303       return 0;
19304     }
19305
19306     @Override
19307         public _Fields fieldForId(int fieldId) {
19308       return _Fields.findByThriftId(fieldId);
19309     }
19310
19311     @Override
19312         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19313       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19314     }
19315
19316     @Override
19317         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19318       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19319       }
19320
19321     @Override
19322     public String toString() {
19323       StringBuilder sb = new StringBuilder("disableAddressFamily_result(");
19324       boolean first = true;
19325
19326       sb.append("success:");
19327       sb.append(this.success);
19328       first = false;
19329       sb.append(")");
19330       return sb.toString();
19331     }
19332
19333     public void validate() throws org.apache.thrift.TException {
19334       // check for required fields
19335       // check for sub-struct validity
19336     }
19337
19338     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19339       try {
19340         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19341       } catch (org.apache.thrift.TException te) {
19342         throw new java.io.IOException(te);
19343       }
19344     }
19345
19346     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19347       try {
19348         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19349         __isset_bitfield = 0;
19350         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19351       } catch (org.apache.thrift.TException te) {
19352         throw new java.io.IOException(te);
19353       }
19354     }
19355
19356     private static class disableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
19357       @Override
19358         public disableAddressFamily_resultStandardScheme getScheme() {
19359         return new disableAddressFamily_resultStandardScheme();
19360       }
19361     }
19362
19363     private static class disableAddressFamily_resultStandardScheme extends StandardScheme<disableAddressFamily_result> {
19364
19365       @Override
19366         public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
19367         org.apache.thrift.protocol.TField schemeField;
19368         iprot.readStructBegin();
19369         while (true)
19370         {
19371           schemeField = iprot.readFieldBegin();
19372           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
19373             break;
19374           }
19375           switch (schemeField.id) {
19376             case 0: // SUCCESS
19377               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
19378                 struct.success = iprot.readI32();
19379                 struct.setSuccessIsSet(true);
19380               } else {
19381                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19382               }
19383               break;
19384             default:
19385               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19386           }
19387           iprot.readFieldEnd();
19388         }
19389         iprot.readStructEnd();
19390
19391         // check for required fields of primitive type, which can't be checked in the validate method
19392         struct.validate();
19393       }
19394
19395       @Override
19396         public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
19397         struct.validate();
19398
19399         oprot.writeStructBegin(STRUCT_DESC);
19400         if (struct.isSetSuccess()) {
19401           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19402           oprot.writeI32(struct.success);
19403           oprot.writeFieldEnd();
19404         }
19405         oprot.writeFieldStop();
19406         oprot.writeStructEnd();
19407       }
19408
19409     }
19410
19411     private static class disableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
19412       @Override
19413         public disableAddressFamily_resultTupleScheme getScheme() {
19414         return new disableAddressFamily_resultTupleScheme();
19415       }
19416     }
19417
19418     private static class disableAddressFamily_resultTupleScheme extends TupleScheme<disableAddressFamily_result> {
19419
19420       @Override
19421       public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
19422         TTupleProtocol oprot = (TTupleProtocol) prot;
19423         BitSet optionals = new BitSet();
19424         if (struct.isSetSuccess()) {
19425           optionals.set(0);
19426         }
19427         oprot.writeBitSet(optionals, 1);
19428         if (struct.isSetSuccess()) {
19429           oprot.writeI32(struct.success);
19430         }
19431       }
19432
19433       @Override
19434       public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
19435         TTupleProtocol iprot = (TTupleProtocol) prot;
19436         BitSet incoming = iprot.readBitSet(1);
19437         if (incoming.get(0)) {
19438           struct.success = iprot.readI32();
19439           struct.setSuccessIsSet(true);
19440         }
19441       }
19442     }
19443
19444   }
19445
19446   public static class setLogConfig_args implements org.apache.thrift.TBase<setLogConfig_args, setLogConfig_args._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_args>   {
19447     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_args");
19448
19449     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);
19450     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);
19451
19452     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19453     static {
19454       schemes.put(StandardScheme.class, new setLogConfig_argsStandardSchemeFactory());
19455       schemes.put(TupleScheme.class, new setLogConfig_argsTupleSchemeFactory());
19456     }
19457
19458     public String logFileName; // required
19459     public String logLevel; // required
19460
19461     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19462     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19463       LOG_FILE_NAME((short)1, "logFileName"),
19464       LOG_LEVEL((short)2, "logLevel");
19465
19466       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19467
19468       static {
19469         for (_Fields field : EnumSet.allOf(_Fields.class)) {
19470           byName.put(field.getFieldName(), field);
19471         }
19472       }
19473
19474       /**
19475        * Find the _Fields constant that matches fieldId, or null if its not found.
19476        */
19477       public static _Fields findByThriftId(int fieldId) {
19478         switch(fieldId) {
19479           case 1: // LOG_FILE_NAME
19480             return LOG_FILE_NAME;
19481           case 2: // LOG_LEVEL
19482             return LOG_LEVEL;
19483           default:
19484             return null;
19485         }
19486       }
19487
19488       /**
19489        * Find the _Fields constant that matches fieldId, throwing an exception
19490        * if it is not found.
19491        */
19492       public static _Fields findByThriftIdOrThrow(int fieldId) {
19493         _Fields fields = findByThriftId(fieldId);
19494         if (fields == null) {
19495                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19496                 }
19497         return fields;
19498       }
19499
19500       /**
19501        * Find the _Fields constant that matches name, or null if its not found.
19502        */
19503       public static _Fields findByName(String name) {
19504         return byName.get(name);
19505       }
19506
19507       private final short _thriftId;
19508       private final String _fieldName;
19509
19510       _Fields(short thriftId, String fieldName) {
19511         _thriftId = thriftId;
19512         _fieldName = fieldName;
19513       }
19514
19515       @Override
19516         public short getThriftFieldId() {
19517         return _thriftId;
19518       }
19519
19520       @Override
19521         public String getFieldName() {
19522         return _fieldName;
19523       }
19524     }
19525
19526     // isset id assignments
19527     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19528     static {
19529       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19530       tmpMap.put(_Fields.LOG_FILE_NAME, new org.apache.thrift.meta_data.FieldMetaData("logFileName", org.apache.thrift.TFieldRequirementType.DEFAULT,
19531           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19532       tmpMap.put(_Fields.LOG_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("logLevel", org.apache.thrift.TFieldRequirementType.DEFAULT,
19533           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19534       metaDataMap = Collections.unmodifiableMap(tmpMap);
19535       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_args.class, metaDataMap);
19536     }
19537
19538     public setLogConfig_args() {
19539     }
19540
19541     public setLogConfig_args(
19542       String logFileName,
19543       String logLevel)
19544     {
19545       this();
19546       this.logFileName = logFileName;
19547       this.logLevel = logLevel;
19548     }
19549
19550     /**
19551      * Performs a deep copy on <i>other</i>.
19552      */
19553     public setLogConfig_args(setLogConfig_args other) {
19554       if (other.isSetLogFileName()) {
19555         this.logFileName = other.logFileName;
19556       }
19557       if (other.isSetLogLevel()) {
19558         this.logLevel = other.logLevel;
19559       }
19560     }
19561
19562     @Override
19563         public setLogConfig_args deepCopy() {
19564       return new setLogConfig_args(this);
19565     }
19566
19567     @Override
19568     public void clear() {
19569       this.logFileName = null;
19570       this.logLevel = null;
19571     }
19572
19573     public String getLogFileName() {
19574       return this.logFileName;
19575     }
19576
19577     public setLogConfig_args setLogFileName(String logFileName) {
19578       this.logFileName = logFileName;
19579       return this;
19580     }
19581
19582     public void unsetLogFileName() {
19583       this.logFileName = null;
19584     }
19585
19586     /** Returns true if field logFileName is set (has been assigned a value) and false otherwise */
19587     public boolean isSetLogFileName() {
19588       return this.logFileName != null;
19589     }
19590
19591     public void setLogFileNameIsSet(boolean value) {
19592       if (!value) {
19593         this.logFileName = null;
19594       }
19595     }
19596
19597     public String getLogLevel() {
19598       return this.logLevel;
19599     }
19600
19601     public setLogConfig_args setLogLevel(String logLevel) {
19602       this.logLevel = logLevel;
19603       return this;
19604     }
19605
19606     public void unsetLogLevel() {
19607       this.logLevel = null;
19608     }
19609
19610     /** Returns true if field logLevel is set (has been assigned a value) and false otherwise */
19611     public boolean isSetLogLevel() {
19612       return this.logLevel != null;
19613     }
19614
19615     public void setLogLevelIsSet(boolean value) {
19616       if (!value) {
19617         this.logLevel = null;
19618       }
19619     }
19620
19621     @Override
19622         public void setFieldValue(_Fields field, Object value) {
19623       switch (field) {
19624       case LOG_FILE_NAME:
19625         if (value == null) {
19626           unsetLogFileName();
19627         } else {
19628           setLogFileName((String)value);
19629         }
19630         break;
19631
19632       case LOG_LEVEL:
19633         if (value == null) {
19634           unsetLogLevel();
19635         } else {
19636           setLogLevel((String)value);
19637         }
19638         break;
19639
19640       }
19641     }
19642
19643     @Override
19644         public Object getFieldValue(_Fields field) {
19645       switch (field) {
19646       case LOG_FILE_NAME:
19647         return getLogFileName();
19648
19649       case LOG_LEVEL:
19650         return getLogLevel();
19651
19652       }
19653       throw new IllegalStateException();
19654     }
19655
19656     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19657     @Override
19658         public boolean isSet(_Fields field) {
19659       if (field == null) {
19660         throw new IllegalArgumentException();
19661       }
19662
19663       switch (field) {
19664       case LOG_FILE_NAME:
19665         return isSetLogFileName();
19666       case LOG_LEVEL:
19667         return isSetLogLevel();
19668       }
19669       throw new IllegalStateException();
19670     }
19671
19672     @Override
19673     public boolean equals(Object that) {
19674       if (that == null) {
19675                 return false;
19676         }
19677       if (that instanceof setLogConfig_args) {
19678                 return this.equals((setLogConfig_args)that);
19679         }
19680       return false;
19681     }
19682
19683     public boolean equals(setLogConfig_args that) {
19684       if (that == null) {
19685                 return false;
19686         }
19687
19688       boolean this_present_logFileName = true && this.isSetLogFileName();
19689       boolean that_present_logFileName = true && that.isSetLogFileName();
19690       if (this_present_logFileName || that_present_logFileName) {
19691         if (!(this_present_logFileName && that_present_logFileName)) {
19692                         return false;
19693                 }
19694         if (!this.logFileName.equals(that.logFileName)) {
19695                         return false;
19696                 }
19697       }
19698
19699       boolean this_present_logLevel = true && this.isSetLogLevel();
19700       boolean that_present_logLevel = true && that.isSetLogLevel();
19701       if (this_present_logLevel || that_present_logLevel) {
19702         if (!(this_present_logLevel && that_present_logLevel)) {
19703                         return false;
19704                 }
19705         if (!this.logLevel.equals(that.logLevel)) {
19706                         return false;
19707                 }
19708       }
19709
19710       return true;
19711     }
19712
19713     @Override
19714     public int hashCode() {
19715       List<Object> list = new ArrayList<Object>();
19716
19717       boolean present_logFileName = true && (isSetLogFileName());
19718       list.add(present_logFileName);
19719       if (present_logFileName)
19720         list.add(logFileName);
19721       boolean present_logLevel = true && (isSetLogLevel());
19722       list.add(present_logLevel);
19723       if (present_logLevel)
19724         list.add(logLevel);
19725       return list.hashCode();
19726     }
19727
19728     @Override
19729     public int compareTo(setLogConfig_args other) {
19730       if (!getClass().equals(other.getClass())) {
19731         return getClass().getName().compareTo(other.getClass().getName());
19732       }
19733
19734       int lastComparison = 0;
19735
19736       lastComparison = Boolean.valueOf(isSetLogFileName()).compareTo(other.isSetLogFileName());
19737       if (lastComparison != 0) {
19738         return lastComparison;
19739       }
19740       if (isSetLogFileName()) {
19741         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logFileName, other.logFileName);
19742         if (lastComparison != 0) {
19743           return lastComparison;
19744         }
19745       }
19746       lastComparison = Boolean.valueOf(isSetLogLevel()).compareTo(other.isSetLogLevel());
19747       if (lastComparison != 0) {
19748         return lastComparison;
19749       }
19750       if (isSetLogLevel()) {
19751         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logLevel, other.logLevel);
19752         if (lastComparison != 0) {
19753           return lastComparison;
19754         }
19755       }
19756       return 0;
19757     }
19758
19759     @Override
19760         public _Fields fieldForId(int fieldId) {
19761       return _Fields.findByThriftId(fieldId);
19762     }
19763
19764     @Override
19765         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19766       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19767     }
19768
19769     @Override
19770         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19771       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19772     }
19773
19774     @Override
19775     public String toString() {
19776       StringBuilder sb = new StringBuilder("setLogConfig_args(");
19777       boolean first = true;
19778
19779       sb.append("logFileName:");
19780       if (this.logFileName == null) {
19781         sb.append("null");
19782       } else {
19783         sb.append(this.logFileName);
19784       }
19785       first = false;
19786       if (!first) {
19787                 sb.append(", ");
19788         }
19789       sb.append("logLevel:");
19790       if (this.logLevel == null) {
19791         sb.append("null");
19792       } else {
19793         sb.append(this.logLevel);
19794       }
19795       first = false;
19796       sb.append(")");
19797       return sb.toString();
19798     }
19799
19800     public void validate() throws org.apache.thrift.TException {
19801       // check for required fields
19802       // check for sub-struct validity
19803     }
19804
19805     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19806       try {
19807         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19808       } catch (org.apache.thrift.TException te) {
19809         throw new java.io.IOException(te);
19810       }
19811     }
19812
19813     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19814       try {
19815         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19816       } catch (org.apache.thrift.TException te) {
19817         throw new java.io.IOException(te);
19818       }
19819     }
19820
19821     private static class setLogConfig_argsStandardSchemeFactory implements SchemeFactory {
19822       @Override
19823         public setLogConfig_argsStandardScheme getScheme() {
19824         return new setLogConfig_argsStandardScheme();
19825       }
19826     }
19827
19828     private static class setLogConfig_argsStandardScheme extends StandardScheme<setLogConfig_args> {
19829
19830       @Override
19831         public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_args struct) throws org.apache.thrift.TException {
19832         org.apache.thrift.protocol.TField schemeField;
19833         iprot.readStructBegin();
19834         while (true)
19835         {
19836           schemeField = iprot.readFieldBegin();
19837           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
19838             break;
19839           }
19840           switch (schemeField.id) {
19841             case 1: // LOG_FILE_NAME
19842               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19843                 struct.logFileName = iprot.readString();
19844                 struct.setLogFileNameIsSet(true);
19845               } else {
19846                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19847               }
19848               break;
19849             case 2: // LOG_LEVEL
19850               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19851                 struct.logLevel = iprot.readString();
19852                 struct.setLogLevelIsSet(true);
19853               } else {
19854                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19855               }
19856               break;
19857             default:
19858               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19859           }
19860           iprot.readFieldEnd();
19861         }
19862         iprot.readStructEnd();
19863
19864         // check for required fields of primitive type, which can't be checked in the validate method
19865         struct.validate();
19866       }
19867
19868       @Override
19869         public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_args struct) throws org.apache.thrift.TException {
19870         struct.validate();
19871
19872         oprot.writeStructBegin(STRUCT_DESC);
19873         if (struct.logFileName != null) {
19874           oprot.writeFieldBegin(LOG_FILE_NAME_FIELD_DESC);
19875           oprot.writeString(struct.logFileName);
19876           oprot.writeFieldEnd();
19877         }
19878         if (struct.logLevel != null) {
19879           oprot.writeFieldBegin(LOG_LEVEL_FIELD_DESC);
19880           oprot.writeString(struct.logLevel);
19881           oprot.writeFieldEnd();
19882         }
19883         oprot.writeFieldStop();
19884         oprot.writeStructEnd();
19885       }
19886
19887     }
19888
19889     private static class setLogConfig_argsTupleSchemeFactory implements SchemeFactory {
19890       @Override
19891         public setLogConfig_argsTupleScheme getScheme() {
19892         return new setLogConfig_argsTupleScheme();
19893       }
19894     }
19895
19896     private static class setLogConfig_argsTupleScheme extends TupleScheme<setLogConfig_args> {
19897
19898       @Override
19899       public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
19900         TTupleProtocol oprot = (TTupleProtocol) prot;
19901         BitSet optionals = new BitSet();
19902         if (struct.isSetLogFileName()) {
19903           optionals.set(0);
19904         }
19905         if (struct.isSetLogLevel()) {
19906           optionals.set(1);
19907         }
19908         oprot.writeBitSet(optionals, 2);
19909         if (struct.isSetLogFileName()) {
19910           oprot.writeString(struct.logFileName);
19911         }
19912         if (struct.isSetLogLevel()) {
19913           oprot.writeString(struct.logLevel);
19914         }
19915       }
19916
19917       @Override
19918       public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
19919         TTupleProtocol iprot = (TTupleProtocol) prot;
19920         BitSet incoming = iprot.readBitSet(2);
19921         if (incoming.get(0)) {
19922           struct.logFileName = iprot.readString();
19923           struct.setLogFileNameIsSet(true);
19924         }
19925         if (incoming.get(1)) {
19926           struct.logLevel = iprot.readString();
19927           struct.setLogLevelIsSet(true);
19928         }
19929       }
19930     }
19931
19932   }
19933
19934   public static class setLogConfig_result implements org.apache.thrift.TBase<setLogConfig_result, setLogConfig_result._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_result>   {
19935     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_result");
19936
19937     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);
19938
19939     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19940     static {
19941       schemes.put(StandardScheme.class, new setLogConfig_resultStandardSchemeFactory());
19942       schemes.put(TupleScheme.class, new setLogConfig_resultTupleSchemeFactory());
19943     }
19944
19945     public int success; // required
19946
19947     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19948     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19949       SUCCESS((short)0, "success");
19950
19951       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19952
19953       static {
19954         for (_Fields field : EnumSet.allOf(_Fields.class)) {
19955           byName.put(field.getFieldName(), field);
19956         }
19957       }
19958
19959       /**
19960        * Find the _Fields constant that matches fieldId, or null if its not found.
19961        */
19962       public static _Fields findByThriftId(int fieldId) {
19963         switch(fieldId) {
19964           case 0: // SUCCESS
19965             return SUCCESS;
19966           default:
19967             return null;
19968         }
19969       }
19970
19971       /**
19972        * Find the _Fields constant that matches fieldId, throwing an exception
19973        * if it is not found.
19974        */
19975       public static _Fields findByThriftIdOrThrow(int fieldId) {
19976         _Fields fields = findByThriftId(fieldId);
19977         if (fields == null) {
19978                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19979                 }
19980         return fields;
19981       }
19982
19983       /**
19984        * Find the _Fields constant that matches name, or null if its not found.
19985        */
19986       public static _Fields findByName(String name) {
19987         return byName.get(name);
19988       }
19989
19990       private final short _thriftId;
19991       private final String _fieldName;
19992
19993       _Fields(short thriftId, String fieldName) {
19994         _thriftId = thriftId;
19995         _fieldName = fieldName;
19996       }
19997
19998       @Override
19999         public short getThriftFieldId() {
20000         return _thriftId;
20001       }
20002
20003       @Override
20004         public String getFieldName() {
20005         return _fieldName;
20006       }
20007     }
20008
20009     // isset id assignments
20010     private static final int __SUCCESS_ISSET_ID = 0;
20011     private byte __isset_bitfield = 0;
20012     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20013     static {
20014       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20015       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
20016           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
20017       metaDataMap = Collections.unmodifiableMap(tmpMap);
20018       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_result.class, metaDataMap);
20019     }
20020
20021     public setLogConfig_result() {
20022     }
20023
20024     public setLogConfig_result(
20025       int success)
20026     {
20027       this();
20028       this.success = success;
20029       setSuccessIsSet(true);
20030     }
20031
20032     /**
20033      * Performs a deep copy on <i>other</i>.
20034      */
20035     public setLogConfig_result(setLogConfig_result other) {
20036       __isset_bitfield = other.__isset_bitfield;
20037       this.success = other.success;
20038     }
20039
20040     @Override
20041         public setLogConfig_result deepCopy() {
20042       return new setLogConfig_result(this);
20043     }
20044
20045     @Override
20046     public void clear() {
20047       setSuccessIsSet(false);
20048       this.success = 0;
20049     }
20050
20051     public int getSuccess() {
20052       return this.success;
20053     }
20054
20055     public setLogConfig_result setSuccess(int success) {
20056       this.success = success;
20057       setSuccessIsSet(true);
20058       return this;
20059     }
20060
20061     public void unsetSuccess() {
20062       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
20063     }
20064
20065     /** Returns true if field success is set (has been assigned a value) and false otherwise */
20066     public boolean isSetSuccess() {
20067       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
20068     }
20069
20070     public void setSuccessIsSet(boolean value) {
20071       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
20072     }
20073
20074     @Override
20075         public void setFieldValue(_Fields field, Object value) {
20076       switch (field) {
20077       case SUCCESS:
20078         if (value == null) {
20079           unsetSuccess();
20080         } else {
20081           setSuccess((Integer)value);
20082         }
20083         break;
20084
20085       }
20086     }
20087
20088     @Override
20089         public Object getFieldValue(_Fields field) {
20090       switch (field) {
20091       case SUCCESS:
20092         return Integer.valueOf(getSuccess());
20093
20094       }
20095       throw new IllegalStateException();
20096     }
20097
20098     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20099     @Override
20100         public boolean isSet(_Fields field) {
20101       if (field == null) {
20102         throw new IllegalArgumentException();
20103       }
20104
20105       switch (field) {
20106       case SUCCESS:
20107         return isSetSuccess();
20108       }
20109       throw new IllegalStateException();
20110     }
20111
20112     @Override
20113     public boolean equals(Object that) {
20114       if (that == null) {
20115                 return false;
20116         }
20117       if (that instanceof setLogConfig_result) {
20118                 return this.equals((setLogConfig_result)that);
20119         }
20120       return false;
20121     }
20122
20123     public boolean equals(setLogConfig_result that) {
20124       if (that == null) {
20125                 return false;
20126         }
20127
20128       boolean this_present_success = true;
20129       boolean that_present_success = true;
20130       if (this_present_success || that_present_success) {
20131         if (!(this_present_success && that_present_success)) {
20132                         return false;
20133                 }
20134         if (this.success != that.success) {
20135                         return false;
20136                 }
20137       }
20138
20139       return true;
20140     }
20141
20142     @Override
20143     public int hashCode() {
20144       List<Object> list = new ArrayList<Object>();
20145
20146       boolean present_success = true;
20147       list.add(present_success);
20148       if (present_success)
20149         list.add(success);
20150       return list.hashCode();
20151     }
20152
20153     @Override
20154     public int compareTo(setLogConfig_result other) {
20155       if (!getClass().equals(other.getClass())) {
20156         return getClass().getName().compareTo(other.getClass().getName());
20157       }
20158
20159       int lastComparison = 0;
20160
20161       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
20162       if (lastComparison != 0) {
20163         return lastComparison;
20164       }
20165       if (isSetSuccess()) {
20166         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
20167         if (lastComparison != 0) {
20168           return lastComparison;
20169         }
20170       }
20171       return 0;
20172     }
20173
20174     @Override
20175         public _Fields fieldForId(int fieldId) {
20176       return _Fields.findByThriftId(fieldId);
20177     }
20178
20179     @Override
20180         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20181       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20182     }
20183
20184     @Override
20185         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20186       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20187       }
20188
20189     @Override
20190     public String toString() {
20191       StringBuilder sb = new StringBuilder("setLogConfig_result(");
20192       boolean first = true;
20193
20194       sb.append("success:");
20195       sb.append(this.success);
20196       first = false;
20197       sb.append(")");
20198       return sb.toString();
20199     }
20200
20201     public void validate() throws org.apache.thrift.TException {
20202       // check for required fields
20203       // check for sub-struct validity
20204     }
20205
20206     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20207       try {
20208         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20209       } catch (org.apache.thrift.TException te) {
20210         throw new java.io.IOException(te);
20211       }
20212     }
20213
20214     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20215       try {
20216         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20217         __isset_bitfield = 0;
20218         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20219       } catch (org.apache.thrift.TException te) {
20220         throw new java.io.IOException(te);
20221       }
20222     }
20223
20224     private static class setLogConfig_resultStandardSchemeFactory implements SchemeFactory {
20225       @Override
20226         public setLogConfig_resultStandardScheme getScheme() {
20227         return new setLogConfig_resultStandardScheme();
20228       }
20229     }
20230
20231     private static class setLogConfig_resultStandardScheme extends StandardScheme<setLogConfig_result> {
20232
20233       @Override
20234         public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_result struct) throws org.apache.thrift.TException {
20235         org.apache.thrift.protocol.TField schemeField;
20236         iprot.readStructBegin();
20237         while (true)
20238         {
20239           schemeField = iprot.readFieldBegin();
20240           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20241             break;
20242           }
20243           switch (schemeField.id) {
20244             case 0: // SUCCESS
20245               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
20246                 struct.success = iprot.readI32();
20247                 struct.setSuccessIsSet(true);
20248               } else {
20249                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20250               }
20251               break;
20252             default:
20253               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20254           }
20255           iprot.readFieldEnd();
20256         }
20257         iprot.readStructEnd();
20258
20259         // check for required fields of primitive type, which can't be checked in the validate method
20260         struct.validate();
20261       }
20262
20263       @Override
20264         public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_result struct) throws org.apache.thrift.TException {
20265         struct.validate();
20266
20267         oprot.writeStructBegin(STRUCT_DESC);
20268         if (struct.isSetSuccess()) {
20269           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20270           oprot.writeI32(struct.success);
20271           oprot.writeFieldEnd();
20272         }
20273         oprot.writeFieldStop();
20274         oprot.writeStructEnd();
20275       }
20276
20277     }
20278
20279     private static class setLogConfig_resultTupleSchemeFactory implements SchemeFactory {
20280       @Override
20281         public setLogConfig_resultTupleScheme getScheme() {
20282         return new setLogConfig_resultTupleScheme();
20283       }
20284     }
20285
20286     private static class setLogConfig_resultTupleScheme extends TupleScheme<setLogConfig_result> {
20287
20288       @Override
20289       public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
20290         TTupleProtocol oprot = (TTupleProtocol) prot;
20291         BitSet optionals = new BitSet();
20292         if (struct.isSetSuccess()) {
20293           optionals.set(0);
20294         }
20295         oprot.writeBitSet(optionals, 1);
20296         if (struct.isSetSuccess()) {
20297           oprot.writeI32(struct.success);
20298         }
20299       }
20300
20301       @Override
20302       public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
20303         TTupleProtocol iprot = (TTupleProtocol) prot;
20304         BitSet incoming = iprot.readBitSet(1);
20305         if (incoming.get(0)) {
20306           struct.success = iprot.readI32();
20307           struct.setSuccessIsSet(true);
20308         }
20309       }
20310     }
20311
20312   }
20313
20314   public static class enableGracefulRestart_args implements org.apache.thrift.TBase<enableGracefulRestart_args, enableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_args>   {
20315     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_args");
20316
20317     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);
20318
20319     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20320     static {
20321       schemes.put(StandardScheme.class, new enableGracefulRestart_argsStandardSchemeFactory());
20322       schemes.put(TupleScheme.class, new enableGracefulRestart_argsTupleSchemeFactory());
20323     }
20324
20325     public int stalepathTime; // required
20326
20327     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20328     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20329       STALEPATH_TIME((short)1, "stalepathTime");
20330
20331       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20332
20333       static {
20334         for (_Fields field : EnumSet.allOf(_Fields.class)) {
20335           byName.put(field.getFieldName(), field);
20336         }
20337       }
20338
20339       /**
20340        * Find the _Fields constant that matches fieldId, or null if its not found.
20341        */
20342       public static _Fields findByThriftId(int fieldId) {
20343         switch(fieldId) {
20344           case 1: // STALEPATH_TIME
20345             return STALEPATH_TIME;
20346           default:
20347             return null;
20348         }
20349       }
20350
20351       /**
20352        * Find the _Fields constant that matches fieldId, throwing an exception
20353        * if it is not found.
20354        */
20355       public static _Fields findByThriftIdOrThrow(int fieldId) {
20356         _Fields fields = findByThriftId(fieldId);
20357         if (fields == null) {
20358                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20359                 }
20360         return fields;
20361       }
20362
20363       /**
20364        * Find the _Fields constant that matches name, or null if its not found.
20365        */
20366       public static _Fields findByName(String name) {
20367         return byName.get(name);
20368       }
20369
20370       private final short _thriftId;
20371       private final String _fieldName;
20372
20373       _Fields(short thriftId, String fieldName) {
20374         _thriftId = thriftId;
20375         _fieldName = fieldName;
20376       }
20377
20378       @Override
20379         public short getThriftFieldId() {
20380         return _thriftId;
20381       }
20382
20383       @Override
20384         public String getFieldName() {
20385         return _fieldName;
20386       }
20387     }
20388
20389     // isset id assignments
20390     private static final int __STALEPATHTIME_ISSET_ID = 0;
20391     private byte __isset_bitfield = 0;
20392     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20393     static {
20394       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20395       tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
20396           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
20397       metaDataMap = Collections.unmodifiableMap(tmpMap);
20398       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_args.class, metaDataMap);
20399     }
20400
20401     public enableGracefulRestart_args() {
20402     }
20403
20404     public enableGracefulRestart_args(
20405       int stalepathTime)
20406     {
20407       this();
20408       this.stalepathTime = stalepathTime;
20409       setStalepathTimeIsSet(true);
20410     }
20411
20412     /**
20413      * Performs a deep copy on <i>other</i>.
20414      */
20415     public enableGracefulRestart_args(enableGracefulRestart_args other) {
20416       __isset_bitfield = other.__isset_bitfield;
20417       this.stalepathTime = other.stalepathTime;
20418     }
20419
20420     @Override
20421         public enableGracefulRestart_args deepCopy() {
20422       return new enableGracefulRestart_args(this);
20423     }
20424
20425     @Override
20426     public void clear() {
20427       setStalepathTimeIsSet(false);
20428       this.stalepathTime = 0;
20429     }
20430
20431     public int getStalepathTime() {
20432       return this.stalepathTime;
20433     }
20434
20435     public enableGracefulRestart_args setStalepathTime(int stalepathTime) {
20436       this.stalepathTime = stalepathTime;
20437       setStalepathTimeIsSet(true);
20438       return this;
20439     }
20440
20441     public void unsetStalepathTime() {
20442       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
20443     }
20444
20445     /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
20446     public boolean isSetStalepathTime() {
20447       return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
20448     }
20449
20450     public void setStalepathTimeIsSet(boolean value) {
20451       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
20452     }
20453
20454     @Override
20455         public void setFieldValue(_Fields field, Object value) {
20456       switch (field) {
20457       case STALEPATH_TIME:
20458         if (value == null) {
20459           unsetStalepathTime();
20460         } else {
20461           setStalepathTime((Integer)value);
20462         }
20463         break;
20464
20465       }
20466     }
20467
20468     @Override
20469         public Object getFieldValue(_Fields field) {
20470       switch (field) {
20471       case STALEPATH_TIME:
20472         return Integer.valueOf(getStalepathTime());
20473
20474       }
20475       throw new IllegalStateException();
20476     }
20477
20478     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20479     @Override
20480         public boolean isSet(_Fields field) {
20481       if (field == null) {
20482         throw new IllegalArgumentException();
20483       }
20484
20485       switch (field) {
20486       case STALEPATH_TIME:
20487         return isSetStalepathTime();
20488       }
20489       throw new IllegalStateException();
20490     }
20491
20492     @Override
20493     public boolean equals(Object that) {
20494       if (that == null) {
20495                 return false;
20496         }
20497       if (that instanceof enableGracefulRestart_args) {
20498                 return this.equals((enableGracefulRestart_args)that);
20499         }
20500       return false;
20501     }
20502
20503     public boolean equals(enableGracefulRestart_args that) {
20504       if (that == null) {
20505                 return false;
20506         }
20507
20508       boolean this_present_stalepathTime = true;
20509       boolean that_present_stalepathTime = true;
20510       if (this_present_stalepathTime || that_present_stalepathTime) {
20511         if (!(this_present_stalepathTime && that_present_stalepathTime)) {
20512                         return false;
20513                 }
20514         if (this.stalepathTime != that.stalepathTime) {
20515                         return false;
20516                 }
20517       }
20518
20519       return true;
20520     }
20521
20522     @Override
20523     public int hashCode() {
20524       List<Object> list = new ArrayList<Object>();
20525
20526       boolean present_stalepathTime = true;
20527       list.add(present_stalepathTime);
20528       if (present_stalepathTime)
20529         list.add(stalepathTime);
20530       return list.hashCode();
20531     }
20532
20533     @Override
20534     public int compareTo(enableGracefulRestart_args other) {
20535       if (!getClass().equals(other.getClass())) {
20536         return getClass().getName().compareTo(other.getClass().getName());
20537       }
20538
20539       int lastComparison = 0;
20540
20541       lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
20542       if (lastComparison != 0) {
20543         return lastComparison;
20544       }
20545       if (isSetStalepathTime()) {
20546         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
20547         if (lastComparison != 0) {
20548           return lastComparison;
20549         }
20550       }
20551       return 0;
20552     }
20553
20554     @Override
20555         public _Fields fieldForId(int fieldId) {
20556       return _Fields.findByThriftId(fieldId);
20557     }
20558
20559     @Override
20560         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20561       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20562     }
20563
20564     @Override
20565         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20566       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20567     }
20568
20569     @Override
20570     public String toString() {
20571       StringBuilder sb = new StringBuilder("enableGracefulRestart_args(");
20572       boolean first = true;
20573
20574       sb.append("stalepathTime:");
20575       sb.append(this.stalepathTime);
20576       first = false;
20577       sb.append(")");
20578       return sb.toString();
20579     }
20580
20581     public void validate() throws org.apache.thrift.TException {
20582       // check for required fields
20583       // check for sub-struct validity
20584     }
20585
20586     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20587       try {
20588         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20589       } catch (org.apache.thrift.TException te) {
20590         throw new java.io.IOException(te);
20591       }
20592     }
20593
20594     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20595       try {
20596         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20597         __isset_bitfield = 0;
20598         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20599       } catch (org.apache.thrift.TException te) {
20600         throw new java.io.IOException(te);
20601       }
20602     }
20603
20604     private static class enableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
20605       @Override
20606         public enableGracefulRestart_argsStandardScheme getScheme() {
20607         return new enableGracefulRestart_argsStandardScheme();
20608       }
20609     }
20610
20611     private static class enableGracefulRestart_argsStandardScheme extends StandardScheme<enableGracefulRestart_args> {
20612
20613       @Override
20614         public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
20615         org.apache.thrift.protocol.TField schemeField;
20616         iprot.readStructBegin();
20617         while (true)
20618         {
20619           schemeField = iprot.readFieldBegin();
20620           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20621             break;
20622           }
20623           switch (schemeField.id) {
20624             case 1: // STALEPATH_TIME
20625               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
20626                 struct.stalepathTime = iprot.readI32();
20627                 struct.setStalepathTimeIsSet(true);
20628               } else {
20629                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20630               }
20631               break;
20632             default:
20633               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20634           }
20635           iprot.readFieldEnd();
20636         }
20637         iprot.readStructEnd();
20638
20639         // check for required fields of primitive type, which can't be checked in the validate method
20640         struct.validate();
20641       }
20642
20643       @Override
20644         public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
20645         struct.validate();
20646
20647         oprot.writeStructBegin(STRUCT_DESC);
20648         oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
20649         oprot.writeI32(struct.stalepathTime);
20650         oprot.writeFieldEnd();
20651         oprot.writeFieldStop();
20652         oprot.writeStructEnd();
20653       }
20654
20655     }
20656
20657     private static class enableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
20658       @Override
20659         public enableGracefulRestart_argsTupleScheme getScheme() {
20660         return new enableGracefulRestart_argsTupleScheme();
20661       }
20662     }
20663
20664     private static class enableGracefulRestart_argsTupleScheme extends TupleScheme<enableGracefulRestart_args> {
20665
20666       @Override
20667       public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
20668         TTupleProtocol oprot = (TTupleProtocol) prot;
20669         BitSet optionals = new BitSet();
20670         if (struct.isSetStalepathTime()) {
20671           optionals.set(0);
20672         }
20673         oprot.writeBitSet(optionals, 1);
20674         if (struct.isSetStalepathTime()) {
20675           oprot.writeI32(struct.stalepathTime);
20676         }
20677       }
20678
20679       @Override
20680       public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
20681         TTupleProtocol iprot = (TTupleProtocol) prot;
20682         BitSet incoming = iprot.readBitSet(1);
20683         if (incoming.get(0)) {
20684           struct.stalepathTime = iprot.readI32();
20685           struct.setStalepathTimeIsSet(true);
20686         }
20687       }
20688     }
20689
20690   }
20691
20692   public static class enableGracefulRestart_result implements org.apache.thrift.TBase<enableGracefulRestart_result, enableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_result>   {
20693     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_result");
20694
20695     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);
20696
20697     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20698     static {
20699       schemes.put(StandardScheme.class, new enableGracefulRestart_resultStandardSchemeFactory());
20700       schemes.put(TupleScheme.class, new enableGracefulRestart_resultTupleSchemeFactory());
20701     }
20702
20703     public int success; // required
20704
20705     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20706     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20707       SUCCESS((short)0, "success");
20708
20709       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20710
20711       static {
20712         for (_Fields field : EnumSet.allOf(_Fields.class)) {
20713           byName.put(field.getFieldName(), field);
20714         }
20715       }
20716
20717       /**
20718        * Find the _Fields constant that matches fieldId, or null if its not found.
20719        */
20720       public static _Fields findByThriftId(int fieldId) {
20721         switch(fieldId) {
20722           case 0: // SUCCESS
20723             return SUCCESS;
20724           default:
20725             return null;
20726         }
20727       }
20728
20729       /**
20730        * Find the _Fields constant that matches fieldId, throwing an exception
20731        * if it is not found.
20732        */
20733       public static _Fields findByThriftIdOrThrow(int fieldId) {
20734         _Fields fields = findByThriftId(fieldId);
20735         if (fields == null) {
20736                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20737                 }
20738         return fields;
20739       }
20740
20741       /**
20742        * Find the _Fields constant that matches name, or null if its not found.
20743        */
20744       public static _Fields findByName(String name) {
20745         return byName.get(name);
20746       }
20747
20748       private final short _thriftId;
20749       private final String _fieldName;
20750
20751       _Fields(short thriftId, String fieldName) {
20752         _thriftId = thriftId;
20753         _fieldName = fieldName;
20754       }
20755
20756       @Override
20757         public short getThriftFieldId() {
20758         return _thriftId;
20759       }
20760
20761       @Override
20762         public String getFieldName() {
20763         return _fieldName;
20764       }
20765     }
20766
20767     // isset id assignments
20768     private static final int __SUCCESS_ISSET_ID = 0;
20769     private byte __isset_bitfield = 0;
20770     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20771     static {
20772       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20773       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
20774           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
20775       metaDataMap = Collections.unmodifiableMap(tmpMap);
20776       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_result.class, metaDataMap);
20777     }
20778
20779     public enableGracefulRestart_result() {
20780     }
20781
20782     public enableGracefulRestart_result(
20783       int success)
20784     {
20785       this();
20786       this.success = success;
20787       setSuccessIsSet(true);
20788     }
20789
20790     /**
20791      * Performs a deep copy on <i>other</i>.
20792      */
20793     public enableGracefulRestart_result(enableGracefulRestart_result other) {
20794       __isset_bitfield = other.__isset_bitfield;
20795       this.success = other.success;
20796     }
20797
20798     @Override
20799         public enableGracefulRestart_result deepCopy() {
20800       return new enableGracefulRestart_result(this);
20801     }
20802
20803     @Override
20804     public void clear() {
20805       setSuccessIsSet(false);
20806       this.success = 0;
20807     }
20808
20809     public int getSuccess() {
20810       return this.success;
20811     }
20812
20813     public enableGracefulRestart_result setSuccess(int success) {
20814       this.success = success;
20815       setSuccessIsSet(true);
20816       return this;
20817     }
20818
20819     public void unsetSuccess() {
20820       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
20821     }
20822
20823     /** Returns true if field success is set (has been assigned a value) and false otherwise */
20824     public boolean isSetSuccess() {
20825       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
20826     }
20827
20828     public void setSuccessIsSet(boolean value) {
20829       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
20830     }
20831
20832     @Override
20833         public void setFieldValue(_Fields field, Object value) {
20834       switch (field) {
20835       case SUCCESS:
20836         if (value == null) {
20837           unsetSuccess();
20838         } else {
20839           setSuccess((Integer)value);
20840         }
20841         break;
20842
20843       }
20844     }
20845
20846     @Override
20847         public Object getFieldValue(_Fields field) {
20848       switch (field) {
20849       case SUCCESS:
20850         return Integer.valueOf(getSuccess());
20851
20852       }
20853       throw new IllegalStateException();
20854     }
20855
20856     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20857     @Override
20858         public boolean isSet(_Fields field) {
20859       if (field == null) {
20860         throw new IllegalArgumentException();
20861       }
20862
20863       switch (field) {
20864       case SUCCESS:
20865         return isSetSuccess();
20866       }
20867       throw new IllegalStateException();
20868     }
20869
20870     @Override
20871     public boolean equals(Object that) {
20872       if (that == null) {
20873                 return false;
20874         }
20875       if (that instanceof enableGracefulRestart_result) {
20876                 return this.equals((enableGracefulRestart_result)that);
20877         }
20878       return false;
20879     }
20880
20881     public boolean equals(enableGracefulRestart_result that) {
20882       if (that == null) {
20883                 return false;
20884         }
20885
20886       boolean this_present_success = true;
20887       boolean that_present_success = true;
20888       if (this_present_success || that_present_success) {
20889         if (!(this_present_success && that_present_success)) {
20890                         return false;
20891                 }
20892         if (this.success != that.success) {
20893                         return false;
20894                 }
20895       }
20896
20897       return true;
20898     }
20899
20900     @Override
20901     public int hashCode() {
20902       List<Object> list = new ArrayList<Object>();
20903
20904       boolean present_success = true;
20905       list.add(present_success);
20906       if (present_success)
20907         list.add(success);
20908       return list.hashCode();
20909     }
20910
20911     @Override
20912     public int compareTo(enableGracefulRestart_result other) {
20913       if (!getClass().equals(other.getClass())) {
20914         return getClass().getName().compareTo(other.getClass().getName());
20915       }
20916
20917       int lastComparison = 0;
20918
20919       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
20920       if (lastComparison != 0) {
20921         return lastComparison;
20922       }
20923       if (isSetSuccess()) {
20924         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
20925         if (lastComparison != 0) {
20926           return lastComparison;
20927         }
20928       }
20929       return 0;
20930     }
20931
20932     @Override
20933         public _Fields fieldForId(int fieldId) {
20934       return _Fields.findByThriftId(fieldId);
20935     }
20936
20937     @Override
20938         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20939       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20940     }
20941
20942     @Override
20943         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20944       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20945       }
20946
20947     @Override
20948     public String toString() {
20949       StringBuilder sb = new StringBuilder("enableGracefulRestart_result(");
20950       boolean first = true;
20951
20952       sb.append("success:");
20953       sb.append(this.success);
20954       first = false;
20955       sb.append(")");
20956       return sb.toString();
20957     }
20958
20959     public void validate() throws org.apache.thrift.TException {
20960       // check for required fields
20961       // check for sub-struct validity
20962     }
20963
20964     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20965       try {
20966         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20967       } catch (org.apache.thrift.TException te) {
20968         throw new java.io.IOException(te);
20969       }
20970     }
20971
20972     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20973       try {
20974         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20975         __isset_bitfield = 0;
20976         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20977       } catch (org.apache.thrift.TException te) {
20978         throw new java.io.IOException(te);
20979       }
20980     }
20981
20982     private static class enableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
20983       @Override
20984         public enableGracefulRestart_resultStandardScheme getScheme() {
20985         return new enableGracefulRestart_resultStandardScheme();
20986       }
20987     }
20988
20989     private static class enableGracefulRestart_resultStandardScheme extends StandardScheme<enableGracefulRestart_result> {
20990
20991       @Override
20992         public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
20993         org.apache.thrift.protocol.TField schemeField;
20994         iprot.readStructBegin();
20995         while (true)
20996         {
20997           schemeField = iprot.readFieldBegin();
20998           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20999             break;
21000           }
21001           switch (schemeField.id) {
21002             case 0: // SUCCESS
21003               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21004                 struct.success = iprot.readI32();
21005                 struct.setSuccessIsSet(true);
21006               } else {
21007                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21008               }
21009               break;
21010             default:
21011               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21012           }
21013           iprot.readFieldEnd();
21014         }
21015         iprot.readStructEnd();
21016
21017         // check for required fields of primitive type, which can't be checked in the validate method
21018         struct.validate();
21019       }
21020
21021       @Override
21022         public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
21023         struct.validate();
21024
21025         oprot.writeStructBegin(STRUCT_DESC);
21026         if (struct.isSetSuccess()) {
21027           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21028           oprot.writeI32(struct.success);
21029           oprot.writeFieldEnd();
21030         }
21031         oprot.writeFieldStop();
21032         oprot.writeStructEnd();
21033       }
21034
21035     }
21036
21037     private static class enableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
21038       @Override
21039         public enableGracefulRestart_resultTupleScheme getScheme() {
21040         return new enableGracefulRestart_resultTupleScheme();
21041       }
21042     }
21043
21044     private static class enableGracefulRestart_resultTupleScheme extends TupleScheme<enableGracefulRestart_result> {
21045
21046       @Override
21047       public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
21048         TTupleProtocol oprot = (TTupleProtocol) prot;
21049         BitSet optionals = new BitSet();
21050         if (struct.isSetSuccess()) {
21051           optionals.set(0);
21052         }
21053         oprot.writeBitSet(optionals, 1);
21054         if (struct.isSetSuccess()) {
21055           oprot.writeI32(struct.success);
21056         }
21057       }
21058
21059       @Override
21060       public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
21061         TTupleProtocol iprot = (TTupleProtocol) prot;
21062         BitSet incoming = iprot.readBitSet(1);
21063         if (incoming.get(0)) {
21064           struct.success = iprot.readI32();
21065           struct.setSuccessIsSet(true);
21066         }
21067       }
21068     }
21069
21070   }
21071
21072   public static class disableGracefulRestart_args implements org.apache.thrift.TBase<disableGracefulRestart_args, disableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_args>   {
21073     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_args");
21074
21075
21076     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21077     static {
21078       schemes.put(StandardScheme.class, new disableGracefulRestart_argsStandardSchemeFactory());
21079       schemes.put(TupleScheme.class, new disableGracefulRestart_argsTupleSchemeFactory());
21080     }
21081
21082
21083     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21084     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21085 ;
21086
21087       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21088
21089       static {
21090         for (_Fields field : EnumSet.allOf(_Fields.class)) {
21091           byName.put(field.getFieldName(), field);
21092         }
21093       }
21094
21095       /**
21096        * Find the _Fields constant that matches fieldId, or null if its not found.
21097        */
21098       public static _Fields findByThriftId(int fieldId) {
21099         switch(fieldId) {
21100           default:
21101             return null;
21102         }
21103       }
21104
21105       /**
21106        * Find the _Fields constant that matches fieldId, throwing an exception
21107        * if it is not found.
21108        */
21109       public static _Fields findByThriftIdOrThrow(int fieldId) {
21110         _Fields fields = findByThriftId(fieldId);
21111         if (fields == null) {
21112                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21113                 }
21114         return fields;
21115       }
21116
21117       /**
21118        * Find the _Fields constant that matches name, or null if its not found.
21119        */
21120       public static _Fields findByName(String name) {
21121         return byName.get(name);
21122       }
21123
21124       private final short _thriftId;
21125       private final String _fieldName;
21126
21127       _Fields(short thriftId, String fieldName) {
21128         _thriftId = thriftId;
21129         _fieldName = fieldName;
21130       }
21131
21132       @Override
21133         public short getThriftFieldId() {
21134         return _thriftId;
21135       }
21136
21137       @Override
21138         public String getFieldName() {
21139         return _fieldName;
21140       }
21141     }
21142     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21143     static {
21144       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21145       metaDataMap = Collections.unmodifiableMap(tmpMap);
21146       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_args.class, metaDataMap);
21147     }
21148
21149     public disableGracefulRestart_args() {
21150     }
21151
21152     /**
21153      * Performs a deep copy on <i>other</i>.
21154      */
21155     public disableGracefulRestart_args(disableGracefulRestart_args other) {
21156     }
21157
21158     @Override
21159         public disableGracefulRestart_args deepCopy() {
21160       return new disableGracefulRestart_args(this);
21161     }
21162
21163     @Override
21164     public void clear() {
21165     }
21166
21167     @Override
21168         public void setFieldValue(_Fields field, Object value) {
21169       switch (field) {
21170       }
21171     }
21172
21173     @Override
21174         public Object getFieldValue(_Fields field) {
21175       switch (field) {
21176       }
21177       throw new IllegalStateException();
21178     }
21179
21180     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21181     @Override
21182         public boolean isSet(_Fields field) {
21183       if (field == null) {
21184         throw new IllegalArgumentException();
21185       }
21186
21187       switch (field) {
21188       }
21189       throw new IllegalStateException();
21190     }
21191
21192     @Override
21193     public boolean equals(Object that) {
21194       if (that == null) {
21195                 return false;
21196         }
21197       if (that instanceof disableGracefulRestart_args) {
21198                 return this.equals((disableGracefulRestart_args)that);
21199         }
21200       return false;
21201     }
21202
21203     public boolean equals(disableGracefulRestart_args that) {
21204       if (that == null) {
21205                 return false;
21206         }
21207
21208       return true;
21209     }
21210
21211     @Override
21212     public int hashCode() {
21213       List<Object> list = new ArrayList<Object>();
21214
21215       return list.hashCode();
21216     }
21217
21218     @Override
21219     public int compareTo(disableGracefulRestart_args other) {
21220       if (!getClass().equals(other.getClass())) {
21221         return getClass().getName().compareTo(other.getClass().getName());
21222       }
21223
21224       int lastComparison = 0;
21225
21226       return 0;
21227     }
21228
21229     @Override
21230         public _Fields fieldForId(int fieldId) {
21231       return _Fields.findByThriftId(fieldId);
21232     }
21233
21234     @Override
21235         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21236       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
21237     }
21238
21239     @Override
21240         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21241       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
21242     }
21243
21244     @Override
21245     public String toString() {
21246       StringBuilder sb = new StringBuilder("disableGracefulRestart_args(");
21247       boolean first = true;
21248
21249       sb.append(")");
21250       return sb.toString();
21251     }
21252
21253     public void validate() throws org.apache.thrift.TException {
21254       // check for required fields
21255       // check for sub-struct validity
21256     }
21257
21258     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21259       try {
21260         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21261       } catch (org.apache.thrift.TException te) {
21262         throw new java.io.IOException(te);
21263       }
21264     }
21265
21266     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21267       try {
21268         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21269       } catch (org.apache.thrift.TException te) {
21270         throw new java.io.IOException(te);
21271       }
21272     }
21273
21274     private static class disableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
21275       @Override
21276         public disableGracefulRestart_argsStandardScheme getScheme() {
21277         return new disableGracefulRestart_argsStandardScheme();
21278       }
21279     }
21280
21281     private static class disableGracefulRestart_argsStandardScheme extends StandardScheme<disableGracefulRestart_args> {
21282
21283       @Override
21284         public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
21285         org.apache.thrift.protocol.TField schemeField;
21286         iprot.readStructBegin();
21287         while (true)
21288         {
21289           schemeField = iprot.readFieldBegin();
21290           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
21291             break;
21292           }
21293           switch (schemeField.id) {
21294             default:
21295               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21296           }
21297           iprot.readFieldEnd();
21298         }
21299         iprot.readStructEnd();
21300
21301         // check for required fields of primitive type, which can't be checked in the validate method
21302         struct.validate();
21303       }
21304
21305       @Override
21306         public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
21307         struct.validate();
21308
21309         oprot.writeStructBegin(STRUCT_DESC);
21310         oprot.writeFieldStop();
21311         oprot.writeStructEnd();
21312       }
21313
21314     }
21315
21316     private static class disableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
21317       @Override
21318         public disableGracefulRestart_argsTupleScheme getScheme() {
21319         return new disableGracefulRestart_argsTupleScheme();
21320       }
21321     }
21322
21323     private static class disableGracefulRestart_argsTupleScheme extends TupleScheme<disableGracefulRestart_args> {
21324
21325       @Override
21326       public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
21327         TTupleProtocol oprot = (TTupleProtocol) prot;
21328       }
21329
21330       @Override
21331       public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
21332         TTupleProtocol iprot = (TTupleProtocol) prot;
21333       }
21334     }
21335
21336   }
21337
21338   public static class disableGracefulRestart_result implements org.apache.thrift.TBase<disableGracefulRestart_result, disableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_result>   {
21339     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_result");
21340
21341     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);
21342
21343     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21344     static {
21345       schemes.put(StandardScheme.class, new disableGracefulRestart_resultStandardSchemeFactory());
21346       schemes.put(TupleScheme.class, new disableGracefulRestart_resultTupleSchemeFactory());
21347     }
21348
21349     public int success; // required
21350
21351     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21352     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21353       SUCCESS((short)0, "success");
21354
21355       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21356
21357       static {
21358         for (_Fields field : EnumSet.allOf(_Fields.class)) {
21359           byName.put(field.getFieldName(), field);
21360         }
21361       }
21362
21363       /**
21364        * Find the _Fields constant that matches fieldId, or null if its not found.
21365        */
21366       public static _Fields findByThriftId(int fieldId) {
21367         switch(fieldId) {
21368           case 0: // SUCCESS
21369             return SUCCESS;
21370           default:
21371             return null;
21372         }
21373       }
21374
21375       /**
21376        * Find the _Fields constant that matches fieldId, throwing an exception
21377        * if it is not found.
21378        */
21379       public static _Fields findByThriftIdOrThrow(int fieldId) {
21380         _Fields fields = findByThriftId(fieldId);
21381         if (fields == null) {
21382                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21383                 }
21384         return fields;
21385       }
21386
21387       /**
21388        * Find the _Fields constant that matches name, or null if its not found.
21389        */
21390       public static _Fields findByName(String name) {
21391         return byName.get(name);
21392       }
21393
21394       private final short _thriftId;
21395       private final String _fieldName;
21396
21397       _Fields(short thriftId, String fieldName) {
21398         _thriftId = thriftId;
21399         _fieldName = fieldName;
21400       }
21401
21402       @Override
21403         public short getThriftFieldId() {
21404         return _thriftId;
21405       }
21406
21407       @Override
21408         public String getFieldName() {
21409         return _fieldName;
21410       }
21411     }
21412
21413     // isset id assignments
21414     private static final int __SUCCESS_ISSET_ID = 0;
21415     private byte __isset_bitfield = 0;
21416     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21417     static {
21418       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21419       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
21420           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
21421       metaDataMap = Collections.unmodifiableMap(tmpMap);
21422       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_result.class, metaDataMap);
21423     }
21424
21425     public disableGracefulRestart_result() {
21426     }
21427
21428     public disableGracefulRestart_result(
21429       int success)
21430     {
21431       this();
21432       this.success = success;
21433       setSuccessIsSet(true);
21434     }
21435
21436     /**
21437      * Performs a deep copy on <i>other</i>.
21438      */
21439     public disableGracefulRestart_result(disableGracefulRestart_result other) {
21440       __isset_bitfield = other.__isset_bitfield;
21441       this.success = other.success;
21442     }
21443
21444     @Override
21445         public disableGracefulRestart_result deepCopy() {
21446       return new disableGracefulRestart_result(this);
21447     }
21448
21449     @Override
21450     public void clear() {
21451       setSuccessIsSet(false);
21452       this.success = 0;
21453     }
21454
21455     public int getSuccess() {
21456       return this.success;
21457     }
21458
21459     public disableGracefulRestart_result setSuccess(int success) {
21460       this.success = success;
21461       setSuccessIsSet(true);
21462       return this;
21463     }
21464
21465     public void unsetSuccess() {
21466       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
21467     }
21468
21469     /** Returns true if field success is set (has been assigned a value) and false otherwise */
21470     public boolean isSetSuccess() {
21471       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
21472     }
21473
21474     public void setSuccessIsSet(boolean value) {
21475       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
21476     }
21477
21478     @Override
21479         public void setFieldValue(_Fields field, Object value) {
21480       switch (field) {
21481       case SUCCESS:
21482         if (value == null) {
21483           unsetSuccess();
21484         } else {
21485           setSuccess((Integer)value);
21486         }
21487         break;
21488
21489       }
21490     }
21491
21492     @Override
21493         public Object getFieldValue(_Fields field) {
21494       switch (field) {
21495       case SUCCESS:
21496         return Integer.valueOf(getSuccess());
21497
21498       }
21499       throw new IllegalStateException();
21500     }
21501
21502     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21503     @Override
21504         public boolean isSet(_Fields field) {
21505       if (field == null) {
21506         throw new IllegalArgumentException();
21507       }
21508
21509       switch (field) {
21510       case SUCCESS:
21511         return isSetSuccess();
21512       }
21513       throw new IllegalStateException();
21514     }
21515
21516     @Override
21517     public boolean equals(Object that) {
21518       if (that == null) {
21519                 return false;
21520         }
21521       if (that instanceof disableGracefulRestart_result) {
21522                 return this.equals((disableGracefulRestart_result)that);
21523         }
21524       return false;
21525     }
21526
21527     public boolean equals(disableGracefulRestart_result that) {
21528       if (that == null) {
21529                 return false;
21530         }
21531
21532       boolean this_present_success = true;
21533       boolean that_present_success = true;
21534       if (this_present_success || that_present_success) {
21535         if (!(this_present_success && that_present_success)) {
21536                         return false;
21537                 }
21538         if (this.success != that.success) {
21539                         return false;
21540                 }
21541       }
21542
21543       return true;
21544     }
21545
21546     @Override
21547     public int hashCode() {
21548       List<Object> list = new ArrayList<Object>();
21549
21550       boolean present_success = true;
21551       list.add(present_success);
21552       if (present_success)
21553         list.add(success);
21554       return list.hashCode();
21555     }
21556
21557     @Override
21558     public int compareTo(disableGracefulRestart_result other) {
21559       if (!getClass().equals(other.getClass())) {
21560         return getClass().getName().compareTo(other.getClass().getName());
21561       }
21562
21563       int lastComparison = 0;
21564
21565       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
21566       if (lastComparison != 0) {
21567         return lastComparison;
21568       }
21569       if (isSetSuccess()) {
21570         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
21571         if (lastComparison != 0) {
21572           return lastComparison;
21573         }
21574       }
21575       return 0;
21576     }
21577
21578     @Override
21579         public _Fields fieldForId(int fieldId) {
21580       return _Fields.findByThriftId(fieldId);
21581     }
21582
21583     @Override
21584         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21585       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
21586     }
21587
21588     @Override
21589         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21590       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
21591       }
21592
21593     @Override
21594     public String toString() {
21595       StringBuilder sb = new StringBuilder("disableGracefulRestart_result(");
21596       boolean first = true;
21597
21598       sb.append("success:");
21599       sb.append(this.success);
21600       first = false;
21601       sb.append(")");
21602       return sb.toString();
21603     }
21604
21605     public void validate() throws org.apache.thrift.TException {
21606       // check for required fields
21607       // check for sub-struct validity
21608     }
21609
21610     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21611       try {
21612         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21613       } catch (org.apache.thrift.TException te) {
21614         throw new java.io.IOException(te);
21615       }
21616     }
21617
21618     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21619       try {
21620         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21621         __isset_bitfield = 0;
21622         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21623       } catch (org.apache.thrift.TException te) {
21624         throw new java.io.IOException(te);
21625       }
21626     }
21627
21628     private static class disableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
21629       @Override
21630         public disableGracefulRestart_resultStandardScheme getScheme() {
21631         return new disableGracefulRestart_resultStandardScheme();
21632       }
21633     }
21634
21635     private static class disableGracefulRestart_resultStandardScheme extends StandardScheme<disableGracefulRestart_result> {
21636
21637       @Override
21638         public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
21639         org.apache.thrift.protocol.TField schemeField;
21640         iprot.readStructBegin();
21641         while (true)
21642         {
21643           schemeField = iprot.readFieldBegin();
21644           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
21645             break;
21646           }
21647           switch (schemeField.id) {
21648             case 0: // SUCCESS
21649               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21650                 struct.success = iprot.readI32();
21651                 struct.setSuccessIsSet(true);
21652               } else {
21653                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21654               }
21655               break;
21656             default:
21657               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21658           }
21659           iprot.readFieldEnd();
21660         }
21661         iprot.readStructEnd();
21662
21663         // check for required fields of primitive type, which can't be checked in the validate method
21664         struct.validate();
21665       }
21666
21667       @Override
21668         public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
21669         struct.validate();
21670
21671         oprot.writeStructBegin(STRUCT_DESC);
21672         if (struct.isSetSuccess()) {
21673           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21674           oprot.writeI32(struct.success);
21675           oprot.writeFieldEnd();
21676         }
21677         oprot.writeFieldStop();
21678         oprot.writeStructEnd();
21679       }
21680
21681     }
21682
21683     private static class disableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
21684       @Override
21685         public disableGracefulRestart_resultTupleScheme getScheme() {
21686         return new disableGracefulRestart_resultTupleScheme();
21687       }
21688     }
21689
21690     private static class disableGracefulRestart_resultTupleScheme extends TupleScheme<disableGracefulRestart_result> {
21691
21692       @Override
21693       public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
21694         TTupleProtocol oprot = (TTupleProtocol) prot;
21695         BitSet optionals = new BitSet();
21696         if (struct.isSetSuccess()) {
21697           optionals.set(0);
21698         }
21699         oprot.writeBitSet(optionals, 1);
21700         if (struct.isSetSuccess()) {
21701           oprot.writeI32(struct.success);
21702         }
21703       }
21704
21705       @Override
21706       public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
21707         TTupleProtocol iprot = (TTupleProtocol) prot;
21708         BitSet incoming = iprot.readBitSet(1);
21709         if (incoming.get(0)) {
21710           struct.success = iprot.readI32();
21711           struct.setSuccessIsSet(true);
21712         }
21713       }
21714     }
21715
21716   }
21717
21718   public static class getRoutes_args implements org.apache.thrift.TBase<getRoutes_args, getRoutes_args._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_args>   {
21719     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_args");
21720
21721     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);
21722     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);
21723     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);
21724     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);
21725
21726     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21727     static {
21728       schemes.put(StandardScheme.class, new getRoutes_argsStandardSchemeFactory());
21729       schemes.put(TupleScheme.class, new getRoutes_argsTupleSchemeFactory());
21730     }
21731
21732     /**
21733      *
21734      * @see protocol_type
21735      */
21736     public protocol_type p_type; // required
21737     public int optype; // required
21738     public int winSize; // required
21739     /**
21740      *
21741      * @see af_afi
21742      */
21743     public af_afi afi; // required
21744
21745     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21746     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21747       /**
21748        *
21749        * @see protocol_type
21750        */
21751       P_TYPE((short)1, "p_type"),
21752       OPTYPE((short)2, "optype"),
21753       WIN_SIZE((short)3, "winSize"),
21754       /**
21755        *
21756        * @see af_afi
21757        */
21758       AFI((short)4, "afi");
21759
21760       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21761
21762       static {
21763         for (_Fields field : EnumSet.allOf(_Fields.class)) {
21764           byName.put(field.getFieldName(), field);
21765         }
21766       }
21767
21768       /**
21769        * Find the _Fields constant that matches fieldId, or null if its not found.
21770        */
21771       public static _Fields findByThriftId(int fieldId) {
21772         switch(fieldId) {
21773           case 1: // P_TYPE
21774             return P_TYPE;
21775           case 2: // OPTYPE
21776             return OPTYPE;
21777           case 3: // WIN_SIZE
21778             return WIN_SIZE;
21779           case 4: // AFI
21780             return AFI;
21781           default:
21782             return null;
21783         }
21784       }
21785
21786       /**
21787        * Find the _Fields constant that matches fieldId, throwing an exception
21788        * if it is not found.
21789        */
21790       public static _Fields findByThriftIdOrThrow(int fieldId) {
21791         _Fields fields = findByThriftId(fieldId);
21792         if (fields == null) {
21793                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21794                 }
21795         return fields;
21796       }
21797
21798       /**
21799        * Find the _Fields constant that matches name, or null if its not found.
21800        */
21801       public static _Fields findByName(String name) {
21802         return byName.get(name);
21803       }
21804
21805       private final short _thriftId;
21806       private final String _fieldName;
21807
21808       _Fields(short thriftId, String fieldName) {
21809         _thriftId = thriftId;
21810         _fieldName = fieldName;
21811       }
21812
21813       @Override
21814         public short getThriftFieldId() {
21815         return _thriftId;
21816       }
21817
21818       @Override
21819         public String getFieldName() {
21820         return _fieldName;
21821       }
21822     }
21823
21824     // isset id assignments
21825     private static final int __OPTYPE_ISSET_ID = 0;
21826     private static final int __WINSIZE_ISSET_ID = 1;
21827     private byte __isset_bitfield = 0;
21828     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21829     static {
21830       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21831       tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
21832           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
21833       tmpMap.put(_Fields.OPTYPE, new org.apache.thrift.meta_data.FieldMetaData("optype", org.apache.thrift.TFieldRequirementType.DEFAULT,
21834           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
21835       tmpMap.put(_Fields.WIN_SIZE, new org.apache.thrift.meta_data.FieldMetaData("winSize", org.apache.thrift.TFieldRequirementType.DEFAULT,
21836           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
21837       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
21838           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
21839       metaDataMap = Collections.unmodifiableMap(tmpMap);
21840       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_args.class, metaDataMap);
21841     }
21842
21843     public getRoutes_args() {
21844     }
21845
21846     public getRoutes_args(
21847       protocol_type p_type,
21848       int optype,
21849       int winSize,
21850       af_afi afi)
21851     {
21852       this();
21853       this.p_type = p_type;
21854       this.optype = optype;
21855       setOptypeIsSet(true);
21856       this.winSize = winSize;
21857       setWinSizeIsSet(true);
21858       this.afi = afi;
21859     }
21860
21861     /**
21862      * Performs a deep copy on <i>other</i>.
21863      */
21864     public getRoutes_args(getRoutes_args other) {
21865       __isset_bitfield = other.__isset_bitfield;
21866       if (other.isSetP_type()) {
21867         this.p_type = other.p_type;
21868       }
21869       this.optype = other.optype;
21870       this.winSize = other.winSize;
21871       if (other.isSetAfi()) {
21872         this.afi = other.afi;
21873       }
21874     }
21875
21876     @Override
21877         public getRoutes_args deepCopy() {
21878       return new getRoutes_args(this);
21879     }
21880
21881     @Override
21882     public void clear() {
21883       this.p_type = null;
21884       setOptypeIsSet(false);
21885       this.optype = 0;
21886       setWinSizeIsSet(false);
21887       this.winSize = 0;
21888       this.afi = null;
21889     }
21890
21891     /**
21892      *
21893      * @see protocol_type
21894      */
21895     public protocol_type getP_type() {
21896       return this.p_type;
21897     }
21898
21899     /**
21900      *
21901      * @see protocol_type
21902      */
21903     public getRoutes_args setP_type(protocol_type p_type) {
21904       this.p_type = p_type;
21905       return this;
21906     }
21907
21908     public void unsetP_type() {
21909       this.p_type = null;
21910     }
21911
21912     /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
21913     public boolean isSetP_type() {
21914       return this.p_type != null;
21915     }
21916
21917     public void setP_typeIsSet(boolean value) {
21918       if (!value) {
21919         this.p_type = null;
21920       }
21921     }
21922
21923     public int getOptype() {
21924       return this.optype;
21925     }
21926
21927     public getRoutes_args setOptype(int optype) {
21928       this.optype = optype;
21929       setOptypeIsSet(true);
21930       return this;
21931     }
21932
21933     public void unsetOptype() {
21934       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OPTYPE_ISSET_ID);
21935     }
21936
21937     /** Returns true if field optype is set (has been assigned a value) and false otherwise */
21938     public boolean isSetOptype() {
21939       return EncodingUtils.testBit(__isset_bitfield, __OPTYPE_ISSET_ID);
21940     }
21941
21942     public void setOptypeIsSet(boolean value) {
21943       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OPTYPE_ISSET_ID, value);
21944     }
21945
21946     public int getWinSize() {
21947       return this.winSize;
21948     }
21949
21950     public getRoutes_args setWinSize(int winSize) {
21951       this.winSize = winSize;
21952       setWinSizeIsSet(true);
21953       return this;
21954     }
21955
21956     public void unsetWinSize() {
21957       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WINSIZE_ISSET_ID);
21958     }
21959
21960     /** Returns true if field winSize is set (has been assigned a value) and false otherwise */
21961     public boolean isSetWinSize() {
21962       return EncodingUtils.testBit(__isset_bitfield, __WINSIZE_ISSET_ID);
21963     }
21964
21965     public void setWinSizeIsSet(boolean value) {
21966       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WINSIZE_ISSET_ID, value);
21967     }
21968
21969     /**
21970      *
21971      * @see af_afi
21972      */
21973     public af_afi getAfi() {
21974       return this.afi;
21975     }
21976
21977     /**
21978      *
21979      * @see af_afi
21980      */
21981     public getRoutes_args setAfi(af_afi afi) {
21982       this.afi = afi;
21983       return this;
21984     }
21985
21986     public void unsetAfi() {
21987       this.afi = null;
21988     }
21989
21990     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
21991     public boolean isSetAfi() {
21992       return this.afi != null;
21993     }
21994
21995     public void setAfiIsSet(boolean value) {
21996       if (!value) {
21997         this.afi = null;
21998       }
21999     }
22000
22001     @Override
22002         public void setFieldValue(_Fields field, Object value) {
22003       switch (field) {
22004       case P_TYPE:
22005         if (value == null) {
22006           unsetP_type();
22007         } else {
22008           setP_type((protocol_type)value);
22009         }
22010         break;
22011
22012       case OPTYPE:
22013         if (value == null) {
22014           unsetOptype();
22015         } else {
22016           setOptype((Integer)value);
22017         }
22018         break;
22019
22020       case WIN_SIZE:
22021         if (value == null) {
22022           unsetWinSize();
22023         } else {
22024           setWinSize((Integer)value);
22025         }
22026         break;
22027
22028       case AFI:
22029         if (value == null) {
22030           unsetAfi();
22031         } else {
22032           setAfi((af_afi)value);
22033         }
22034         break;
22035
22036       }
22037     }
22038
22039     @Override
22040         public Object getFieldValue(_Fields field) {
22041       switch (field) {
22042       case P_TYPE:
22043         return getP_type();
22044
22045       case OPTYPE:
22046         return Integer.valueOf(getOptype());
22047
22048       case WIN_SIZE:
22049         return Integer.valueOf(getWinSize());
22050
22051       case AFI:
22052         return getAfi();
22053
22054       }
22055       throw new IllegalStateException();
22056     }
22057
22058     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22059     @Override
22060         public boolean isSet(_Fields field) {
22061       if (field == null) {
22062         throw new IllegalArgumentException();
22063       }
22064
22065       switch (field) {
22066       case P_TYPE:
22067         return isSetP_type();
22068       case OPTYPE:
22069         return isSetOptype();
22070       case WIN_SIZE:
22071         return isSetWinSize();
22072       case AFI:
22073         return isSetAfi();
22074       }
22075       throw new IllegalStateException();
22076     }
22077
22078     @Override
22079     public boolean equals(Object that) {
22080       if (that == null) {
22081                 return false;
22082         }
22083       if (that instanceof getRoutes_args) {
22084                 return this.equals((getRoutes_args)that);
22085         }
22086       return false;
22087     }
22088
22089     public boolean equals(getRoutes_args that) {
22090       if (that == null) {
22091                 return false;
22092         }
22093
22094       boolean this_present_p_type = true && this.isSetP_type();
22095       boolean that_present_p_type = true && that.isSetP_type();
22096       if (this_present_p_type || that_present_p_type) {
22097         if (!(this_present_p_type && that_present_p_type)) {
22098                         return false;
22099                 }
22100         if (!this.p_type.equals(that.p_type)) {
22101                         return false;
22102                 }
22103       }
22104
22105       boolean this_present_optype = true;
22106       boolean that_present_optype = true;
22107       if (this_present_optype || that_present_optype) {
22108         if (!(this_present_optype && that_present_optype)) {
22109                         return false;
22110                 }
22111         if (this.optype != that.optype) {
22112                         return false;
22113                 }
22114       }
22115
22116       boolean this_present_winSize = true;
22117       boolean that_present_winSize = true;
22118       if (this_present_winSize || that_present_winSize) {
22119         if (!(this_present_winSize && that_present_winSize)) {
22120                         return false;
22121                 }
22122         if (this.winSize != that.winSize) {
22123                         return false;
22124                 }
22125       }
22126
22127       boolean this_present_afi = true && this.isSetAfi();
22128       boolean that_present_afi = true && that.isSetAfi();
22129       if (this_present_afi || that_present_afi) {
22130         if (!(this_present_afi && that_present_afi)) {
22131                         return false;
22132                 }
22133         if (!this.afi.equals(that.afi)) {
22134                         return false;
22135                 }
22136       }
22137
22138       return true;
22139     }
22140
22141     @Override
22142     public int hashCode() {
22143       List<Object> list = new ArrayList<Object>();
22144
22145       boolean present_p_type = true && (isSetP_type());
22146       list.add(present_p_type);
22147       if (present_p_type)
22148         list.add(p_type.getValue());
22149       boolean present_optype = true;
22150       list.add(present_optype);
22151       if (present_optype)
22152         list.add(optype);
22153       boolean present_winSize = true;
22154       list.add(present_winSize);
22155       if (present_winSize)
22156         list.add(winSize);
22157       boolean present_afi = true && (isSetAfi());
22158       list.add(present_afi);
22159       if (present_afi)
22160         list.add(afi.getValue());
22161       return list.hashCode();
22162     }
22163
22164     @Override
22165     public int compareTo(getRoutes_args other) {
22166       if (!getClass().equals(other.getClass())) {
22167         return getClass().getName().compareTo(other.getClass().getName());
22168       }
22169
22170       int lastComparison = 0;
22171
22172       lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
22173       if (lastComparison != 0) {
22174         return lastComparison;
22175       }
22176       if (isSetP_type()) {
22177         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
22178         if (lastComparison != 0) {
22179           return lastComparison;
22180         }
22181       }
22182       lastComparison = Boolean.valueOf(isSetOptype()).compareTo(other.isSetOptype());
22183       if (lastComparison != 0) {
22184         return lastComparison;
22185       }
22186       if (isSetOptype()) {
22187         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.optype, other.optype);
22188         if (lastComparison != 0) {
22189           return lastComparison;
22190         }
22191       }
22192       lastComparison = Boolean.valueOf(isSetWinSize()).compareTo(other.isSetWinSize());
22193       if (lastComparison != 0) {
22194         return lastComparison;
22195       }
22196       if (isSetWinSize()) {
22197         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.winSize, other.winSize);
22198         if (lastComparison != 0) {
22199           return lastComparison;
22200         }
22201       }
22202       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
22203       if (lastComparison != 0) {
22204         return lastComparison;
22205       }
22206       if (isSetAfi()) {
22207         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
22208         if (lastComparison != 0) {
22209           return lastComparison;
22210         }
22211       }
22212       return 0;
22213     }
22214
22215     @Override
22216         public _Fields fieldForId(int fieldId) {
22217       return _Fields.findByThriftId(fieldId);
22218     }
22219
22220     @Override
22221         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22222       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22223     }
22224
22225     @Override
22226         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22227       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22228     }
22229
22230     @Override
22231     public String toString() {
22232       StringBuilder sb = new StringBuilder("getRoutes_args(");
22233       boolean first = true;
22234
22235       sb.append("p_type:");
22236       if (this.p_type == null) {
22237         sb.append("null");
22238       } else {
22239         sb.append(this.p_type);
22240       }
22241       first = false;
22242       if (!first) {
22243                 sb.append(", ");
22244         }
22245       sb.append("optype:");
22246       sb.append(this.optype);
22247       first = false;
22248       if (!first) {
22249                 sb.append(", ");
22250         }
22251       sb.append("winSize:");
22252       sb.append(this.winSize);
22253       first = false;
22254       if (!first) {
22255                 sb.append(", ");
22256         }
22257       sb.append("afi:");
22258       if (this.afi == null) {
22259         sb.append("null");
22260       } else {
22261         sb.append(this.afi);
22262       }
22263       first = false;
22264       sb.append(")");
22265       return sb.toString();
22266     }
22267
22268     public void validate() throws org.apache.thrift.TException {
22269       // check for required fields
22270       // check for sub-struct validity
22271     }
22272
22273     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22274       try {
22275         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22276       } catch (org.apache.thrift.TException te) {
22277         throw new java.io.IOException(te);
22278       }
22279     }
22280
22281     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22282       try {
22283         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22284         __isset_bitfield = 0;
22285         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22286       } catch (org.apache.thrift.TException te) {
22287         throw new java.io.IOException(te);
22288       }
22289     }
22290
22291     private static class getRoutes_argsStandardSchemeFactory implements SchemeFactory {
22292       @Override
22293         public getRoutes_argsStandardScheme getScheme() {
22294         return new getRoutes_argsStandardScheme();
22295       }
22296     }
22297
22298     private static class getRoutes_argsStandardScheme extends StandardScheme<getRoutes_args> {
22299
22300       @Override
22301         public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_args struct) throws org.apache.thrift.TException {
22302         org.apache.thrift.protocol.TField schemeField;
22303         iprot.readStructBegin();
22304         while (true)
22305         {
22306           schemeField = iprot.readFieldBegin();
22307           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
22308             break;
22309           }
22310           switch (schemeField.id) {
22311             case 1: // P_TYPE
22312               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
22313                 struct.p_type = protocol_type.findByValue(iprot.readI32());
22314                 struct.setP_typeIsSet(true);
22315               } else {
22316                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22317               }
22318               break;
22319             case 2: // OPTYPE
22320               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
22321                 struct.optype = iprot.readI32();
22322                 struct.setOptypeIsSet(true);
22323               } else {
22324                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22325               }
22326               break;
22327             case 3: // WIN_SIZE
22328               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
22329                 struct.winSize = iprot.readI32();
22330                 struct.setWinSizeIsSet(true);
22331               } else {
22332                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22333               }
22334               break;
22335             case 4: // AFI
22336               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
22337                 struct.afi = af_afi.findByValue(iprot.readI32());
22338                 struct.setAfiIsSet(true);
22339               } else {
22340                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22341               }
22342               break;
22343             default:
22344               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22345           }
22346           iprot.readFieldEnd();
22347         }
22348         iprot.readStructEnd();
22349
22350         // check for required fields of primitive type, which can't be checked in the validate method
22351         struct.validate();
22352       }
22353
22354       @Override
22355         public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_args struct) throws org.apache.thrift.TException {
22356         struct.validate();
22357
22358         oprot.writeStructBegin(STRUCT_DESC);
22359         if (struct.p_type != null) {
22360           oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
22361           oprot.writeI32(struct.p_type.getValue());
22362           oprot.writeFieldEnd();
22363         }
22364         oprot.writeFieldBegin(OPTYPE_FIELD_DESC);
22365         oprot.writeI32(struct.optype);
22366         oprot.writeFieldEnd();
22367         oprot.writeFieldBegin(WIN_SIZE_FIELD_DESC);
22368         oprot.writeI32(struct.winSize);
22369         oprot.writeFieldEnd();
22370         if (struct.afi != null) {
22371           oprot.writeFieldBegin(AFI_FIELD_DESC);
22372           oprot.writeI32(struct.afi.getValue());
22373           oprot.writeFieldEnd();
22374         }
22375         oprot.writeFieldStop();
22376         oprot.writeStructEnd();
22377       }
22378
22379     }
22380
22381     private static class getRoutes_argsTupleSchemeFactory implements SchemeFactory {
22382       @Override
22383         public getRoutes_argsTupleScheme getScheme() {
22384         return new getRoutes_argsTupleScheme();
22385       }
22386     }
22387
22388     private static class getRoutes_argsTupleScheme extends TupleScheme<getRoutes_args> {
22389
22390       @Override
22391       public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
22392         TTupleProtocol oprot = (TTupleProtocol) prot;
22393         BitSet optionals = new BitSet();
22394         if (struct.isSetP_type()) {
22395           optionals.set(0);
22396         }
22397         if (struct.isSetOptype()) {
22398           optionals.set(1);
22399         }
22400         if (struct.isSetWinSize()) {
22401           optionals.set(2);
22402         }
22403         if (struct.isSetAfi()) {
22404           optionals.set(3);
22405         }
22406         oprot.writeBitSet(optionals, 4);
22407         if (struct.isSetP_type()) {
22408           oprot.writeI32(struct.p_type.getValue());
22409         }
22410         if (struct.isSetOptype()) {
22411           oprot.writeI32(struct.optype);
22412         }
22413         if (struct.isSetWinSize()) {
22414           oprot.writeI32(struct.winSize);
22415         }
22416         if (struct.isSetAfi()) {
22417           oprot.writeI32(struct.afi.getValue());
22418         }
22419       }
22420
22421       @Override
22422       public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
22423         TTupleProtocol iprot = (TTupleProtocol) prot;
22424         BitSet incoming = iprot.readBitSet(4);
22425         if (incoming.get(0)) {
22426           struct.p_type = protocol_type.findByValue(iprot.readI32());
22427           struct.setP_typeIsSet(true);
22428         }
22429         if (incoming.get(1)) {
22430           struct.optype = iprot.readI32();
22431           struct.setOptypeIsSet(true);
22432         }
22433         if (incoming.get(2)) {
22434           struct.winSize = iprot.readI32();
22435           struct.setWinSizeIsSet(true);
22436         }
22437         if (incoming.get(3)) {
22438           struct.afi = af_afi.findByValue(iprot.readI32());
22439           struct.setAfiIsSet(true);
22440         }
22441       }
22442     }
22443
22444   }
22445
22446   public static class getRoutes_result implements org.apache.thrift.TBase<getRoutes_result, getRoutes_result._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_result>   {
22447     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_result");
22448
22449     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);
22450
22451     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22452     static {
22453       schemes.put(StandardScheme.class, new getRoutes_resultStandardSchemeFactory());
22454       schemes.put(TupleScheme.class, new getRoutes_resultTupleSchemeFactory());
22455     }
22456
22457     public Routes success; // required
22458
22459     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22460     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22461       SUCCESS((short)0, "success");
22462
22463       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22464
22465       static {
22466         for (_Fields field : EnumSet.allOf(_Fields.class)) {
22467           byName.put(field.getFieldName(), field);
22468         }
22469       }
22470
22471       /**
22472        * Find the _Fields constant that matches fieldId, or null if its not found.
22473        */
22474       public static _Fields findByThriftId(int fieldId) {
22475         switch(fieldId) {
22476           case 0: // SUCCESS
22477             return SUCCESS;
22478           default:
22479             return null;
22480         }
22481       }
22482
22483       /**
22484        * Find the _Fields constant that matches fieldId, throwing an exception
22485        * if it is not found.
22486        */
22487       public static _Fields findByThriftIdOrThrow(int fieldId) {
22488         _Fields fields = findByThriftId(fieldId);
22489         if (fields == null) {
22490                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22491                 }
22492         return fields;
22493       }
22494
22495       /**
22496        * Find the _Fields constant that matches name, or null if its not found.
22497        */
22498       public static _Fields findByName(String name) {
22499         return byName.get(name);
22500       }
22501
22502       private final short _thriftId;
22503       private final String _fieldName;
22504
22505       _Fields(short thriftId, String fieldName) {
22506         _thriftId = thriftId;
22507         _fieldName = fieldName;
22508       }
22509
22510       @Override
22511         public short getThriftFieldId() {
22512         return _thriftId;
22513       }
22514
22515       @Override
22516         public String getFieldName() {
22517         return _fieldName;
22518       }
22519     }
22520
22521     // isset id assignments
22522     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22523     static {
22524       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22525       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
22526           new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Routes.class)));
22527       metaDataMap = Collections.unmodifiableMap(tmpMap);
22528       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_result.class, metaDataMap);
22529     }
22530
22531     public getRoutes_result() {
22532     }
22533
22534     public getRoutes_result(
22535       Routes success)
22536     {
22537       this();
22538       this.success = success;
22539     }
22540
22541     /**
22542      * Performs a deep copy on <i>other</i>.
22543      */
22544     public getRoutes_result(getRoutes_result other) {
22545       if (other.isSetSuccess()) {
22546         this.success = new Routes(other.success);
22547       }
22548     }
22549
22550     @Override
22551         public getRoutes_result deepCopy() {
22552       return new getRoutes_result(this);
22553     }
22554
22555     @Override
22556     public void clear() {
22557       this.success = null;
22558     }
22559
22560     public Routes getSuccess() {
22561       return this.success;
22562     }
22563
22564     public getRoutes_result setSuccess(Routes success) {
22565       this.success = success;
22566       return this;
22567     }
22568
22569     public void unsetSuccess() {
22570       this.success = null;
22571     }
22572
22573     /** Returns true if field success is set (has been assigned a value) and false otherwise */
22574     public boolean isSetSuccess() {
22575       return this.success != null;
22576     }
22577
22578     public void setSuccessIsSet(boolean value) {
22579       if (!value) {
22580         this.success = null;
22581       }
22582     }
22583
22584     @Override
22585         public void setFieldValue(_Fields field, Object value) {
22586       switch (field) {
22587       case SUCCESS:
22588         if (value == null) {
22589           unsetSuccess();
22590         } else {
22591           setSuccess((Routes)value);
22592         }
22593         break;
22594
22595       }
22596     }
22597
22598     @Override
22599         public Object getFieldValue(_Fields field) {
22600       switch (field) {
22601       case SUCCESS:
22602         return getSuccess();
22603
22604       }
22605       throw new IllegalStateException();
22606     }
22607
22608     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22609     @Override
22610         public boolean isSet(_Fields field) {
22611       if (field == null) {
22612         throw new IllegalArgumentException();
22613       }
22614
22615       switch (field) {
22616       case SUCCESS:
22617         return isSetSuccess();
22618       }
22619       throw new IllegalStateException();
22620     }
22621
22622     @Override
22623     public boolean equals(Object that) {
22624       if (that == null) {
22625                 return false;
22626         }
22627       if (that instanceof getRoutes_result) {
22628                 return this.equals((getRoutes_result)that);
22629         }
22630       return false;
22631     }
22632
22633     public boolean equals(getRoutes_result that) {
22634       if (that == null) {
22635                 return false;
22636         }
22637
22638       boolean this_present_success = true && this.isSetSuccess();
22639       boolean that_present_success = true && that.isSetSuccess();
22640       if (this_present_success || that_present_success) {
22641         if (!(this_present_success && that_present_success)) {
22642                         return false;
22643                 }
22644         if (!this.success.equals(that.success)) {
22645                         return false;
22646                 }
22647       }
22648
22649       return true;
22650     }
22651
22652     @Override
22653     public int hashCode() {
22654       List<Object> list = new ArrayList<Object>();
22655
22656       boolean present_success = true && (isSetSuccess());
22657       list.add(present_success);
22658       if (present_success)
22659         list.add(success);
22660       return list.hashCode();
22661     }
22662
22663     @Override
22664     public int compareTo(getRoutes_result other) {
22665       if (!getClass().equals(other.getClass())) {
22666         return getClass().getName().compareTo(other.getClass().getName());
22667       }
22668
22669       int lastComparison = 0;
22670
22671       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
22672       if (lastComparison != 0) {
22673         return lastComparison;
22674       }
22675       if (isSetSuccess()) {
22676         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
22677         if (lastComparison != 0) {
22678           return lastComparison;
22679         }
22680       }
22681       return 0;
22682     }
22683
22684     @Override
22685         public _Fields fieldForId(int fieldId) {
22686       return _Fields.findByThriftId(fieldId);
22687     }
22688
22689     @Override
22690         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22691       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22692     }
22693
22694     @Override
22695         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22696       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22697       }
22698
22699     @Override
22700     public String toString() {
22701       StringBuilder sb = new StringBuilder("getRoutes_result(");
22702       boolean first = true;
22703
22704       sb.append("success:");
22705       if (this.success == null) {
22706         sb.append("null");
22707       } else {
22708         sb.append(this.success);
22709       }
22710       first = false;
22711       sb.append(")");
22712       return sb.toString();
22713     }
22714
22715     public void validate() throws org.apache.thrift.TException {
22716       // check for required fields
22717       // check for sub-struct validity
22718       if (success != null) {
22719         success.validate();
22720       }
22721     }
22722
22723     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22724       try {
22725         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22726       } catch (org.apache.thrift.TException te) {
22727         throw new java.io.IOException(te);
22728       }
22729     }
22730
22731     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22732       try {
22733         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22734       } catch (org.apache.thrift.TException te) {
22735         throw new java.io.IOException(te);
22736       }
22737     }
22738
22739     private static class getRoutes_resultStandardSchemeFactory implements SchemeFactory {
22740       @Override
22741         public getRoutes_resultStandardScheme getScheme() {
22742         return new getRoutes_resultStandardScheme();
22743       }
22744     }
22745
22746     private static class getRoutes_resultStandardScheme extends StandardScheme<getRoutes_result> {
22747
22748       @Override
22749         public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_result struct) throws org.apache.thrift.TException {
22750         org.apache.thrift.protocol.TField schemeField;
22751         iprot.readStructBegin();
22752         while (true)
22753         {
22754           schemeField = iprot.readFieldBegin();
22755           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
22756             break;
22757           }
22758           switch (schemeField.id) {
22759             case 0: // SUCCESS
22760               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
22761                 struct.success = new Routes();
22762                 struct.success.read(iprot);
22763                 struct.setSuccessIsSet(true);
22764               } else {
22765                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22766               }
22767               break;
22768             default:
22769               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22770           }
22771           iprot.readFieldEnd();
22772         }
22773         iprot.readStructEnd();
22774
22775         // check for required fields of primitive type, which can't be checked in the validate method
22776         struct.validate();
22777       }
22778
22779       @Override
22780         public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_result struct) throws org.apache.thrift.TException {
22781         struct.validate();
22782
22783         oprot.writeStructBegin(STRUCT_DESC);
22784         if (struct.success != null) {
22785           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22786           struct.success.write(oprot);
22787           oprot.writeFieldEnd();
22788         }
22789         oprot.writeFieldStop();
22790         oprot.writeStructEnd();
22791       }
22792
22793     }
22794
22795     private static class getRoutes_resultTupleSchemeFactory implements SchemeFactory {
22796       @Override
22797         public getRoutes_resultTupleScheme getScheme() {
22798         return new getRoutes_resultTupleScheme();
22799       }
22800     }
22801
22802     private static class getRoutes_resultTupleScheme extends TupleScheme<getRoutes_result> {
22803
22804       @Override
22805       public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
22806         TTupleProtocol oprot = (TTupleProtocol) prot;
22807         BitSet optionals = new BitSet();
22808         if (struct.isSetSuccess()) {
22809           optionals.set(0);
22810         }
22811         oprot.writeBitSet(optionals, 1);
22812         if (struct.isSetSuccess()) {
22813           struct.success.write(oprot);
22814         }
22815       }
22816
22817       @Override
22818       public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
22819         TTupleProtocol iprot = (TTupleProtocol) prot;
22820         BitSet incoming = iprot.readBitSet(1);
22821         if (incoming.get(0)) {
22822           struct.success = new Routes();
22823           struct.success.read(iprot);
22824           struct.setSuccessIsSet(true);
22825         }
22826       }
22827     }
22828
22829   }
22830
22831   public static class enableMultipath_args implements org.apache.thrift.TBase<enableMultipath_args, enableMultipath_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableMultipath_args>   {
22832     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableMultipath_args");
22833
22834     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);
22835     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);
22836
22837     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22838     static {
22839       schemes.put(StandardScheme.class, new enableMultipath_argsStandardSchemeFactory());
22840       schemes.put(TupleScheme.class, new enableMultipath_argsTupleSchemeFactory());
22841     }
22842
22843     /**
22844      *
22845      * @see af_afi
22846      */
22847     public af_afi afi; // required
22848     /**
22849      *
22850      * @see af_safi
22851      */
22852     public af_safi safi; // required
22853
22854     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22855     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22856       /**
22857        *
22858        * @see af_afi
22859        */
22860       AFI((short)1, "afi"),
22861       /**
22862        *
22863        * @see af_safi
22864        */
22865       SAFI((short)2, "safi");
22866
22867       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22868
22869       static {
22870         for (_Fields field : EnumSet.allOf(_Fields.class)) {
22871           byName.put(field.getFieldName(), field);
22872         }
22873       }
22874
22875       /**
22876        * Find the _Fields constant that matches fieldId, or null if its not found.
22877        */
22878       public static _Fields findByThriftId(int fieldId) {
22879         switch(fieldId) {
22880           case 1: // AFI
22881             return AFI;
22882           case 2: // SAFI
22883             return SAFI;
22884           default:
22885             return null;
22886         }
22887       }
22888
22889       /**
22890        * Find the _Fields constant that matches fieldId, throwing an exception
22891        * if it is not found.
22892        */
22893       public static _Fields findByThriftIdOrThrow(int fieldId) {
22894         _Fields fields = findByThriftId(fieldId);
22895         if (fields == null) {
22896                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22897                 }
22898         return fields;
22899       }
22900
22901       /**
22902        * Find the _Fields constant that matches name, or null if its not found.
22903        */
22904       public static _Fields findByName(String name) {
22905         return byName.get(name);
22906       }
22907
22908       private final short _thriftId;
22909       private final String _fieldName;
22910
22911       _Fields(short thriftId, String fieldName) {
22912         _thriftId = thriftId;
22913         _fieldName = fieldName;
22914       }
22915
22916       @Override
22917         public short getThriftFieldId() {
22918         return _thriftId;
22919       }
22920
22921       @Override
22922         public String getFieldName() {
22923         return _fieldName;
22924       }
22925     }
22926
22927     // isset id assignments
22928     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22929     static {
22930       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22931       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
22932           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
22933       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
22934           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
22935       metaDataMap = Collections.unmodifiableMap(tmpMap);
22936       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableMultipath_args.class, metaDataMap);
22937     }
22938
22939     public enableMultipath_args() {
22940     }
22941
22942     public enableMultipath_args(
22943       af_afi afi,
22944       af_safi safi)
22945     {
22946       this();
22947       this.afi = afi;
22948       this.safi = safi;
22949     }
22950
22951     /**
22952      * Performs a deep copy on <i>other</i>.
22953      */
22954     public enableMultipath_args(enableMultipath_args other) {
22955       if (other.isSetAfi()) {
22956         this.afi = other.afi;
22957       }
22958       if (other.isSetSafi()) {
22959         this.safi = other.safi;
22960       }
22961     }
22962
22963     @Override
22964         public enableMultipath_args deepCopy() {
22965       return new enableMultipath_args(this);
22966     }
22967
22968     @Override
22969     public void clear() {
22970       this.afi = null;
22971       this.safi = null;
22972     }
22973
22974     /**
22975      *
22976      * @see af_afi
22977      */
22978     public af_afi getAfi() {
22979       return this.afi;
22980     }
22981
22982     /**
22983      *
22984      * @see af_afi
22985      */
22986     public enableMultipath_args setAfi(af_afi afi) {
22987       this.afi = afi;
22988       return this;
22989     }
22990
22991     public void unsetAfi() {
22992       this.afi = null;
22993     }
22994
22995     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
22996     public boolean isSetAfi() {
22997       return this.afi != null;
22998     }
22999
23000     public void setAfiIsSet(boolean value) {
23001       if (!value) {
23002         this.afi = null;
23003       }
23004     }
23005
23006     /**
23007      *
23008      * @see af_safi
23009      */
23010     public af_safi getSafi() {
23011       return this.safi;
23012     }
23013
23014     /**
23015      *
23016      * @see af_safi
23017      */
23018     public enableMultipath_args setSafi(af_safi safi) {
23019       this.safi = safi;
23020       return this;
23021     }
23022
23023     public void unsetSafi() {
23024       this.safi = null;
23025     }
23026
23027     /** Returns true if field safi is set (has been assigned a value) and false otherwise */
23028     public boolean isSetSafi() {
23029       return this.safi != null;
23030     }
23031
23032     public void setSafiIsSet(boolean value) {
23033       if (!value) {
23034         this.safi = null;
23035       }
23036     }
23037
23038     @Override
23039         public void setFieldValue(_Fields field, Object value) {
23040       switch (field) {
23041       case AFI:
23042         if (value == null) {
23043           unsetAfi();
23044         } else {
23045           setAfi((af_afi)value);
23046         }
23047         break;
23048
23049       case SAFI:
23050         if (value == null) {
23051           unsetSafi();
23052         } else {
23053           setSafi((af_safi)value);
23054         }
23055         break;
23056
23057       }
23058     }
23059
23060     @Override
23061         public Object getFieldValue(_Fields field) {
23062       switch (field) {
23063       case AFI:
23064         return getAfi();
23065
23066       case SAFI:
23067         return getSafi();
23068
23069       }
23070       throw new IllegalStateException();
23071     }
23072
23073     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23074     @Override
23075         public boolean isSet(_Fields field) {
23076       if (field == null) {
23077         throw new IllegalArgumentException();
23078       }
23079
23080       switch (field) {
23081       case AFI:
23082         return isSetAfi();
23083       case SAFI:
23084         return isSetSafi();
23085       }
23086       throw new IllegalStateException();
23087     }
23088
23089     @Override
23090     public boolean equals(Object that) {
23091       if (that == null) {
23092                 return false;
23093         }
23094       if (that instanceof enableMultipath_args) {
23095                 return this.equals((enableMultipath_args)that);
23096         }
23097       return false;
23098     }
23099
23100     public boolean equals(enableMultipath_args that) {
23101       if (that == null) {
23102                 return false;
23103         }
23104
23105       boolean this_present_afi = true && this.isSetAfi();
23106       boolean that_present_afi = true && that.isSetAfi();
23107       if (this_present_afi || that_present_afi) {
23108         if (!(this_present_afi && that_present_afi)) {
23109                         return false;
23110                 }
23111         if (!this.afi.equals(that.afi)) {
23112                         return false;
23113                 }
23114       }
23115
23116       boolean this_present_safi = true && this.isSetSafi();
23117       boolean that_present_safi = true && that.isSetSafi();
23118       if (this_present_safi || that_present_safi) {
23119         if (!(this_present_safi && that_present_safi)) {
23120                         return false;
23121                 }
23122         if (!this.safi.equals(that.safi)) {
23123                         return false;
23124                 }
23125       }
23126
23127       return true;
23128     }
23129
23130     @Override
23131     public int hashCode() {
23132       List<Object> list = new ArrayList<Object>();
23133
23134       boolean present_afi = true && (isSetAfi());
23135       list.add(present_afi);
23136       if (present_afi)
23137         list.add(afi.getValue());
23138       boolean present_safi = true && (isSetSafi());
23139       list.add(present_safi);
23140       if (present_safi)
23141         list.add(safi.getValue());
23142       return list.hashCode();
23143     }
23144
23145     @Override
23146     public int compareTo(enableMultipath_args other) {
23147       if (!getClass().equals(other.getClass())) {
23148         return getClass().getName().compareTo(other.getClass().getName());
23149       }
23150
23151       int lastComparison = 0;
23152
23153       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
23154       if (lastComparison != 0) {
23155         return lastComparison;
23156       }
23157       if (isSetAfi()) {
23158         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
23159         if (lastComparison != 0) {
23160           return lastComparison;
23161         }
23162       }
23163       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
23164       if (lastComparison != 0) {
23165         return lastComparison;
23166       }
23167       if (isSetSafi()) {
23168         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
23169         if (lastComparison != 0) {
23170           return lastComparison;
23171         }
23172       }
23173       return 0;
23174     }
23175
23176     @Override
23177         public _Fields fieldForId(int fieldId) {
23178       return _Fields.findByThriftId(fieldId);
23179     }
23180
23181     @Override
23182         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23183       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
23184     }
23185
23186     @Override
23187         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23188       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
23189     }
23190
23191     @Override
23192     public String toString() {
23193       StringBuilder sb = new StringBuilder("enableMultipath_args(");
23194       boolean first = true;
23195
23196       sb.append("afi:");
23197       if (this.afi == null) {
23198         sb.append("null");
23199       } else {
23200         sb.append(this.afi);
23201       }
23202       first = false;
23203       if (!first) {
23204                 sb.append(", ");
23205         }
23206       sb.append("safi:");
23207       if (this.safi == null) {
23208         sb.append("null");
23209       } else {
23210         sb.append(this.safi);
23211       }
23212       first = false;
23213       sb.append(")");
23214       return sb.toString();
23215     }
23216
23217     public void validate() throws org.apache.thrift.TException {
23218       // check for required fields
23219       // check for sub-struct validity
23220     }
23221
23222     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23223       try {
23224         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23225       } catch (org.apache.thrift.TException te) {
23226         throw new java.io.IOException(te);
23227       }
23228     }
23229
23230     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23231       try {
23232         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23233       } catch (org.apache.thrift.TException te) {
23234         throw new java.io.IOException(te);
23235       }
23236     }
23237
23238     private static class enableMultipath_argsStandardSchemeFactory implements SchemeFactory {
23239       @Override
23240         public enableMultipath_argsStandardScheme getScheme() {
23241         return new enableMultipath_argsStandardScheme();
23242       }
23243     }
23244
23245     private static class enableMultipath_argsStandardScheme extends StandardScheme<enableMultipath_args> {
23246
23247       @Override
23248         public void read(org.apache.thrift.protocol.TProtocol iprot, enableMultipath_args struct) throws org.apache.thrift.TException {
23249         org.apache.thrift.protocol.TField schemeField;
23250         iprot.readStructBegin();
23251         while (true)
23252         {
23253           schemeField = iprot.readFieldBegin();
23254           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
23255             break;
23256           }
23257           switch (schemeField.id) {
23258             case 1: // AFI
23259               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
23260                 struct.afi = af_afi.findByValue(iprot.readI32());
23261                 struct.setAfiIsSet(true);
23262               } else {
23263                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23264               }
23265               break;
23266             case 2: // SAFI
23267               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
23268                 struct.safi = af_safi.findByValue(iprot.readI32());
23269                 struct.setSafiIsSet(true);
23270               } else {
23271                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23272               }
23273               break;
23274             default:
23275               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23276           }
23277           iprot.readFieldEnd();
23278         }
23279         iprot.readStructEnd();
23280
23281         // check for required fields of primitive type, which can't be checked in the validate method
23282         struct.validate();
23283       }
23284
23285       @Override
23286         public void write(org.apache.thrift.protocol.TProtocol oprot, enableMultipath_args struct) throws org.apache.thrift.TException {
23287         struct.validate();
23288
23289         oprot.writeStructBegin(STRUCT_DESC);
23290         if (struct.afi != null) {
23291           oprot.writeFieldBegin(AFI_FIELD_DESC);
23292           oprot.writeI32(struct.afi.getValue());
23293           oprot.writeFieldEnd();
23294         }
23295         if (struct.safi != null) {
23296           oprot.writeFieldBegin(SAFI_FIELD_DESC);
23297           oprot.writeI32(struct.safi.getValue());
23298           oprot.writeFieldEnd();
23299         }
23300         oprot.writeFieldStop();
23301         oprot.writeStructEnd();
23302       }
23303
23304     }
23305
23306     private static class enableMultipath_argsTupleSchemeFactory implements SchemeFactory {
23307       @Override
23308         public enableMultipath_argsTupleScheme getScheme() {
23309         return new enableMultipath_argsTupleScheme();
23310       }
23311     }
23312
23313     private static class enableMultipath_argsTupleScheme extends TupleScheme<enableMultipath_args> {
23314
23315       @Override
23316       public void write(org.apache.thrift.protocol.TProtocol prot, enableMultipath_args struct) throws org.apache.thrift.TException {
23317         TTupleProtocol oprot = (TTupleProtocol) prot;
23318         BitSet optionals = new BitSet();
23319         if (struct.isSetAfi()) {
23320           optionals.set(0);
23321         }
23322         if (struct.isSetSafi()) {
23323           optionals.set(1);
23324         }
23325         oprot.writeBitSet(optionals, 2);
23326         if (struct.isSetAfi()) {
23327           oprot.writeI32(struct.afi.getValue());
23328         }
23329         if (struct.isSetSafi()) {
23330           oprot.writeI32(struct.safi.getValue());
23331         }
23332       }
23333
23334       @Override
23335       public void read(org.apache.thrift.protocol.TProtocol prot, enableMultipath_args struct) throws org.apache.thrift.TException {
23336         TTupleProtocol iprot = (TTupleProtocol) prot;
23337         BitSet incoming = iprot.readBitSet(2);
23338         if (incoming.get(0)) {
23339           struct.afi = af_afi.findByValue(iprot.readI32());
23340           struct.setAfiIsSet(true);
23341         }
23342         if (incoming.get(1)) {
23343           struct.safi = af_safi.findByValue(iprot.readI32());
23344           struct.setSafiIsSet(true);
23345         }
23346       }
23347     }
23348
23349   }
23350
23351   public static class enableMultipath_result implements org.apache.thrift.TBase<enableMultipath_result, enableMultipath_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableMultipath_result>   {
23352     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableMultipath_result");
23353
23354     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);
23355
23356     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
23357     static {
23358       schemes.put(StandardScheme.class, new enableMultipath_resultStandardSchemeFactory());
23359       schemes.put(TupleScheme.class, new enableMultipath_resultTupleSchemeFactory());
23360     }
23361
23362     public int success; // required
23363
23364     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23365     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23366       SUCCESS((short)0, "success");
23367
23368       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23369
23370       static {
23371         for (_Fields field : EnumSet.allOf(_Fields.class)) {
23372           byName.put(field.getFieldName(), field);
23373         }
23374       }
23375
23376       /**
23377        * Find the _Fields constant that matches fieldId, or null if its not found.
23378        */
23379       public static _Fields findByThriftId(int fieldId) {
23380         switch(fieldId) {
23381           case 0: // SUCCESS
23382             return SUCCESS;
23383           default:
23384             return null;
23385         }
23386       }
23387
23388       /**
23389        * Find the _Fields constant that matches fieldId, throwing an exception
23390        * if it is not found.
23391        */
23392       public static _Fields findByThriftIdOrThrow(int fieldId) {
23393         _Fields fields = findByThriftId(fieldId);
23394         if (fields == null) {
23395                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23396                 }
23397         return fields;
23398       }
23399
23400       /**
23401        * Find the _Fields constant that matches name, or null if its not found.
23402        */
23403       public static _Fields findByName(String name) {
23404         return byName.get(name);
23405       }
23406
23407       private final short _thriftId;
23408       private final String _fieldName;
23409
23410       _Fields(short thriftId, String fieldName) {
23411         _thriftId = thriftId;
23412         _fieldName = fieldName;
23413       }
23414
23415       @Override
23416         public short getThriftFieldId() {
23417         return _thriftId;
23418       }
23419
23420       @Override
23421         public String getFieldName() {
23422         return _fieldName;
23423       }
23424     }
23425
23426     // isset id assignments
23427     private static final int __SUCCESS_ISSET_ID = 0;
23428     private byte __isset_bitfield = 0;
23429     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23430     static {
23431       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23432       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
23433           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
23434       metaDataMap = Collections.unmodifiableMap(tmpMap);
23435       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableMultipath_result.class, metaDataMap);
23436     }
23437
23438     public enableMultipath_result() {
23439     }
23440
23441     public enableMultipath_result(
23442       int success)
23443     {
23444       this();
23445       this.success = success;
23446       setSuccessIsSet(true);
23447     }
23448
23449     /**
23450      * Performs a deep copy on <i>other</i>.
23451      */
23452     public enableMultipath_result(enableMultipath_result other) {
23453       __isset_bitfield = other.__isset_bitfield;
23454       this.success = other.success;
23455     }
23456
23457     @Override
23458         public enableMultipath_result deepCopy() {
23459       return new enableMultipath_result(this);
23460     }
23461
23462     @Override
23463     public void clear() {
23464       setSuccessIsSet(false);
23465       this.success = 0;
23466     }
23467
23468     public int getSuccess() {
23469       return this.success;
23470     }
23471
23472     public enableMultipath_result setSuccess(int success) {
23473       this.success = success;
23474       setSuccessIsSet(true);
23475       return this;
23476     }
23477
23478     public void unsetSuccess() {
23479       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
23480     }
23481
23482     /** Returns true if field success is set (has been assigned a value) and false otherwise */
23483     public boolean isSetSuccess() {
23484       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
23485     }
23486
23487     public void setSuccessIsSet(boolean value) {
23488       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
23489     }
23490
23491     @Override
23492         public void setFieldValue(_Fields field, Object value) {
23493       switch (field) {
23494       case SUCCESS:
23495         if (value == null) {
23496           unsetSuccess();
23497         } else {
23498           setSuccess((Integer)value);
23499         }
23500         break;
23501
23502       }
23503     }
23504
23505     @Override
23506         public Object getFieldValue(_Fields field) {
23507       switch (field) {
23508       case SUCCESS:
23509         return Integer.valueOf(getSuccess());
23510
23511       }
23512       throw new IllegalStateException();
23513     }
23514
23515     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23516     @Override
23517         public boolean isSet(_Fields field) {
23518       if (field == null) {
23519         throw new IllegalArgumentException();
23520       }
23521
23522       switch (field) {
23523       case SUCCESS:
23524         return isSetSuccess();
23525       }
23526       throw new IllegalStateException();
23527     }
23528
23529     @Override
23530     public boolean equals(Object that) {
23531       if (that == null) {
23532                 return false;
23533         }
23534       if (that instanceof enableMultipath_result) {
23535                 return this.equals((enableMultipath_result)that);
23536         }
23537       return false;
23538     }
23539
23540     public boolean equals(enableMultipath_result that) {
23541       if (that == null) {
23542                 return false;
23543         }
23544
23545       boolean this_present_success = true;
23546       boolean that_present_success = true;
23547       if (this_present_success || that_present_success) {
23548         if (!(this_present_success && that_present_success)) {
23549                         return false;
23550                 }
23551         if (this.success != that.success) {
23552                         return false;
23553                 }
23554       }
23555
23556       return true;
23557     }
23558
23559     @Override
23560     public int hashCode() {
23561       List<Object> list = new ArrayList<Object>();
23562
23563       boolean present_success = true;
23564       list.add(present_success);
23565       if (present_success)
23566         list.add(success);
23567       return list.hashCode();
23568     }
23569
23570     @Override
23571     public int compareTo(enableMultipath_result other) {
23572       if (!getClass().equals(other.getClass())) {
23573         return getClass().getName().compareTo(other.getClass().getName());
23574       }
23575
23576       int lastComparison = 0;
23577
23578       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
23579       if (lastComparison != 0) {
23580         return lastComparison;
23581       }
23582       if (isSetSuccess()) {
23583         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
23584         if (lastComparison != 0) {
23585           return lastComparison;
23586         }
23587       }
23588       return 0;
23589     }
23590
23591     @Override
23592         public _Fields fieldForId(int fieldId) {
23593       return _Fields.findByThriftId(fieldId);
23594     }
23595
23596     @Override
23597         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23598       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
23599     }
23600
23601     @Override
23602         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23603       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
23604       }
23605
23606     @Override
23607     public String toString() {
23608       StringBuilder sb = new StringBuilder("enableMultipath_result(");
23609       boolean first = true;
23610
23611       sb.append("success:");
23612       sb.append(this.success);
23613       first = false;
23614       sb.append(")");
23615       return sb.toString();
23616     }
23617
23618     public void validate() throws org.apache.thrift.TException {
23619       // check for required fields
23620       // check for sub-struct validity
23621     }
23622
23623     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23624       try {
23625         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23626       } catch (org.apache.thrift.TException te) {
23627         throw new java.io.IOException(te);
23628       }
23629     }
23630
23631     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23632       try {
23633         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23634         __isset_bitfield = 0;
23635         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23636       } catch (org.apache.thrift.TException te) {
23637         throw new java.io.IOException(te);
23638       }
23639     }
23640
23641     private static class enableMultipath_resultStandardSchemeFactory implements SchemeFactory {
23642       @Override
23643         public enableMultipath_resultStandardScheme getScheme() {
23644         return new enableMultipath_resultStandardScheme();
23645       }
23646     }
23647
23648     private static class enableMultipath_resultStandardScheme extends StandardScheme<enableMultipath_result> {
23649
23650       @Override
23651         public void read(org.apache.thrift.protocol.TProtocol iprot, enableMultipath_result struct) throws org.apache.thrift.TException {
23652         org.apache.thrift.protocol.TField schemeField;
23653         iprot.readStructBegin();
23654         while (true)
23655         {
23656           schemeField = iprot.readFieldBegin();
23657           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
23658             break;
23659           }
23660           switch (schemeField.id) {
23661             case 0: // SUCCESS
23662               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
23663                 struct.success = iprot.readI32();
23664                 struct.setSuccessIsSet(true);
23665               } else {
23666                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23667               }
23668               break;
23669             default:
23670               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23671           }
23672           iprot.readFieldEnd();
23673         }
23674         iprot.readStructEnd();
23675
23676         // check for required fields of primitive type, which can't be checked in the validate method
23677         struct.validate();
23678       }
23679
23680       @Override
23681         public void write(org.apache.thrift.protocol.TProtocol oprot, enableMultipath_result struct) throws org.apache.thrift.TException {
23682         struct.validate();
23683
23684         oprot.writeStructBegin(STRUCT_DESC);
23685         if (struct.isSetSuccess()) {
23686           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23687           oprot.writeI32(struct.success);
23688           oprot.writeFieldEnd();
23689         }
23690         oprot.writeFieldStop();
23691         oprot.writeStructEnd();
23692       }
23693
23694     }
23695
23696     private static class enableMultipath_resultTupleSchemeFactory implements SchemeFactory {
23697       @Override
23698         public enableMultipath_resultTupleScheme getScheme() {
23699         return new enableMultipath_resultTupleScheme();
23700       }
23701     }
23702
23703     private static class enableMultipath_resultTupleScheme extends TupleScheme<enableMultipath_result> {
23704
23705       @Override
23706       public void write(org.apache.thrift.protocol.TProtocol prot, enableMultipath_result struct) throws org.apache.thrift.TException {
23707         TTupleProtocol oprot = (TTupleProtocol) prot;
23708         BitSet optionals = new BitSet();
23709         if (struct.isSetSuccess()) {
23710           optionals.set(0);
23711         }
23712         oprot.writeBitSet(optionals, 1);
23713         if (struct.isSetSuccess()) {
23714           oprot.writeI32(struct.success);
23715         }
23716       }
23717
23718       @Override
23719       public void read(org.apache.thrift.protocol.TProtocol prot, enableMultipath_result struct) throws org.apache.thrift.TException {
23720         TTupleProtocol iprot = (TTupleProtocol) prot;
23721         BitSet incoming = iprot.readBitSet(1);
23722         if (incoming.get(0)) {
23723           struct.success = iprot.readI32();
23724           struct.setSuccessIsSet(true);
23725         }
23726       }
23727     }
23728
23729   }
23730
23731   public static class disableMultipath_args implements org.apache.thrift.TBase<disableMultipath_args, disableMultipath_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableMultipath_args>   {
23732     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableMultipath_args");
23733
23734     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);
23735     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);
23736
23737     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
23738     static {
23739       schemes.put(StandardScheme.class, new disableMultipath_argsStandardSchemeFactory());
23740       schemes.put(TupleScheme.class, new disableMultipath_argsTupleSchemeFactory());
23741     }
23742
23743     /**
23744      *
23745      * @see af_afi
23746      */
23747     public af_afi afi; // required
23748     /**
23749      *
23750      * @see af_safi
23751      */
23752     public af_safi safi; // required
23753
23754     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23755     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23756       /**
23757        *
23758        * @see af_afi
23759        */
23760       AFI((short)1, "afi"),
23761       /**
23762        *
23763        * @see af_safi
23764        */
23765       SAFI((short)2, "safi");
23766
23767       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23768
23769       static {
23770         for (_Fields field : EnumSet.allOf(_Fields.class)) {
23771           byName.put(field.getFieldName(), field);
23772         }
23773       }
23774
23775       /**
23776        * Find the _Fields constant that matches fieldId, or null if its not found.
23777        */
23778       public static _Fields findByThriftId(int fieldId) {
23779         switch(fieldId) {
23780           case 1: // AFI
23781             return AFI;
23782           case 2: // SAFI
23783             return SAFI;
23784           default:
23785             return null;
23786         }
23787       }
23788
23789       /**
23790        * Find the _Fields constant that matches fieldId, throwing an exception
23791        * if it is not found.
23792        */
23793       public static _Fields findByThriftIdOrThrow(int fieldId) {
23794         _Fields fields = findByThriftId(fieldId);
23795         if (fields == null) {
23796                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23797                 }
23798         return fields;
23799       }
23800
23801       /**
23802        * Find the _Fields constant that matches name, or null if its not found.
23803        */
23804       public static _Fields findByName(String name) {
23805         return byName.get(name);
23806       }
23807
23808       private final short _thriftId;
23809       private final String _fieldName;
23810
23811       _Fields(short thriftId, String fieldName) {
23812         _thriftId = thriftId;
23813         _fieldName = fieldName;
23814       }
23815
23816       @Override
23817         public short getThriftFieldId() {
23818         return _thriftId;
23819       }
23820
23821       @Override
23822         public String getFieldName() {
23823         return _fieldName;
23824       }
23825     }
23826
23827     // isset id assignments
23828     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23829     static {
23830       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23831       tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
23832           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
23833       tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
23834           new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
23835       metaDataMap = Collections.unmodifiableMap(tmpMap);
23836       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableMultipath_args.class, metaDataMap);
23837     }
23838
23839     public disableMultipath_args() {
23840     }
23841
23842     public disableMultipath_args(
23843       af_afi afi,
23844       af_safi safi)
23845     {
23846       this();
23847       this.afi = afi;
23848       this.safi = safi;
23849     }
23850
23851     /**
23852      * Performs a deep copy on <i>other</i>.
23853      */
23854     public disableMultipath_args(disableMultipath_args other) {
23855       if (other.isSetAfi()) {
23856         this.afi = other.afi;
23857       }
23858       if (other.isSetSafi()) {
23859         this.safi = other.safi;
23860       }
23861     }
23862
23863     @Override
23864         public disableMultipath_args deepCopy() {
23865       return new disableMultipath_args(this);
23866     }
23867
23868     @Override
23869     public void clear() {
23870       this.afi = null;
23871       this.safi = null;
23872     }
23873
23874     /**
23875      *
23876      * @see af_afi
23877      */
23878     public af_afi getAfi() {
23879       return this.afi;
23880     }
23881
23882     /**
23883      *
23884      * @see af_afi
23885      */
23886     public disableMultipath_args setAfi(af_afi afi) {
23887       this.afi = afi;
23888       return this;
23889     }
23890
23891     public void unsetAfi() {
23892       this.afi = null;
23893     }
23894
23895     /** Returns true if field afi is set (has been assigned a value) and false otherwise */
23896     public boolean isSetAfi() {
23897       return this.afi != null;
23898     }
23899
23900     public void setAfiIsSet(boolean value) {
23901       if (!value) {
23902         this.afi = null;
23903       }
23904     }
23905
23906     /**
23907      *
23908      * @see af_safi
23909      */
23910     public af_safi getSafi() {
23911       return this.safi;
23912     }
23913
23914     /**
23915      *
23916      * @see af_safi
23917      */
23918     public disableMultipath_args setSafi(af_safi safi) {
23919       this.safi = safi;
23920       return this;
23921     }
23922
23923     public void unsetSafi() {
23924       this.safi = null;
23925     }
23926
23927     /** Returns true if field safi is set (has been assigned a value) and false otherwise */
23928     public boolean isSetSafi() {
23929       return this.safi != null;
23930     }
23931
23932     public void setSafiIsSet(boolean value) {
23933       if (!value) {
23934         this.safi = null;
23935       }
23936     }
23937
23938     @Override
23939         public void setFieldValue(_Fields field, Object value) {
23940       switch (field) {
23941       case AFI:
23942         if (value == null) {
23943           unsetAfi();
23944         } else {
23945           setAfi((af_afi)value);
23946         }
23947         break;
23948
23949       case SAFI:
23950         if (value == null) {
23951           unsetSafi();
23952         } else {
23953           setSafi((af_safi)value);
23954         }
23955         break;
23956
23957       }
23958     }
23959
23960     @Override
23961         public Object getFieldValue(_Fields field) {
23962       switch (field) {
23963       case AFI:
23964         return getAfi();
23965
23966       case SAFI:
23967         return getSafi();
23968
23969       }
23970       throw new IllegalStateException();
23971     }
23972
23973     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23974     @Override
23975         public boolean isSet(_Fields field) {
23976       if (field == null) {
23977         throw new IllegalArgumentException();
23978       }
23979
23980       switch (field) {
23981       case AFI:
23982         return isSetAfi();
23983       case SAFI:
23984         return isSetSafi();
23985       }
23986       throw new IllegalStateException();
23987     }
23988
23989     @Override
23990     public boolean equals(Object that) {
23991       if (that == null) {
23992                 return false;
23993         }
23994       if (that instanceof disableMultipath_args) {
23995                 return this.equals((disableMultipath_args)that);
23996         }
23997       return false;
23998     }
23999
24000     public boolean equals(disableMultipath_args that) {
24001       if (that == null) {
24002                 return false;
24003         }
24004
24005       boolean this_present_afi = true && this.isSetAfi();
24006       boolean that_present_afi = true && that.isSetAfi();
24007       if (this_present_afi || that_present_afi) {
24008         if (!(this_present_afi && that_present_afi)) {
24009                         return false;
24010                 }
24011         if (!this.afi.equals(that.afi)) {
24012                         return false;
24013                 }
24014       }
24015
24016       boolean this_present_safi = true && this.isSetSafi();
24017       boolean that_present_safi = true && that.isSetSafi();
24018       if (this_present_safi || that_present_safi) {
24019         if (!(this_present_safi && that_present_safi)) {
24020                         return false;
24021                 }
24022         if (!this.safi.equals(that.safi)) {
24023                         return false;
24024                 }
24025       }
24026
24027       return true;
24028     }
24029
24030     @Override
24031     public int hashCode() {
24032       List<Object> list = new ArrayList<Object>();
24033
24034       boolean present_afi = true && (isSetAfi());
24035       list.add(present_afi);
24036       if (present_afi)
24037         list.add(afi.getValue());
24038       boolean present_safi = true && (isSetSafi());
24039       list.add(present_safi);
24040       if (present_safi)
24041         list.add(safi.getValue());
24042       return list.hashCode();
24043     }
24044
24045     @Override
24046     public int compareTo(disableMultipath_args other) {
24047       if (!getClass().equals(other.getClass())) {
24048         return getClass().getName().compareTo(other.getClass().getName());
24049       }
24050
24051       int lastComparison = 0;
24052
24053       lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
24054       if (lastComparison != 0) {
24055         return lastComparison;
24056       }
24057       if (isSetAfi()) {
24058         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
24059         if (lastComparison != 0) {
24060           return lastComparison;
24061         }
24062       }
24063       lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
24064       if (lastComparison != 0) {
24065         return lastComparison;
24066       }
24067       if (isSetSafi()) {
24068         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
24069         if (lastComparison != 0) {
24070           return lastComparison;
24071         }
24072       }
24073       return 0;
24074     }
24075
24076     @Override
24077         public _Fields fieldForId(int fieldId) {
24078       return _Fields.findByThriftId(fieldId);
24079     }
24080
24081     @Override
24082         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24083       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24084     }
24085
24086     @Override
24087         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24088       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24089     }
24090
24091     @Override
24092     public String toString() {
24093       StringBuilder sb = new StringBuilder("disableMultipath_args(");
24094       boolean first = true;
24095
24096       sb.append("afi:");
24097       if (this.afi == null) {
24098         sb.append("null");
24099       } else {
24100         sb.append(this.afi);
24101       }
24102       first = false;
24103       if (!first) {
24104                 sb.append(", ");
24105         }
24106       sb.append("safi:");
24107       if (this.safi == null) {
24108         sb.append("null");
24109       } else {
24110         sb.append(this.safi);
24111       }
24112       first = false;
24113       sb.append(")");
24114       return sb.toString();
24115     }
24116
24117     public void validate() throws org.apache.thrift.TException {
24118       // check for required fields
24119       // check for sub-struct validity
24120     }
24121
24122     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24123       try {
24124         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24125       } catch (org.apache.thrift.TException te) {
24126         throw new java.io.IOException(te);
24127       }
24128     }
24129
24130     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24131       try {
24132         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24133       } catch (org.apache.thrift.TException te) {
24134         throw new java.io.IOException(te);
24135       }
24136     }
24137
24138     private static class disableMultipath_argsStandardSchemeFactory implements SchemeFactory {
24139       @Override
24140         public disableMultipath_argsStandardScheme getScheme() {
24141         return new disableMultipath_argsStandardScheme();
24142       }
24143     }
24144
24145     private static class disableMultipath_argsStandardScheme extends StandardScheme<disableMultipath_args> {
24146
24147       @Override
24148         public void read(org.apache.thrift.protocol.TProtocol iprot, disableMultipath_args struct) throws org.apache.thrift.TException {
24149         org.apache.thrift.protocol.TField schemeField;
24150         iprot.readStructBegin();
24151         while (true)
24152         {
24153           schemeField = iprot.readFieldBegin();
24154           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
24155             break;
24156           }
24157           switch (schemeField.id) {
24158             case 1: // AFI
24159               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
24160                 struct.afi = af_afi.findByValue(iprot.readI32());
24161                 struct.setAfiIsSet(true);
24162               } else {
24163                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24164               }
24165               break;
24166             case 2: // SAFI
24167               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
24168                 struct.safi = af_safi.findByValue(iprot.readI32());
24169                 struct.setSafiIsSet(true);
24170               } else {
24171                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24172               }
24173               break;
24174             default:
24175               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24176           }
24177           iprot.readFieldEnd();
24178         }
24179         iprot.readStructEnd();
24180
24181         // check for required fields of primitive type, which can't be checked in the validate method
24182         struct.validate();
24183       }
24184
24185       @Override
24186         public void write(org.apache.thrift.protocol.TProtocol oprot, disableMultipath_args struct) throws org.apache.thrift.TException {
24187         struct.validate();
24188
24189         oprot.writeStructBegin(STRUCT_DESC);
24190         if (struct.afi != null) {
24191           oprot.writeFieldBegin(AFI_FIELD_DESC);
24192           oprot.writeI32(struct.afi.getValue());
24193           oprot.writeFieldEnd();
24194         }
24195         if (struct.safi != null) {
24196           oprot.writeFieldBegin(SAFI_FIELD_DESC);
24197           oprot.writeI32(struct.safi.getValue());
24198           oprot.writeFieldEnd();
24199         }
24200         oprot.writeFieldStop();
24201         oprot.writeStructEnd();
24202       }
24203
24204     }
24205
24206     private static class disableMultipath_argsTupleSchemeFactory implements SchemeFactory {
24207       @Override
24208         public disableMultipath_argsTupleScheme getScheme() {
24209         return new disableMultipath_argsTupleScheme();
24210       }
24211     }
24212
24213     private static class disableMultipath_argsTupleScheme extends TupleScheme<disableMultipath_args> {
24214
24215       @Override
24216       public void write(org.apache.thrift.protocol.TProtocol prot, disableMultipath_args struct) throws org.apache.thrift.TException {
24217         TTupleProtocol oprot = (TTupleProtocol) prot;
24218         BitSet optionals = new BitSet();
24219         if (struct.isSetAfi()) {
24220           optionals.set(0);
24221         }
24222         if (struct.isSetSafi()) {
24223           optionals.set(1);
24224         }
24225         oprot.writeBitSet(optionals, 2);
24226         if (struct.isSetAfi()) {
24227           oprot.writeI32(struct.afi.getValue());
24228         }
24229         if (struct.isSetSafi()) {
24230           oprot.writeI32(struct.safi.getValue());
24231         }
24232       }
24233
24234       @Override
24235       public void read(org.apache.thrift.protocol.TProtocol prot, disableMultipath_args struct) throws org.apache.thrift.TException {
24236         TTupleProtocol iprot = (TTupleProtocol) prot;
24237         BitSet incoming = iprot.readBitSet(2);
24238         if (incoming.get(0)) {
24239           struct.afi = af_afi.findByValue(iprot.readI32());
24240           struct.setAfiIsSet(true);
24241         }
24242         if (incoming.get(1)) {
24243           struct.safi = af_safi.findByValue(iprot.readI32());
24244           struct.setSafiIsSet(true);
24245         }
24246       }
24247     }
24248
24249   }
24250
24251   public static class disableMultipath_result implements org.apache.thrift.TBase<disableMultipath_result, disableMultipath_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableMultipath_result>   {
24252     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableMultipath_result");
24253
24254     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);
24255
24256     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
24257     static {
24258       schemes.put(StandardScheme.class, new disableMultipath_resultStandardSchemeFactory());
24259       schemes.put(TupleScheme.class, new disableMultipath_resultTupleSchemeFactory());
24260     }
24261
24262     public int success; // required
24263
24264     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24265     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24266       SUCCESS((short)0, "success");
24267
24268       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24269
24270       static {
24271         for (_Fields field : EnumSet.allOf(_Fields.class)) {
24272           byName.put(field.getFieldName(), field);
24273         }
24274       }
24275
24276       /**
24277        * Find the _Fields constant that matches fieldId, or null if its not found.
24278        */
24279       public static _Fields findByThriftId(int fieldId) {
24280         switch(fieldId) {
24281           case 0: // SUCCESS
24282             return SUCCESS;
24283           default:
24284             return null;
24285         }
24286       }
24287
24288       /**
24289        * Find the _Fields constant that matches fieldId, throwing an exception
24290        * if it is not found.
24291        */
24292       public static _Fields findByThriftIdOrThrow(int fieldId) {
24293         _Fields fields = findByThriftId(fieldId);
24294         if (fields == null) {
24295                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24296                 }
24297         return fields;
24298       }
24299
24300       /**
24301        * Find the _Fields constant that matches name, or null if its not found.
24302        */
24303       public static _Fields findByName(String name) {
24304         return byName.get(name);
24305       }
24306
24307       private final short _thriftId;
24308       private final String _fieldName;
24309
24310       _Fields(short thriftId, String fieldName) {
24311         _thriftId = thriftId;
24312         _fieldName = fieldName;
24313       }
24314
24315       @Override
24316         public short getThriftFieldId() {
24317         return _thriftId;
24318       }
24319
24320       @Override
24321         public String getFieldName() {
24322         return _fieldName;
24323       }
24324     }
24325
24326     // isset id assignments
24327     private static final int __SUCCESS_ISSET_ID = 0;
24328     private byte __isset_bitfield = 0;
24329     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24330     static {
24331       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24332       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
24333           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
24334       metaDataMap = Collections.unmodifiableMap(tmpMap);
24335       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableMultipath_result.class, metaDataMap);
24336     }
24337
24338     public disableMultipath_result() {
24339     }
24340
24341     public disableMultipath_result(
24342       int success)
24343     {
24344       this();
24345       this.success = success;
24346       setSuccessIsSet(true);
24347     }
24348
24349     /**
24350      * Performs a deep copy on <i>other</i>.
24351      */
24352     public disableMultipath_result(disableMultipath_result other) {
24353       __isset_bitfield = other.__isset_bitfield;
24354       this.success = other.success;
24355     }
24356
24357     @Override
24358         public disableMultipath_result deepCopy() {
24359       return new disableMultipath_result(this);
24360     }
24361
24362     @Override
24363     public void clear() {
24364       setSuccessIsSet(false);
24365       this.success = 0;
24366     }
24367
24368     public int getSuccess() {
24369       return this.success;
24370     }
24371
24372     public disableMultipath_result setSuccess(int success) {
24373       this.success = success;
24374       setSuccessIsSet(true);
24375       return this;
24376     }
24377
24378     public void unsetSuccess() {
24379       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
24380     }
24381
24382     /** Returns true if field success is set (has been assigned a value) and false otherwise */
24383     public boolean isSetSuccess() {
24384       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
24385     }
24386
24387     public void setSuccessIsSet(boolean value) {
24388       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
24389     }
24390
24391     @Override
24392         public void setFieldValue(_Fields field, Object value) {
24393       switch (field) {
24394       case SUCCESS:
24395         if (value == null) {
24396           unsetSuccess();
24397         } else {
24398           setSuccess((Integer)value);
24399         }
24400         break;
24401
24402       }
24403     }
24404
24405     @Override
24406         public Object getFieldValue(_Fields field) {
24407       switch (field) {
24408       case SUCCESS:
24409         return Integer.valueOf(getSuccess());
24410
24411       }
24412       throw new IllegalStateException();
24413     }
24414
24415     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24416     @Override
24417         public boolean isSet(_Fields field) {
24418       if (field == null) {
24419         throw new IllegalArgumentException();
24420       }
24421
24422       switch (field) {
24423       case SUCCESS:
24424         return isSetSuccess();
24425       }
24426       throw new IllegalStateException();
24427     }
24428
24429     @Override
24430     public boolean equals(Object that) {
24431       if (that == null) {
24432                 return false;
24433         }
24434       if (that instanceof disableMultipath_result) {
24435                 return this.equals((disableMultipath_result)that);
24436         }
24437       return false;
24438     }
24439
24440     public boolean equals(disableMultipath_result that) {
24441       if (that == null) {
24442                 return false;
24443         }
24444
24445       boolean this_present_success = true;
24446       boolean that_present_success = true;
24447       if (this_present_success || that_present_success) {
24448         if (!(this_present_success && that_present_success)) {
24449                         return false;
24450                 }
24451         if (this.success != that.success) {
24452                         return false;
24453                 }
24454       }
24455
24456       return true;
24457     }
24458
24459     @Override
24460     public int hashCode() {
24461       List<Object> list = new ArrayList<Object>();
24462
24463       boolean present_success = true;
24464       list.add(present_success);
24465       if (present_success)
24466         list.add(success);
24467       return list.hashCode();
24468     }
24469
24470     @Override
24471     public int compareTo(disableMultipath_result other) {
24472       if (!getClass().equals(other.getClass())) {
24473         return getClass().getName().compareTo(other.getClass().getName());
24474       }
24475
24476       int lastComparison = 0;
24477
24478       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
24479       if (lastComparison != 0) {
24480         return lastComparison;
24481       }
24482       if (isSetSuccess()) {
24483         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
24484         if (lastComparison != 0) {
24485           return lastComparison;
24486         }
24487       }
24488       return 0;
24489     }
24490
24491     @Override
24492         public _Fields fieldForId(int fieldId) {
24493       return _Fields.findByThriftId(fieldId);
24494     }
24495
24496     @Override
24497         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24498       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24499     }
24500
24501     @Override
24502         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24503       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24504       }
24505
24506     @Override
24507     public String toString() {
24508       StringBuilder sb = new StringBuilder("disableMultipath_result(");
24509       boolean first = true;
24510
24511       sb.append("success:");
24512       sb.append(this.success);
24513       first = false;
24514       sb.append(")");
24515       return sb.toString();
24516     }
24517
24518     public void validate() throws org.apache.thrift.TException {
24519       // check for required fields
24520       // check for sub-struct validity
24521     }
24522
24523     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24524       try {
24525         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24526       } catch (org.apache.thrift.TException te) {
24527         throw new java.io.IOException(te);
24528       }
24529     }
24530
24531     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24532       try {
24533         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24534         __isset_bitfield = 0;
24535         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24536       } catch (org.apache.thrift.TException te) {
24537         throw new java.io.IOException(te);
24538       }
24539     }
24540
24541     private static class disableMultipath_resultStandardSchemeFactory implements SchemeFactory {
24542       @Override
24543         public disableMultipath_resultStandardScheme getScheme() {
24544         return new disableMultipath_resultStandardScheme();
24545       }
24546     }
24547
24548     private static class disableMultipath_resultStandardScheme extends StandardScheme<disableMultipath_result> {
24549
24550       @Override
24551         public void read(org.apache.thrift.protocol.TProtocol iprot, disableMultipath_result struct) throws org.apache.thrift.TException {
24552         org.apache.thrift.protocol.TField schemeField;
24553         iprot.readStructBegin();
24554         while (true)
24555         {
24556           schemeField = iprot.readFieldBegin();
24557           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
24558             break;
24559           }
24560           switch (schemeField.id) {
24561             case 0: // SUCCESS
24562               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
24563                 struct.success = iprot.readI32();
24564                 struct.setSuccessIsSet(true);
24565               } else {
24566                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24567               }
24568               break;
24569             default:
24570               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24571           }
24572           iprot.readFieldEnd();
24573         }
24574         iprot.readStructEnd();
24575
24576         // check for required fields of primitive type, which can't be checked in the validate method
24577         struct.validate();
24578       }
24579
24580       @Override
24581         public void write(org.apache.thrift.protocol.TProtocol oprot, disableMultipath_result struct) throws org.apache.thrift.TException {
24582         struct.validate();
24583
24584         oprot.writeStructBegin(STRUCT_DESC);
24585         if (struct.isSetSuccess()) {
24586           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24587           oprot.writeI32(struct.success);
24588           oprot.writeFieldEnd();
24589         }
24590         oprot.writeFieldStop();
24591         oprot.writeStructEnd();
24592       }
24593
24594     }
24595
24596     private static class disableMultipath_resultTupleSchemeFactory implements SchemeFactory {
24597       @Override
24598         public disableMultipath_resultTupleScheme getScheme() {
24599         return new disableMultipath_resultTupleScheme();
24600       }
24601     }
24602
24603     private static class disableMultipath_resultTupleScheme extends TupleScheme<disableMultipath_result> {
24604
24605       @Override
24606       public void write(org.apache.thrift.protocol.TProtocol prot, disableMultipath_result struct) throws org.apache.thrift.TException {
24607         TTupleProtocol oprot = (TTupleProtocol) prot;
24608         BitSet optionals = new BitSet();
24609         if (struct.isSetSuccess()) {
24610           optionals.set(0);
24611         }
24612         oprot.writeBitSet(optionals, 1);
24613         if (struct.isSetSuccess()) {
24614           oprot.writeI32(struct.success);
24615         }
24616       }
24617
24618       @Override
24619       public void read(org.apache.thrift.protocol.TProtocol prot, disableMultipath_result struct) throws org.apache.thrift.TException {
24620         TTupleProtocol iprot = (TTupleProtocol) prot;
24621         BitSet incoming = iprot.readBitSet(1);
24622         if (incoming.get(0)) {
24623           struct.success = iprot.readI32();
24624           struct.setSuccessIsSet(true);
24625         }
24626       }
24627     }
24628
24629   }
24630
24631   public static class multipaths_args implements org.apache.thrift.TBase<multipaths_args, multipaths_args._Fields>, java.io.Serializable, Cloneable, Comparable<multipaths_args>   {
24632     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("multipaths_args");
24633
24634     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);
24635     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);
24636
24637     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
24638     static {
24639       schemes.put(StandardScheme.class, new multipaths_argsStandardSchemeFactory());
24640       schemes.put(TupleScheme.class, new multipaths_argsTupleSchemeFactory());
24641     }
24642
24643     public String rd; // required
24644     public int maxPath; // required
24645
24646     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24647     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24648       RD((short)1, "rd"),
24649       MAX_PATH((short)2, "maxPath");
24650
24651       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24652
24653       static {
24654         for (_Fields field : EnumSet.allOf(_Fields.class)) {
24655           byName.put(field.getFieldName(), field);
24656         }
24657       }
24658
24659       /**
24660        * Find the _Fields constant that matches fieldId, or null if its not found.
24661        */
24662       public static _Fields findByThriftId(int fieldId) {
24663         switch(fieldId) {
24664           case 1: // RD
24665             return RD;
24666           case 2: // MAX_PATH
24667             return MAX_PATH;
24668           default:
24669             return null;
24670         }
24671       }
24672
24673       /**
24674        * Find the _Fields constant that matches fieldId, throwing an exception
24675        * if it is not found.
24676        */
24677       public static _Fields findByThriftIdOrThrow(int fieldId) {
24678         _Fields fields = findByThriftId(fieldId);
24679         if (fields == null) {
24680                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24681                 }
24682         return fields;
24683       }
24684
24685       /**
24686        * Find the _Fields constant that matches name, or null if its not found.
24687        */
24688       public static _Fields findByName(String name) {
24689         return byName.get(name);
24690       }
24691
24692       private final short _thriftId;
24693       private final String _fieldName;
24694
24695       _Fields(short thriftId, String fieldName) {
24696         _thriftId = thriftId;
24697         _fieldName = fieldName;
24698       }
24699
24700       @Override
24701         public short getThriftFieldId() {
24702         return _thriftId;
24703       }
24704
24705       @Override
24706         public String getFieldName() {
24707         return _fieldName;
24708       }
24709     }
24710
24711     // isset id assignments
24712     private static final int __MAXPATH_ISSET_ID = 0;
24713     private byte __isset_bitfield = 0;
24714     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24715     static {
24716       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24717       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
24718           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24719       tmpMap.put(_Fields.MAX_PATH, new org.apache.thrift.meta_data.FieldMetaData("maxPath", org.apache.thrift.TFieldRequirementType.DEFAULT,
24720           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
24721       metaDataMap = Collections.unmodifiableMap(tmpMap);
24722       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(multipaths_args.class, metaDataMap);
24723     }
24724
24725     public multipaths_args() {
24726     }
24727
24728     public multipaths_args(
24729       String rd,
24730       int maxPath)
24731     {
24732       this();
24733       this.rd = rd;
24734       this.maxPath = maxPath;
24735       setMaxPathIsSet(true);
24736     }
24737
24738     /**
24739      * Performs a deep copy on <i>other</i>.
24740      */
24741     public multipaths_args(multipaths_args other) {
24742       __isset_bitfield = other.__isset_bitfield;
24743       if (other.isSetRd()) {
24744         this.rd = other.rd;
24745       }
24746       this.maxPath = other.maxPath;
24747     }
24748
24749     @Override
24750         public multipaths_args deepCopy() {
24751       return new multipaths_args(this);
24752     }
24753
24754     @Override
24755     public void clear() {
24756       this.rd = null;
24757       setMaxPathIsSet(false);
24758       this.maxPath = 0;
24759     }
24760
24761     public String getRd() {
24762       return this.rd;
24763     }
24764
24765     public multipaths_args setRd(String rd) {
24766       this.rd = rd;
24767       return this;
24768     }
24769
24770     public void unsetRd() {
24771       this.rd = null;
24772     }
24773
24774     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
24775     public boolean isSetRd() {
24776       return this.rd != null;
24777     }
24778
24779     public void setRdIsSet(boolean value) {
24780       if (!value) {
24781         this.rd = null;
24782       }
24783     }
24784
24785     public int getMaxPath() {
24786       return this.maxPath;
24787     }
24788
24789     public multipaths_args setMaxPath(int maxPath) {
24790       this.maxPath = maxPath;
24791       setMaxPathIsSet(true);
24792       return this;
24793     }
24794
24795     public void unsetMaxPath() {
24796       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXPATH_ISSET_ID);
24797     }
24798
24799     /** Returns true if field maxPath is set (has been assigned a value) and false otherwise */
24800     public boolean isSetMaxPath() {
24801       return EncodingUtils.testBit(__isset_bitfield, __MAXPATH_ISSET_ID);
24802     }
24803
24804     public void setMaxPathIsSet(boolean value) {
24805       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXPATH_ISSET_ID, value);
24806     }
24807
24808     @Override
24809         public void setFieldValue(_Fields field, Object value) {
24810       switch (field) {
24811       case RD:
24812         if (value == null) {
24813           unsetRd();
24814         } else {
24815           setRd((String)value);
24816         }
24817         break;
24818
24819       case MAX_PATH:
24820         if (value == null) {
24821           unsetMaxPath();
24822         } else {
24823           setMaxPath((Integer)value);
24824         }
24825         break;
24826
24827       }
24828     }
24829
24830     @Override
24831         public Object getFieldValue(_Fields field) {
24832       switch (field) {
24833       case RD:
24834         return getRd();
24835
24836       case MAX_PATH:
24837         return Integer.valueOf(getMaxPath());
24838
24839       }
24840       throw new IllegalStateException();
24841     }
24842
24843     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24844     @Override
24845         public boolean isSet(_Fields field) {
24846       if (field == null) {
24847         throw new IllegalArgumentException();
24848       }
24849
24850       switch (field) {
24851       case RD:
24852         return isSetRd();
24853       case MAX_PATH:
24854         return isSetMaxPath();
24855       }
24856       throw new IllegalStateException();
24857     }
24858
24859     @Override
24860     public boolean equals(Object that) {
24861       if (that == null) {
24862                 return false;
24863         }
24864       if (that instanceof multipaths_args) {
24865                 return this.equals((multipaths_args)that);
24866         }
24867       return false;
24868     }
24869
24870     public boolean equals(multipaths_args that) {
24871       if (that == null) {
24872                 return false;
24873         }
24874
24875       boolean this_present_rd = true && this.isSetRd();
24876       boolean that_present_rd = true && that.isSetRd();
24877       if (this_present_rd || that_present_rd) {
24878         if (!(this_present_rd && that_present_rd)) {
24879                         return false;
24880                 }
24881         if (!this.rd.equals(that.rd)) {
24882                         return false;
24883                 }
24884       }
24885
24886       boolean this_present_maxPath = true;
24887       boolean that_present_maxPath = true;
24888       if (this_present_maxPath || that_present_maxPath) {
24889         if (!(this_present_maxPath && that_present_maxPath)) {
24890                         return false;
24891                 }
24892         if (this.maxPath != that.maxPath) {
24893                         return false;
24894                 }
24895       }
24896
24897       return true;
24898     }
24899
24900     @Override
24901     public int hashCode() {
24902       List<Object> list = new ArrayList<Object>();
24903       boolean present_rd = true && (isSetRd());
24904       list.add(present_rd);
24905       if (present_rd)
24906         list.add(rd);
24907       boolean present_maxPath = true;
24908       list.add(present_maxPath);
24909       if (present_maxPath)
24910         list.add(maxPath);
24911       return list.hashCode();
24912     }
24913
24914     @Override
24915     public int compareTo(multipaths_args other) {
24916       if (!getClass().equals(other.getClass())) {
24917         return getClass().getName().compareTo(other.getClass().getName());
24918       }
24919
24920       int lastComparison = 0;
24921
24922       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
24923       if (lastComparison != 0) {
24924         return lastComparison;
24925       }
24926       if (isSetRd()) {
24927         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
24928         if (lastComparison != 0) {
24929           return lastComparison;
24930         }
24931       }
24932       lastComparison = Boolean.valueOf(isSetMaxPath()).compareTo(other.isSetMaxPath());
24933       if (lastComparison != 0) {
24934         return lastComparison;
24935       }
24936       if (isSetMaxPath()) {
24937         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxPath, other.maxPath);
24938         if (lastComparison != 0) {
24939           return lastComparison;
24940         }
24941       }
24942       return 0;
24943     }
24944
24945     @Override
24946         public _Fields fieldForId(int fieldId) {
24947       return _Fields.findByThriftId(fieldId);
24948     }
24949
24950     @Override
24951         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24952       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24953     }
24954
24955     @Override
24956         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24957       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24958     }
24959
24960     @Override
24961     public String toString() {
24962       StringBuilder sb = new StringBuilder("multipaths_args(");
24963       boolean first = true;
24964
24965       sb.append("rd:");
24966       if (this.rd == null) {
24967         sb.append("null");
24968       } else {
24969         sb.append(this.rd);
24970       }
24971       first = false;
24972       if (!first) {
24973                 sb.append(", ");
24974         }
24975       sb.append("maxPath:");
24976       sb.append(this.maxPath);
24977       first = false;
24978       sb.append(")");
24979       return sb.toString();
24980     }
24981
24982     public void validate() throws org.apache.thrift.TException {
24983       // check for required fields
24984       // check for sub-struct validity
24985     }
24986
24987     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24988       try {
24989         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24990       } catch (org.apache.thrift.TException te) {
24991         throw new java.io.IOException(te);
24992       }
24993     }
24994
24995     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24996       try {
24997         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24998         __isset_bitfield = 0;
24999         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25000       } catch (org.apache.thrift.TException te) {
25001         throw new java.io.IOException(te);
25002       }
25003     }
25004
25005     private static class multipaths_argsStandardSchemeFactory implements SchemeFactory {
25006       @Override
25007         public multipaths_argsStandardScheme getScheme() {
25008         return new multipaths_argsStandardScheme();
25009       }
25010     }
25011
25012     private static class multipaths_argsStandardScheme extends StandardScheme<multipaths_args> {
25013
25014       @Override
25015         public void read(org.apache.thrift.protocol.TProtocol iprot, multipaths_args struct) throws org.apache.thrift.TException {
25016         org.apache.thrift.protocol.TField schemeField;
25017         iprot.readStructBegin();
25018         while (true)
25019         {
25020           schemeField = iprot.readFieldBegin();
25021           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
25022             break;
25023           }
25024           switch (schemeField.id) {
25025             case 1: // RD
25026               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
25027                 struct.rd = iprot.readString();
25028                 struct.setRdIsSet(true);
25029               } else {
25030                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25031               }
25032               break;
25033             case 2: // MAX_PATH
25034               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
25035                 struct.maxPath = iprot.readI32();
25036                 struct.setMaxPathIsSet(true);
25037               } else {
25038                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25039               }
25040               break;
25041             default:
25042               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25043           }
25044           iprot.readFieldEnd();
25045         }
25046         iprot.readStructEnd();
25047
25048         // check for required fields of primitive type, which can't be checked in the validate method
25049         struct.validate();
25050       }
25051
25052       @Override
25053         public void write(org.apache.thrift.protocol.TProtocol oprot, multipaths_args struct) throws org.apache.thrift.TException {
25054         struct.validate();
25055
25056         oprot.writeStructBegin(STRUCT_DESC);
25057         if (struct.rd != null) {
25058           oprot.writeFieldBegin(RD_FIELD_DESC);
25059           oprot.writeString(struct.rd);
25060           oprot.writeFieldEnd();
25061         }
25062         oprot.writeFieldBegin(MAX_PATH_FIELD_DESC);
25063         oprot.writeI32(struct.maxPath);
25064         oprot.writeFieldEnd();
25065         oprot.writeFieldStop();
25066         oprot.writeStructEnd();
25067       }
25068
25069     }
25070
25071     private static class multipaths_argsTupleSchemeFactory implements SchemeFactory {
25072       @Override
25073         public multipaths_argsTupleScheme getScheme() {
25074         return new multipaths_argsTupleScheme();
25075       }
25076     }
25077
25078     private static class multipaths_argsTupleScheme extends TupleScheme<multipaths_args> {
25079
25080       @Override
25081       public void write(org.apache.thrift.protocol.TProtocol prot, multipaths_args struct) throws org.apache.thrift.TException {
25082         TTupleProtocol oprot = (TTupleProtocol) prot;
25083         BitSet optionals = new BitSet();
25084         if (struct.isSetRd()) {
25085           optionals.set(0);
25086         }
25087         if (struct.isSetMaxPath()) {
25088           optionals.set(1);
25089         }
25090         oprot.writeBitSet(optionals, 2);
25091         if (struct.isSetRd()) {
25092           oprot.writeString(struct.rd);
25093         }
25094         if (struct.isSetMaxPath()) {
25095           oprot.writeI32(struct.maxPath);
25096         }
25097       }
25098
25099       @Override
25100       public void read(org.apache.thrift.protocol.TProtocol prot, multipaths_args struct) throws org.apache.thrift.TException {
25101         TTupleProtocol iprot = (TTupleProtocol) prot;
25102         BitSet incoming = iprot.readBitSet(2);
25103         if (incoming.get(0)) {
25104           struct.rd = iprot.readString();
25105           struct.setRdIsSet(true);
25106         }
25107         if (incoming.get(1)) {
25108           struct.maxPath = iprot.readI32();
25109           struct.setMaxPathIsSet(true);
25110         }
25111       }
25112     }
25113
25114   }
25115
25116   public static class multipaths_result implements org.apache.thrift.TBase<multipaths_result, multipaths_result._Fields>, java.io.Serializable, Cloneable, Comparable<multipaths_result>   {
25117     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("multipaths_result");
25118
25119     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);
25120
25121     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
25122     static {
25123       schemes.put(StandardScheme.class, new multipaths_resultStandardSchemeFactory());
25124       schemes.put(TupleScheme.class, new multipaths_resultTupleSchemeFactory());
25125     }
25126
25127     public int success; // required
25128
25129     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25130     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25131       SUCCESS((short)0, "success");
25132
25133       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25134
25135       static {
25136         for (_Fields field : EnumSet.allOf(_Fields.class)) {
25137           byName.put(field.getFieldName(), field);
25138         }
25139       }
25140
25141       /**
25142        * Find the _Fields constant that matches fieldId, or null if its not found.
25143        */
25144       public static _Fields findByThriftId(int fieldId) {
25145         switch(fieldId) {
25146           case 0: // SUCCESS
25147             return SUCCESS;
25148           default:
25149             return null;
25150         }
25151       }
25152
25153       /**
25154        * Find the _Fields constant that matches fieldId, throwing an exception
25155        * if it is not found.
25156        */
25157       public static _Fields findByThriftIdOrThrow(int fieldId) {
25158         _Fields fields = findByThriftId(fieldId);
25159         if (fields == null) {
25160                         throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25161                 }
25162         return fields;
25163       }
25164
25165       /**
25166        * Find the _Fields constant that matches name, or null if its not found.
25167        */
25168       public static _Fields findByName(String name) {
25169         return byName.get(name);
25170       }
25171
25172       private final short _thriftId;
25173       private final String _fieldName;
25174
25175       _Fields(short thriftId, String fieldName) {
25176         _thriftId = thriftId;
25177         _fieldName = fieldName;
25178       }
25179
25180       @Override
25181         public short getThriftFieldId() {
25182         return _thriftId;
25183       }
25184
25185       @Override
25186         public String getFieldName() {
25187         return _fieldName;
25188       }
25189     }
25190
25191     // isset id assignments
25192     private static final int __SUCCESS_ISSET_ID = 0;
25193     private byte __isset_bitfield = 0;
25194     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25195     static {
25196       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25197       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
25198           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
25199       metaDataMap = Collections.unmodifiableMap(tmpMap);
25200       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(multipaths_result.class, metaDataMap);
25201     }
25202
25203     public multipaths_result() {
25204     }
25205
25206     public multipaths_result(
25207       int success)
25208     {
25209       this();
25210       this.success = success;
25211       setSuccessIsSet(true);
25212     }
25213
25214     /**
25215      * Performs a deep copy on <i>other</i>.
25216      */
25217     public multipaths_result(multipaths_result other) {
25218       __isset_bitfield = other.__isset_bitfield;
25219       this.success = other.success;
25220     }
25221
25222     @Override
25223         public multipaths_result deepCopy() {
25224       return new multipaths_result(this);
25225     }
25226
25227     @Override
25228     public void clear() {
25229       setSuccessIsSet(false);
25230       this.success = 0;
25231     }
25232
25233     public int getSuccess() {
25234       return this.success;
25235     }
25236
25237     public multipaths_result setSuccess(int success) {
25238       this.success = success;
25239       setSuccessIsSet(true);
25240       return this;
25241     }
25242
25243     public void unsetSuccess() {
25244       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
25245     }
25246
25247     /** Returns true if field success is set (has been assigned a value) and false otherwise */
25248     public boolean isSetSuccess() {
25249       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
25250     }
25251
25252     public void setSuccessIsSet(boolean value) {
25253       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
25254     }
25255
25256     @Override
25257         public void setFieldValue(_Fields field, Object value) {
25258       switch (field) {
25259       case SUCCESS:
25260         if (value == null) {
25261           unsetSuccess();
25262         } else {
25263           setSuccess((Integer)value);
25264         }
25265         break;
25266
25267       }
25268     }
25269
25270     @Override
25271         public Object getFieldValue(_Fields field) {
25272       switch (field) {
25273       case SUCCESS:
25274         return Integer.valueOf(getSuccess());
25275
25276       }
25277       throw new IllegalStateException();
25278     }
25279
25280     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25281     @Override
25282         public boolean isSet(_Fields field) {
25283       if (field == null) {
25284         throw new IllegalArgumentException();
25285       }
25286
25287       switch (field) {
25288       case SUCCESS:
25289         return isSetSuccess();
25290       }
25291       throw new IllegalStateException();
25292     }
25293
25294     @Override
25295     public boolean equals(Object that) {
25296       if (that == null) {
25297                 return false;
25298         }
25299       if (that instanceof multipaths_result) {
25300                 return this.equals((multipaths_result)that);
25301         }
25302       return false;
25303     }
25304
25305     public boolean equals(multipaths_result that) {
25306       if (that == null) {
25307                 return false;
25308         }
25309
25310       boolean this_present_success = true;
25311       boolean that_present_success = true;
25312       if (this_present_success || that_present_success) {
25313         if (!(this_present_success && that_present_success)) {
25314                         return false;
25315                 }
25316         if (this.success != that.success) {
25317                         return false;
25318                 }
25319       }
25320
25321       return true;
25322     }
25323
25324     @Override
25325     public int hashCode() {
25326       List<Object> list = new ArrayList<Object>();
25327
25328       boolean present_success = true;
25329       list.add(present_success);
25330       if (present_success)
25331         list.add(success);
25332       return list.hashCode();
25333     }
25334
25335     @Override
25336     public int compareTo(multipaths_result other) {
25337       if (!getClass().equals(other.getClass())) {
25338         return getClass().getName().compareTo(other.getClass().getName());
25339       }
25340
25341       int lastComparison = 0;
25342
25343       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
25344       if (lastComparison != 0) {
25345         return lastComparison;
25346       }
25347       if (isSetSuccess()) {
25348         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
25349         if (lastComparison != 0) {
25350           return lastComparison;
25351         }
25352       }
25353       return 0;
25354     }
25355
25356     @Override
25357         public _Fields fieldForId(int fieldId) {
25358       return _Fields.findByThriftId(fieldId);
25359     }
25360
25361     @Override
25362         public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25363       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
25364     }
25365
25366     @Override
25367         public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25368       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
25369       }
25370
25371     @Override
25372     public String toString() {
25373       StringBuilder sb = new StringBuilder("multipaths_result(");
25374       boolean first = true;
25375
25376       sb.append("success:");
25377       sb.append(this.success);
25378       first = false;
25379       sb.append(")");
25380       return sb.toString();
25381     }
25382
25383     public void validate() throws org.apache.thrift.TException {
25384       // check for required fields
25385       // check for sub-struct validity
25386     }
25387
25388     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25389       try {
25390         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25391       } catch (org.apache.thrift.TException te) {
25392         throw new java.io.IOException(te);
25393       }
25394     }
25395
25396     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25397       try {
25398         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
25399         __isset_bitfield = 0;
25400         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25401       } catch (org.apache.thrift.TException te) {
25402         throw new java.io.IOException(te);
25403       }
25404     }
25405
25406     private static class multipaths_resultStandardSchemeFactory implements SchemeFactory {
25407       @Override
25408         public multipaths_resultStandardScheme getScheme() {
25409         return new multipaths_resultStandardScheme();
25410       }
25411     }
25412
25413     private static class multipaths_resultStandardScheme extends StandardScheme<multipaths_result> {
25414
25415       @Override
25416         public void read(org.apache.thrift.protocol.TProtocol iprot, multipaths_result struct) throws org.apache.thrift.TException {
25417         org.apache.thrift.protocol.TField schemeField;
25418         iprot.readStructBegin();
25419         while (true)
25420         {
25421           schemeField = iprot.readFieldBegin();
25422           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
25423             break;
25424           }
25425           switch (schemeField.id) {
25426             case 0: // SUCCESS
25427               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
25428                 struct.success = iprot.readI32();
25429                 struct.setSuccessIsSet(true);
25430               } else {
25431                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25432               }
25433               break;
25434             default:
25435               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25436           }
25437           iprot.readFieldEnd();
25438         }
25439         iprot.readStructEnd();
25440
25441         // check for required fields of primitive type, which can't be checked in the validate method
25442         struct.validate();
25443       }
25444
25445       @Override
25446         public void write(org.apache.thrift.protocol.TProtocol oprot, multipaths_result struct) throws org.apache.thrift.TException {
25447         struct.validate();
25448
25449         oprot.writeStructBegin(STRUCT_DESC);
25450         if (struct.isSetSuccess()) {
25451           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25452           oprot.writeI32(struct.success);
25453           oprot.writeFieldEnd();
25454         }
25455         oprot.writeFieldStop();
25456         oprot.writeStructEnd();
25457       }
25458
25459     }
25460
25461     private static class multipaths_resultTupleSchemeFactory implements SchemeFactory {
25462       @Override
25463         public multipaths_resultTupleScheme getScheme() {
25464         return new multipaths_resultTupleScheme();
25465       }
25466     }
25467
25468     private static class multipaths_resultTupleScheme extends TupleScheme<multipaths_result> {
25469
25470       @Override
25471       public void write(org.apache.thrift.protocol.TProtocol prot, multipaths_result struct) throws org.apache.thrift.TException {
25472         TTupleProtocol oprot = (TTupleProtocol) prot;
25473         BitSet optionals = new BitSet();
25474         if (struct.isSetSuccess()) {
25475           optionals.set(0);
25476         }
25477         oprot.writeBitSet(optionals, 1);
25478         if (struct.isSetSuccess()) {
25479           oprot.writeI32(struct.success);
25480         }
25481       }
25482
25483       @Override
25484       public void read(org.apache.thrift.protocol.TProtocol prot, multipaths_result struct) throws org.apache.thrift.TException {
25485         TTupleProtocol iprot = (TTupleProtocol) prot;
25486         BitSet incoming = iprot.readBitSet(1);
25487         if (incoming.get(0)) {
25488           struct.success = iprot.readI32();
25489           struct.setSuccessIsSet(true);
25490         }
25491       }
25492     }
25493
25494   }
25495
25496   public static class enableEORDelay_args implements org.apache.thrift.TBase<enableEORDelay_args, enableEORDelay_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableEORDelay_args>   {
25497     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableEORDelay_args");
25498
25499     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);
25500
25501     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
25502     static {
25503       schemes.put(StandardScheme.class, new enableEORDelay_argsStandardSchemeFactory());
25504       schemes.put(TupleScheme.class, new enableEORDelay_argsTupleSchemeFactory());
25505     }
25506
25507     public int delay; // required
25508
25509     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25510     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25511       DELAY((short)1, "delay");
25512
25513       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25514
25515       static {
25516         for (_Fields field : EnumSet.allOf(_Fields.class)) {
25517           byName.put(field.getFieldName(), field);
25518         }
25519       }
25520
25521       /**
25522        * Find the _Fields constant that matches fieldId, or null if its not found.
25523        */
25524       public static _Fields findByThriftId(int fieldId) {
25525         switch(fieldId) {
25526           case 1: // DELAY
25527             return DELAY;
25528           default:
25529             return null;
25530         }
25531       }
25532
25533       /**
25534        * Find the _Fields constant that matches fieldId, throwing an exception
25535        * if it is not found.
25536        */
25537       public static _Fields findByThriftIdOrThrow(int fieldId) {
25538         _Fields fields = findByThriftId(fieldId);
25539         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25540         return fields;
25541       }
25542
25543       /**
25544        * Find the _Fields constant that matches name, or null if its not found.
25545        */
25546       public static _Fields findByName(String name) {
25547         return byName.get(name);
25548       }
25549
25550       private final short _thriftId;
25551       private final String _fieldName;
25552
25553       _Fields(short thriftId, String fieldName) {
25554         _thriftId = thriftId;
25555         _fieldName = fieldName;
25556       }
25557
25558       public short getThriftFieldId() {
25559         return _thriftId;
25560       }
25561
25562       public String getFieldName() {
25563         return _fieldName;
25564       }
25565     }
25566
25567     // isset id assignments
25568     private static final int __DELAY_ISSET_ID = 0;
25569     private byte __isset_bitfield = 0;
25570     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25571     static {
25572       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25573       tmpMap.put(_Fields.DELAY, new org.apache.thrift.meta_data.FieldMetaData("delay", org.apache.thrift.TFieldRequirementType.DEFAULT,
25574           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
25575       metaDataMap = Collections.unmodifiableMap(tmpMap);
25576       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableEORDelay_args.class, metaDataMap);
25577     }
25578
25579     public enableEORDelay_args() {
25580     }
25581
25582     public enableEORDelay_args(
25583       int delay)
25584     {
25585       this();
25586       this.delay = delay;
25587       setDelayIsSet(true);
25588     }
25589
25590     /**
25591      * Performs a deep copy on <i>other</i>.
25592      */
25593     public enableEORDelay_args(enableEORDelay_args other) {
25594       __isset_bitfield = other.__isset_bitfield;
25595       this.delay = other.delay;
25596     }
25597
25598     public enableEORDelay_args deepCopy() {
25599       return new enableEORDelay_args(this);
25600     }
25601
25602     @Override
25603     public void clear() {
25604       setDelayIsSet(false);
25605       this.delay = 0;
25606     }
25607
25608     public int getDelay() {
25609       return this.delay;
25610     }
25611
25612     public enableEORDelay_args setDelay(int delay) {
25613       this.delay = delay;
25614       setDelayIsSet(true);
25615       return this;
25616     }
25617
25618     public void unsetDelay() {
25619       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELAY_ISSET_ID);
25620     }
25621
25622     /** Returns true if field delay is set (has been assigned a value) and false otherwise */
25623     public boolean isSetDelay() {
25624       return EncodingUtils.testBit(__isset_bitfield, __DELAY_ISSET_ID);
25625     }
25626
25627     public void setDelayIsSet(boolean value) {
25628       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELAY_ISSET_ID, value);
25629     }
25630
25631     public void setFieldValue(_Fields field, Object value) {
25632       switch (field) {
25633       case DELAY:
25634         if (value == null) {
25635           unsetDelay();
25636         } else {
25637           setDelay((Integer)value);
25638         }
25639         break;
25640
25641       }
25642     }
25643
25644     public Object getFieldValue(_Fields field) {
25645       switch (field) {
25646       case DELAY:
25647         return Integer.valueOf(getDelay());
25648
25649       }
25650       throw new IllegalStateException();
25651     }
25652
25653     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25654     public boolean isSet(_Fields field) {
25655       if (field == null) {
25656         throw new IllegalArgumentException();
25657       }
25658
25659       switch (field) {
25660       case DELAY:
25661         return isSetDelay();
25662       }
25663       throw new IllegalStateException();
25664     }
25665
25666     @Override
25667     public boolean equals(Object that) {
25668       if (that == null)
25669         return false;
25670       if (that instanceof enableEORDelay_args)
25671         return this.equals((enableEORDelay_args)that);
25672       return false;
25673     }
25674
25675     public boolean equals(enableEORDelay_args that) {
25676       if (that == null)
25677         return false;
25678
25679       boolean this_present_delay = true;
25680       boolean that_present_delay = true;
25681       if (this_present_delay || that_present_delay) {
25682         if (!(this_present_delay && that_present_delay))
25683           return false;
25684         if (this.delay != that.delay)
25685           return false;
25686       }
25687
25688       return true;
25689     }
25690
25691     @Override
25692     public int hashCode() {
25693       List<Object> list = new ArrayList<Object>();
25694
25695       boolean present_delay = true;
25696       list.add(present_delay);
25697       if (present_delay)
25698         list.add(delay);
25699       return list.hashCode();
25700     }
25701
25702     @Override
25703     public int compareTo(enableEORDelay_args other) {
25704       if (!getClass().equals(other.getClass())) {
25705         return getClass().getName().compareTo(other.getClass().getName());
25706       }
25707
25708       int lastComparison = 0;
25709
25710       lastComparison = Boolean.valueOf(isSetDelay()).compareTo(other.isSetDelay());
25711       if (lastComparison != 0) {
25712         return lastComparison;
25713       }
25714       if (isSetDelay()) {
25715         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delay, other.delay);
25716         if (lastComparison != 0) {
25717           return lastComparison;
25718         }
25719       }
25720       return 0;
25721     }
25722
25723     public _Fields fieldForId(int fieldId) {
25724       return _Fields.findByThriftId(fieldId);
25725     }
25726
25727     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25728       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
25729     }
25730
25731     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25732       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
25733     }
25734
25735     @Override
25736     public String toString() {
25737       StringBuilder sb = new StringBuilder("enableEORDelay_args(");
25738       boolean first = true;
25739
25740       sb.append("delay:");
25741       sb.append(this.delay);
25742       first = false;
25743       sb.append(")");
25744       return sb.toString();
25745     }
25746
25747     public void validate() throws org.apache.thrift.TException {
25748       // check for required fields
25749       // check for sub-struct validity
25750     }
25751
25752     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25753       try {
25754         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25755       } catch (org.apache.thrift.TException te) {
25756         throw new java.io.IOException(te);
25757       }
25758     }
25759
25760     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25761       try {
25762         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
25763         __isset_bitfield = 0;
25764         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25765       } catch (org.apache.thrift.TException te) {
25766         throw new java.io.IOException(te);
25767       }
25768     }
25769
25770     private static class enableEORDelay_argsStandardSchemeFactory implements SchemeFactory {
25771       public enableEORDelay_argsStandardScheme getScheme() {
25772         return new enableEORDelay_argsStandardScheme();
25773       }
25774     }
25775
25776     private static class enableEORDelay_argsStandardScheme extends StandardScheme<enableEORDelay_args> {
25777
25778       public void read(org.apache.thrift.protocol.TProtocol iprot, enableEORDelay_args struct) throws org.apache.thrift.TException {
25779         org.apache.thrift.protocol.TField schemeField;
25780         iprot.readStructBegin();
25781         while (true)
25782         {
25783           schemeField = iprot.readFieldBegin();
25784           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
25785             break;
25786           }
25787           switch (schemeField.id) {
25788             case 1: // DELAY
25789               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
25790                 struct.delay = iprot.readI32();
25791                 struct.setDelayIsSet(true);
25792               } else {
25793                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25794               }
25795               break;
25796             default:
25797               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25798           }
25799           iprot.readFieldEnd();
25800         }
25801         iprot.readStructEnd();
25802
25803         // check for required fields of primitive type, which can't be checked in the validate method
25804         struct.validate();
25805       }
25806
25807       public void write(org.apache.thrift.protocol.TProtocol oprot, enableEORDelay_args struct) throws org.apache.thrift.TException {
25808         struct.validate();
25809
25810         oprot.writeStructBegin(STRUCT_DESC);
25811         oprot.writeFieldBegin(DELAY_FIELD_DESC);
25812         oprot.writeI32(struct.delay);
25813         oprot.writeFieldEnd();
25814         oprot.writeFieldStop();
25815         oprot.writeStructEnd();
25816       }
25817
25818     }
25819
25820     private static class enableEORDelay_argsTupleSchemeFactory implements SchemeFactory {
25821       public enableEORDelay_argsTupleScheme getScheme() {
25822         return new enableEORDelay_argsTupleScheme();
25823       }
25824     }
25825
25826     private static class enableEORDelay_argsTupleScheme extends TupleScheme<enableEORDelay_args> {
25827
25828       @Override
25829       public void write(org.apache.thrift.protocol.TProtocol prot, enableEORDelay_args struct) throws org.apache.thrift.TException {
25830         TTupleProtocol oprot = (TTupleProtocol) prot;
25831         BitSet optionals = new BitSet();
25832         if (struct.isSetDelay()) {
25833           optionals.set(0);
25834         }
25835         oprot.writeBitSet(optionals, 1);
25836         if (struct.isSetDelay()) {
25837           oprot.writeI32(struct.delay);
25838         }
25839       }
25840
25841       @Override
25842       public void read(org.apache.thrift.protocol.TProtocol prot, enableEORDelay_args struct) throws org.apache.thrift.TException {
25843         TTupleProtocol iprot = (TTupleProtocol) prot;
25844         BitSet incoming = iprot.readBitSet(1);
25845         if (incoming.get(0)) {
25846           struct.delay = iprot.readI32();
25847           struct.setDelayIsSet(true);
25848         }
25849       }
25850     }
25851
25852   }
25853
25854   public static class enableEORDelay_result implements org.apache.thrift.TBase<enableEORDelay_result, enableEORDelay_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableEORDelay_result>   {
25855     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableEORDelay_result");
25856
25857     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);
25858
25859     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
25860     static {
25861       schemes.put(StandardScheme.class, new enableEORDelay_resultStandardSchemeFactory());
25862       schemes.put(TupleScheme.class, new enableEORDelay_resultTupleSchemeFactory());
25863     }
25864
25865     public int success; // required
25866
25867     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25868     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25869       SUCCESS((short)0, "success");
25870
25871       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25872
25873       static {
25874         for (_Fields field : EnumSet.allOf(_Fields.class)) {
25875           byName.put(field.getFieldName(), field);
25876         }
25877       }
25878
25879       /**
25880        * Find the _Fields constant that matches fieldId, or null if its not found.
25881        */
25882       public static _Fields findByThriftId(int fieldId) {
25883         switch(fieldId) {
25884           case 0: // SUCCESS
25885             return SUCCESS;
25886           default:
25887             return null;
25888         }
25889       }
25890
25891       /**
25892        * Find the _Fields constant that matches fieldId, throwing an exception
25893        * if it is not found.
25894        */
25895       public static _Fields findByThriftIdOrThrow(int fieldId) {
25896         _Fields fields = findByThriftId(fieldId);
25897         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25898         return fields;
25899       }
25900
25901       /**
25902        * Find the _Fields constant that matches name, or null if its not found.
25903        */
25904       public static _Fields findByName(String name) {
25905         return byName.get(name);
25906       }
25907
25908       private final short _thriftId;
25909       private final String _fieldName;
25910
25911       _Fields(short thriftId, String fieldName) {
25912         _thriftId = thriftId;
25913         _fieldName = fieldName;
25914       }
25915
25916       public short getThriftFieldId() {
25917         return _thriftId;
25918       }
25919
25920       public String getFieldName() {
25921         return _fieldName;
25922       }
25923     }
25924
25925     // isset id assignments
25926     private static final int __SUCCESS_ISSET_ID = 0;
25927     private byte __isset_bitfield = 0;
25928     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25929     static {
25930       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25931       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
25932           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
25933       metaDataMap = Collections.unmodifiableMap(tmpMap);
25934       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableEORDelay_result.class, metaDataMap);
25935     }
25936
25937     public enableEORDelay_result() {
25938     }
25939
25940     public enableEORDelay_result(
25941       int success)
25942     {
25943       this();
25944       this.success = success;
25945       setSuccessIsSet(true);
25946     }
25947
25948     /**
25949      * Performs a deep copy on <i>other</i>.
25950      */
25951     public enableEORDelay_result(enableEORDelay_result other) {
25952       __isset_bitfield = other.__isset_bitfield;
25953       this.success = other.success;
25954     }
25955
25956     public enableEORDelay_result deepCopy() {
25957       return new enableEORDelay_result(this);
25958     }
25959
25960     @Override
25961     public void clear() {
25962       setSuccessIsSet(false);
25963       this.success = 0;
25964     }
25965
25966     public int getSuccess() {
25967       return this.success;
25968     }
25969
25970     public enableEORDelay_result setSuccess(int success) {
25971       this.success = success;
25972       setSuccessIsSet(true);
25973       return this;
25974     }
25975
25976     public void unsetSuccess() {
25977       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
25978     }
25979
25980     /** Returns true if field success is set (has been assigned a value) and false otherwise */
25981     public boolean isSetSuccess() {
25982       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
25983     }
25984
25985     public void setSuccessIsSet(boolean value) {
25986       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
25987     }
25988
25989     public void setFieldValue(_Fields field, Object value) {
25990       switch (field) {
25991       case SUCCESS:
25992         if (value == null) {
25993           unsetSuccess();
25994         } else {
25995           setSuccess((Integer)value);
25996         }
25997         break;
25998
25999       }
26000     }
26001
26002     public Object getFieldValue(_Fields field) {
26003       switch (field) {
26004       case SUCCESS:
26005         return Integer.valueOf(getSuccess());
26006
26007       }
26008       throw new IllegalStateException();
26009     }
26010
26011     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26012     public boolean isSet(_Fields field) {
26013       if (field == null) {
26014         throw new IllegalArgumentException();
26015       }
26016
26017       switch (field) {
26018       case SUCCESS:
26019         return isSetSuccess();
26020       }
26021       throw new IllegalStateException();
26022     }
26023
26024     @Override
26025     public boolean equals(Object that) {
26026       if (that == null)
26027         return false;
26028       if (that instanceof enableEORDelay_result)
26029         return this.equals((enableEORDelay_result)that);
26030       return false;
26031     }
26032
26033     public boolean equals(enableEORDelay_result that) {
26034       if (that == null)
26035         return false;
26036
26037       boolean this_present_success = true;
26038       boolean that_present_success = true;
26039       if (this_present_success || that_present_success) {
26040         if (!(this_present_success && that_present_success))
26041           return false;
26042         if (this.success != that.success)
26043           return false;
26044       }
26045
26046       return true;
26047     }
26048
26049     @Override
26050     public int hashCode() {
26051       List<Object> list = new ArrayList<Object>();
26052
26053       boolean present_success = true;
26054       list.add(present_success);
26055       if (present_success)
26056         list.add(success);
26057       return list.hashCode();
26058     }
26059
26060     @Override
26061     public int compareTo(enableEORDelay_result other) {
26062       if (!getClass().equals(other.getClass())) {
26063         return getClass().getName().compareTo(other.getClass().getName());
26064       }
26065
26066       int lastComparison = 0;
26067
26068       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
26069       if (lastComparison != 0) {
26070         return lastComparison;
26071       }
26072       if (isSetSuccess()) {
26073         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
26074         if (lastComparison != 0) {
26075           return lastComparison;
26076         }
26077       }
26078       return 0;
26079     }
26080
26081     public _Fields fieldForId(int fieldId) {
26082       return _Fields.findByThriftId(fieldId);
26083     }
26084
26085     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26086       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
26087     }
26088
26089     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26090       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
26091       }
26092
26093     @Override
26094     public String toString() {
26095       StringBuilder sb = new StringBuilder("enableEORDelay_result(");
26096       boolean first = true;
26097
26098       sb.append("success:");
26099       sb.append(this.success);
26100       first = false;
26101       sb.append(")");
26102       return sb.toString();
26103     }
26104
26105     public void validate() throws org.apache.thrift.TException {
26106       // check for required fields
26107       // check for sub-struct validity
26108     }
26109
26110     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26111       try {
26112         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26113       } catch (org.apache.thrift.TException te) {
26114         throw new java.io.IOException(te);
26115       }
26116     }
26117
26118     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26119       try {
26120         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26121         __isset_bitfield = 0;
26122         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26123       } catch (org.apache.thrift.TException te) {
26124         throw new java.io.IOException(te);
26125       }
26126     }
26127
26128     private static class enableEORDelay_resultStandardSchemeFactory implements SchemeFactory {
26129       public enableEORDelay_resultStandardScheme getScheme() {
26130         return new enableEORDelay_resultStandardScheme();
26131       }
26132     }
26133
26134     private static class enableEORDelay_resultStandardScheme extends StandardScheme<enableEORDelay_result> {
26135
26136       public void read(org.apache.thrift.protocol.TProtocol iprot, enableEORDelay_result struct) throws org.apache.thrift.TException {
26137         org.apache.thrift.protocol.TField schemeField;
26138         iprot.readStructBegin();
26139         while (true)
26140         {
26141           schemeField = iprot.readFieldBegin();
26142           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
26143             break;
26144           }
26145           switch (schemeField.id) {
26146             case 0: // SUCCESS
26147               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
26148                 struct.success = iprot.readI32();
26149                 struct.setSuccessIsSet(true);
26150               } else {
26151                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26152               }
26153               break;
26154             default:
26155               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26156           }
26157           iprot.readFieldEnd();
26158         }
26159         iprot.readStructEnd();
26160
26161         // check for required fields of primitive type, which can't be checked in the validate method
26162         struct.validate();
26163       }
26164
26165       public void write(org.apache.thrift.protocol.TProtocol oprot, enableEORDelay_result struct) throws org.apache.thrift.TException {
26166         struct.validate();
26167
26168         oprot.writeStructBegin(STRUCT_DESC);
26169         if (struct.isSetSuccess()) {
26170           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26171           oprot.writeI32(struct.success);
26172           oprot.writeFieldEnd();
26173         }
26174         oprot.writeFieldStop();
26175         oprot.writeStructEnd();
26176       }
26177
26178     }
26179
26180     private static class enableEORDelay_resultTupleSchemeFactory implements SchemeFactory {
26181       public enableEORDelay_resultTupleScheme getScheme() {
26182         return new enableEORDelay_resultTupleScheme();
26183       }
26184     }
26185
26186     private static class enableEORDelay_resultTupleScheme extends TupleScheme<enableEORDelay_result> {
26187
26188       @Override
26189       public void write(org.apache.thrift.protocol.TProtocol prot, enableEORDelay_result struct) throws org.apache.thrift.TException {
26190         TTupleProtocol oprot = (TTupleProtocol) prot;
26191         BitSet optionals = new BitSet();
26192         if (struct.isSetSuccess()) {
26193           optionals.set(0);
26194         }
26195         oprot.writeBitSet(optionals, 1);
26196         if (struct.isSetSuccess()) {
26197           oprot.writeI32(struct.success);
26198         }
26199       }
26200
26201       @Override
26202       public void read(org.apache.thrift.protocol.TProtocol prot, enableEORDelay_result struct) throws org.apache.thrift.TException {
26203         TTupleProtocol iprot = (TTupleProtocol) prot;
26204         BitSet incoming = iprot.readBitSet(1);
26205         if (incoming.get(0)) {
26206           struct.success = iprot.readI32();
26207           struct.setSuccessIsSet(true);
26208         }
26209       }
26210     }
26211
26212   }
26213
26214   public static class sendEOR_args implements org.apache.thrift.TBase<sendEOR_args, sendEOR_args._Fields>, java.io.Serializable, Cloneable, Comparable<sendEOR_args>   {
26215     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendEOR_args");
26216
26217     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
26218     static {
26219       schemes.put(StandardScheme.class, new sendEOR_argsStandardSchemeFactory());
26220       schemes.put(TupleScheme.class, new sendEOR_argsTupleSchemeFactory());
26221     }
26222
26223
26224     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26225     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26226 ;
26227
26228       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26229
26230       static {
26231         for (_Fields field : EnumSet.allOf(_Fields.class)) {
26232           byName.put(field.getFieldName(), field);
26233         }
26234       }
26235
26236       /**
26237        * Find the _Fields constant that matches fieldId, or null if its not found.
26238        */
26239       public static _Fields findByThriftId(int fieldId) {
26240         switch(fieldId) {
26241           default:
26242             return null;
26243         }
26244       }
26245
26246       /**
26247        * Find the _Fields constant that matches fieldId, throwing an exception
26248        * if it is not found.
26249        */
26250       public static _Fields findByThriftIdOrThrow(int fieldId) {
26251         _Fields fields = findByThriftId(fieldId);
26252         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26253         return fields;
26254       }
26255
26256       /**
26257        * Find the _Fields constant that matches name, or null if its not found.
26258        */
26259       public static _Fields findByName(String name) {
26260         return byName.get(name);
26261       }
26262
26263       private final short _thriftId;
26264       private final String _fieldName;
26265
26266       _Fields(short thriftId, String fieldName) {
26267         _thriftId = thriftId;
26268         _fieldName = fieldName;
26269       }
26270
26271       public short getThriftFieldId() {
26272         return _thriftId;
26273       }
26274
26275       public String getFieldName() {
26276         return _fieldName;
26277       }
26278     }
26279     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26280     static {
26281       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26282       metaDataMap = Collections.unmodifiableMap(tmpMap);
26283       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendEOR_args.class, metaDataMap);
26284     }
26285
26286     public sendEOR_args() {
26287     }
26288
26289     /**
26290      * Performs a deep copy on <i>other</i>.
26291      */
26292     public sendEOR_args(sendEOR_args other) {
26293     }
26294
26295     public sendEOR_args deepCopy() {
26296       return new sendEOR_args(this);
26297     }
26298
26299     @Override
26300     public void clear() {
26301     }
26302
26303     public void setFieldValue(_Fields field, Object value) {
26304       switch (field) {
26305       }
26306     }
26307
26308     public Object getFieldValue(_Fields field) {
26309       switch (field) {
26310       }
26311       throw new IllegalStateException();
26312     }
26313
26314     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26315     public boolean isSet(_Fields field) {
26316       if (field == null) {
26317         throw new IllegalArgumentException();
26318       }
26319
26320       switch (field) {
26321       }
26322       throw new IllegalStateException();
26323     }
26324
26325     @Override
26326     public boolean equals(Object that) {
26327       if (that == null)
26328         return false;
26329       if (that instanceof sendEOR_args)
26330         return this.equals((sendEOR_args)that);
26331       return false;
26332     }
26333
26334     public boolean equals(sendEOR_args that) {
26335       if (that == null)
26336         return false;
26337
26338       return true;
26339     }
26340
26341     @Override
26342     public int hashCode() {
26343       List<Object> list = new ArrayList<Object>();
26344
26345       return list.hashCode();
26346     }
26347
26348     @Override
26349     public int compareTo(sendEOR_args other) {
26350       if (!getClass().equals(other.getClass())) {
26351         return getClass().getName().compareTo(other.getClass().getName());
26352       }
26353
26354       int lastComparison = 0;
26355
26356       return 0;
26357     }
26358
26359     public _Fields fieldForId(int fieldId) {
26360       return _Fields.findByThriftId(fieldId);
26361     }
26362
26363     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26364       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
26365     }
26366
26367     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26368       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
26369     }
26370
26371     @Override
26372     public String toString() {
26373       StringBuilder sb = new StringBuilder("sendEOR_args(");
26374       boolean first = true;
26375
26376       sb.append(")");
26377       return sb.toString();
26378     }
26379
26380     public void validate() throws org.apache.thrift.TException {
26381       // check for required fields
26382       // check for sub-struct validity
26383     }
26384
26385     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26386       try {
26387         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26388       } catch (org.apache.thrift.TException te) {
26389         throw new java.io.IOException(te);
26390       }
26391     }
26392
26393     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26394       try {
26395         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26396       } catch (org.apache.thrift.TException te) {
26397         throw new java.io.IOException(te);
26398       }
26399     }
26400
26401     private static class sendEOR_argsStandardSchemeFactory implements SchemeFactory {
26402       public sendEOR_argsStandardScheme getScheme() {
26403         return new sendEOR_argsStandardScheme();
26404       }
26405     }
26406
26407     private static class sendEOR_argsStandardScheme extends StandardScheme<sendEOR_args> {
26408
26409       public void read(org.apache.thrift.protocol.TProtocol iprot, sendEOR_args struct) throws org.apache.thrift.TException {
26410         org.apache.thrift.protocol.TField schemeField;
26411         iprot.readStructBegin();
26412         while (true)
26413         {
26414           schemeField = iprot.readFieldBegin();
26415           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
26416             break;
26417           }
26418           switch (schemeField.id) {
26419             default:
26420               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26421           }
26422           iprot.readFieldEnd();
26423         }
26424         iprot.readStructEnd();
26425
26426         // check for required fields of primitive type, which can't be checked in the validate method
26427         struct.validate();
26428       }
26429
26430       public void write(org.apache.thrift.protocol.TProtocol oprot, sendEOR_args struct) throws org.apache.thrift.TException {
26431         struct.validate();
26432
26433         oprot.writeStructBegin(STRUCT_DESC);
26434         oprot.writeFieldStop();
26435         oprot.writeStructEnd();
26436       }
26437
26438     }
26439
26440     private static class sendEOR_argsTupleSchemeFactory implements SchemeFactory {
26441       public sendEOR_argsTupleScheme getScheme() {
26442         return new sendEOR_argsTupleScheme();
26443       }
26444     }
26445
26446     private static class sendEOR_argsTupleScheme extends TupleScheme<sendEOR_args> {
26447
26448       @Override
26449       public void write(org.apache.thrift.protocol.TProtocol prot, sendEOR_args struct) throws org.apache.thrift.TException {
26450         TTupleProtocol oprot = (TTupleProtocol) prot;
26451       }
26452
26453       @Override
26454       public void read(org.apache.thrift.protocol.TProtocol prot, sendEOR_args struct) throws org.apache.thrift.TException {
26455         TTupleProtocol iprot = (TTupleProtocol) prot;
26456       }
26457     }
26458
26459   }
26460
26461   public static class sendEOR_result implements org.apache.thrift.TBase<sendEOR_result, sendEOR_result._Fields>, java.io.Serializable, Cloneable, Comparable<sendEOR_result>   {
26462     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendEOR_result");
26463
26464     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);
26465
26466     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
26467     static {
26468       schemes.put(StandardScheme.class, new sendEOR_resultStandardSchemeFactory());
26469       schemes.put(TupleScheme.class, new sendEOR_resultTupleSchemeFactory());
26470     }
26471
26472     public int success; // required
26473
26474     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26475     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26476       SUCCESS((short)0, "success");
26477
26478       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26479
26480       static {
26481         for (_Fields field : EnumSet.allOf(_Fields.class)) {
26482           byName.put(field.getFieldName(), field);
26483         }
26484       }
26485
26486       /**
26487        * Find the _Fields constant that matches fieldId, or null if its not found.
26488        */
26489       public static _Fields findByThriftId(int fieldId) {
26490         switch(fieldId) {
26491           case 0: // SUCCESS
26492             return SUCCESS;
26493           default:
26494             return null;
26495         }
26496       }
26497
26498       /**
26499        * Find the _Fields constant that matches fieldId, throwing an exception
26500        * if it is not found.
26501        */
26502       public static _Fields findByThriftIdOrThrow(int fieldId) {
26503         _Fields fields = findByThriftId(fieldId);
26504         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26505         return fields;
26506       }
26507
26508       /**
26509        * Find the _Fields constant that matches name, or null if its not found.
26510        */
26511       public static _Fields findByName(String name) {
26512         return byName.get(name);
26513       }
26514
26515       private final short _thriftId;
26516       private final String _fieldName;
26517
26518       _Fields(short thriftId, String fieldName) {
26519         _thriftId = thriftId;
26520         _fieldName = fieldName;
26521       }
26522
26523       public short getThriftFieldId() {
26524         return _thriftId;
26525       }
26526
26527       public String getFieldName() {
26528         return _fieldName;
26529       }
26530     }
26531
26532     // isset id assignments
26533     private static final int __SUCCESS_ISSET_ID = 0;
26534     private byte __isset_bitfield = 0;
26535     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26536     static {
26537       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26538       tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
26539           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
26540       metaDataMap = Collections.unmodifiableMap(tmpMap);
26541       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendEOR_result.class, metaDataMap);
26542     }
26543
26544     public sendEOR_result() {
26545     }
26546
26547     public sendEOR_result(
26548       int success)
26549     {
26550       this();
26551       this.success = success;
26552       setSuccessIsSet(true);
26553     }
26554
26555     /**
26556      * Performs a deep copy on <i>other</i>.
26557      */
26558     public sendEOR_result(sendEOR_result other) {
26559       __isset_bitfield = other.__isset_bitfield;
26560       this.success = other.success;
26561     }
26562
26563     public sendEOR_result deepCopy() {
26564       return new sendEOR_result(this);
26565     }
26566
26567     @Override
26568     public void clear() {
26569       setSuccessIsSet(false);
26570       this.success = 0;
26571     }
26572
26573     public int getSuccess() {
26574       return this.success;
26575     }
26576
26577     public sendEOR_result setSuccess(int success) {
26578       this.success = success;
26579       setSuccessIsSet(true);
26580       return this;
26581     }
26582
26583     public void unsetSuccess() {
26584       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
26585     }
26586
26587     /** Returns true if field success is set (has been assigned a value) and false otherwise */
26588     public boolean isSetSuccess() {
26589       return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
26590     }
26591
26592     public void setSuccessIsSet(boolean value) {
26593       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
26594     }
26595
26596     public void setFieldValue(_Fields field, Object value) {
26597       switch (field) {
26598       case SUCCESS:
26599         if (value == null) {
26600           unsetSuccess();
26601         } else {
26602           setSuccess((Integer)value);
26603         }
26604         break;
26605
26606       }
26607     }
26608
26609     public Object getFieldValue(_Fields field) {
26610       switch (field) {
26611       case SUCCESS:
26612         return Integer.valueOf(getSuccess());
26613
26614       }
26615       throw new IllegalStateException();
26616     }
26617
26618     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26619     public boolean isSet(_Fields field) {
26620       if (field == null) {
26621         throw new IllegalArgumentException();
26622       }
26623
26624       switch (field) {
26625       case SUCCESS:
26626         return isSetSuccess();
26627       }
26628       throw new IllegalStateException();
26629     }
26630
26631     @Override
26632     public boolean equals(Object that) {
26633       if (that == null)
26634         return false;
26635       if (that instanceof sendEOR_result)
26636         return this.equals((sendEOR_result)that);
26637       return false;
26638     }
26639
26640     public boolean equals(sendEOR_result that) {
26641       if (that == null)
26642         return false;
26643
26644       boolean this_present_success = true;
26645       boolean that_present_success = true;
26646       if (this_present_success || that_present_success) {
26647         if (!(this_present_success && that_present_success))
26648           return false;
26649         if (this.success != that.success)
26650           return false;
26651       }
26652
26653       return true;
26654     }
26655
26656     @Override
26657     public int hashCode() {
26658       List<Object> list = new ArrayList<Object>();
26659
26660       boolean present_success = true;
26661       list.add(present_success);
26662       if (present_success)
26663         list.add(success);
26664       return list.hashCode();
26665     }
26666
26667     @Override
26668     public int compareTo(sendEOR_result other) {
26669       if (!getClass().equals(other.getClass())) {
26670         return getClass().getName().compareTo(other.getClass().getName());
26671       }
26672
26673       int lastComparison = 0;
26674
26675       lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
26676       if (lastComparison != 0) {
26677         return lastComparison;
26678       }
26679       if (isSetSuccess()) {
26680         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
26681         if (lastComparison != 0) {
26682           return lastComparison;
26683         }
26684       }
26685       return 0;
26686     }
26687
26688     public _Fields fieldForId(int fieldId) {
26689       return _Fields.findByThriftId(fieldId);
26690     }
26691
26692     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26693       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
26694     }
26695
26696     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26697       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
26698       }
26699
26700     @Override
26701     public String toString() {
26702       StringBuilder sb = new StringBuilder("sendEOR_result(");
26703       boolean first = true;
26704
26705       sb.append("success:");
26706       sb.append(this.success);
26707       first = false;
26708       sb.append(")");
26709       return sb.toString();
26710     }
26711
26712     public void validate() throws org.apache.thrift.TException {
26713       // check for required fields
26714       // check for sub-struct validity
26715     }
26716
26717     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26718       try {
26719         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26720       } catch (org.apache.thrift.TException te) {
26721         throw new java.io.IOException(te);
26722       }
26723     }
26724
26725     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26726       try {
26727         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26728         __isset_bitfield = 0;
26729         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26730       } catch (org.apache.thrift.TException te) {
26731         throw new java.io.IOException(te);
26732       }
26733     }
26734
26735     private static class sendEOR_resultStandardSchemeFactory implements SchemeFactory {
26736       public sendEOR_resultStandardScheme getScheme() {
26737         return new sendEOR_resultStandardScheme();
26738       }
26739     }
26740
26741     private static class sendEOR_resultStandardScheme extends StandardScheme<sendEOR_result> {
26742
26743       public void read(org.apache.thrift.protocol.TProtocol iprot, sendEOR_result struct) throws org.apache.thrift.TException {
26744         org.apache.thrift.protocol.TField schemeField;
26745         iprot.readStructBegin();
26746         while (true)
26747         {
26748           schemeField = iprot.readFieldBegin();
26749           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
26750             break;
26751           }
26752           switch (schemeField.id) {
26753             case 0: // SUCCESS
26754               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
26755                 struct.success = iprot.readI32();
26756                 struct.setSuccessIsSet(true);
26757               } else {
26758                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26759               }
26760               break;
26761             default:
26762               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26763           }
26764           iprot.readFieldEnd();
26765         }
26766         iprot.readStructEnd();
26767
26768         // check for required fields of primitive type, which can't be checked in the validate method
26769         struct.validate();
26770       }
26771
26772       public void write(org.apache.thrift.protocol.TProtocol oprot, sendEOR_result struct) throws org.apache.thrift.TException {
26773         struct.validate();
26774
26775         oprot.writeStructBegin(STRUCT_DESC);
26776         if (struct.isSetSuccess()) {
26777           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26778           oprot.writeI32(struct.success);
26779           oprot.writeFieldEnd();
26780         }
26781         oprot.writeFieldStop();
26782         oprot.writeStructEnd();
26783       }
26784
26785     }
26786
26787     private static class sendEOR_resultTupleSchemeFactory implements SchemeFactory {
26788       public sendEOR_resultTupleScheme getScheme() {
26789         return new sendEOR_resultTupleScheme();
26790       }
26791     }
26792
26793     private static class sendEOR_resultTupleScheme extends TupleScheme<sendEOR_result> {
26794
26795       @Override
26796       public void write(org.apache.thrift.protocol.TProtocol prot, sendEOR_result struct) throws org.apache.thrift.TException {
26797         TTupleProtocol oprot = (TTupleProtocol) prot;
26798         BitSet optionals = new BitSet();
26799         if (struct.isSetSuccess()) {
26800           optionals.set(0);
26801         }
26802         oprot.writeBitSet(optionals, 1);
26803         if (struct.isSetSuccess()) {
26804           oprot.writeI32(struct.success);
26805         }
26806       }
26807
26808       @Override
26809       public void read(org.apache.thrift.protocol.TProtocol prot, sendEOR_result struct) throws org.apache.thrift.TException {
26810         TTupleProtocol iprot = (TTupleProtocol) prot;
26811         BitSet incoming = iprot.readBitSet(1);
26812         if (incoming.get(0)) {
26813           struct.success = iprot.readI32();
26814           struct.setSuccessIsSet(true);
26815         }
26816       }
26817     }
26818
26819   }
26820
26821 }