4d46d3e0b0f59093a703f97c2e4611d9a4539577
[vpnservice.git] / bgpmanager / bgpmanager-impl / src / main / java / org / opendaylight / bgpmanager / thrift / gen / BgpUpdater.java
1 /**
2  * Autogenerated by Thrift Compiler (0.9.1)
3  *
4  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5  *  @generated
6  */
7 package org.opendaylight.bgpmanager.thrift.gen;
8
9 import org.apache.thrift.scheme.IScheme;
10 import org.apache.thrift.scheme.SchemeFactory;
11 import org.apache.thrift.scheme.StandardScheme;
12
13 import org.apache.thrift.scheme.TupleScheme;
14 import org.apache.thrift.protocol.TTupleProtocol;
15 import org.apache.thrift.protocol.TProtocolException;
16 import org.apache.thrift.EncodingUtils;
17 import org.apache.thrift.TException;
18 import org.apache.thrift.async.AsyncMethodCallback;
19 import org.apache.thrift.server.AbstractNonblockingServer.*;
20 import java.util.List;
21 import java.util.ArrayList;
22 import java.util.Map;
23 import java.util.HashMap;
24 import java.util.EnumMap;
25 import java.util.Set;
26 import java.util.HashSet;
27 import java.util.EnumSet;
28 import java.util.Collections;
29 import java.util.BitSet;
30 import java.nio.ByteBuffer;
31 import java.util.Arrays;
32 import org.slf4j.Logger;
33 import org.slf4j.LoggerFactory;
34
35 public class BgpUpdater {
36
37   public interface Iface {
38
39     public void onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label) throws org.apache.thrift.TException;
40
41     public void onUpdateWithdrawRoute(String rd, String prefix, int prefixlen) throws org.apache.thrift.TException;
42
43     public void onStartConfigResyncNotification() throws org.apache.thrift.TException;
44
45   }
46
47   public interface AsyncIface {
48
49     public void onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
50
51     public void onUpdateWithdrawRoute(String rd, String prefix, int prefixlen, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
52
53     public void onStartConfigResyncNotification(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
54
55   }
56
57   public static class Client extends org.apache.thrift.TServiceClient implements Iface {
58     public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
59       public Factory() {}
60       public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
61         return new Client(prot);
62       }
63       public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
64         return new Client(iprot, oprot);
65       }
66     }
67
68     public Client(org.apache.thrift.protocol.TProtocol prot)
69     {
70       super(prot, prot);
71     }
72
73     public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
74       super(iprot, oprot);
75     }
76
77     public void onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label) throws org.apache.thrift.TException
78     {
79       send_onUpdatePushRoute(rd, prefix, prefixlen, nexthop, label);
80     }
81
82     public void send_onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label) throws org.apache.thrift.TException
83     {
84       onUpdatePushRoute_args args = new onUpdatePushRoute_args();
85       args.setRd(rd);
86       args.setPrefix(prefix);
87       args.setPrefixlen(prefixlen);
88       args.setNexthop(nexthop);
89       args.setLabel(label);
90       sendBase("onUpdatePushRoute", args);
91     }
92
93     public void onUpdateWithdrawRoute(String rd, String prefix, int prefixlen) throws org.apache.thrift.TException
94     {
95       send_onUpdateWithdrawRoute(rd, prefix, prefixlen);
96     }
97
98     public void send_onUpdateWithdrawRoute(String rd, String prefix, int prefixlen) throws org.apache.thrift.TException
99     {
100       onUpdateWithdrawRoute_args args = new onUpdateWithdrawRoute_args();
101       args.setRd(rd);
102       args.setPrefix(prefix);
103       args.setPrefixlen(prefixlen);
104       sendBase("onUpdateWithdrawRoute", args);
105     }
106
107     public void onStartConfigResyncNotification() throws org.apache.thrift.TException
108     {
109       send_onStartConfigResyncNotification();
110     }
111
112     public void send_onStartConfigResyncNotification() throws org.apache.thrift.TException
113     {
114       onStartConfigResyncNotification_args args = new onStartConfigResyncNotification_args();
115       sendBase("onStartConfigResyncNotification", args);
116     }
117
118   }
119   public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
120     public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
121       private org.apache.thrift.async.TAsyncClientManager clientManager;
122       private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
123       public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
124         this.clientManager = clientManager;
125         this.protocolFactory = protocolFactory;
126       }
127       public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
128         return new AsyncClient(protocolFactory, clientManager, transport);
129       }
130     }
131
132     public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
133       super(protocolFactory, clientManager, transport);
134     }
135
136     public void onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
137       checkReady();
138       onUpdatePushRoute_call method_call = new onUpdatePushRoute_call(rd, prefix, prefixlen, nexthop, label, resultHandler, this, ___protocolFactory, ___transport);
139       this.___currentMethod = method_call;
140       ___manager.call(method_call);
141     }
142
143     public static class onUpdatePushRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
144       private String rd;
145       private String prefix;
146       private int prefixlen;
147       private String nexthop;
148       private int label;
149       public onUpdatePushRoute_call(String rd, String prefix, int prefixlen, String nexthop, int label, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
150         super(client, protocolFactory, transport, resultHandler, true);
151         this.rd = rd;
152         this.prefix = prefix;
153         this.prefixlen = prefixlen;
154         this.nexthop = nexthop;
155         this.label = label;
156       }
157
158       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
159         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onUpdatePushRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
160         onUpdatePushRoute_args args = new onUpdatePushRoute_args();
161         args.setRd(rd);
162         args.setPrefix(prefix);
163         args.setPrefixlen(prefixlen);
164         args.setNexthop(nexthop);
165         args.setLabel(label);
166         args.write(prot);
167         prot.writeMessageEnd();
168       }
169
170       public void getResult() throws org.apache.thrift.TException {
171         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
172           throw new IllegalStateException("Method call not finished!");
173         }
174         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
175         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
176       }
177     }
178
179     public void onUpdateWithdrawRoute(String rd, String prefix, int prefixlen, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
180       checkReady();
181       onUpdateWithdrawRoute_call method_call = new onUpdateWithdrawRoute_call(rd, prefix, prefixlen, resultHandler, this, ___protocolFactory, ___transport);
182       this.___currentMethod = method_call;
183       ___manager.call(method_call);
184     }
185
186     public static class onUpdateWithdrawRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
187       private String rd;
188       private String prefix;
189       private int prefixlen;
190       public onUpdateWithdrawRoute_call(String rd, String prefix, int prefixlen, 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 {
191         super(client, protocolFactory, transport, resultHandler, true);
192         this.rd = rd;
193         this.prefix = prefix;
194         this.prefixlen = prefixlen;
195       }
196
197       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
198         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onUpdateWithdrawRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
199         onUpdateWithdrawRoute_args args = new onUpdateWithdrawRoute_args();
200         args.setRd(rd);
201         args.setPrefix(prefix);
202         args.setPrefixlen(prefixlen);
203         args.write(prot);
204         prot.writeMessageEnd();
205       }
206
207       public void getResult() throws org.apache.thrift.TException {
208         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
209           throw new IllegalStateException("Method call not finished!");
210         }
211         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
212         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
213       }
214     }
215
216     public void onStartConfigResyncNotification(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
217       checkReady();
218       onStartConfigResyncNotification_call method_call = new onStartConfigResyncNotification_call(resultHandler, this, ___protocolFactory, ___transport);
219       this.___currentMethod = method_call;
220       ___manager.call(method_call);
221     }
222
223     public static class onStartConfigResyncNotification_call extends org.apache.thrift.async.TAsyncMethodCall {
224       public onStartConfigResyncNotification_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 {
225         super(client, protocolFactory, transport, resultHandler, true);
226       }
227
228       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
229         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onStartConfigResyncNotification", org.apache.thrift.protocol.TMessageType.CALL, 0));
230         onStartConfigResyncNotification_args args = new onStartConfigResyncNotification_args();
231         args.write(prot);
232         prot.writeMessageEnd();
233       }
234
235       public void getResult() throws org.apache.thrift.TException {
236         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
237           throw new IllegalStateException("Method call not finished!");
238         }
239         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
240         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
241       }
242     }
243
244   }
245
246   public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
247     private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
248     public Processor(I iface) {
249       super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
250     }
251
252     protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
253       super(iface, getProcessMap(processMap));
254     }
255
256     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) {
257       processMap.put("onUpdatePushRoute", new onUpdatePushRoute());
258       processMap.put("onUpdateWithdrawRoute", new onUpdateWithdrawRoute());
259       processMap.put("onStartConfigResyncNotification", new onStartConfigResyncNotification());
260       return processMap;
261     }
262
263     public static class onUpdatePushRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onUpdatePushRoute_args> {
264       public onUpdatePushRoute() {
265         super("onUpdatePushRoute");
266       }
267
268       public onUpdatePushRoute_args getEmptyArgsInstance() {
269         return new onUpdatePushRoute_args();
270       }
271
272       protected boolean isOneway() {
273         return true;
274       }
275
276       public org.apache.thrift.TBase getResult(I iface, onUpdatePushRoute_args args) throws org.apache.thrift.TException {
277         iface.onUpdatePushRoute(args.rd, args.prefix, args.prefixlen, args.nexthop, args.label);
278         return null;
279       }
280     }
281
282     public static class onUpdateWithdrawRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onUpdateWithdrawRoute_args> {
283       public onUpdateWithdrawRoute() {
284         super("onUpdateWithdrawRoute");
285       }
286
287       public onUpdateWithdrawRoute_args getEmptyArgsInstance() {
288         return new onUpdateWithdrawRoute_args();
289       }
290
291       protected boolean isOneway() {
292         return true;
293       }
294
295       public org.apache.thrift.TBase getResult(I iface, onUpdateWithdrawRoute_args args) throws org.apache.thrift.TException {
296         iface.onUpdateWithdrawRoute(args.rd, args.prefix, args.prefixlen);
297         return null;
298       }
299     }
300
301     public static class onStartConfigResyncNotification<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onStartConfigResyncNotification_args> {
302       public onStartConfigResyncNotification() {
303         super("onStartConfigResyncNotification");
304       }
305
306       public onStartConfigResyncNotification_args getEmptyArgsInstance() {
307         return new onStartConfigResyncNotification_args();
308       }
309
310       protected boolean isOneway() {
311         return true;
312       }
313
314       public org.apache.thrift.TBase getResult(I iface, onStartConfigResyncNotification_args args) throws org.apache.thrift.TException {
315         iface.onStartConfigResyncNotification();
316         return null;
317       }
318     }
319
320   }
321
322   public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
323     private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
324     public AsyncProcessor(I iface) {
325       super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
326     }
327
328     protected AsyncProcessor(I iface, Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
329       super(iface, getProcessMap(processMap));
330     }
331
332     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) {
333       processMap.put("onUpdatePushRoute", new onUpdatePushRoute());
334       processMap.put("onUpdateWithdrawRoute", new onUpdateWithdrawRoute());
335       processMap.put("onStartConfigResyncNotification", new onStartConfigResyncNotification());
336       return processMap;
337     }
338
339     public static class onUpdatePushRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onUpdatePushRoute_args, Void> {
340       public onUpdatePushRoute() {
341         super("onUpdatePushRoute");
342       }
343
344       public onUpdatePushRoute_args getEmptyArgsInstance() {
345         return new onUpdatePushRoute_args();
346       }
347
348       public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
349         final org.apache.thrift.AsyncProcessFunction fcall = this;
350         return new AsyncMethodCallback<Void>() { 
351           public void onComplete(Void o) {
352           }
353           public void onError(Exception e) {
354           }
355         };
356       }
357
358       protected boolean isOneway() {
359         return true;
360       }
361
362       public void start(I iface, onUpdatePushRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
363         iface.onUpdatePushRoute(args.rd, args.prefix, args.prefixlen, args.nexthop, args.label,resultHandler);
364       }
365     }
366
367     public static class onUpdateWithdrawRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onUpdateWithdrawRoute_args, Void> {
368       public onUpdateWithdrawRoute() {
369         super("onUpdateWithdrawRoute");
370       }
371
372       public onUpdateWithdrawRoute_args getEmptyArgsInstance() {
373         return new onUpdateWithdrawRoute_args();
374       }
375
376       public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
377         final org.apache.thrift.AsyncProcessFunction fcall = this;
378         return new AsyncMethodCallback<Void>() { 
379           public void onComplete(Void o) {
380           }
381           public void onError(Exception e) {
382           }
383         };
384       }
385
386       protected boolean isOneway() {
387         return true;
388       }
389
390       public void start(I iface, onUpdateWithdrawRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
391         iface.onUpdateWithdrawRoute(args.rd, args.prefix, args.prefixlen,resultHandler);
392       }
393     }
394
395     public static class onStartConfigResyncNotification<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onStartConfigResyncNotification_args, Void> {
396       public onStartConfigResyncNotification() {
397         super("onStartConfigResyncNotification");
398       }
399
400       public onStartConfigResyncNotification_args getEmptyArgsInstance() {
401         return new onStartConfigResyncNotification_args();
402       }
403
404       public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
405         final org.apache.thrift.AsyncProcessFunction fcall = this;
406         return new AsyncMethodCallback<Void>() { 
407           public void onComplete(Void o) {
408           }
409           public void onError(Exception e) {
410           }
411         };
412       }
413
414       protected boolean isOneway() {
415         return true;
416       }
417
418       public void start(I iface, onStartConfigResyncNotification_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
419         iface.onStartConfigResyncNotification(resultHandler);
420       }
421     }
422
423   }
424
425   public static class onUpdatePushRoute_args implements org.apache.thrift.TBase<onUpdatePushRoute_args, onUpdatePushRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<onUpdatePushRoute_args>   {
426     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onUpdatePushRoute_args");
427
428     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);
429     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);
430     private static final org.apache.thrift.protocol.TField PREFIXLEN_FIELD_DESC = new org.apache.thrift.protocol.TField("prefixlen", org.apache.thrift.protocol.TType.I32, (short)3);
431     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)4);
432     private static final org.apache.thrift.protocol.TField LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("label", org.apache.thrift.protocol.TType.I32, (short)5);
433
434     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
435     static {
436       schemes.put(StandardScheme.class, new onUpdatePushRoute_argsStandardSchemeFactory());
437       schemes.put(TupleScheme.class, new onUpdatePushRoute_argsTupleSchemeFactory());
438     }
439
440     public String rd; // required
441     public String prefix; // required
442     public int prefixlen; // required
443     public String nexthop; // required
444     public int label; // required
445
446     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
447     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
448       RD((short)1, "rd"),
449       PREFIX((short)2, "prefix"),
450       PREFIXLEN((short)3, "prefixlen"),
451       NEXTHOP((short)4, "nexthop"),
452       LABEL((short)5, "label");
453
454       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
455
456       static {
457         for (_Fields field : EnumSet.allOf(_Fields.class)) {
458           byName.put(field.getFieldName(), field);
459         }
460       }
461
462       /**
463        * Find the _Fields constant that matches fieldId, or null if its not found.
464        */
465       public static _Fields findByThriftId(int fieldId) {
466         switch(fieldId) {
467           case 1: // RD
468             return RD;
469           case 2: // PREFIX
470             return PREFIX;
471           case 3: // PREFIXLEN
472             return PREFIXLEN;
473           case 4: // NEXTHOP
474             return NEXTHOP;
475           case 5: // LABEL
476             return LABEL;
477           default:
478             return null;
479         }
480       }
481
482       /**
483        * Find the _Fields constant that matches fieldId, throwing an exception
484        * if it is not found.
485        */
486       public static _Fields findByThriftIdOrThrow(int fieldId) {
487         _Fields fields = findByThriftId(fieldId);
488         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
489         return fields;
490       }
491
492       /**
493        * Find the _Fields constant that matches name, or null if its not found.
494        */
495       public static _Fields findByName(String name) {
496         return byName.get(name);
497       }
498
499       private final short _thriftId;
500       private final String _fieldName;
501
502       _Fields(short thriftId, String fieldName) {
503         _thriftId = thriftId;
504         _fieldName = fieldName;
505       }
506
507       public short getThriftFieldId() {
508         return _thriftId;
509       }
510
511       public String getFieldName() {
512         return _fieldName;
513       }
514     }
515
516     // isset id assignments
517     private static final int __PREFIXLEN_ISSET_ID = 0;
518     private static final int __LABEL_ISSET_ID = 1;
519     private byte __isset_bitfield = 0;
520     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
521     static {
522       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
523       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT, 
524           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
525       tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT, 
526           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
527       tmpMap.put(_Fields.PREFIXLEN, new org.apache.thrift.meta_data.FieldMetaData("prefixlen", org.apache.thrift.TFieldRequirementType.DEFAULT, 
528           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
529       tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT, 
530           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
531       tmpMap.put(_Fields.LABEL, new org.apache.thrift.meta_data.FieldMetaData("label", org.apache.thrift.TFieldRequirementType.DEFAULT, 
532           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
533       metaDataMap = Collections.unmodifiableMap(tmpMap);
534       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onUpdatePushRoute_args.class, metaDataMap);
535     }
536
537     public onUpdatePushRoute_args() {
538     }
539
540     public onUpdatePushRoute_args(
541       String rd,
542       String prefix,
543       int prefixlen,
544       String nexthop,
545       int label)
546     {
547       this();
548       this.rd = rd;
549       this.prefix = prefix;
550       this.prefixlen = prefixlen;
551       setPrefixlenIsSet(true);
552       this.nexthop = nexthop;
553       this.label = label;
554       setLabelIsSet(true);
555     }
556
557     /**
558      * Performs a deep copy on <i>other</i>.
559      */
560     public onUpdatePushRoute_args(onUpdatePushRoute_args other) {
561       __isset_bitfield = other.__isset_bitfield;
562       if (other.isSetRd()) {
563         this.rd = other.rd;
564       }
565       if (other.isSetPrefix()) {
566         this.prefix = other.prefix;
567       }
568       this.prefixlen = other.prefixlen;
569       if (other.isSetNexthop()) {
570         this.nexthop = other.nexthop;
571       }
572       this.label = other.label;
573     }
574
575     public onUpdatePushRoute_args deepCopy() {
576       return new onUpdatePushRoute_args(this);
577     }
578
579     @Override
580     public void clear() {
581       this.rd = null;
582       this.prefix = null;
583       setPrefixlenIsSet(false);
584       this.prefixlen = 0;
585       this.nexthop = null;
586       setLabelIsSet(false);
587       this.label = 0;
588     }
589
590     public String getRd() {
591       return this.rd;
592     }
593
594     public onUpdatePushRoute_args setRd(String rd) {
595       this.rd = rd;
596       return this;
597     }
598
599     public void unsetRd() {
600       this.rd = null;
601     }
602
603     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
604     public boolean isSetRd() {
605       return this.rd != null;
606     }
607
608     public void setRdIsSet(boolean value) {
609       if (!value) {
610         this.rd = null;
611       }
612     }
613
614     public String getPrefix() {
615       return this.prefix;
616     }
617
618     public onUpdatePushRoute_args setPrefix(String prefix) {
619       this.prefix = prefix;
620       return this;
621     }
622
623     public void unsetPrefix() {
624       this.prefix = null;
625     }
626
627     /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
628     public boolean isSetPrefix() {
629       return this.prefix != null;
630     }
631
632     public void setPrefixIsSet(boolean value) {
633       if (!value) {
634         this.prefix = null;
635       }
636     }
637
638     public int getPrefixlen() {
639       return this.prefixlen;
640     }
641
642     public onUpdatePushRoute_args setPrefixlen(int prefixlen) {
643       this.prefixlen = prefixlen;
644       setPrefixlenIsSet(true);
645       return this;
646     }
647
648     public void unsetPrefixlen() {
649       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
650     }
651
652     /** Returns true if field prefixlen is set (has been assigned a value) and false otherwise */
653     public boolean isSetPrefixlen() {
654       return EncodingUtils.testBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
655     }
656
657     public void setPrefixlenIsSet(boolean value) {
658       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PREFIXLEN_ISSET_ID, value);
659     }
660
661     public String getNexthop() {
662       return this.nexthop;
663     }
664
665     public onUpdatePushRoute_args setNexthop(String nexthop) {
666       this.nexthop = nexthop;
667       return this;
668     }
669
670     public void unsetNexthop() {
671       this.nexthop = null;
672     }
673
674     /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
675     public boolean isSetNexthop() {
676       return this.nexthop != null;
677     }
678
679     public void setNexthopIsSet(boolean value) {
680       if (!value) {
681         this.nexthop = null;
682       }
683     }
684
685     public int getLabel() {
686       return this.label;
687     }
688
689     public onUpdatePushRoute_args setLabel(int label) {
690       this.label = label;
691       setLabelIsSet(true);
692       return this;
693     }
694
695     public void unsetLabel() {
696       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LABEL_ISSET_ID);
697     }
698
699     /** Returns true if field label is set (has been assigned a value) and false otherwise */
700     public boolean isSetLabel() {
701       return EncodingUtils.testBit(__isset_bitfield, __LABEL_ISSET_ID);
702     }
703
704     public void setLabelIsSet(boolean value) {
705       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LABEL_ISSET_ID, value);
706     }
707
708     public void setFieldValue(_Fields field, Object value) {
709       switch (field) {
710       case RD:
711         if (value == null) {
712           unsetRd();
713         } else {
714           setRd((String)value);
715         }
716         break;
717
718       case PREFIX:
719         if (value == null) {
720           unsetPrefix();
721         } else {
722           setPrefix((String)value);
723         }
724         break;
725
726       case PREFIXLEN:
727         if (value == null) {
728           unsetPrefixlen();
729         } else {
730           setPrefixlen((Integer)value);
731         }
732         break;
733
734       case NEXTHOP:
735         if (value == null) {
736           unsetNexthop();
737         } else {
738           setNexthop((String)value);
739         }
740         break;
741
742       case LABEL:
743         if (value == null) {
744           unsetLabel();
745         } else {
746           setLabel((Integer)value);
747         }
748         break;
749
750       }
751     }
752
753     public Object getFieldValue(_Fields field) {
754       switch (field) {
755       case RD:
756         return getRd();
757
758       case PREFIX:
759         return getPrefix();
760
761       case PREFIXLEN:
762         return Integer.valueOf(getPrefixlen());
763
764       case NEXTHOP:
765         return getNexthop();
766
767       case LABEL:
768         return Integer.valueOf(getLabel());
769
770       }
771       throw new IllegalStateException();
772     }
773
774     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
775     public boolean isSet(_Fields field) {
776       if (field == null) {
777         throw new IllegalArgumentException();
778       }
779
780       switch (field) {
781       case RD:
782         return isSetRd();
783       case PREFIX:
784         return isSetPrefix();
785       case PREFIXLEN:
786         return isSetPrefixlen();
787       case NEXTHOP:
788         return isSetNexthop();
789       case LABEL:
790         return isSetLabel();
791       }
792       throw new IllegalStateException();
793     }
794
795     @Override
796     public boolean equals(Object that) {
797       if (that == null)
798         return false;
799       if (that instanceof onUpdatePushRoute_args)
800         return this.equals((onUpdatePushRoute_args)that);
801       return false;
802     }
803
804     public boolean equals(onUpdatePushRoute_args that) {
805       if (that == null)
806         return false;
807
808       boolean this_present_rd = true && this.isSetRd();
809       boolean that_present_rd = true && that.isSetRd();
810       if (this_present_rd || that_present_rd) {
811         if (!(this_present_rd && that_present_rd))
812           return false;
813         if (!this.rd.equals(that.rd))
814           return false;
815       }
816
817       boolean this_present_prefix = true && this.isSetPrefix();
818       boolean that_present_prefix = true && that.isSetPrefix();
819       if (this_present_prefix || that_present_prefix) {
820         if (!(this_present_prefix && that_present_prefix))
821           return false;
822         if (!this.prefix.equals(that.prefix))
823           return false;
824       }
825
826       boolean this_present_prefixlen = true;
827       boolean that_present_prefixlen = true;
828       if (this_present_prefixlen || that_present_prefixlen) {
829         if (!(this_present_prefixlen && that_present_prefixlen))
830           return false;
831         if (this.prefixlen != that.prefixlen)
832           return false;
833       }
834
835       boolean this_present_nexthop = true && this.isSetNexthop();
836       boolean that_present_nexthop = true && that.isSetNexthop();
837       if (this_present_nexthop || that_present_nexthop) {
838         if (!(this_present_nexthop && that_present_nexthop))
839           return false;
840         if (!this.nexthop.equals(that.nexthop))
841           return false;
842       }
843
844       boolean this_present_label = true;
845       boolean that_present_label = true;
846       if (this_present_label || that_present_label) {
847         if (!(this_present_label && that_present_label))
848           return false;
849         if (this.label != that.label)
850           return false;
851       }
852
853       return true;
854     }
855
856     @Override
857     public int hashCode() {
858       return 0;
859     }
860
861     @Override
862     public int compareTo(onUpdatePushRoute_args other) {
863       if (!getClass().equals(other.getClass())) {
864         return getClass().getName().compareTo(other.getClass().getName());
865       }
866
867       int lastComparison = 0;
868
869       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
870       if (lastComparison != 0) {
871         return lastComparison;
872       }
873       if (isSetRd()) {
874         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
875         if (lastComparison != 0) {
876           return lastComparison;
877         }
878       }
879       lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
880       if (lastComparison != 0) {
881         return lastComparison;
882       }
883       if (isSetPrefix()) {
884         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
885         if (lastComparison != 0) {
886           return lastComparison;
887         }
888       }
889       lastComparison = Boolean.valueOf(isSetPrefixlen()).compareTo(other.isSetPrefixlen());
890       if (lastComparison != 0) {
891         return lastComparison;
892       }
893       if (isSetPrefixlen()) {
894         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefixlen, other.prefixlen);
895         if (lastComparison != 0) {
896           return lastComparison;
897         }
898       }
899       lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
900       if (lastComparison != 0) {
901         return lastComparison;
902       }
903       if (isSetNexthop()) {
904         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
905         if (lastComparison != 0) {
906           return lastComparison;
907         }
908       }
909       lastComparison = Boolean.valueOf(isSetLabel()).compareTo(other.isSetLabel());
910       if (lastComparison != 0) {
911         return lastComparison;
912       }
913       if (isSetLabel()) {
914         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.label, other.label);
915         if (lastComparison != 0) {
916           return lastComparison;
917         }
918       }
919       return 0;
920     }
921
922     public _Fields fieldForId(int fieldId) {
923       return _Fields.findByThriftId(fieldId);
924     }
925
926     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
927       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
928     }
929
930     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
931       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
932     }
933
934     @Override
935     public String toString() {
936       StringBuilder sb = new StringBuilder("onUpdatePushRoute_args(");
937       boolean first = true;
938
939       sb.append("rd:");
940       if (this.rd == null) {
941         sb.append("null");
942       } else {
943         sb.append(this.rd);
944       }
945       first = false;
946       if (!first) sb.append(", ");
947       sb.append("prefix:");
948       if (this.prefix == null) {
949         sb.append("null");
950       } else {
951         sb.append(this.prefix);
952       }
953       first = false;
954       if (!first) sb.append(", ");
955       sb.append("prefixlen:");
956       sb.append(this.prefixlen);
957       first = false;
958       if (!first) sb.append(", ");
959       sb.append("nexthop:");
960       if (this.nexthop == null) {
961         sb.append("null");
962       } else {
963         sb.append(this.nexthop);
964       }
965       first = false;
966       if (!first) sb.append(", ");
967       sb.append("label:");
968       sb.append(this.label);
969       first = false;
970       sb.append(")");
971       return sb.toString();
972     }
973
974     public void validate() throws org.apache.thrift.TException {
975       // check for required fields
976       // check for sub-struct validity
977     }
978
979     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
980       try {
981         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
982       } catch (org.apache.thrift.TException te) {
983         throw new java.io.IOException(te);
984       }
985     }
986
987     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
988       try {
989         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
990         __isset_bitfield = 0;
991         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
992       } catch (org.apache.thrift.TException te) {
993         throw new java.io.IOException(te);
994       }
995     }
996
997     private static class onUpdatePushRoute_argsStandardSchemeFactory implements SchemeFactory {
998       public onUpdatePushRoute_argsStandardScheme getScheme() {
999         return new onUpdatePushRoute_argsStandardScheme();
1000       }
1001     }
1002
1003     private static class onUpdatePushRoute_argsStandardScheme extends StandardScheme<onUpdatePushRoute_args> {
1004
1005       public void read(org.apache.thrift.protocol.TProtocol iprot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1006         org.apache.thrift.protocol.TField schemeField;
1007         iprot.readStructBegin();
1008         while (true)
1009         {
1010           schemeField = iprot.readFieldBegin();
1011           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
1012             break;
1013           }
1014           switch (schemeField.id) {
1015             case 1: // RD
1016               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1017                 struct.rd = iprot.readString();
1018                 struct.setRdIsSet(true);
1019               } else { 
1020                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1021               }
1022               break;
1023             case 2: // PREFIX
1024               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1025                 struct.prefix = iprot.readString();
1026                 struct.setPrefixIsSet(true);
1027               } else { 
1028                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1029               }
1030               break;
1031             case 3: // PREFIXLEN
1032               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1033                 struct.prefixlen = iprot.readI32();
1034                 struct.setPrefixlenIsSet(true);
1035               } else { 
1036                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1037               }
1038               break;
1039             case 4: // NEXTHOP
1040               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1041                 struct.nexthop = iprot.readString();
1042                 struct.setNexthopIsSet(true);
1043               } else { 
1044                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1045               }
1046               break;
1047             case 5: // LABEL
1048               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1049                 struct.label = iprot.readI32();
1050                 struct.setLabelIsSet(true);
1051               } else { 
1052                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1053               }
1054               break;
1055             default:
1056               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1057           }
1058           iprot.readFieldEnd();
1059         }
1060         iprot.readStructEnd();
1061
1062         // check for required fields of primitive type, which can't be checked in the validate method
1063         struct.validate();
1064       }
1065
1066       public void write(org.apache.thrift.protocol.TProtocol oprot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1067         struct.validate();
1068
1069         oprot.writeStructBegin(STRUCT_DESC);
1070         if (struct.rd != null) {
1071           oprot.writeFieldBegin(RD_FIELD_DESC);
1072           oprot.writeString(struct.rd);
1073           oprot.writeFieldEnd();
1074         }
1075         if (struct.prefix != null) {
1076           oprot.writeFieldBegin(PREFIX_FIELD_DESC);
1077           oprot.writeString(struct.prefix);
1078           oprot.writeFieldEnd();
1079         }
1080         oprot.writeFieldBegin(PREFIXLEN_FIELD_DESC);
1081         oprot.writeI32(struct.prefixlen);
1082         oprot.writeFieldEnd();
1083         if (struct.nexthop != null) {
1084           oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
1085           oprot.writeString(struct.nexthop);
1086           oprot.writeFieldEnd();
1087         }
1088         oprot.writeFieldBegin(LABEL_FIELD_DESC);
1089         oprot.writeI32(struct.label);
1090         oprot.writeFieldEnd();
1091         oprot.writeFieldStop();
1092         oprot.writeStructEnd();
1093       }
1094
1095     }
1096
1097     private static class onUpdatePushRoute_argsTupleSchemeFactory implements SchemeFactory {
1098       public onUpdatePushRoute_argsTupleScheme getScheme() {
1099         return new onUpdatePushRoute_argsTupleScheme();
1100       }
1101     }
1102
1103     private static class onUpdatePushRoute_argsTupleScheme extends TupleScheme<onUpdatePushRoute_args> {
1104
1105       @Override
1106       public void write(org.apache.thrift.protocol.TProtocol prot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1107         TTupleProtocol oprot = (TTupleProtocol) prot;
1108         BitSet optionals = new BitSet();
1109         if (struct.isSetRd()) {
1110           optionals.set(0);
1111         }
1112         if (struct.isSetPrefix()) {
1113           optionals.set(1);
1114         }
1115         if (struct.isSetPrefixlen()) {
1116           optionals.set(2);
1117         }
1118         if (struct.isSetNexthop()) {
1119           optionals.set(3);
1120         }
1121         if (struct.isSetLabel()) {
1122           optionals.set(4);
1123         }
1124         oprot.writeBitSet(optionals, 5);
1125         if (struct.isSetRd()) {
1126           oprot.writeString(struct.rd);
1127         }
1128         if (struct.isSetPrefix()) {
1129           oprot.writeString(struct.prefix);
1130         }
1131         if (struct.isSetPrefixlen()) {
1132           oprot.writeI32(struct.prefixlen);
1133         }
1134         if (struct.isSetNexthop()) {
1135           oprot.writeString(struct.nexthop);
1136         }
1137         if (struct.isSetLabel()) {
1138           oprot.writeI32(struct.label);
1139         }
1140       }
1141
1142       @Override
1143       public void read(org.apache.thrift.protocol.TProtocol prot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1144         TTupleProtocol iprot = (TTupleProtocol) prot;
1145         BitSet incoming = iprot.readBitSet(5);
1146         if (incoming.get(0)) {
1147           struct.rd = iprot.readString();
1148           struct.setRdIsSet(true);
1149         }
1150         if (incoming.get(1)) {
1151           struct.prefix = iprot.readString();
1152           struct.setPrefixIsSet(true);
1153         }
1154         if (incoming.get(2)) {
1155           struct.prefixlen = iprot.readI32();
1156           struct.setPrefixlenIsSet(true);
1157         }
1158         if (incoming.get(3)) {
1159           struct.nexthop = iprot.readString();
1160           struct.setNexthopIsSet(true);
1161         }
1162         if (incoming.get(4)) {
1163           struct.label = iprot.readI32();
1164           struct.setLabelIsSet(true);
1165         }
1166       }
1167     }
1168
1169   }
1170
1171   public static class onUpdateWithdrawRoute_args implements org.apache.thrift.TBase<onUpdateWithdrawRoute_args, onUpdateWithdrawRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<onUpdateWithdrawRoute_args>   {
1172     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onUpdateWithdrawRoute_args");
1173
1174     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);
1175     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);
1176     private static final org.apache.thrift.protocol.TField PREFIXLEN_FIELD_DESC = new org.apache.thrift.protocol.TField("prefixlen", org.apache.thrift.protocol.TType.I32, (short)3);
1177
1178     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
1179     static {
1180       schemes.put(StandardScheme.class, new onUpdateWithdrawRoute_argsStandardSchemeFactory());
1181       schemes.put(TupleScheme.class, new onUpdateWithdrawRoute_argsTupleSchemeFactory());
1182     }
1183
1184     public String rd; // required
1185     public String prefix; // required
1186     public int prefixlen; // required
1187
1188     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1189     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1190       RD((short)1, "rd"),
1191       PREFIX((short)2, "prefix"),
1192       PREFIXLEN((short)3, "prefixlen");
1193
1194       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1195
1196       static {
1197         for (_Fields field : EnumSet.allOf(_Fields.class)) {
1198           byName.put(field.getFieldName(), field);
1199         }
1200       }
1201
1202       /**
1203        * Find the _Fields constant that matches fieldId, or null if its not found.
1204        */
1205       public static _Fields findByThriftId(int fieldId) {
1206         switch(fieldId) {
1207           case 1: // RD
1208             return RD;
1209           case 2: // PREFIX
1210             return PREFIX;
1211           case 3: // PREFIXLEN
1212             return PREFIXLEN;
1213           default:
1214             return null;
1215         }
1216       }
1217
1218       /**
1219        * Find the _Fields constant that matches fieldId, throwing an exception
1220        * if it is not found.
1221        */
1222       public static _Fields findByThriftIdOrThrow(int fieldId) {
1223         _Fields fields = findByThriftId(fieldId);
1224         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1225         return fields;
1226       }
1227
1228       /**
1229        * Find the _Fields constant that matches name, or null if its not found.
1230        */
1231       public static _Fields findByName(String name) {
1232         return byName.get(name);
1233       }
1234
1235       private final short _thriftId;
1236       private final String _fieldName;
1237
1238       _Fields(short thriftId, String fieldName) {
1239         _thriftId = thriftId;
1240         _fieldName = fieldName;
1241       }
1242
1243       public short getThriftFieldId() {
1244         return _thriftId;
1245       }
1246
1247       public String getFieldName() {
1248         return _fieldName;
1249       }
1250     }
1251
1252     // isset id assignments
1253     private static final int __PREFIXLEN_ISSET_ID = 0;
1254     private byte __isset_bitfield = 0;
1255     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1256     static {
1257       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1258       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1259           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1260       tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1261           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1262       tmpMap.put(_Fields.PREFIXLEN, new org.apache.thrift.meta_data.FieldMetaData("prefixlen", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1263           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
1264       metaDataMap = Collections.unmodifiableMap(tmpMap);
1265       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onUpdateWithdrawRoute_args.class, metaDataMap);
1266     }
1267
1268     public onUpdateWithdrawRoute_args() {
1269     }
1270
1271     public onUpdateWithdrawRoute_args(
1272       String rd,
1273       String prefix,
1274       int prefixlen)
1275     {
1276       this();
1277       this.rd = rd;
1278       this.prefix = prefix;
1279       this.prefixlen = prefixlen;
1280       setPrefixlenIsSet(true);
1281     }
1282
1283     /**
1284      * Performs a deep copy on <i>other</i>.
1285      */
1286     public onUpdateWithdrawRoute_args(onUpdateWithdrawRoute_args other) {
1287       __isset_bitfield = other.__isset_bitfield;
1288       if (other.isSetRd()) {
1289         this.rd = other.rd;
1290       }
1291       if (other.isSetPrefix()) {
1292         this.prefix = other.prefix;
1293       }
1294       this.prefixlen = other.prefixlen;
1295     }
1296
1297     public onUpdateWithdrawRoute_args deepCopy() {
1298       return new onUpdateWithdrawRoute_args(this);
1299     }
1300
1301     @Override
1302     public void clear() {
1303       this.rd = null;
1304       this.prefix = null;
1305       setPrefixlenIsSet(false);
1306       this.prefixlen = 0;
1307     }
1308
1309     public String getRd() {
1310       return this.rd;
1311     }
1312
1313     public onUpdateWithdrawRoute_args setRd(String rd) {
1314       this.rd = rd;
1315       return this;
1316     }
1317
1318     public void unsetRd() {
1319       this.rd = null;
1320     }
1321
1322     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
1323     public boolean isSetRd() {
1324       return this.rd != null;
1325     }
1326
1327     public void setRdIsSet(boolean value) {
1328       if (!value) {
1329         this.rd = null;
1330       }
1331     }
1332
1333     public String getPrefix() {
1334       return this.prefix;
1335     }
1336
1337     public onUpdateWithdrawRoute_args setPrefix(String prefix) {
1338       this.prefix = prefix;
1339       return this;
1340     }
1341
1342     public void unsetPrefix() {
1343       this.prefix = null;
1344     }
1345
1346     /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
1347     public boolean isSetPrefix() {
1348       return this.prefix != null;
1349     }
1350
1351     public void setPrefixIsSet(boolean value) {
1352       if (!value) {
1353         this.prefix = null;
1354       }
1355     }
1356
1357     public int getPrefixlen() {
1358       return this.prefixlen;
1359     }
1360
1361     public onUpdateWithdrawRoute_args setPrefixlen(int prefixlen) {
1362       this.prefixlen = prefixlen;
1363       setPrefixlenIsSet(true);
1364       return this;
1365     }
1366
1367     public void unsetPrefixlen() {
1368       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
1369     }
1370
1371     /** Returns true if field prefixlen is set (has been assigned a value) and false otherwise */
1372     public boolean isSetPrefixlen() {
1373       return EncodingUtils.testBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
1374     }
1375
1376     public void setPrefixlenIsSet(boolean value) {
1377       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PREFIXLEN_ISSET_ID, value);
1378     }
1379
1380     public void setFieldValue(_Fields field, Object value) {
1381       switch (field) {
1382       case RD:
1383         if (value == null) {
1384           unsetRd();
1385         } else {
1386           setRd((String)value);
1387         }
1388         break;
1389
1390       case PREFIX:
1391         if (value == null) {
1392           unsetPrefix();
1393         } else {
1394           setPrefix((String)value);
1395         }
1396         break;
1397
1398       case PREFIXLEN:
1399         if (value == null) {
1400           unsetPrefixlen();
1401         } else {
1402           setPrefixlen((Integer)value);
1403         }
1404         break;
1405
1406       }
1407     }
1408
1409     public Object getFieldValue(_Fields field) {
1410       switch (field) {
1411       case RD:
1412         return getRd();
1413
1414       case PREFIX:
1415         return getPrefix();
1416
1417       case PREFIXLEN:
1418         return Integer.valueOf(getPrefixlen());
1419
1420       }
1421       throw new IllegalStateException();
1422     }
1423
1424     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1425     public boolean isSet(_Fields field) {
1426       if (field == null) {
1427         throw new IllegalArgumentException();
1428       }
1429
1430       switch (field) {
1431       case RD:
1432         return isSetRd();
1433       case PREFIX:
1434         return isSetPrefix();
1435       case PREFIXLEN:
1436         return isSetPrefixlen();
1437       }
1438       throw new IllegalStateException();
1439     }
1440
1441     @Override
1442     public boolean equals(Object that) {
1443       if (that == null)
1444         return false;
1445       if (that instanceof onUpdateWithdrawRoute_args)
1446         return this.equals((onUpdateWithdrawRoute_args)that);
1447       return false;
1448     }
1449
1450     public boolean equals(onUpdateWithdrawRoute_args that) {
1451       if (that == null)
1452         return false;
1453
1454       boolean this_present_rd = true && this.isSetRd();
1455       boolean that_present_rd = true && that.isSetRd();
1456       if (this_present_rd || that_present_rd) {
1457         if (!(this_present_rd && that_present_rd))
1458           return false;
1459         if (!this.rd.equals(that.rd))
1460           return false;
1461       }
1462
1463       boolean this_present_prefix = true && this.isSetPrefix();
1464       boolean that_present_prefix = true && that.isSetPrefix();
1465       if (this_present_prefix || that_present_prefix) {
1466         if (!(this_present_prefix && that_present_prefix))
1467           return false;
1468         if (!this.prefix.equals(that.prefix))
1469           return false;
1470       }
1471
1472       boolean this_present_prefixlen = true;
1473       boolean that_present_prefixlen = true;
1474       if (this_present_prefixlen || that_present_prefixlen) {
1475         if (!(this_present_prefixlen && that_present_prefixlen))
1476           return false;
1477         if (this.prefixlen != that.prefixlen)
1478           return false;
1479       }
1480
1481       return true;
1482     }
1483
1484     @Override
1485     public int hashCode() {
1486       return 0;
1487     }
1488
1489     @Override
1490     public int compareTo(onUpdateWithdrawRoute_args other) {
1491       if (!getClass().equals(other.getClass())) {
1492         return getClass().getName().compareTo(other.getClass().getName());
1493       }
1494
1495       int lastComparison = 0;
1496
1497       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
1498       if (lastComparison != 0) {
1499         return lastComparison;
1500       }
1501       if (isSetRd()) {
1502         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
1503         if (lastComparison != 0) {
1504           return lastComparison;
1505         }
1506       }
1507       lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
1508       if (lastComparison != 0) {
1509         return lastComparison;
1510       }
1511       if (isSetPrefix()) {
1512         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
1513         if (lastComparison != 0) {
1514           return lastComparison;
1515         }
1516       }
1517       lastComparison = Boolean.valueOf(isSetPrefixlen()).compareTo(other.isSetPrefixlen());
1518       if (lastComparison != 0) {
1519         return lastComparison;
1520       }
1521       if (isSetPrefixlen()) {
1522         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefixlen, other.prefixlen);
1523         if (lastComparison != 0) {
1524           return lastComparison;
1525         }
1526       }
1527       return 0;
1528     }
1529
1530     public _Fields fieldForId(int fieldId) {
1531       return _Fields.findByThriftId(fieldId);
1532     }
1533
1534     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1535       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
1536     }
1537
1538     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1539       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
1540     }
1541
1542     @Override
1543     public String toString() {
1544       StringBuilder sb = new StringBuilder("onUpdateWithdrawRoute_args(");
1545       boolean first = true;
1546
1547       sb.append("rd:");
1548       if (this.rd == null) {
1549         sb.append("null");
1550       } else {
1551         sb.append(this.rd);
1552       }
1553       first = false;
1554       if (!first) sb.append(", ");
1555       sb.append("prefix:");
1556       if (this.prefix == null) {
1557         sb.append("null");
1558       } else {
1559         sb.append(this.prefix);
1560       }
1561       first = false;
1562       if (!first) sb.append(", ");
1563       sb.append("prefixlen:");
1564       sb.append(this.prefixlen);
1565       first = false;
1566       sb.append(")");
1567       return sb.toString();
1568     }
1569
1570     public void validate() throws org.apache.thrift.TException {
1571       // check for required fields
1572       // check for sub-struct validity
1573     }
1574
1575     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1576       try {
1577         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1578       } catch (org.apache.thrift.TException te) {
1579         throw new java.io.IOException(te);
1580       }
1581     }
1582
1583     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1584       try {
1585         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1586         __isset_bitfield = 0;
1587         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1588       } catch (org.apache.thrift.TException te) {
1589         throw new java.io.IOException(te);
1590       }
1591     }
1592
1593     private static class onUpdateWithdrawRoute_argsStandardSchemeFactory implements SchemeFactory {
1594       public onUpdateWithdrawRoute_argsStandardScheme getScheme() {
1595         return new onUpdateWithdrawRoute_argsStandardScheme();
1596       }
1597     }
1598
1599     private static class onUpdateWithdrawRoute_argsStandardScheme extends StandardScheme<onUpdateWithdrawRoute_args> {
1600
1601       public void read(org.apache.thrift.protocol.TProtocol iprot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
1602         org.apache.thrift.protocol.TField schemeField;
1603         iprot.readStructBegin();
1604         while (true)
1605         {
1606           schemeField = iprot.readFieldBegin();
1607           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
1608             break;
1609           }
1610           switch (schemeField.id) {
1611             case 1: // RD
1612               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1613                 struct.rd = iprot.readString();
1614                 struct.setRdIsSet(true);
1615               } else { 
1616                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1617               }
1618               break;
1619             case 2: // PREFIX
1620               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1621                 struct.prefix = iprot.readString();
1622                 struct.setPrefixIsSet(true);
1623               } else { 
1624                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1625               }
1626               break;
1627             case 3: // PREFIXLEN
1628               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1629                 struct.prefixlen = iprot.readI32();
1630                 struct.setPrefixlenIsSet(true);
1631               } else { 
1632                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1633               }
1634               break;
1635             default:
1636               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1637           }
1638           iprot.readFieldEnd();
1639         }
1640         iprot.readStructEnd();
1641
1642         // check for required fields of primitive type, which can't be checked in the validate method
1643         struct.validate();
1644       }
1645
1646       public void write(org.apache.thrift.protocol.TProtocol oprot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
1647         struct.validate();
1648
1649         oprot.writeStructBegin(STRUCT_DESC);
1650         if (struct.rd != null) {
1651           oprot.writeFieldBegin(RD_FIELD_DESC);
1652           oprot.writeString(struct.rd);
1653           oprot.writeFieldEnd();
1654         }
1655         if (struct.prefix != null) {
1656           oprot.writeFieldBegin(PREFIX_FIELD_DESC);
1657           oprot.writeString(struct.prefix);
1658           oprot.writeFieldEnd();
1659         }
1660         oprot.writeFieldBegin(PREFIXLEN_FIELD_DESC);
1661         oprot.writeI32(struct.prefixlen);
1662         oprot.writeFieldEnd();
1663         oprot.writeFieldStop();
1664         oprot.writeStructEnd();
1665       }
1666
1667     }
1668
1669     private static class onUpdateWithdrawRoute_argsTupleSchemeFactory implements SchemeFactory {
1670       public onUpdateWithdrawRoute_argsTupleScheme getScheme() {
1671         return new onUpdateWithdrawRoute_argsTupleScheme();
1672       }
1673     }
1674
1675     private static class onUpdateWithdrawRoute_argsTupleScheme extends TupleScheme<onUpdateWithdrawRoute_args> {
1676
1677       @Override
1678       public void write(org.apache.thrift.protocol.TProtocol prot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
1679         TTupleProtocol oprot = (TTupleProtocol) prot;
1680         BitSet optionals = new BitSet();
1681         if (struct.isSetRd()) {
1682           optionals.set(0);
1683         }
1684         if (struct.isSetPrefix()) {
1685           optionals.set(1);
1686         }
1687         if (struct.isSetPrefixlen()) {
1688           optionals.set(2);
1689         }
1690         oprot.writeBitSet(optionals, 3);
1691         if (struct.isSetRd()) {
1692           oprot.writeString(struct.rd);
1693         }
1694         if (struct.isSetPrefix()) {
1695           oprot.writeString(struct.prefix);
1696         }
1697         if (struct.isSetPrefixlen()) {
1698           oprot.writeI32(struct.prefixlen);
1699         }
1700       }
1701
1702       @Override
1703       public void read(org.apache.thrift.protocol.TProtocol prot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
1704         TTupleProtocol iprot = (TTupleProtocol) prot;
1705         BitSet incoming = iprot.readBitSet(3);
1706         if (incoming.get(0)) {
1707           struct.rd = iprot.readString();
1708           struct.setRdIsSet(true);
1709         }
1710         if (incoming.get(1)) {
1711           struct.prefix = iprot.readString();
1712           struct.setPrefixIsSet(true);
1713         }
1714         if (incoming.get(2)) {
1715           struct.prefixlen = iprot.readI32();
1716           struct.setPrefixlenIsSet(true);
1717         }
1718       }
1719     }
1720
1721   }
1722
1723   public static class onStartConfigResyncNotification_args implements org.apache.thrift.TBase<onStartConfigResyncNotification_args, onStartConfigResyncNotification_args._Fields>, java.io.Serializable, Cloneable, Comparable<onStartConfigResyncNotification_args>   {
1724     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onStartConfigResyncNotification_args");
1725
1726
1727     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
1728     static {
1729       schemes.put(StandardScheme.class, new onStartConfigResyncNotification_argsStandardSchemeFactory());
1730       schemes.put(TupleScheme.class, new onStartConfigResyncNotification_argsTupleSchemeFactory());
1731     }
1732
1733
1734     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1735     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1736 ;
1737
1738       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1739
1740       static {
1741         for (_Fields field : EnumSet.allOf(_Fields.class)) {
1742           byName.put(field.getFieldName(), field);
1743         }
1744       }
1745
1746       /**
1747        * Find the _Fields constant that matches fieldId, or null if its not found.
1748        */
1749       public static _Fields findByThriftId(int fieldId) {
1750         switch(fieldId) {
1751           default:
1752             return null;
1753         }
1754       }
1755
1756       /**
1757        * Find the _Fields constant that matches fieldId, throwing an exception
1758        * if it is not found.
1759        */
1760       public static _Fields findByThriftIdOrThrow(int fieldId) {
1761         _Fields fields = findByThriftId(fieldId);
1762         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1763         return fields;
1764       }
1765
1766       /**
1767        * Find the _Fields constant that matches name, or null if its not found.
1768        */
1769       public static _Fields findByName(String name) {
1770         return byName.get(name);
1771       }
1772
1773       private final short _thriftId;
1774       private final String _fieldName;
1775
1776       _Fields(short thriftId, String fieldName) {
1777         _thriftId = thriftId;
1778         _fieldName = fieldName;
1779       }
1780
1781       public short getThriftFieldId() {
1782         return _thriftId;
1783       }
1784
1785       public String getFieldName() {
1786         return _fieldName;
1787       }
1788     }
1789     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1790     static {
1791       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1792       metaDataMap = Collections.unmodifiableMap(tmpMap);
1793       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onStartConfigResyncNotification_args.class, metaDataMap);
1794     }
1795
1796     public onStartConfigResyncNotification_args() {
1797     }
1798
1799     /**
1800      * Performs a deep copy on <i>other</i>.
1801      */
1802     public onStartConfigResyncNotification_args(onStartConfigResyncNotification_args other) {
1803     }
1804
1805     public onStartConfigResyncNotification_args deepCopy() {
1806       return new onStartConfigResyncNotification_args(this);
1807     }
1808
1809     @Override
1810     public void clear() {
1811     }
1812
1813     public void setFieldValue(_Fields field, Object value) {
1814       switch (field) {
1815       }
1816     }
1817
1818     public Object getFieldValue(_Fields field) {
1819       switch (field) {
1820       }
1821       throw new IllegalStateException();
1822     }
1823
1824     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1825     public boolean isSet(_Fields field) {
1826       if (field == null) {
1827         throw new IllegalArgumentException();
1828       }
1829
1830       switch (field) {
1831       }
1832       throw new IllegalStateException();
1833     }
1834
1835     @Override
1836     public boolean equals(Object that) {
1837       if (that == null)
1838         return false;
1839       if (that instanceof onStartConfigResyncNotification_args)
1840         return this.equals((onStartConfigResyncNotification_args)that);
1841       return false;
1842     }
1843
1844     public boolean equals(onStartConfigResyncNotification_args that) {
1845       if (that == null)
1846         return false;
1847
1848       return true;
1849     }
1850
1851     @Override
1852     public int hashCode() {
1853       return 0;
1854     }
1855
1856     @Override
1857     public int compareTo(onStartConfigResyncNotification_args other) {
1858       if (!getClass().equals(other.getClass())) {
1859         return getClass().getName().compareTo(other.getClass().getName());
1860       }
1861
1862       int lastComparison = 0;
1863
1864       return 0;
1865     }
1866
1867     public _Fields fieldForId(int fieldId) {
1868       return _Fields.findByThriftId(fieldId);
1869     }
1870
1871     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1872       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
1873     }
1874
1875     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1876       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
1877     }
1878
1879     @Override
1880     public String toString() {
1881       StringBuilder sb = new StringBuilder("onStartConfigResyncNotification_args(");
1882       boolean first = true;
1883
1884       sb.append(")");
1885       return sb.toString();
1886     }
1887
1888     public void validate() throws org.apache.thrift.TException {
1889       // check for required fields
1890       // check for sub-struct validity
1891     }
1892
1893     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1894       try {
1895         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1896       } catch (org.apache.thrift.TException te) {
1897         throw new java.io.IOException(te);
1898       }
1899     }
1900
1901     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1902       try {
1903         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1904       } catch (org.apache.thrift.TException te) {
1905         throw new java.io.IOException(te);
1906       }
1907     }
1908
1909     private static class onStartConfigResyncNotification_argsStandardSchemeFactory implements SchemeFactory {
1910       public onStartConfigResyncNotification_argsStandardScheme getScheme() {
1911         return new onStartConfigResyncNotification_argsStandardScheme();
1912       }
1913     }
1914
1915     private static class onStartConfigResyncNotification_argsStandardScheme extends StandardScheme<onStartConfigResyncNotification_args> {
1916
1917       public void read(org.apache.thrift.protocol.TProtocol iprot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
1918         org.apache.thrift.protocol.TField schemeField;
1919         iprot.readStructBegin();
1920         while (true)
1921         {
1922           schemeField = iprot.readFieldBegin();
1923           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
1924             break;
1925           }
1926           switch (schemeField.id) {
1927             default:
1928               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1929           }
1930           iprot.readFieldEnd();
1931         }
1932         iprot.readStructEnd();
1933
1934         // check for required fields of primitive type, which can't be checked in the validate method
1935         struct.validate();
1936       }
1937
1938       public void write(org.apache.thrift.protocol.TProtocol oprot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
1939         struct.validate();
1940
1941         oprot.writeStructBegin(STRUCT_DESC);
1942         oprot.writeFieldStop();
1943         oprot.writeStructEnd();
1944       }
1945
1946     }
1947
1948     private static class onStartConfigResyncNotification_argsTupleSchemeFactory implements SchemeFactory {
1949       public onStartConfigResyncNotification_argsTupleScheme getScheme() {
1950         return new onStartConfigResyncNotification_argsTupleScheme();
1951       }
1952     }
1953
1954     private static class onStartConfigResyncNotification_argsTupleScheme extends TupleScheme<onStartConfigResyncNotification_args> {
1955
1956       @Override
1957       public void write(org.apache.thrift.protocol.TProtocol prot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
1958         TTupleProtocol oprot = (TTupleProtocol) prot;
1959       }
1960
1961       @Override
1962       public void read(org.apache.thrift.protocol.TProtocol prot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
1963         TTupleProtocol iprot = (TTupleProtocol) prot;
1964       }
1965     }
1966
1967   }
1968
1969 }