Updated BgpManager for Be
[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
8 package org.opendaylight.bgpmanager.thrift.gen;
9
10 import org.apache.thrift.scheme.IScheme;
11 import org.apache.thrift.scheme.SchemeFactory;
12 import org.apache.thrift.scheme.StandardScheme;
13
14 import org.apache.thrift.scheme.TupleScheme;
15 import org.apache.thrift.protocol.TTupleProtocol;
16 import org.apache.thrift.protocol.TProtocolException;
17 import org.apache.thrift.EncodingUtils;
18 import org.apache.thrift.TException;
19 import org.apache.thrift.async.AsyncMethodCallback;
20 import org.apache.thrift.server.AbstractNonblockingServer.*;
21 import java.util.List;
22 import java.util.ArrayList;
23 import java.util.Map;
24 import java.util.HashMap;
25 import java.util.EnumMap;
26 import java.util.Set;
27 import java.util.HashSet;
28 import java.util.EnumSet;
29 import java.util.Collections;
30 import java.util.BitSet;
31 import java.nio.ByteBuffer;
32 import java.util.Arrays;
33 import org.slf4j.Logger;
34 import org.slf4j.LoggerFactory;
35
36 public class BgpUpdater {
37
38   public interface Iface {
39
40     public void onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label) throws org.apache.thrift.TException;
41
42     public void onUpdateWithdrawRoute(String rd, String prefix, int prefixlen) throws org.apache.thrift.TException;
43
44     public void onStartConfigResyncNotification() throws org.apache.thrift.TException;
45
46     public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode) throws org.apache.thrift.TException;
47
48   }
49
50   public interface AsyncIface {
51
52     public void onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
53
54     public void onUpdateWithdrawRoute(String rd, String prefix, int prefixlen, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
55
56     public void onStartConfigResyncNotification(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
57
58     public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
59
60   }
61
62   public static class Client extends org.apache.thrift.TServiceClient implements Iface {
63     public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
64       public Factory() {}
65       public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
66         return new Client(prot);
67       }
68       public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
69         return new Client(iprot, oprot);
70       }
71     }
72
73     public Client(org.apache.thrift.protocol.TProtocol prot)
74     {
75       super(prot, prot);
76     }
77
78     public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
79       super(iprot, oprot);
80     }
81
82     public void onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label) throws org.apache.thrift.TException
83     {
84       send_onUpdatePushRoute(rd, prefix, prefixlen, nexthop, label);
85     }
86
87     public void send_onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label) throws org.apache.thrift.TException
88     {
89       onUpdatePushRoute_args args = new onUpdatePushRoute_args();
90       args.setRd(rd);
91       args.setPrefix(prefix);
92       args.setPrefixlen(prefixlen);
93       args.setNexthop(nexthop);
94       args.setLabel(label);
95       sendBase("onUpdatePushRoute", args);
96     }
97
98     public void onUpdateWithdrawRoute(String rd, String prefix, int prefixlen) throws org.apache.thrift.TException
99     {
100       send_onUpdateWithdrawRoute(rd, prefix, prefixlen);
101     }
102
103     public void send_onUpdateWithdrawRoute(String rd, String prefix, int prefixlen) throws org.apache.thrift.TException
104     {
105       onUpdateWithdrawRoute_args args = new onUpdateWithdrawRoute_args();
106       args.setRd(rd);
107       args.setPrefix(prefix);
108       args.setPrefixlen(prefixlen);
109       sendBase("onUpdateWithdrawRoute", args);
110     }
111
112     public void onStartConfigResyncNotification() throws org.apache.thrift.TException
113     {
114       send_onStartConfigResyncNotification();
115     }
116
117     public void send_onStartConfigResyncNotification() throws org.apache.thrift.TException
118     {
119       onStartConfigResyncNotification_args args = new onStartConfigResyncNotification_args();
120       sendBase("onStartConfigResyncNotification", args);
121     }
122
123     public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode) throws org.apache.thrift.TException
124     {
125       send_onNotificationSendEvent(prefix, errCode, errSubcode);
126     }
127
128     public void send_onNotificationSendEvent(String prefix, byte errCode, byte errSubcode) throws org.apache.thrift.TException
129     {
130       onNotificationSendEvent_args args = new onNotificationSendEvent_args();
131       args.setPrefix(prefix);
132       args.setErrCode(errCode);
133       args.setErrSubcode(errSubcode);
134       sendBase("onNotificationSendEvent", args);
135     }
136
137   }
138   public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
139     public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
140       private org.apache.thrift.async.TAsyncClientManager clientManager;
141       private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
142       public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
143         this.clientManager = clientManager;
144         this.protocolFactory = protocolFactory;
145       }
146       public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
147         return new AsyncClient(protocolFactory, clientManager, transport);
148       }
149     }
150
151     public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
152       super(protocolFactory, clientManager, transport);
153     }
154
155     public void onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
156       checkReady();
157       onUpdatePushRoute_call method_call = new onUpdatePushRoute_call(rd, prefix, prefixlen, nexthop, label, resultHandler, this, ___protocolFactory, ___transport);
158       this.___currentMethod = method_call;
159       ___manager.call(method_call);
160     }
161
162     public static class onUpdatePushRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
163       private String rd;
164       private String prefix;
165       private int prefixlen;
166       private String nexthop;
167       private int label;
168       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 {
169         super(client, protocolFactory, transport, resultHandler, true);
170         this.rd = rd;
171         this.prefix = prefix;
172         this.prefixlen = prefixlen;
173         this.nexthop = nexthop;
174         this.label = label;
175       }
176
177       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
178         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onUpdatePushRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
179         onUpdatePushRoute_args args = new onUpdatePushRoute_args();
180         args.setRd(rd);
181         args.setPrefix(prefix);
182         args.setPrefixlen(prefixlen);
183         args.setNexthop(nexthop);
184         args.setLabel(label);
185         args.write(prot);
186         prot.writeMessageEnd();
187       }
188
189       public void getResult() throws org.apache.thrift.TException {
190         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
191           throw new IllegalStateException("Method call not finished!");
192         }
193         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
194         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
195       }
196     }
197
198     public void onUpdateWithdrawRoute(String rd, String prefix, int prefixlen, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
199       checkReady();
200       onUpdateWithdrawRoute_call method_call = new onUpdateWithdrawRoute_call(rd, prefix, prefixlen, resultHandler, this, ___protocolFactory, ___transport);
201       this.___currentMethod = method_call;
202       ___manager.call(method_call);
203     }
204
205     public static class onUpdateWithdrawRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
206       private String rd;
207       private String prefix;
208       private int prefixlen;
209       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 {
210         super(client, protocolFactory, transport, resultHandler, true);
211         this.rd = rd;
212         this.prefix = prefix;
213         this.prefixlen = prefixlen;
214       }
215
216       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
217         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onUpdateWithdrawRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
218         onUpdateWithdrawRoute_args args = new onUpdateWithdrawRoute_args();
219         args.setRd(rd);
220         args.setPrefix(prefix);
221         args.setPrefixlen(prefixlen);
222         args.write(prot);
223         prot.writeMessageEnd();
224       }
225
226       public void getResult() throws org.apache.thrift.TException {
227         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
228           throw new IllegalStateException("Method call not finished!");
229         }
230         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
231         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
232       }
233     }
234
235     public void onStartConfigResyncNotification(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
236       checkReady();
237       onStartConfigResyncNotification_call method_call = new onStartConfigResyncNotification_call(resultHandler, this, ___protocolFactory, ___transport);
238       this.___currentMethod = method_call;
239       ___manager.call(method_call);
240     }
241
242     public static class onStartConfigResyncNotification_call extends org.apache.thrift.async.TAsyncMethodCall {
243       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 {
244         super(client, protocolFactory, transport, resultHandler, true);
245       }
246
247       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
248         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onStartConfigResyncNotification", org.apache.thrift.protocol.TMessageType.CALL, 0));
249         onStartConfigResyncNotification_args args = new onStartConfigResyncNotification_args();
250         args.write(prot);
251         prot.writeMessageEnd();
252       }
253
254       public void getResult() throws org.apache.thrift.TException {
255         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
256           throw new IllegalStateException("Method call not finished!");
257         }
258         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
259         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
260       }
261     }
262
263     public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
264       checkReady();
265       onNotificationSendEvent_call method_call = new onNotificationSendEvent_call(prefix, errCode, errSubcode, resultHandler, this, ___protocolFactory, ___transport);
266       this.___currentMethod = method_call;
267       ___manager.call(method_call);
268     }
269
270     public static class onNotificationSendEvent_call extends org.apache.thrift.async.TAsyncMethodCall {
271       private String prefix;
272       private byte errCode;
273       private byte errSubcode;
274       public onNotificationSendEvent_call(String prefix, byte errCode, byte errSubcode, 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 {
275         super(client, protocolFactory, transport, resultHandler, true);
276         this.prefix = prefix;
277         this.errCode = errCode;
278         this.errSubcode = errSubcode;
279       }
280
281       public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
282         prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onNotificationSendEvent", org.apache.thrift.protocol.TMessageType.CALL, 0));
283         onNotificationSendEvent_args args = new onNotificationSendEvent_args();
284         args.setPrefix(prefix);
285         args.setErrCode(errCode);
286         args.setErrSubcode(errSubcode);
287         args.write(prot);
288         prot.writeMessageEnd();
289       }
290
291       public void getResult() throws org.apache.thrift.TException {
292         if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
293           throw new IllegalStateException("Method call not finished!");
294         }
295         org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
296         org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
297       }
298     }
299
300   }
301
302   public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
303     private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
304     public Processor(I iface) {
305       super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
306     }
307
308     protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
309       super(iface, getProcessMap(processMap));
310     }
311
312     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) {
313       processMap.put("onUpdatePushRoute", new onUpdatePushRoute());
314       processMap.put("onUpdateWithdrawRoute", new onUpdateWithdrawRoute());
315       processMap.put("onStartConfigResyncNotification", new onStartConfigResyncNotification());
316       processMap.put("onNotificationSendEvent", new onNotificationSendEvent());
317       return processMap;
318     }
319
320     public static class onUpdatePushRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onUpdatePushRoute_args> {
321       public onUpdatePushRoute() {
322         super("onUpdatePushRoute");
323       }
324
325       public onUpdatePushRoute_args getEmptyArgsInstance() {
326         return new onUpdatePushRoute_args();
327       }
328
329       protected boolean isOneway() {
330         return true;
331       }
332
333       public org.apache.thrift.TBase getResult(I iface, onUpdatePushRoute_args args) throws org.apache.thrift.TException {
334         iface.onUpdatePushRoute(args.rd, args.prefix, args.prefixlen, args.nexthop, args.label);
335         return null;
336       }
337     }
338
339     public static class onUpdateWithdrawRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onUpdateWithdrawRoute_args> {
340       public onUpdateWithdrawRoute() {
341         super("onUpdateWithdrawRoute");
342       }
343
344       public onUpdateWithdrawRoute_args getEmptyArgsInstance() {
345         return new onUpdateWithdrawRoute_args();
346       }
347
348       protected boolean isOneway() {
349         return true;
350       }
351
352       public org.apache.thrift.TBase getResult(I iface, onUpdateWithdrawRoute_args args) throws org.apache.thrift.TException {
353         iface.onUpdateWithdrawRoute(args.rd, args.prefix, args.prefixlen);
354         return null;
355       }
356     }
357
358     public static class onStartConfigResyncNotification<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onStartConfigResyncNotification_args> {
359       public onStartConfigResyncNotification() {
360         super("onStartConfigResyncNotification");
361       }
362
363       public onStartConfigResyncNotification_args getEmptyArgsInstance() {
364         return new onStartConfigResyncNotification_args();
365       }
366
367       protected boolean isOneway() {
368         return true;
369       }
370
371       public org.apache.thrift.TBase getResult(I iface, onStartConfigResyncNotification_args args) throws org.apache.thrift.TException {
372         iface.onStartConfigResyncNotification();
373         return null;
374       }
375     }
376
377     public static class onNotificationSendEvent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onNotificationSendEvent_args> {
378       public onNotificationSendEvent() {
379         super("onNotificationSendEvent");
380       }
381
382       public onNotificationSendEvent_args getEmptyArgsInstance() {
383         return new onNotificationSendEvent_args();
384       }
385
386       protected boolean isOneway() {
387         return true;
388       }
389
390       public org.apache.thrift.TBase getResult(I iface, onNotificationSendEvent_args args) throws org.apache.thrift.TException {
391         iface.onNotificationSendEvent(args.prefix, args.errCode, args.errSubcode);
392         return null;
393       }
394     }
395
396   }
397
398   public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
399     private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
400     public AsyncProcessor(I iface) {
401       super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
402     }
403
404     protected AsyncProcessor(I iface, Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
405       super(iface, getProcessMap(processMap));
406     }
407
408     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) {
409       processMap.put("onUpdatePushRoute", new onUpdatePushRoute());
410       processMap.put("onUpdateWithdrawRoute", new onUpdateWithdrawRoute());
411       processMap.put("onStartConfigResyncNotification", new onStartConfigResyncNotification());
412       processMap.put("onNotificationSendEvent", new onNotificationSendEvent());
413       return processMap;
414     }
415
416     public static class onUpdatePushRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onUpdatePushRoute_args, Void> {
417       public onUpdatePushRoute() {
418         super("onUpdatePushRoute");
419       }
420
421       public onUpdatePushRoute_args getEmptyArgsInstance() {
422         return new onUpdatePushRoute_args();
423       }
424
425       public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
426         final org.apache.thrift.AsyncProcessFunction fcall = this;
427         return new AsyncMethodCallback<Void>() { 
428           public void onComplete(Void o) {
429           }
430           public void onError(Exception e) {
431           }
432         };
433       }
434
435       protected boolean isOneway() {
436         return true;
437       }
438
439       public void start(I iface, onUpdatePushRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
440         iface.onUpdatePushRoute(args.rd, args.prefix, args.prefixlen, args.nexthop, args.label,resultHandler);
441       }
442     }
443
444     public static class onUpdateWithdrawRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onUpdateWithdrawRoute_args, Void> {
445       public onUpdateWithdrawRoute() {
446         super("onUpdateWithdrawRoute");
447       }
448
449       public onUpdateWithdrawRoute_args getEmptyArgsInstance() {
450         return new onUpdateWithdrawRoute_args();
451       }
452
453       public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
454         final org.apache.thrift.AsyncProcessFunction fcall = this;
455         return new AsyncMethodCallback<Void>() { 
456           public void onComplete(Void o) {
457           }
458           public void onError(Exception e) {
459           }
460         };
461       }
462
463       protected boolean isOneway() {
464         return true;
465       }
466
467       public void start(I iface, onUpdateWithdrawRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
468         iface.onUpdateWithdrawRoute(args.rd, args.prefix, args.prefixlen,resultHandler);
469       }
470     }
471
472     public static class onStartConfigResyncNotification<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onStartConfigResyncNotification_args, Void> {
473       public onStartConfigResyncNotification() {
474         super("onStartConfigResyncNotification");
475       }
476
477       public onStartConfigResyncNotification_args getEmptyArgsInstance() {
478         return new onStartConfigResyncNotification_args();
479       }
480
481       public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
482         final org.apache.thrift.AsyncProcessFunction fcall = this;
483         return new AsyncMethodCallback<Void>() { 
484           public void onComplete(Void o) {
485           }
486           public void onError(Exception e) {
487           }
488         };
489       }
490
491       protected boolean isOneway() {
492         return true;
493       }
494
495       public void start(I iface, onStartConfigResyncNotification_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
496         iface.onStartConfigResyncNotification(resultHandler);
497       }
498     }
499
500     public static class onNotificationSendEvent<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onNotificationSendEvent_args, Void> {
501       public onNotificationSendEvent() {
502         super("onNotificationSendEvent");
503       }
504
505       public onNotificationSendEvent_args getEmptyArgsInstance() {
506         return new onNotificationSendEvent_args();
507       }
508
509       public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
510         final org.apache.thrift.AsyncProcessFunction fcall = this;
511         return new AsyncMethodCallback<Void>() { 
512           public void onComplete(Void o) {
513           }
514           public void onError(Exception e) {
515           }
516         };
517       }
518
519       protected boolean isOneway() {
520         return true;
521       }
522
523       public void start(I iface, onNotificationSendEvent_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
524         iface.onNotificationSendEvent(args.prefix, args.errCode, args.errSubcode,resultHandler);
525       }
526     }
527
528   }
529
530   public static class onUpdatePushRoute_args implements org.apache.thrift.TBase<onUpdatePushRoute_args, onUpdatePushRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<onUpdatePushRoute_args>   {
531     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onUpdatePushRoute_args");
532
533     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);
534     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);
535     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);
536     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);
537     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);
538
539     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
540     static {
541       schemes.put(StandardScheme.class, new onUpdatePushRoute_argsStandardSchemeFactory());
542       schemes.put(TupleScheme.class, new onUpdatePushRoute_argsTupleSchemeFactory());
543     }
544
545     public String rd; // required
546     public String prefix; // required
547     public int prefixlen; // required
548     public String nexthop; // required
549     public int label; // required
550
551     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
552     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553       RD((short)1, "rd"),
554       PREFIX((short)2, "prefix"),
555       PREFIXLEN((short)3, "prefixlen"),
556       NEXTHOP((short)4, "nexthop"),
557       LABEL((short)5, "label");
558
559       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
560
561       static {
562         for (_Fields field : EnumSet.allOf(_Fields.class)) {
563           byName.put(field.getFieldName(), field);
564         }
565       }
566
567       /**
568        * Find the _Fields constant that matches fieldId, or null if its not found.
569        */
570       public static _Fields findByThriftId(int fieldId) {
571         switch(fieldId) {
572           case 1: // RD
573             return RD;
574           case 2: // PREFIX
575             return PREFIX;
576           case 3: // PREFIXLEN
577             return PREFIXLEN;
578           case 4: // NEXTHOP
579             return NEXTHOP;
580           case 5: // LABEL
581             return LABEL;
582           default:
583             return null;
584         }
585       }
586
587       /**
588        * Find the _Fields constant that matches fieldId, throwing an exception
589        * if it is not found.
590        */
591       public static _Fields findByThriftIdOrThrow(int fieldId) {
592         _Fields fields = findByThriftId(fieldId);
593         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
594         return fields;
595       }
596
597       /**
598        * Find the _Fields constant that matches name, or null if its not found.
599        */
600       public static _Fields findByName(String name) {
601         return byName.get(name);
602       }
603
604       private final short _thriftId;
605       private final String _fieldName;
606
607       _Fields(short thriftId, String fieldName) {
608         _thriftId = thriftId;
609         _fieldName = fieldName;
610       }
611
612       public short getThriftFieldId() {
613         return _thriftId;
614       }
615
616       public String getFieldName() {
617         return _fieldName;
618       }
619     }
620
621     // isset id assignments
622     private static final int __PREFIXLEN_ISSET_ID = 0;
623     private static final int __LABEL_ISSET_ID = 1;
624     private byte __isset_bitfield = 0;
625     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
626     static {
627       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
628       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT, 
629           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
630       tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT, 
631           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
632       tmpMap.put(_Fields.PREFIXLEN, new org.apache.thrift.meta_data.FieldMetaData("prefixlen", org.apache.thrift.TFieldRequirementType.DEFAULT, 
633           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
634       tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT, 
635           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
636       tmpMap.put(_Fields.LABEL, new org.apache.thrift.meta_data.FieldMetaData("label", org.apache.thrift.TFieldRequirementType.DEFAULT, 
637           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
638       metaDataMap = Collections.unmodifiableMap(tmpMap);
639       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onUpdatePushRoute_args.class, metaDataMap);
640     }
641
642     public onUpdatePushRoute_args() {
643     }
644
645     public onUpdatePushRoute_args(
646       String rd,
647       String prefix,
648       int prefixlen,
649       String nexthop,
650       int label)
651     {
652       this();
653       this.rd = rd;
654       this.prefix = prefix;
655       this.prefixlen = prefixlen;
656       setPrefixlenIsSet(true);
657       this.nexthop = nexthop;
658       this.label = label;
659       setLabelIsSet(true);
660     }
661
662     /**
663      * Performs a deep copy on <i>other</i>.
664      */
665     public onUpdatePushRoute_args(onUpdatePushRoute_args other) {
666       __isset_bitfield = other.__isset_bitfield;
667       if (other.isSetRd()) {
668         this.rd = other.rd;
669       }
670       if (other.isSetPrefix()) {
671         this.prefix = other.prefix;
672       }
673       this.prefixlen = other.prefixlen;
674       if (other.isSetNexthop()) {
675         this.nexthop = other.nexthop;
676       }
677       this.label = other.label;
678     }
679
680     public onUpdatePushRoute_args deepCopy() {
681       return new onUpdatePushRoute_args(this);
682     }
683
684     @Override
685     public void clear() {
686       this.rd = null;
687       this.prefix = null;
688       setPrefixlenIsSet(false);
689       this.prefixlen = 0;
690       this.nexthop = null;
691       setLabelIsSet(false);
692       this.label = 0;
693     }
694
695     public String getRd() {
696       return this.rd;
697     }
698
699     public onUpdatePushRoute_args setRd(String rd) {
700       this.rd = rd;
701       return this;
702     }
703
704     public void unsetRd() {
705       this.rd = null;
706     }
707
708     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
709     public boolean isSetRd() {
710       return this.rd != null;
711     }
712
713     public void setRdIsSet(boolean value) {
714       if (!value) {
715         this.rd = null;
716       }
717     }
718
719     public String getPrefix() {
720       return this.prefix;
721     }
722
723     public onUpdatePushRoute_args setPrefix(String prefix) {
724       this.prefix = prefix;
725       return this;
726     }
727
728     public void unsetPrefix() {
729       this.prefix = null;
730     }
731
732     /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
733     public boolean isSetPrefix() {
734       return this.prefix != null;
735     }
736
737     public void setPrefixIsSet(boolean value) {
738       if (!value) {
739         this.prefix = null;
740       }
741     }
742
743     public int getPrefixlen() {
744       return this.prefixlen;
745     }
746
747     public onUpdatePushRoute_args setPrefixlen(int prefixlen) {
748       this.prefixlen = prefixlen;
749       setPrefixlenIsSet(true);
750       return this;
751     }
752
753     public void unsetPrefixlen() {
754       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
755     }
756
757     /** Returns true if field prefixlen is set (has been assigned a value) and false otherwise */
758     public boolean isSetPrefixlen() {
759       return EncodingUtils.testBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
760     }
761
762     public void setPrefixlenIsSet(boolean value) {
763       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PREFIXLEN_ISSET_ID, value);
764     }
765
766     public String getNexthop() {
767       return this.nexthop;
768     }
769
770     public onUpdatePushRoute_args setNexthop(String nexthop) {
771       this.nexthop = nexthop;
772       return this;
773     }
774
775     public void unsetNexthop() {
776       this.nexthop = null;
777     }
778
779     /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
780     public boolean isSetNexthop() {
781       return this.nexthop != null;
782     }
783
784     public void setNexthopIsSet(boolean value) {
785       if (!value) {
786         this.nexthop = null;
787       }
788     }
789
790     public int getLabel() {
791       return this.label;
792     }
793
794     public onUpdatePushRoute_args setLabel(int label) {
795       this.label = label;
796       setLabelIsSet(true);
797       return this;
798     }
799
800     public void unsetLabel() {
801       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LABEL_ISSET_ID);
802     }
803
804     /** Returns true if field label is set (has been assigned a value) and false otherwise */
805     public boolean isSetLabel() {
806       return EncodingUtils.testBit(__isset_bitfield, __LABEL_ISSET_ID);
807     }
808
809     public void setLabelIsSet(boolean value) {
810       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LABEL_ISSET_ID, value);
811     }
812
813     public void setFieldValue(_Fields field, Object value) {
814       switch (field) {
815       case RD:
816         if (value == null) {
817           unsetRd();
818         } else {
819           setRd((String)value);
820         }
821         break;
822
823       case PREFIX:
824         if (value == null) {
825           unsetPrefix();
826         } else {
827           setPrefix((String)value);
828         }
829         break;
830
831       case PREFIXLEN:
832         if (value == null) {
833           unsetPrefixlen();
834         } else {
835           setPrefixlen((Integer)value);
836         }
837         break;
838
839       case NEXTHOP:
840         if (value == null) {
841           unsetNexthop();
842         } else {
843           setNexthop((String)value);
844         }
845         break;
846
847       case LABEL:
848         if (value == null) {
849           unsetLabel();
850         } else {
851           setLabel((Integer)value);
852         }
853         break;
854
855       }
856     }
857
858     public Object getFieldValue(_Fields field) {
859       switch (field) {
860       case RD:
861         return getRd();
862
863       case PREFIX:
864         return getPrefix();
865
866       case PREFIXLEN:
867         return Integer.valueOf(getPrefixlen());
868
869       case NEXTHOP:
870         return getNexthop();
871
872       case LABEL:
873         return Integer.valueOf(getLabel());
874
875       }
876       throw new IllegalStateException();
877     }
878
879     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
880     public boolean isSet(_Fields field) {
881       if (field == null) {
882         throw new IllegalArgumentException();
883       }
884
885       switch (field) {
886       case RD:
887         return isSetRd();
888       case PREFIX:
889         return isSetPrefix();
890       case PREFIXLEN:
891         return isSetPrefixlen();
892       case NEXTHOP:
893         return isSetNexthop();
894       case LABEL:
895         return isSetLabel();
896       }
897       throw new IllegalStateException();
898     }
899
900     @Override
901     public boolean equals(Object that) {
902       if (that == null)
903         return false;
904       if (that instanceof onUpdatePushRoute_args)
905         return this.equals((onUpdatePushRoute_args)that);
906       return false;
907     }
908
909     public boolean equals(onUpdatePushRoute_args that) {
910       if (that == null)
911         return false;
912
913       boolean this_present_rd = true && this.isSetRd();
914       boolean that_present_rd = true && that.isSetRd();
915       if (this_present_rd || that_present_rd) {
916         if (!(this_present_rd && that_present_rd))
917           return false;
918         if (!this.rd.equals(that.rd))
919           return false;
920       }
921
922       boolean this_present_prefix = true && this.isSetPrefix();
923       boolean that_present_prefix = true && that.isSetPrefix();
924       if (this_present_prefix || that_present_prefix) {
925         if (!(this_present_prefix && that_present_prefix))
926           return false;
927         if (!this.prefix.equals(that.prefix))
928           return false;
929       }
930
931       boolean this_present_prefixlen = true;
932       boolean that_present_prefixlen = true;
933       if (this_present_prefixlen || that_present_prefixlen) {
934         if (!(this_present_prefixlen && that_present_prefixlen))
935           return false;
936         if (this.prefixlen != that.prefixlen)
937           return false;
938       }
939
940       boolean this_present_nexthop = true && this.isSetNexthop();
941       boolean that_present_nexthop = true && that.isSetNexthop();
942       if (this_present_nexthop || that_present_nexthop) {
943         if (!(this_present_nexthop && that_present_nexthop))
944           return false;
945         if (!this.nexthop.equals(that.nexthop))
946           return false;
947       }
948
949       boolean this_present_label = true;
950       boolean that_present_label = true;
951       if (this_present_label || that_present_label) {
952         if (!(this_present_label && that_present_label))
953           return false;
954         if (this.label != that.label)
955           return false;
956       }
957
958       return true;
959     }
960
961     @Override
962     public int hashCode() {
963       return 0;
964     }
965
966     @Override
967     public int compareTo(onUpdatePushRoute_args other) {
968       if (!getClass().equals(other.getClass())) {
969         return getClass().getName().compareTo(other.getClass().getName());
970       }
971
972       int lastComparison = 0;
973
974       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
975       if (lastComparison != 0) {
976         return lastComparison;
977       }
978       if (isSetRd()) {
979         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
980         if (lastComparison != 0) {
981           return lastComparison;
982         }
983       }
984       lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
985       if (lastComparison != 0) {
986         return lastComparison;
987       }
988       if (isSetPrefix()) {
989         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
990         if (lastComparison != 0) {
991           return lastComparison;
992         }
993       }
994       lastComparison = Boolean.valueOf(isSetPrefixlen()).compareTo(other.isSetPrefixlen());
995       if (lastComparison != 0) {
996         return lastComparison;
997       }
998       if (isSetPrefixlen()) {
999         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefixlen, other.prefixlen);
1000         if (lastComparison != 0) {
1001           return lastComparison;
1002         }
1003       }
1004       lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
1005       if (lastComparison != 0) {
1006         return lastComparison;
1007       }
1008       if (isSetNexthop()) {
1009         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
1010         if (lastComparison != 0) {
1011           return lastComparison;
1012         }
1013       }
1014       lastComparison = Boolean.valueOf(isSetLabel()).compareTo(other.isSetLabel());
1015       if (lastComparison != 0) {
1016         return lastComparison;
1017       }
1018       if (isSetLabel()) {
1019         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.label, other.label);
1020         if (lastComparison != 0) {
1021           return lastComparison;
1022         }
1023       }
1024       return 0;
1025     }
1026
1027     public _Fields fieldForId(int fieldId) {
1028       return _Fields.findByThriftId(fieldId);
1029     }
1030
1031     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1032       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
1033     }
1034
1035     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1036       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
1037     }
1038
1039     @Override
1040     public String toString() {
1041       StringBuilder sb = new StringBuilder("onUpdatePushRoute_args(");
1042       boolean first = true;
1043
1044       sb.append("rd:");
1045       if (this.rd == null) {
1046         sb.append("null");
1047       } else {
1048         sb.append(this.rd);
1049       }
1050       first = false;
1051       if (!first) sb.append(", ");
1052       sb.append("prefix:");
1053       if (this.prefix == null) {
1054         sb.append("null");
1055       } else {
1056         sb.append(this.prefix);
1057       }
1058       first = false;
1059       if (!first) sb.append(", ");
1060       sb.append("prefixlen:");
1061       sb.append(this.prefixlen);
1062       first = false;
1063       if (!first) sb.append(", ");
1064       sb.append("nexthop:");
1065       if (this.nexthop == null) {
1066         sb.append("null");
1067       } else {
1068         sb.append(this.nexthop);
1069       }
1070       first = false;
1071       if (!first) sb.append(", ");
1072       sb.append("label:");
1073       sb.append(this.label);
1074       first = false;
1075       sb.append(")");
1076       return sb.toString();
1077     }
1078
1079     public void validate() throws org.apache.thrift.TException {
1080       // check for required fields
1081       // check for sub-struct validity
1082     }
1083
1084     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1085       try {
1086         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1087       } catch (org.apache.thrift.TException te) {
1088         throw new java.io.IOException(te);
1089       }
1090     }
1091
1092     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1093       try {
1094         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1095         __isset_bitfield = 0;
1096         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1097       } catch (org.apache.thrift.TException te) {
1098         throw new java.io.IOException(te);
1099       }
1100     }
1101
1102     private static class onUpdatePushRoute_argsStandardSchemeFactory implements SchemeFactory {
1103       public onUpdatePushRoute_argsStandardScheme getScheme() {
1104         return new onUpdatePushRoute_argsStandardScheme();
1105       }
1106     }
1107
1108     private static class onUpdatePushRoute_argsStandardScheme extends StandardScheme<onUpdatePushRoute_args> {
1109
1110       public void read(org.apache.thrift.protocol.TProtocol iprot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1111         org.apache.thrift.protocol.TField schemeField;
1112         iprot.readStructBegin();
1113         while (true)
1114         {
1115           schemeField = iprot.readFieldBegin();
1116           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
1117             break;
1118           }
1119           switch (schemeField.id) {
1120             case 1: // RD
1121               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1122                 struct.rd = iprot.readString();
1123                 struct.setRdIsSet(true);
1124               } else { 
1125                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1126               }
1127               break;
1128             case 2: // PREFIX
1129               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1130                 struct.prefix = iprot.readString();
1131                 struct.setPrefixIsSet(true);
1132               } else { 
1133                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1134               }
1135               break;
1136             case 3: // PREFIXLEN
1137               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1138                 struct.prefixlen = iprot.readI32();
1139                 struct.setPrefixlenIsSet(true);
1140               } else { 
1141                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1142               }
1143               break;
1144             case 4: // NEXTHOP
1145               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1146                 struct.nexthop = iprot.readString();
1147                 struct.setNexthopIsSet(true);
1148               } else { 
1149                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1150               }
1151               break;
1152             case 5: // LABEL
1153               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1154                 struct.label = iprot.readI32();
1155                 struct.setLabelIsSet(true);
1156               } else { 
1157                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1158               }
1159               break;
1160             default:
1161               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1162           }
1163           iprot.readFieldEnd();
1164         }
1165         iprot.readStructEnd();
1166
1167         // check for required fields of primitive type, which can't be checked in the validate method
1168         struct.validate();
1169       }
1170
1171       public void write(org.apache.thrift.protocol.TProtocol oprot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1172         struct.validate();
1173
1174         oprot.writeStructBegin(STRUCT_DESC);
1175         if (struct.rd != null) {
1176           oprot.writeFieldBegin(RD_FIELD_DESC);
1177           oprot.writeString(struct.rd);
1178           oprot.writeFieldEnd();
1179         }
1180         if (struct.prefix != null) {
1181           oprot.writeFieldBegin(PREFIX_FIELD_DESC);
1182           oprot.writeString(struct.prefix);
1183           oprot.writeFieldEnd();
1184         }
1185         oprot.writeFieldBegin(PREFIXLEN_FIELD_DESC);
1186         oprot.writeI32(struct.prefixlen);
1187         oprot.writeFieldEnd();
1188         if (struct.nexthop != null) {
1189           oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
1190           oprot.writeString(struct.nexthop);
1191           oprot.writeFieldEnd();
1192         }
1193         oprot.writeFieldBegin(LABEL_FIELD_DESC);
1194         oprot.writeI32(struct.label);
1195         oprot.writeFieldEnd();
1196         oprot.writeFieldStop();
1197         oprot.writeStructEnd();
1198       }
1199
1200     }
1201
1202     private static class onUpdatePushRoute_argsTupleSchemeFactory implements SchemeFactory {
1203       public onUpdatePushRoute_argsTupleScheme getScheme() {
1204         return new onUpdatePushRoute_argsTupleScheme();
1205       }
1206     }
1207
1208     private static class onUpdatePushRoute_argsTupleScheme extends TupleScheme<onUpdatePushRoute_args> {
1209
1210       @Override
1211       public void write(org.apache.thrift.protocol.TProtocol prot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1212         TTupleProtocol oprot = (TTupleProtocol) prot;
1213         BitSet optionals = new BitSet();
1214         if (struct.isSetRd()) {
1215           optionals.set(0);
1216         }
1217         if (struct.isSetPrefix()) {
1218           optionals.set(1);
1219         }
1220         if (struct.isSetPrefixlen()) {
1221           optionals.set(2);
1222         }
1223         if (struct.isSetNexthop()) {
1224           optionals.set(3);
1225         }
1226         if (struct.isSetLabel()) {
1227           optionals.set(4);
1228         }
1229         oprot.writeBitSet(optionals, 5);
1230         if (struct.isSetRd()) {
1231           oprot.writeString(struct.rd);
1232         }
1233         if (struct.isSetPrefix()) {
1234           oprot.writeString(struct.prefix);
1235         }
1236         if (struct.isSetPrefixlen()) {
1237           oprot.writeI32(struct.prefixlen);
1238         }
1239         if (struct.isSetNexthop()) {
1240           oprot.writeString(struct.nexthop);
1241         }
1242         if (struct.isSetLabel()) {
1243           oprot.writeI32(struct.label);
1244         }
1245       }
1246
1247       @Override
1248       public void read(org.apache.thrift.protocol.TProtocol prot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1249         TTupleProtocol iprot = (TTupleProtocol) prot;
1250         BitSet incoming = iprot.readBitSet(5);
1251         if (incoming.get(0)) {
1252           struct.rd = iprot.readString();
1253           struct.setRdIsSet(true);
1254         }
1255         if (incoming.get(1)) {
1256           struct.prefix = iprot.readString();
1257           struct.setPrefixIsSet(true);
1258         }
1259         if (incoming.get(2)) {
1260           struct.prefixlen = iprot.readI32();
1261           struct.setPrefixlenIsSet(true);
1262         }
1263         if (incoming.get(3)) {
1264           struct.nexthop = iprot.readString();
1265           struct.setNexthopIsSet(true);
1266         }
1267         if (incoming.get(4)) {
1268           struct.label = iprot.readI32();
1269           struct.setLabelIsSet(true);
1270         }
1271       }
1272     }
1273
1274   }
1275
1276   public static class onUpdateWithdrawRoute_args implements org.apache.thrift.TBase<onUpdateWithdrawRoute_args, onUpdateWithdrawRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<onUpdateWithdrawRoute_args>   {
1277     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onUpdateWithdrawRoute_args");
1278
1279     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);
1280     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);
1281     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);
1282
1283     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
1284     static {
1285       schemes.put(StandardScheme.class, new onUpdateWithdrawRoute_argsStandardSchemeFactory());
1286       schemes.put(TupleScheme.class, new onUpdateWithdrawRoute_argsTupleSchemeFactory());
1287     }
1288
1289     public String rd; // required
1290     public String prefix; // required
1291     public int prefixlen; // required
1292
1293     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1294     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1295       RD((short)1, "rd"),
1296       PREFIX((short)2, "prefix"),
1297       PREFIXLEN((short)3, "prefixlen");
1298
1299       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1300
1301       static {
1302         for (_Fields field : EnumSet.allOf(_Fields.class)) {
1303           byName.put(field.getFieldName(), field);
1304         }
1305       }
1306
1307       /**
1308        * Find the _Fields constant that matches fieldId, or null if its not found.
1309        */
1310       public static _Fields findByThriftId(int fieldId) {
1311         switch(fieldId) {
1312           case 1: // RD
1313             return RD;
1314           case 2: // PREFIX
1315             return PREFIX;
1316           case 3: // PREFIXLEN
1317             return PREFIXLEN;
1318           default:
1319             return null;
1320         }
1321       }
1322
1323       /**
1324        * Find the _Fields constant that matches fieldId, throwing an exception
1325        * if it is not found.
1326        */
1327       public static _Fields findByThriftIdOrThrow(int fieldId) {
1328         _Fields fields = findByThriftId(fieldId);
1329         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1330         return fields;
1331       }
1332
1333       /**
1334        * Find the _Fields constant that matches name, or null if its not found.
1335        */
1336       public static _Fields findByName(String name) {
1337         return byName.get(name);
1338       }
1339
1340       private final short _thriftId;
1341       private final String _fieldName;
1342
1343       _Fields(short thriftId, String fieldName) {
1344         _thriftId = thriftId;
1345         _fieldName = fieldName;
1346       }
1347
1348       public short getThriftFieldId() {
1349         return _thriftId;
1350       }
1351
1352       public String getFieldName() {
1353         return _fieldName;
1354       }
1355     }
1356
1357     // isset id assignments
1358     private static final int __PREFIXLEN_ISSET_ID = 0;
1359     private byte __isset_bitfield = 0;
1360     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1361     static {
1362       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1363       tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1364           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1365       tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1366           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1367       tmpMap.put(_Fields.PREFIXLEN, new org.apache.thrift.meta_data.FieldMetaData("prefixlen", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1368           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
1369       metaDataMap = Collections.unmodifiableMap(tmpMap);
1370       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onUpdateWithdrawRoute_args.class, metaDataMap);
1371     }
1372
1373     public onUpdateWithdrawRoute_args() {
1374     }
1375
1376     public onUpdateWithdrawRoute_args(
1377       String rd,
1378       String prefix,
1379       int prefixlen)
1380     {
1381       this();
1382       this.rd = rd;
1383       this.prefix = prefix;
1384       this.prefixlen = prefixlen;
1385       setPrefixlenIsSet(true);
1386     }
1387
1388     /**
1389      * Performs a deep copy on <i>other</i>.
1390      */
1391     public onUpdateWithdrawRoute_args(onUpdateWithdrawRoute_args other) {
1392       __isset_bitfield = other.__isset_bitfield;
1393       if (other.isSetRd()) {
1394         this.rd = other.rd;
1395       }
1396       if (other.isSetPrefix()) {
1397         this.prefix = other.prefix;
1398       }
1399       this.prefixlen = other.prefixlen;
1400     }
1401
1402     public onUpdateWithdrawRoute_args deepCopy() {
1403       return new onUpdateWithdrawRoute_args(this);
1404     }
1405
1406     @Override
1407     public void clear() {
1408       this.rd = null;
1409       this.prefix = null;
1410       setPrefixlenIsSet(false);
1411       this.prefixlen = 0;
1412     }
1413
1414     public String getRd() {
1415       return this.rd;
1416     }
1417
1418     public onUpdateWithdrawRoute_args setRd(String rd) {
1419       this.rd = rd;
1420       return this;
1421     }
1422
1423     public void unsetRd() {
1424       this.rd = null;
1425     }
1426
1427     /** Returns true if field rd is set (has been assigned a value) and false otherwise */
1428     public boolean isSetRd() {
1429       return this.rd != null;
1430     }
1431
1432     public void setRdIsSet(boolean value) {
1433       if (!value) {
1434         this.rd = null;
1435       }
1436     }
1437
1438     public String getPrefix() {
1439       return this.prefix;
1440     }
1441
1442     public onUpdateWithdrawRoute_args setPrefix(String prefix) {
1443       this.prefix = prefix;
1444       return this;
1445     }
1446
1447     public void unsetPrefix() {
1448       this.prefix = null;
1449     }
1450
1451     /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
1452     public boolean isSetPrefix() {
1453       return this.prefix != null;
1454     }
1455
1456     public void setPrefixIsSet(boolean value) {
1457       if (!value) {
1458         this.prefix = null;
1459       }
1460     }
1461
1462     public int getPrefixlen() {
1463       return this.prefixlen;
1464     }
1465
1466     public onUpdateWithdrawRoute_args setPrefixlen(int prefixlen) {
1467       this.prefixlen = prefixlen;
1468       setPrefixlenIsSet(true);
1469       return this;
1470     }
1471
1472     public void unsetPrefixlen() {
1473       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
1474     }
1475
1476     /** Returns true if field prefixlen is set (has been assigned a value) and false otherwise */
1477     public boolean isSetPrefixlen() {
1478       return EncodingUtils.testBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
1479     }
1480
1481     public void setPrefixlenIsSet(boolean value) {
1482       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PREFIXLEN_ISSET_ID, value);
1483     }
1484
1485     public void setFieldValue(_Fields field, Object value) {
1486       switch (field) {
1487       case RD:
1488         if (value == null) {
1489           unsetRd();
1490         } else {
1491           setRd((String)value);
1492         }
1493         break;
1494
1495       case PREFIX:
1496         if (value == null) {
1497           unsetPrefix();
1498         } else {
1499           setPrefix((String)value);
1500         }
1501         break;
1502
1503       case PREFIXLEN:
1504         if (value == null) {
1505           unsetPrefixlen();
1506         } else {
1507           setPrefixlen((Integer)value);
1508         }
1509         break;
1510
1511       }
1512     }
1513
1514     public Object getFieldValue(_Fields field) {
1515       switch (field) {
1516       case RD:
1517         return getRd();
1518
1519       case PREFIX:
1520         return getPrefix();
1521
1522       case PREFIXLEN:
1523         return Integer.valueOf(getPrefixlen());
1524
1525       }
1526       throw new IllegalStateException();
1527     }
1528
1529     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1530     public boolean isSet(_Fields field) {
1531       if (field == null) {
1532         throw new IllegalArgumentException();
1533       }
1534
1535       switch (field) {
1536       case RD:
1537         return isSetRd();
1538       case PREFIX:
1539         return isSetPrefix();
1540       case PREFIXLEN:
1541         return isSetPrefixlen();
1542       }
1543       throw new IllegalStateException();
1544     }
1545
1546     @Override
1547     public boolean equals(Object that) {
1548       if (that == null)
1549         return false;
1550       if (that instanceof onUpdateWithdrawRoute_args)
1551         return this.equals((onUpdateWithdrawRoute_args)that);
1552       return false;
1553     }
1554
1555     public boolean equals(onUpdateWithdrawRoute_args that) {
1556       if (that == null)
1557         return false;
1558
1559       boolean this_present_rd = true && this.isSetRd();
1560       boolean that_present_rd = true && that.isSetRd();
1561       if (this_present_rd || that_present_rd) {
1562         if (!(this_present_rd && that_present_rd))
1563           return false;
1564         if (!this.rd.equals(that.rd))
1565           return false;
1566       }
1567
1568       boolean this_present_prefix = true && this.isSetPrefix();
1569       boolean that_present_prefix = true && that.isSetPrefix();
1570       if (this_present_prefix || that_present_prefix) {
1571         if (!(this_present_prefix && that_present_prefix))
1572           return false;
1573         if (!this.prefix.equals(that.prefix))
1574           return false;
1575       }
1576
1577       boolean this_present_prefixlen = true;
1578       boolean that_present_prefixlen = true;
1579       if (this_present_prefixlen || that_present_prefixlen) {
1580         if (!(this_present_prefixlen && that_present_prefixlen))
1581           return false;
1582         if (this.prefixlen != that.prefixlen)
1583           return false;
1584       }
1585
1586       return true;
1587     }
1588
1589     @Override
1590     public int hashCode() {
1591       return 0;
1592     }
1593
1594     @Override
1595     public int compareTo(onUpdateWithdrawRoute_args other) {
1596       if (!getClass().equals(other.getClass())) {
1597         return getClass().getName().compareTo(other.getClass().getName());
1598       }
1599
1600       int lastComparison = 0;
1601
1602       lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
1603       if (lastComparison != 0) {
1604         return lastComparison;
1605       }
1606       if (isSetRd()) {
1607         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
1608         if (lastComparison != 0) {
1609           return lastComparison;
1610         }
1611       }
1612       lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
1613       if (lastComparison != 0) {
1614         return lastComparison;
1615       }
1616       if (isSetPrefix()) {
1617         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
1618         if (lastComparison != 0) {
1619           return lastComparison;
1620         }
1621       }
1622       lastComparison = Boolean.valueOf(isSetPrefixlen()).compareTo(other.isSetPrefixlen());
1623       if (lastComparison != 0) {
1624         return lastComparison;
1625       }
1626       if (isSetPrefixlen()) {
1627         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefixlen, other.prefixlen);
1628         if (lastComparison != 0) {
1629           return lastComparison;
1630         }
1631       }
1632       return 0;
1633     }
1634
1635     public _Fields fieldForId(int fieldId) {
1636       return _Fields.findByThriftId(fieldId);
1637     }
1638
1639     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1640       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
1641     }
1642
1643     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1644       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
1645     }
1646
1647     @Override
1648     public String toString() {
1649       StringBuilder sb = new StringBuilder("onUpdateWithdrawRoute_args(");
1650       boolean first = true;
1651
1652       sb.append("rd:");
1653       if (this.rd == null) {
1654         sb.append("null");
1655       } else {
1656         sb.append(this.rd);
1657       }
1658       first = false;
1659       if (!first) sb.append(", ");
1660       sb.append("prefix:");
1661       if (this.prefix == null) {
1662         sb.append("null");
1663       } else {
1664         sb.append(this.prefix);
1665       }
1666       first = false;
1667       if (!first) sb.append(", ");
1668       sb.append("prefixlen:");
1669       sb.append(this.prefixlen);
1670       first = false;
1671       sb.append(")");
1672       return sb.toString();
1673     }
1674
1675     public void validate() throws org.apache.thrift.TException {
1676       // check for required fields
1677       // check for sub-struct validity
1678     }
1679
1680     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1681       try {
1682         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1683       } catch (org.apache.thrift.TException te) {
1684         throw new java.io.IOException(te);
1685       }
1686     }
1687
1688     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1689       try {
1690         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1691         __isset_bitfield = 0;
1692         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1693       } catch (org.apache.thrift.TException te) {
1694         throw new java.io.IOException(te);
1695       }
1696     }
1697
1698     private static class onUpdateWithdrawRoute_argsStandardSchemeFactory implements SchemeFactory {
1699       public onUpdateWithdrawRoute_argsStandardScheme getScheme() {
1700         return new onUpdateWithdrawRoute_argsStandardScheme();
1701       }
1702     }
1703
1704     private static class onUpdateWithdrawRoute_argsStandardScheme extends StandardScheme<onUpdateWithdrawRoute_args> {
1705
1706       public void read(org.apache.thrift.protocol.TProtocol iprot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
1707         org.apache.thrift.protocol.TField schemeField;
1708         iprot.readStructBegin();
1709         while (true)
1710         {
1711           schemeField = iprot.readFieldBegin();
1712           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
1713             break;
1714           }
1715           switch (schemeField.id) {
1716             case 1: // RD
1717               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1718                 struct.rd = iprot.readString();
1719                 struct.setRdIsSet(true);
1720               } else { 
1721                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1722               }
1723               break;
1724             case 2: // PREFIX
1725               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1726                 struct.prefix = iprot.readString();
1727                 struct.setPrefixIsSet(true);
1728               } else { 
1729                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1730               }
1731               break;
1732             case 3: // PREFIXLEN
1733               if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1734                 struct.prefixlen = iprot.readI32();
1735                 struct.setPrefixlenIsSet(true);
1736               } else { 
1737                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1738               }
1739               break;
1740             default:
1741               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1742           }
1743           iprot.readFieldEnd();
1744         }
1745         iprot.readStructEnd();
1746
1747         // check for required fields of primitive type, which can't be checked in the validate method
1748         struct.validate();
1749       }
1750
1751       public void write(org.apache.thrift.protocol.TProtocol oprot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
1752         struct.validate();
1753
1754         oprot.writeStructBegin(STRUCT_DESC);
1755         if (struct.rd != null) {
1756           oprot.writeFieldBegin(RD_FIELD_DESC);
1757           oprot.writeString(struct.rd);
1758           oprot.writeFieldEnd();
1759         }
1760         if (struct.prefix != null) {
1761           oprot.writeFieldBegin(PREFIX_FIELD_DESC);
1762           oprot.writeString(struct.prefix);
1763           oprot.writeFieldEnd();
1764         }
1765         oprot.writeFieldBegin(PREFIXLEN_FIELD_DESC);
1766         oprot.writeI32(struct.prefixlen);
1767         oprot.writeFieldEnd();
1768         oprot.writeFieldStop();
1769         oprot.writeStructEnd();
1770       }
1771
1772     }
1773
1774     private static class onUpdateWithdrawRoute_argsTupleSchemeFactory implements SchemeFactory {
1775       public onUpdateWithdrawRoute_argsTupleScheme getScheme() {
1776         return new onUpdateWithdrawRoute_argsTupleScheme();
1777       }
1778     }
1779
1780     private static class onUpdateWithdrawRoute_argsTupleScheme extends TupleScheme<onUpdateWithdrawRoute_args> {
1781
1782       @Override
1783       public void write(org.apache.thrift.protocol.TProtocol prot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
1784         TTupleProtocol oprot = (TTupleProtocol) prot;
1785         BitSet optionals = new BitSet();
1786         if (struct.isSetRd()) {
1787           optionals.set(0);
1788         }
1789         if (struct.isSetPrefix()) {
1790           optionals.set(1);
1791         }
1792         if (struct.isSetPrefixlen()) {
1793           optionals.set(2);
1794         }
1795         oprot.writeBitSet(optionals, 3);
1796         if (struct.isSetRd()) {
1797           oprot.writeString(struct.rd);
1798         }
1799         if (struct.isSetPrefix()) {
1800           oprot.writeString(struct.prefix);
1801         }
1802         if (struct.isSetPrefixlen()) {
1803           oprot.writeI32(struct.prefixlen);
1804         }
1805       }
1806
1807       @Override
1808       public void read(org.apache.thrift.protocol.TProtocol prot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
1809         TTupleProtocol iprot = (TTupleProtocol) prot;
1810         BitSet incoming = iprot.readBitSet(3);
1811         if (incoming.get(0)) {
1812           struct.rd = iprot.readString();
1813           struct.setRdIsSet(true);
1814         }
1815         if (incoming.get(1)) {
1816           struct.prefix = iprot.readString();
1817           struct.setPrefixIsSet(true);
1818         }
1819         if (incoming.get(2)) {
1820           struct.prefixlen = iprot.readI32();
1821           struct.setPrefixlenIsSet(true);
1822         }
1823       }
1824     }
1825
1826   }
1827
1828   public static class onStartConfigResyncNotification_args implements org.apache.thrift.TBase<onStartConfigResyncNotification_args, onStartConfigResyncNotification_args._Fields>, java.io.Serializable, Cloneable, Comparable<onStartConfigResyncNotification_args>   {
1829     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onStartConfigResyncNotification_args");
1830
1831
1832     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
1833     static {
1834       schemes.put(StandardScheme.class, new onStartConfigResyncNotification_argsStandardSchemeFactory());
1835       schemes.put(TupleScheme.class, new onStartConfigResyncNotification_argsTupleSchemeFactory());
1836     }
1837
1838
1839     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1840     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1841 ;
1842
1843       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1844
1845       static {
1846         for (_Fields field : EnumSet.allOf(_Fields.class)) {
1847           byName.put(field.getFieldName(), field);
1848         }
1849       }
1850
1851       /**
1852        * Find the _Fields constant that matches fieldId, or null if its not found.
1853        */
1854       public static _Fields findByThriftId(int fieldId) {
1855         switch(fieldId) {
1856           default:
1857             return null;
1858         }
1859       }
1860
1861       /**
1862        * Find the _Fields constant that matches fieldId, throwing an exception
1863        * if it is not found.
1864        */
1865       public static _Fields findByThriftIdOrThrow(int fieldId) {
1866         _Fields fields = findByThriftId(fieldId);
1867         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1868         return fields;
1869       }
1870
1871       /**
1872        * Find the _Fields constant that matches name, or null if its not found.
1873        */
1874       public static _Fields findByName(String name) {
1875         return byName.get(name);
1876       }
1877
1878       private final short _thriftId;
1879       private final String _fieldName;
1880
1881       _Fields(short thriftId, String fieldName) {
1882         _thriftId = thriftId;
1883         _fieldName = fieldName;
1884       }
1885
1886       public short getThriftFieldId() {
1887         return _thriftId;
1888       }
1889
1890       public String getFieldName() {
1891         return _fieldName;
1892       }
1893     }
1894     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1895     static {
1896       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1897       metaDataMap = Collections.unmodifiableMap(tmpMap);
1898       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onStartConfigResyncNotification_args.class, metaDataMap);
1899     }
1900
1901     public onStartConfigResyncNotification_args() {
1902     }
1903
1904     /**
1905      * Performs a deep copy on <i>other</i>.
1906      */
1907     public onStartConfigResyncNotification_args(onStartConfigResyncNotification_args other) {
1908     }
1909
1910     public onStartConfigResyncNotification_args deepCopy() {
1911       return new onStartConfigResyncNotification_args(this);
1912     }
1913
1914     @Override
1915     public void clear() {
1916     }
1917
1918     public void setFieldValue(_Fields field, Object value) {
1919       switch (field) {
1920       }
1921     }
1922
1923     public Object getFieldValue(_Fields field) {
1924       switch (field) {
1925       }
1926       throw new IllegalStateException();
1927     }
1928
1929     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1930     public boolean isSet(_Fields field) {
1931       if (field == null) {
1932         throw new IllegalArgumentException();
1933       }
1934
1935       switch (field) {
1936       }
1937       throw new IllegalStateException();
1938     }
1939
1940     @Override
1941     public boolean equals(Object that) {
1942       if (that == null)
1943         return false;
1944       if (that instanceof onStartConfigResyncNotification_args)
1945         return this.equals((onStartConfigResyncNotification_args)that);
1946       return false;
1947     }
1948
1949     public boolean equals(onStartConfigResyncNotification_args that) {
1950       if (that == null)
1951         return false;
1952
1953       return true;
1954     }
1955
1956     @Override
1957     public int hashCode() {
1958       return 0;
1959     }
1960
1961     @Override
1962     public int compareTo(onStartConfigResyncNotification_args other) {
1963       if (!getClass().equals(other.getClass())) {
1964         return getClass().getName().compareTo(other.getClass().getName());
1965       }
1966
1967       int lastComparison = 0;
1968
1969       return 0;
1970     }
1971
1972     public _Fields fieldForId(int fieldId) {
1973       return _Fields.findByThriftId(fieldId);
1974     }
1975
1976     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1977       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
1978     }
1979
1980     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1981       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
1982     }
1983
1984     @Override
1985     public String toString() {
1986       StringBuilder sb = new StringBuilder("onStartConfigResyncNotification_args(");
1987       boolean first = true;
1988
1989       sb.append(")");
1990       return sb.toString();
1991     }
1992
1993     public void validate() throws org.apache.thrift.TException {
1994       // check for required fields
1995       // check for sub-struct validity
1996     }
1997
1998     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1999       try {
2000         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2001       } catch (org.apache.thrift.TException te) {
2002         throw new java.io.IOException(te);
2003       }
2004     }
2005
2006     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2007       try {
2008         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2009       } catch (org.apache.thrift.TException te) {
2010         throw new java.io.IOException(te);
2011       }
2012     }
2013
2014     private static class onStartConfigResyncNotification_argsStandardSchemeFactory implements SchemeFactory {
2015       public onStartConfigResyncNotification_argsStandardScheme getScheme() {
2016         return new onStartConfigResyncNotification_argsStandardScheme();
2017       }
2018     }
2019
2020     private static class onStartConfigResyncNotification_argsStandardScheme extends StandardScheme<onStartConfigResyncNotification_args> {
2021
2022       public void read(org.apache.thrift.protocol.TProtocol iprot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
2023         org.apache.thrift.protocol.TField schemeField;
2024         iprot.readStructBegin();
2025         while (true)
2026         {
2027           schemeField = iprot.readFieldBegin();
2028           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
2029             break;
2030           }
2031           switch (schemeField.id) {
2032             default:
2033               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2034           }
2035           iprot.readFieldEnd();
2036         }
2037         iprot.readStructEnd();
2038
2039         // check for required fields of primitive type, which can't be checked in the validate method
2040         struct.validate();
2041       }
2042
2043       public void write(org.apache.thrift.protocol.TProtocol oprot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
2044         struct.validate();
2045
2046         oprot.writeStructBegin(STRUCT_DESC);
2047         oprot.writeFieldStop();
2048         oprot.writeStructEnd();
2049       }
2050
2051     }
2052
2053     private static class onStartConfigResyncNotification_argsTupleSchemeFactory implements SchemeFactory {
2054       public onStartConfigResyncNotification_argsTupleScheme getScheme() {
2055         return new onStartConfigResyncNotification_argsTupleScheme();
2056       }
2057     }
2058
2059     private static class onStartConfigResyncNotification_argsTupleScheme extends TupleScheme<onStartConfigResyncNotification_args> {
2060
2061       @Override
2062       public void write(org.apache.thrift.protocol.TProtocol prot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
2063         TTupleProtocol oprot = (TTupleProtocol) prot;
2064       }
2065
2066       @Override
2067       public void read(org.apache.thrift.protocol.TProtocol prot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
2068         TTupleProtocol iprot = (TTupleProtocol) prot;
2069       }
2070     }
2071
2072   }
2073
2074   public static class onNotificationSendEvent_args implements org.apache.thrift.TBase<onNotificationSendEvent_args, onNotificationSendEvent_args._Fields>, java.io.Serializable, Cloneable, Comparable<onNotificationSendEvent_args>   {
2075     private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onNotificationSendEvent_args");
2076
2077     private static final org.apache.thrift.protocol.TField PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("prefix", org.apache.thrift.protocol.TType.STRING, (short)1);
2078     private static final org.apache.thrift.protocol.TField ERR_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("errCode", org.apache.thrift.protocol.TType.BYTE, (short)2);
2079     private static final org.apache.thrift.protocol.TField ERR_SUBCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("errSubcode", org.apache.thrift.protocol.TType.BYTE, (short)3);
2080
2081     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
2082     static {
2083       schemes.put(StandardScheme.class, new onNotificationSendEvent_argsStandardSchemeFactory());
2084       schemes.put(TupleScheme.class, new onNotificationSendEvent_argsTupleSchemeFactory());
2085     }
2086
2087     public String prefix; // required
2088     public byte errCode; // required
2089     public byte errSubcode; // required
2090
2091     /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2092     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2093       PREFIX((short)1, "prefix"),
2094       ERR_CODE((short)2, "errCode"),
2095       ERR_SUBCODE((short)3, "errSubcode");
2096
2097       private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2098
2099       static {
2100         for (_Fields field : EnumSet.allOf(_Fields.class)) {
2101           byName.put(field.getFieldName(), field);
2102         }
2103       }
2104
2105       /**
2106        * Find the _Fields constant that matches fieldId, or null if its not found.
2107        */
2108       public static _Fields findByThriftId(int fieldId) {
2109         switch(fieldId) {
2110           case 1: // PREFIX
2111             return PREFIX;
2112           case 2: // ERR_CODE
2113             return ERR_CODE;
2114           case 3: // ERR_SUBCODE
2115             return ERR_SUBCODE;
2116           default:
2117             return null;
2118         }
2119       }
2120
2121       /**
2122        * Find the _Fields constant that matches fieldId, throwing an exception
2123        * if it is not found.
2124        */
2125       public static _Fields findByThriftIdOrThrow(int fieldId) {
2126         _Fields fields = findByThriftId(fieldId);
2127         if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2128         return fields;
2129       }
2130
2131       /**
2132        * Find the _Fields constant that matches name, or null if its not found.
2133        */
2134       public static _Fields findByName(String name) {
2135         return byName.get(name);
2136       }
2137
2138       private final short _thriftId;
2139       private final String _fieldName;
2140
2141       _Fields(short thriftId, String fieldName) {
2142         _thriftId = thriftId;
2143         _fieldName = fieldName;
2144       }
2145
2146       public short getThriftFieldId() {
2147         return _thriftId;
2148       }
2149
2150       public String getFieldName() {
2151         return _fieldName;
2152       }
2153     }
2154
2155     // isset id assignments
2156     private static final int __ERRCODE_ISSET_ID = 0;
2157     private static final int __ERRSUBCODE_ISSET_ID = 1;
2158     private byte __isset_bitfield = 0;
2159     public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2160     static {
2161       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2162       tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2163           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2164       tmpMap.put(_Fields.ERR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2165           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BYTE)));
2166       tmpMap.put(_Fields.ERR_SUBCODE, new org.apache.thrift.meta_data.FieldMetaData("errSubcode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2167           new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BYTE)));
2168       metaDataMap = Collections.unmodifiableMap(tmpMap);
2169       org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onNotificationSendEvent_args.class, metaDataMap);
2170     }
2171
2172     public onNotificationSendEvent_args() {
2173     }
2174
2175     public onNotificationSendEvent_args(
2176       String prefix,
2177       byte errCode,
2178       byte errSubcode)
2179     {
2180       this();
2181       this.prefix = prefix;
2182       this.errCode = errCode;
2183       setErrCodeIsSet(true);
2184       this.errSubcode = errSubcode;
2185       setErrSubcodeIsSet(true);
2186     }
2187
2188     /**
2189      * Performs a deep copy on <i>other</i>.
2190      */
2191     public onNotificationSendEvent_args(onNotificationSendEvent_args other) {
2192       __isset_bitfield = other.__isset_bitfield;
2193       if (other.isSetPrefix()) {
2194         this.prefix = other.prefix;
2195       }
2196       this.errCode = other.errCode;
2197       this.errSubcode = other.errSubcode;
2198     }
2199
2200     public onNotificationSendEvent_args deepCopy() {
2201       return new onNotificationSendEvent_args(this);
2202     }
2203
2204     @Override
2205     public void clear() {
2206       this.prefix = null;
2207       setErrCodeIsSet(false);
2208       this.errCode = 0;
2209       setErrSubcodeIsSet(false);
2210       this.errSubcode = 0;
2211     }
2212
2213     public String getPrefix() {
2214       return this.prefix;
2215     }
2216
2217     public onNotificationSendEvent_args setPrefix(String prefix) {
2218       this.prefix = prefix;
2219       return this;
2220     }
2221
2222     public void unsetPrefix() {
2223       this.prefix = null;
2224     }
2225
2226     /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
2227     public boolean isSetPrefix() {
2228       return this.prefix != null;
2229     }
2230
2231     public void setPrefixIsSet(boolean value) {
2232       if (!value) {
2233         this.prefix = null;
2234       }
2235     }
2236
2237     public byte getErrCode() {
2238       return this.errCode;
2239     }
2240
2241     public onNotificationSendEvent_args setErrCode(byte errCode) {
2242       this.errCode = errCode;
2243       setErrCodeIsSet(true);
2244       return this;
2245     }
2246
2247     public void unsetErrCode() {
2248       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ERRCODE_ISSET_ID);
2249     }
2250
2251     /** Returns true if field errCode is set (has been assigned a value) and false otherwise */
2252     public boolean isSetErrCode() {
2253       return EncodingUtils.testBit(__isset_bitfield, __ERRCODE_ISSET_ID);
2254     }
2255
2256     public void setErrCodeIsSet(boolean value) {
2257       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ERRCODE_ISSET_ID, value);
2258     }
2259
2260     public byte getErrSubcode() {
2261       return this.errSubcode;
2262     }
2263
2264     public onNotificationSendEvent_args setErrSubcode(byte errSubcode) {
2265       this.errSubcode = errSubcode;
2266       setErrSubcodeIsSet(true);
2267       return this;
2268     }
2269
2270     public void unsetErrSubcode() {
2271       __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ERRSUBCODE_ISSET_ID);
2272     }
2273
2274     /** Returns true if field errSubcode is set (has been assigned a value) and false otherwise */
2275     public boolean isSetErrSubcode() {
2276       return EncodingUtils.testBit(__isset_bitfield, __ERRSUBCODE_ISSET_ID);
2277     }
2278
2279     public void setErrSubcodeIsSet(boolean value) {
2280       __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ERRSUBCODE_ISSET_ID, value);
2281     }
2282
2283     public void setFieldValue(_Fields field, Object value) {
2284       switch (field) {
2285       case PREFIX:
2286         if (value == null) {
2287           unsetPrefix();
2288         } else {
2289           setPrefix((String)value);
2290         }
2291         break;
2292
2293       case ERR_CODE:
2294         if (value == null) {
2295           unsetErrCode();
2296         } else {
2297           setErrCode((Byte)value);
2298         }
2299         break;
2300
2301       case ERR_SUBCODE:
2302         if (value == null) {
2303           unsetErrSubcode();
2304         } else {
2305           setErrSubcode((Byte)value);
2306         }
2307         break;
2308
2309       }
2310     }
2311
2312     public Object getFieldValue(_Fields field) {
2313       switch (field) {
2314       case PREFIX:
2315         return getPrefix();
2316
2317       case ERR_CODE:
2318         return Byte.valueOf(getErrCode());
2319
2320       case ERR_SUBCODE:
2321         return Byte.valueOf(getErrSubcode());
2322
2323       }
2324       throw new IllegalStateException();
2325     }
2326
2327     /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2328     public boolean isSet(_Fields field) {
2329       if (field == null) {
2330         throw new IllegalArgumentException();
2331       }
2332
2333       switch (field) {
2334       case PREFIX:
2335         return isSetPrefix();
2336       case ERR_CODE:
2337         return isSetErrCode();
2338       case ERR_SUBCODE:
2339         return isSetErrSubcode();
2340       }
2341       throw new IllegalStateException();
2342     }
2343
2344     @Override
2345     public boolean equals(Object that) {
2346       if (that == null)
2347         return false;
2348       if (that instanceof onNotificationSendEvent_args)
2349         return this.equals((onNotificationSendEvent_args)that);
2350       return false;
2351     }
2352
2353     public boolean equals(onNotificationSendEvent_args that) {
2354       if (that == null)
2355         return false;
2356
2357       boolean this_present_prefix = true && this.isSetPrefix();
2358       boolean that_present_prefix = true && that.isSetPrefix();
2359       if (this_present_prefix || that_present_prefix) {
2360         if (!(this_present_prefix && that_present_prefix))
2361           return false;
2362         if (!this.prefix.equals(that.prefix))
2363           return false;
2364       }
2365
2366       boolean this_present_errCode = true;
2367       boolean that_present_errCode = true;
2368       if (this_present_errCode || that_present_errCode) {
2369         if (!(this_present_errCode && that_present_errCode))
2370           return false;
2371         if (this.errCode != that.errCode)
2372           return false;
2373       }
2374
2375       boolean this_present_errSubcode = true;
2376       boolean that_present_errSubcode = true;
2377       if (this_present_errSubcode || that_present_errSubcode) {
2378         if (!(this_present_errSubcode && that_present_errSubcode))
2379           return false;
2380         if (this.errSubcode != that.errSubcode)
2381           return false;
2382       }
2383
2384       return true;
2385     }
2386
2387     @Override
2388     public int hashCode() {
2389       return 0;
2390     }
2391
2392     @Override
2393     public int compareTo(onNotificationSendEvent_args other) {
2394       if (!getClass().equals(other.getClass())) {
2395         return getClass().getName().compareTo(other.getClass().getName());
2396       }
2397
2398       int lastComparison = 0;
2399
2400       lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
2401       if (lastComparison != 0) {
2402         return lastComparison;
2403       }
2404       if (isSetPrefix()) {
2405         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
2406         if (lastComparison != 0) {
2407           return lastComparison;
2408         }
2409       }
2410       lastComparison = Boolean.valueOf(isSetErrCode()).compareTo(other.isSetErrCode());
2411       if (lastComparison != 0) {
2412         return lastComparison;
2413       }
2414       if (isSetErrCode()) {
2415         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errCode, other.errCode);
2416         if (lastComparison != 0) {
2417           return lastComparison;
2418         }
2419       }
2420       lastComparison = Boolean.valueOf(isSetErrSubcode()).compareTo(other.isSetErrSubcode());
2421       if (lastComparison != 0) {
2422         return lastComparison;
2423       }
2424       if (isSetErrSubcode()) {
2425         lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errSubcode, other.errSubcode);
2426         if (lastComparison != 0) {
2427           return lastComparison;
2428         }
2429       }
2430       return 0;
2431     }
2432
2433     public _Fields fieldForId(int fieldId) {
2434       return _Fields.findByThriftId(fieldId);
2435     }
2436
2437     public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2438       schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
2439     }
2440
2441     public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2442       schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
2443     }
2444
2445     @Override
2446     public String toString() {
2447       StringBuilder sb = new StringBuilder("onNotificationSendEvent_args(");
2448       boolean first = true;
2449
2450       sb.append("prefix:");
2451       if (this.prefix == null) {
2452         sb.append("null");
2453       } else {
2454         sb.append(this.prefix);
2455       }
2456       first = false;
2457       if (!first) sb.append(", ");
2458       sb.append("errCode:");
2459       sb.append(this.errCode);
2460       first = false;
2461       if (!first) sb.append(", ");
2462       sb.append("errSubcode:");
2463       sb.append(this.errSubcode);
2464       first = false;
2465       sb.append(")");
2466       return sb.toString();
2467     }
2468
2469     public void validate() throws org.apache.thrift.TException {
2470       // check for required fields
2471       // check for sub-struct validity
2472     }
2473
2474     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2475       try {
2476         write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2477       } catch (org.apache.thrift.TException te) {
2478         throw new java.io.IOException(te);
2479       }
2480     }
2481
2482     private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2483       try {
2484         // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
2485         __isset_bitfield = 0;
2486         read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2487       } catch (org.apache.thrift.TException te) {
2488         throw new java.io.IOException(te);
2489       }
2490     }
2491
2492     private static class onNotificationSendEvent_argsStandardSchemeFactory implements SchemeFactory {
2493       public onNotificationSendEvent_argsStandardScheme getScheme() {
2494         return new onNotificationSendEvent_argsStandardScheme();
2495       }
2496     }
2497
2498     private static class onNotificationSendEvent_argsStandardScheme extends StandardScheme<onNotificationSendEvent_args> {
2499
2500       public void read(org.apache.thrift.protocol.TProtocol iprot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
2501         org.apache.thrift.protocol.TField schemeField;
2502         iprot.readStructBegin();
2503         while (true)
2504         {
2505           schemeField = iprot.readFieldBegin();
2506           if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
2507             break;
2508           }
2509           switch (schemeField.id) {
2510             case 1: // PREFIX
2511               if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
2512                 struct.prefix = iprot.readString();
2513                 struct.setPrefixIsSet(true);
2514               } else { 
2515                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2516               }
2517               break;
2518             case 2: // ERR_CODE
2519               if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) {
2520                 struct.errCode = iprot.readByte();
2521                 struct.setErrCodeIsSet(true);
2522               } else { 
2523                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2524               }
2525               break;
2526             case 3: // ERR_SUBCODE
2527               if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) {
2528                 struct.errSubcode = iprot.readByte();
2529                 struct.setErrSubcodeIsSet(true);
2530               } else { 
2531                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2532               }
2533               break;
2534             default:
2535               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2536           }
2537           iprot.readFieldEnd();
2538         }
2539         iprot.readStructEnd();
2540
2541         // check for required fields of primitive type, which can't be checked in the validate method
2542         struct.validate();
2543       }
2544
2545       public void write(org.apache.thrift.protocol.TProtocol oprot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
2546         struct.validate();
2547
2548         oprot.writeStructBegin(STRUCT_DESC);
2549         if (struct.prefix != null) {
2550           oprot.writeFieldBegin(PREFIX_FIELD_DESC);
2551           oprot.writeString(struct.prefix);
2552           oprot.writeFieldEnd();
2553         }
2554         oprot.writeFieldBegin(ERR_CODE_FIELD_DESC);
2555         oprot.writeByte(struct.errCode);
2556         oprot.writeFieldEnd();
2557         oprot.writeFieldBegin(ERR_SUBCODE_FIELD_DESC);
2558         oprot.writeByte(struct.errSubcode);
2559         oprot.writeFieldEnd();
2560         oprot.writeFieldStop();
2561         oprot.writeStructEnd();
2562       }
2563
2564     }
2565
2566     private static class onNotificationSendEvent_argsTupleSchemeFactory implements SchemeFactory {
2567       public onNotificationSendEvent_argsTupleScheme getScheme() {
2568         return new onNotificationSendEvent_argsTupleScheme();
2569       }
2570     }
2571
2572     private static class onNotificationSendEvent_argsTupleScheme extends TupleScheme<onNotificationSendEvent_args> {
2573
2574       @Override
2575       public void write(org.apache.thrift.protocol.TProtocol prot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
2576         TTupleProtocol oprot = (TTupleProtocol) prot;
2577         BitSet optionals = new BitSet();
2578         if (struct.isSetPrefix()) {
2579           optionals.set(0);
2580         }
2581         if (struct.isSetErrCode()) {
2582           optionals.set(1);
2583         }
2584         if (struct.isSetErrSubcode()) {
2585           optionals.set(2);
2586         }
2587         oprot.writeBitSet(optionals, 3);
2588         if (struct.isSetPrefix()) {
2589           oprot.writeString(struct.prefix);
2590         }
2591         if (struct.isSetErrCode()) {
2592           oprot.writeByte(struct.errCode);
2593         }
2594         if (struct.isSetErrSubcode()) {
2595           oprot.writeByte(struct.errSubcode);
2596         }
2597       }
2598
2599       @Override
2600       public void read(org.apache.thrift.protocol.TProtocol prot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
2601         TTupleProtocol iprot = (TTupleProtocol) prot;
2602         BitSet incoming = iprot.readBitSet(3);
2603         if (incoming.get(0)) {
2604           struct.prefix = iprot.readString();
2605           struct.setPrefixIsSet(true);
2606         }
2607         if (incoming.get(1)) {
2608           struct.errCode = iprot.readByte();
2609           struct.setErrCodeIsSet(true);
2610         }
2611         if (incoming.get(2)) {
2612           struct.errSubcode = iprot.readByte();
2613           struct.setErrSubcodeIsSet(true);
2614         }
2615       }
2616     }
2617
2618   }
2619
2620 }