2 * Autogenerated by Thrift Compiler (0.9.1)
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
8 package org.opendaylight.netvirt.bgpmanager.thrift.gen;
10 import org.apache.thrift.scheme.IScheme;
11 import org.apache.thrift.scheme.SchemeFactory;
12 import org.apache.thrift.scheme.StandardScheme;
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;
24 import java.util.HashMap;
25 import java.util.EnumMap;
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;
36 public class BgpUpdater {
38 public interface Iface {
40 public void onUpdatePushRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac) throws org.apache.thrift.TException;
42 public void onUpdateWithdrawRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label) throws org.apache.thrift.TException;
44 public void onStartConfigResyncNotification() throws org.apache.thrift.TException;
46 public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode) throws org.apache.thrift.TException;
50 public interface AsyncIface {
52 public void onUpdatePushRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
54 public void onUpdateWithdrawRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
56 public void onStartConfigResyncNotification(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
58 public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
62 public static class Client extends org.apache.thrift.TServiceClient implements Iface {
63 public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
65 public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
66 return new Client(prot);
68 public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
69 return new Client(iprot, oprot);
73 public Client(org.apache.thrift.protocol.TProtocol prot)
78 public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
82 public void onUpdatePushRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac) throws org.apache.thrift.TException
84 send_onUpdatePushRoute(p_type, rd, prefix, prefixlen, nexthop, ethtag, esi, macaddress, l3label, l2label, routermac);
87 public void send_onUpdatePushRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac) throws org.apache.thrift.TException
89 onUpdatePushRoute_args args = new onUpdatePushRoute_args();
90 args.setP_type(p_type);
92 args.setPrefix(prefix);
93 args.setPrefixlen(prefixlen);
94 args.setNexthop(nexthop);
95 args.setEthtag(ethtag);
97 args.setMacaddress(macaddress);
98 args.setL3label(l3label);
99 args.setL2label(l2label);
100 args.setRoutermac(routermac);
101 sendBase("onUpdatePushRoute", args);
104 public void onUpdateWithdrawRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label) throws org.apache.thrift.TException
106 send_onUpdateWithdrawRoute(p_type, rd, prefix, prefixlen, nexthop, ethtag, esi, macaddress, l3label, l2label);
109 public void send_onUpdateWithdrawRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label) throws org.apache.thrift.TException
111 onUpdateWithdrawRoute_args args = new onUpdateWithdrawRoute_args();
112 args.setP_type(p_type);
114 args.setPrefix(prefix);
115 args.setPrefixlen(prefixlen);
116 args.setNexthop(nexthop);
117 args.setEthtag(ethtag);
119 args.setMacaddress(macaddress);
120 args.setL3label(l3label);
121 args.setL2label(l2label);
122 sendBase("onUpdateWithdrawRoute", args);
125 public void onStartConfigResyncNotification() throws org.apache.thrift.TException
127 send_onStartConfigResyncNotification();
130 public void send_onStartConfigResyncNotification() throws org.apache.thrift.TException
132 onStartConfigResyncNotification_args args = new onStartConfigResyncNotification_args();
133 sendBase("onStartConfigResyncNotification", args);
136 public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode) throws org.apache.thrift.TException
138 send_onNotificationSendEvent(prefix, errCode, errSubcode);
141 public void send_onNotificationSendEvent(String prefix, byte errCode, byte errSubcode) throws org.apache.thrift.TException
143 onNotificationSendEvent_args args = new onNotificationSendEvent_args();
144 args.setPrefix(prefix);
145 args.setErrCode(errCode);
146 args.setErrSubcode(errSubcode);
147 sendBase("onNotificationSendEvent", args);
151 public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
152 public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
153 private org.apache.thrift.async.TAsyncClientManager clientManager;
154 private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
155 public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
156 this.clientManager = clientManager;
157 this.protocolFactory = protocolFactory;
159 public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
160 return new AsyncClient(protocolFactory, clientManager, transport);
164 public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
165 super(protocolFactory, clientManager, transport);
168 public void onUpdatePushRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
170 onUpdatePushRoute_call method_call = new onUpdatePushRoute_call(p_type, rd, prefix, prefixlen, nexthop, ethtag, esi, macaddress, l3label, l2label, routermac, resultHandler, this, ___protocolFactory, ___transport);
171 this.___currentMethod = method_call;
172 ___manager.call(method_call);
175 public static class onUpdatePushRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
176 private protocol_type p_type;
178 private String prefix;
179 private int prefixlen;
180 private String nexthop;
183 private String macaddress;
186 private String routermac;
187 public onUpdatePushRoute_call(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, String routermac, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
188 super(client, protocolFactory, transport, resultHandler, true);
189 this.p_type = p_type;
191 this.prefix = prefix;
192 this.prefixlen = prefixlen;
193 this.nexthop = nexthop;
194 this.ethtag = ethtag;
196 this.macaddress = macaddress;
197 this.l3label = l3label;
198 this.l2label = l2label;
199 this.routermac = routermac;
202 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
203 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onUpdatePushRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
204 onUpdatePushRoute_args args = new onUpdatePushRoute_args();
205 args.setP_type(p_type);
207 args.setPrefix(prefix);
208 args.setPrefixlen(prefixlen);
209 args.setNexthop(nexthop);
210 args.setEthtag(ethtag);
212 args.setMacaddress(macaddress);
213 args.setL3label(l3label);
214 args.setL2label(l2label);
215 args.setRoutermac(routermac);
217 prot.writeMessageEnd();
220 public void getResult() throws org.apache.thrift.TException {
221 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
222 throw new IllegalStateException("Method call not finished!");
224 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
225 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
229 public void onUpdateWithdrawRoute(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
231 onUpdateWithdrawRoute_call method_call = new onUpdateWithdrawRoute_call(p_type, rd, prefix, prefixlen, nexthop, ethtag, esi, macaddress, l3label, l2label, resultHandler, this, ___protocolFactory, ___transport);
232 this.___currentMethod = method_call;
233 ___manager.call(method_call);
236 public static class onUpdateWithdrawRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
237 private protocol_type p_type;
239 private String prefix;
240 private int prefixlen;
241 private String nexthop;
244 private String macaddress;
247 public onUpdateWithdrawRoute_call(protocol_type p_type, String rd, String prefix, int prefixlen, String nexthop, int ethtag, String esi, String macaddress, int l3label, int l2label, 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 {
248 super(client, protocolFactory, transport, resultHandler, true);
249 this.p_type = p_type;
251 this.prefix = prefix;
252 this.prefixlen = prefixlen;
253 this.nexthop = nexthop;
254 this.ethtag = ethtag;
256 this.macaddress = macaddress;
257 this.l3label = l3label;
258 this.l2label = l2label;
261 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
262 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onUpdateWithdrawRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
263 onUpdateWithdrawRoute_args args = new onUpdateWithdrawRoute_args();
264 args.setP_type(p_type);
266 args.setPrefix(prefix);
267 args.setPrefixlen(prefixlen);
268 args.setNexthop(nexthop);
269 args.setEthtag(ethtag);
271 args.setMacaddress(macaddress);
272 args.setL3label(l3label);
273 args.setL2label(l2label);
275 prot.writeMessageEnd();
278 public void getResult() throws org.apache.thrift.TException {
279 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
280 throw new IllegalStateException("Method call not finished!");
282 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
283 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
287 public void onStartConfigResyncNotification(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
289 onStartConfigResyncNotification_call method_call = new onStartConfigResyncNotification_call(resultHandler, this, ___protocolFactory, ___transport);
290 this.___currentMethod = method_call;
291 ___manager.call(method_call);
294 public static class onStartConfigResyncNotification_call extends org.apache.thrift.async.TAsyncMethodCall {
295 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 {
296 super(client, protocolFactory, transport, resultHandler, true);
299 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
300 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onStartConfigResyncNotification", org.apache.thrift.protocol.TMessageType.CALL, 0));
301 onStartConfigResyncNotification_args args = new onStartConfigResyncNotification_args();
303 prot.writeMessageEnd();
306 public void getResult() throws org.apache.thrift.TException {
307 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
308 throw new IllegalStateException("Method call not finished!");
310 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
311 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
315 public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
317 onNotificationSendEvent_call method_call = new onNotificationSendEvent_call(prefix, errCode, errSubcode, resultHandler, this, ___protocolFactory, ___transport);
318 this.___currentMethod = method_call;
319 ___manager.call(method_call);
322 public static class onNotificationSendEvent_call extends org.apache.thrift.async.TAsyncMethodCall {
323 private String prefix;
324 private byte errCode;
325 private byte errSubcode;
326 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 {
327 super(client, protocolFactory, transport, resultHandler, true);
328 this.prefix = prefix;
329 this.errCode = errCode;
330 this.errSubcode = errSubcode;
333 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
334 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onNotificationSendEvent", org.apache.thrift.protocol.TMessageType.CALL, 0));
335 onNotificationSendEvent_args args = new onNotificationSendEvent_args();
336 args.setPrefix(prefix);
337 args.setErrCode(errCode);
338 args.setErrSubcode(errSubcode);
340 prot.writeMessageEnd();
343 public void getResult() throws org.apache.thrift.TException {
344 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
345 throw new IllegalStateException("Method call not finished!");
347 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
348 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
354 public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
355 private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
356 public Processor(I iface) {
357 super(iface, getProcessMap(new HashMap<>()));
360 protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
361 super(iface, getProcessMap(processMap));
364 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) {
365 processMap.put("onUpdatePushRoute", new onUpdatePushRoute());
366 processMap.put("onUpdateWithdrawRoute", new onUpdateWithdrawRoute());
367 processMap.put("onStartConfigResyncNotification", new onStartConfigResyncNotification());
368 processMap.put("onNotificationSendEvent", new onNotificationSendEvent());
372 public static class onUpdatePushRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onUpdatePushRoute_args> {
373 public onUpdatePushRoute() {
374 super("onUpdatePushRoute");
377 public onUpdatePushRoute_args getEmptyArgsInstance() {
378 return new onUpdatePushRoute_args();
381 protected boolean isOneway() {
385 public org.apache.thrift.TBase getResult(I iface, onUpdatePushRoute_args args) throws org.apache.thrift.TException {
386 iface.onUpdatePushRoute(args.p_type, args.rd, args.prefix, args.prefixlen, args.nexthop, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label, args.routermac);
391 public static class onUpdateWithdrawRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onUpdateWithdrawRoute_args> {
392 public onUpdateWithdrawRoute() {
393 super("onUpdateWithdrawRoute");
396 public onUpdateWithdrawRoute_args getEmptyArgsInstance() {
397 return new onUpdateWithdrawRoute_args();
400 protected boolean isOneway() {
404 public org.apache.thrift.TBase getResult(I iface, onUpdateWithdrawRoute_args args) throws org.apache.thrift.TException {
405 iface.onUpdateWithdrawRoute(args.p_type, args.rd, args.prefix, args.prefixlen, args.nexthop, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label);
410 public static class onStartConfigResyncNotification<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onStartConfigResyncNotification_args> {
411 public onStartConfigResyncNotification() {
412 super("onStartConfigResyncNotification");
415 public onStartConfigResyncNotification_args getEmptyArgsInstance() {
416 return new onStartConfigResyncNotification_args();
419 protected boolean isOneway() {
423 public org.apache.thrift.TBase getResult(I iface, onStartConfigResyncNotification_args args) throws org.apache.thrift.TException {
424 iface.onStartConfigResyncNotification();
429 public static class onNotificationSendEvent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onNotificationSendEvent_args> {
430 public onNotificationSendEvent() {
431 super("onNotificationSendEvent");
434 public onNotificationSendEvent_args getEmptyArgsInstance() {
435 return new onNotificationSendEvent_args();
438 protected boolean isOneway() {
442 public org.apache.thrift.TBase getResult(I iface, onNotificationSendEvent_args args) throws org.apache.thrift.TException {
443 iface.onNotificationSendEvent(args.prefix, args.errCode, args.errSubcode);
450 public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
451 private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
452 public AsyncProcessor(I iface) {
453 super(iface, getProcessMap(new HashMap<>()));
456 protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
457 super(iface, getProcessMap(processMap));
460 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) {
461 processMap.put("onUpdatePushRoute", new onUpdatePushRoute());
462 processMap.put("onUpdateWithdrawRoute", new onUpdateWithdrawRoute());
463 processMap.put("onStartConfigResyncNotification", new onStartConfigResyncNotification());
464 processMap.put("onNotificationSendEvent", new onNotificationSendEvent());
468 public static class onUpdatePushRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onUpdatePushRoute_args, Void> {
469 public onUpdatePushRoute() {
470 super("onUpdatePushRoute");
473 public onUpdatePushRoute_args getEmptyArgsInstance() {
474 return new onUpdatePushRoute_args();
477 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
478 final org.apache.thrift.AsyncProcessFunction fcall = this;
479 return new AsyncMethodCallback<Void>() {
480 public void onComplete(Void o) {
482 public void onError(Exception e) {
487 protected boolean isOneway() {
491 public void start(I iface, onUpdatePushRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
492 iface.onUpdatePushRoute(args.p_type, args.rd, args.prefix, args.prefixlen, args.nexthop, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label, args.routermac,resultHandler);
496 public static class onUpdateWithdrawRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onUpdateWithdrawRoute_args, Void> {
497 public onUpdateWithdrawRoute() {
498 super("onUpdateWithdrawRoute");
501 public onUpdateWithdrawRoute_args getEmptyArgsInstance() {
502 return new onUpdateWithdrawRoute_args();
505 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
506 final org.apache.thrift.AsyncProcessFunction fcall = this;
507 return new AsyncMethodCallback<Void>() {
508 public void onComplete(Void o) {
510 public void onError(Exception e) {
515 protected boolean isOneway() {
519 public void start(I iface, onUpdateWithdrawRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
520 iface.onUpdateWithdrawRoute(args.p_type, args.rd, args.prefix, args.prefixlen, args.nexthop, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label,resultHandler);
524 public static class onStartConfigResyncNotification<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onStartConfigResyncNotification_args, Void> {
525 public onStartConfigResyncNotification() {
526 super("onStartConfigResyncNotification");
529 public onStartConfigResyncNotification_args getEmptyArgsInstance() {
530 return new onStartConfigResyncNotification_args();
533 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
534 final org.apache.thrift.AsyncProcessFunction fcall = this;
535 return new AsyncMethodCallback<Void>() {
536 public void onComplete(Void o) {
538 public void onError(Exception e) {
543 protected boolean isOneway() {
547 public void start(I iface, onStartConfigResyncNotification_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
548 iface.onStartConfigResyncNotification(resultHandler);
552 public static class onNotificationSendEvent<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onNotificationSendEvent_args, Void> {
553 public onNotificationSendEvent() {
554 super("onNotificationSendEvent");
557 public onNotificationSendEvent_args getEmptyArgsInstance() {
558 return new onNotificationSendEvent_args();
561 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
562 final org.apache.thrift.AsyncProcessFunction fcall = this;
563 return new AsyncMethodCallback<Void>() {
564 public void onComplete(Void o) {
566 public void onError(Exception e) {
571 protected boolean isOneway() {
575 public void start(I iface, onNotificationSendEvent_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
576 iface.onNotificationSendEvent(args.prefix, args.errCode, args.errSubcode,resultHandler);
582 public static class onUpdatePushRoute_args implements org.apache.thrift.TBase<onUpdatePushRoute_args, onUpdatePushRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<onUpdatePushRoute_args> {
583 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onUpdatePushRoute_args");
585 private static final org.apache.thrift.protocol.TField P_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("p_type", org.apache.thrift.protocol.TType.I32, (short)1);
586 private static final org.apache.thrift.protocol.TField RD_FIELD_DESC = new org.apache.thrift.protocol.TField("rd", org.apache.thrift.protocol.TType.STRING, (short)2);
587 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)3);
588 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)4);
589 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)5);
590 private static final org.apache.thrift.protocol.TField ETHTAG_FIELD_DESC = new org.apache.thrift.protocol.TField("ethtag", org.apache.thrift.protocol.TType.I32, (short)6);
591 private static final org.apache.thrift.protocol.TField ESI_FIELD_DESC = new org.apache.thrift.protocol.TField("esi", org.apache.thrift.protocol.TType.STRING, (short)7);
592 private static final org.apache.thrift.protocol.TField MACADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("macaddress", org.apache.thrift.protocol.TType.STRING, (short)8);
593 private static final org.apache.thrift.protocol.TField L3LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("l3label", org.apache.thrift.protocol.TType.I32, (short)9);
594 private static final org.apache.thrift.protocol.TField L2LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("l2label", org.apache.thrift.protocol.TType.I32, (short)10);
595 private static final org.apache.thrift.protocol.TField ROUTERMAC_FIELD_DESC = new org.apache.thrift.protocol.TField("routermac", org.apache.thrift.protocol.TType.STRING, (short)11);
597 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
599 schemes.put(StandardScheme.class, new onUpdatePushRoute_argsStandardSchemeFactory());
600 schemes.put(TupleScheme.class, new onUpdatePushRoute_argsTupleSchemeFactory());
607 public protocol_type p_type; // required
608 public String rd; // required
609 public String prefix; // required
610 public int prefixlen; // required
611 public String nexthop; // required
612 public int ethtag; // required
613 public String esi; // required
614 public String macaddress; // required
615 public int l3label; // required
616 public int l2label; // required
617 public String routermac; // required
619 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
620 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
625 P_TYPE((short)1, "p_type"),
627 PREFIX((short)3, "prefix"),
628 PREFIXLEN((short)4, "prefixlen"),
629 NEXTHOP((short)5, "nexthop"),
630 ETHTAG((short)6, "ethtag"),
631 ESI((short)7, "esi"),
632 MACADDRESS((short)8, "macaddress"),
633 L3LABEL((short)9, "l3label"),
634 L2LABEL((short)10, "l2label"),
635 ROUTERMAC((short)11, "routermac");
637 private static final Map<String, _Fields> byName = new HashMap<>();
640 for (_Fields field : EnumSet.allOf(_Fields.class)) {
641 byName.put(field.getFieldName(), field);
646 * Find the _Fields constant that matches fieldId, or null if its not found.
648 public static _Fields findByThriftId(int fieldId) {
664 case 8: // MACADDRESS
670 case 11: // ROUTERMAC
678 * Find the _Fields constant that matches fieldId, throwing an exception
679 * if it is not found.
681 public static _Fields findByThriftIdOrThrow(int fieldId) {
682 _Fields fields = findByThriftId(fieldId);
683 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
688 * Find the _Fields constant that matches name, or null if its not found.
690 public static _Fields findByName(String name) {
691 return byName.get(name);
694 private final short _thriftId;
695 private final String _fieldName;
697 _Fields(short thriftId, String fieldName) {
698 _thriftId = thriftId;
699 _fieldName = fieldName;
702 public short getThriftFieldId() {
706 public String getFieldName() {
711 // isset id assignments
712 private static final int __PREFIXLEN_ISSET_ID = 0;
713 private static final int __ETHTAG_ISSET_ID = 1;
714 private static final int __L3LABEL_ISSET_ID = 2;
715 private static final int __L2LABEL_ISSET_ID = 3;
716 private byte __isset_bitfield = 0;
717 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
719 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
720 tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
721 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
722 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
723 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
724 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
725 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
726 tmpMap.put(_Fields.PREFIXLEN, new org.apache.thrift.meta_data.FieldMetaData("prefixlen", org.apache.thrift.TFieldRequirementType.DEFAULT,
727 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
728 tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT,
729 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
730 tmpMap.put(_Fields.ETHTAG, new org.apache.thrift.meta_data.FieldMetaData("ethtag", org.apache.thrift.TFieldRequirementType.DEFAULT,
731 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
732 tmpMap.put(_Fields.ESI, new org.apache.thrift.meta_data.FieldMetaData("esi", org.apache.thrift.TFieldRequirementType.DEFAULT,
733 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
734 tmpMap.put(_Fields.MACADDRESS, new org.apache.thrift.meta_data.FieldMetaData("macaddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
735 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
736 tmpMap.put(_Fields.L3LABEL, new org.apache.thrift.meta_data.FieldMetaData("l3label", org.apache.thrift.TFieldRequirementType.DEFAULT,
737 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
738 tmpMap.put(_Fields.L2LABEL, new org.apache.thrift.meta_data.FieldMetaData("l2label", org.apache.thrift.TFieldRequirementType.DEFAULT,
739 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
740 tmpMap.put(_Fields.ROUTERMAC, new org.apache.thrift.meta_data.FieldMetaData("routermac", org.apache.thrift.TFieldRequirementType.DEFAULT,
741 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
742 metaDataMap = Collections.unmodifiableMap(tmpMap);
743 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onUpdatePushRoute_args.class, metaDataMap);
746 public onUpdatePushRoute_args() {
749 public onUpdatePushRoute_args(
750 protocol_type p_type,
763 this.p_type = p_type;
765 this.prefix = prefix;
766 this.prefixlen = prefixlen;
767 setPrefixlenIsSet(true);
768 this.nexthop = nexthop;
769 this.ethtag = ethtag;
770 setEthtagIsSet(true);
772 this.macaddress = macaddress;
773 this.l3label = l3label;
774 setL3labelIsSet(true);
775 this.l2label = l2label;
776 setL2labelIsSet(true);
777 this.routermac = routermac;
781 * Performs a deep copy on <i>other</i>.
783 public onUpdatePushRoute_args(onUpdatePushRoute_args other) {
784 __isset_bitfield = other.__isset_bitfield;
785 if (other.isSetP_type()) {
786 this.p_type = other.p_type;
788 if (other.isSetRd()) {
791 if (other.isSetPrefix()) {
792 this.prefix = other.prefix;
794 this.prefixlen = other.prefixlen;
795 if (other.isSetNexthop()) {
796 this.nexthop = other.nexthop;
798 this.ethtag = other.ethtag;
799 if (other.isSetEsi()) {
800 this.esi = other.esi;
802 if (other.isSetMacaddress()) {
803 this.macaddress = other.macaddress;
805 this.l3label = other.l3label;
806 this.l2label = other.l2label;
807 if (other.isSetRoutermac()) {
808 this.routermac = other.routermac;
812 public onUpdatePushRoute_args deepCopy() {
813 return new onUpdatePushRoute_args(this);
817 public void clear() {
821 setPrefixlenIsSet(false);
824 setEthtagIsSet(false);
827 this.macaddress = null;
828 setL3labelIsSet(false);
830 setL2labelIsSet(false);
832 this.routermac = null;
839 public protocol_type getP_type() {
847 public onUpdatePushRoute_args setP_type(protocol_type p_type) {
848 this.p_type = p_type;
852 public void unsetP_type() {
856 /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
857 public boolean isSetP_type() {
858 return this.p_type != null;
861 public void setP_typeIsSet(boolean value) {
867 public String getRd() {
871 public onUpdatePushRoute_args setRd(String rd) {
876 public void unsetRd() {
880 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
881 public boolean isSetRd() {
882 return this.rd != null;
885 public void setRdIsSet(boolean value) {
891 public String getPrefix() {
895 public onUpdatePushRoute_args setPrefix(String prefix) {
896 this.prefix = prefix;
900 public void unsetPrefix() {
904 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
905 public boolean isSetPrefix() {
906 return this.prefix != null;
909 public void setPrefixIsSet(boolean value) {
915 public int getPrefixlen() {
916 return this.prefixlen;
919 public onUpdatePushRoute_args setPrefixlen(int prefixlen) {
920 this.prefixlen = prefixlen;
921 setPrefixlenIsSet(true);
925 public void unsetPrefixlen() {
926 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
929 /** Returns true if field prefixlen is set (has been assigned a value) and false otherwise */
930 public boolean isSetPrefixlen() {
931 return EncodingUtils.testBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
934 public void setPrefixlenIsSet(boolean value) {
935 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PREFIXLEN_ISSET_ID, value);
938 public String getNexthop() {
942 public onUpdatePushRoute_args setNexthop(String nexthop) {
943 this.nexthop = nexthop;
947 public void unsetNexthop() {
951 /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
952 public boolean isSetNexthop() {
953 return this.nexthop != null;
956 public void setNexthopIsSet(boolean value) {
962 public int getEthtag() {
966 public onUpdatePushRoute_args setEthtag(int ethtag) {
967 this.ethtag = ethtag;
968 setEthtagIsSet(true);
972 public void unsetEthtag() {
973 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ETHTAG_ISSET_ID);
976 /** Returns true if field ethtag is set (has been assigned a value) and false otherwise */
977 public boolean isSetEthtag() {
978 return EncodingUtils.testBit(__isset_bitfield, __ETHTAG_ISSET_ID);
981 public void setEthtagIsSet(boolean value) {
982 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ETHTAG_ISSET_ID, value);
985 public String getEsi() {
989 public onUpdatePushRoute_args setEsi(String esi) {
994 public void unsetEsi() {
998 /** Returns true if field esi is set (has been assigned a value) and false otherwise */
999 public boolean isSetEsi() {
1000 return this.esi != null;
1003 public void setEsiIsSet(boolean value) {
1009 public String getMacaddress() {
1010 return this.macaddress;
1013 public onUpdatePushRoute_args setMacaddress(String macaddress) {
1014 this.macaddress = macaddress;
1018 public void unsetMacaddress() {
1019 this.macaddress = null;
1022 /** Returns true if field macaddress is set (has been assigned a value) and false otherwise */
1023 public boolean isSetMacaddress() {
1024 return this.macaddress != null;
1027 public void setMacaddressIsSet(boolean value) {
1029 this.macaddress = null;
1033 public int getL3label() {
1034 return this.l3label;
1037 public onUpdatePushRoute_args setL3label(int l3label) {
1038 this.l3label = l3label;
1039 setL3labelIsSet(true);
1043 public void unsetL3label() {
1044 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L3LABEL_ISSET_ID);
1047 /** Returns true if field l3label is set (has been assigned a value) and false otherwise */
1048 public boolean isSetL3label() {
1049 return EncodingUtils.testBit(__isset_bitfield, __L3LABEL_ISSET_ID);
1052 public void setL3labelIsSet(boolean value) {
1053 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L3LABEL_ISSET_ID, value);
1056 public int getL2label() {
1057 return this.l2label;
1060 public onUpdatePushRoute_args setL2label(int l2label) {
1061 this.l2label = l2label;
1062 setL2labelIsSet(true);
1066 public void unsetL2label() {
1067 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L2LABEL_ISSET_ID);
1070 /** Returns true if field l2label is set (has been assigned a value) and false otherwise */
1071 public boolean isSetL2label() {
1072 return EncodingUtils.testBit(__isset_bitfield, __L2LABEL_ISSET_ID);
1075 public void setL2labelIsSet(boolean value) {
1076 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L2LABEL_ISSET_ID, value);
1079 public String getRoutermac() {
1080 return this.routermac;
1083 public onUpdatePushRoute_args setRoutermac(String routermac) {
1084 this.routermac = routermac;
1088 public void unsetRoutermac() {
1089 this.routermac = null;
1092 /** Returns true if field routermac is set (has been assigned a value) and false otherwise */
1093 public boolean isSetRoutermac() {
1094 return this.routermac != null;
1097 public void setRoutermacIsSet(boolean value) {
1099 this.routermac = null;
1103 public void setFieldValue(_Fields field, Object value) {
1106 if (value == null) {
1109 setP_type((protocol_type)value);
1114 if (value == null) {
1117 setRd((String)value);
1122 if (value == null) {
1125 setPrefix((String)value);
1130 if (value == null) {
1133 setPrefixlen((Integer)value);
1138 if (value == null) {
1141 setNexthop((String)value);
1146 if (value == null) {
1149 setEthtag((Integer)value);
1154 if (value == null) {
1157 setEsi((String)value);
1162 if (value == null) {
1165 setMacaddress((String)value);
1170 if (value == null) {
1173 setL3label((Integer)value);
1178 if (value == null) {
1181 setL2label((Integer)value);
1186 if (value == null) {
1189 setRoutermac((String)value);
1196 public Object getFieldValue(_Fields field) {
1208 return Integer.valueOf(getPrefixlen());
1211 return getNexthop();
1214 return Integer.valueOf(getEthtag());
1220 return getMacaddress();
1223 return Integer.valueOf(getL3label());
1226 return Integer.valueOf(getL2label());
1229 return getRoutermac();
1232 throw new IllegalStateException();
1235 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1236 public boolean isSet(_Fields field) {
1237 if (field == null) {
1238 throw new IllegalArgumentException();
1243 return isSetP_type();
1247 return isSetPrefix();
1249 return isSetPrefixlen();
1251 return isSetNexthop();
1253 return isSetEthtag();
1257 return isSetMacaddress();
1259 return isSetL3label();
1261 return isSetL2label();
1263 return isSetRoutermac();
1265 throw new IllegalStateException();
1269 public boolean equals(Object that) {
1272 if (that instanceof onUpdatePushRoute_args)
1273 return this.equals((onUpdatePushRoute_args)that);
1277 public boolean equals(onUpdatePushRoute_args that) {
1281 boolean this_present_p_type = true && this.isSetP_type();
1282 boolean that_present_p_type = true && that.isSetP_type();
1283 if (this_present_p_type || that_present_p_type) {
1284 if (!(this_present_p_type && that_present_p_type))
1286 if (!this.p_type.equals(that.p_type))
1290 boolean this_present_rd = true && this.isSetRd();
1291 boolean that_present_rd = true && that.isSetRd();
1292 if (this_present_rd || that_present_rd) {
1293 if (!(this_present_rd && that_present_rd))
1295 if (!this.rd.equals(that.rd))
1299 boolean this_present_prefix = true && this.isSetPrefix();
1300 boolean that_present_prefix = true && that.isSetPrefix();
1301 if (this_present_prefix || that_present_prefix) {
1302 if (!(this_present_prefix && that_present_prefix))
1304 if (!this.prefix.equals(that.prefix))
1308 boolean this_present_prefixlen = true;
1309 boolean that_present_prefixlen = true;
1310 if (this_present_prefixlen || that_present_prefixlen) {
1311 if (!(this_present_prefixlen && that_present_prefixlen))
1313 if (this.prefixlen != that.prefixlen)
1317 boolean this_present_nexthop = true && this.isSetNexthop();
1318 boolean that_present_nexthop = true && that.isSetNexthop();
1319 if (this_present_nexthop || that_present_nexthop) {
1320 if (!(this_present_nexthop && that_present_nexthop))
1322 if (!this.nexthop.equals(that.nexthop))
1326 boolean this_present_ethtag = true;
1327 boolean that_present_ethtag = true;
1328 if (this_present_ethtag || that_present_ethtag) {
1329 if (!(this_present_ethtag && that_present_ethtag))
1331 if (this.ethtag != that.ethtag)
1335 boolean this_present_esi = true && this.isSetEsi();
1336 boolean that_present_esi = true && that.isSetEsi();
1337 if (this_present_esi || that_present_esi) {
1338 if (!(this_present_esi && that_present_esi))
1340 if (!this.esi.equals(that.esi))
1344 boolean this_present_macaddress = true && this.isSetMacaddress();
1345 boolean that_present_macaddress = true && that.isSetMacaddress();
1346 if (this_present_macaddress || that_present_macaddress) {
1347 if (!(this_present_macaddress && that_present_macaddress))
1349 if (!this.macaddress.equals(that.macaddress))
1353 boolean this_present_l3label = true;
1354 boolean that_present_l3label = true;
1355 if (this_present_l3label || that_present_l3label) {
1356 if (!(this_present_l3label && that_present_l3label))
1358 if (this.l3label != that.l3label)
1362 boolean this_present_l2label = true;
1363 boolean that_present_l2label = true;
1364 if (this_present_l2label || that_present_l2label) {
1365 if (!(this_present_l2label && that_present_l2label))
1367 if (this.l2label != that.l2label)
1371 boolean this_present_routermac = true && this.isSetRoutermac();
1372 boolean that_present_routermac = true && that.isSetRoutermac();
1373 if (this_present_routermac || that_present_routermac) {
1374 if (!(this_present_routermac && that_present_routermac))
1376 if (!this.routermac.equals(that.routermac))
1384 public int hashCode() {
1389 public int compareTo(onUpdatePushRoute_args other) {
1390 if (!getClass().equals(other.getClass())) {
1391 return getClass().getName().compareTo(other.getClass().getName());
1394 int lastComparison = 0;
1396 lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
1397 if (lastComparison != 0) {
1398 return lastComparison;
1400 if (isSetP_type()) {
1401 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
1402 if (lastComparison != 0) {
1403 return lastComparison;
1406 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
1407 if (lastComparison != 0) {
1408 return lastComparison;
1411 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
1412 if (lastComparison != 0) {
1413 return lastComparison;
1416 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
1417 if (lastComparison != 0) {
1418 return lastComparison;
1420 if (isSetPrefix()) {
1421 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
1422 if (lastComparison != 0) {
1423 return lastComparison;
1426 lastComparison = Boolean.valueOf(isSetPrefixlen()).compareTo(other.isSetPrefixlen());
1427 if (lastComparison != 0) {
1428 return lastComparison;
1430 if (isSetPrefixlen()) {
1431 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefixlen, other.prefixlen);
1432 if (lastComparison != 0) {
1433 return lastComparison;
1436 lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
1437 if (lastComparison != 0) {
1438 return lastComparison;
1440 if (isSetNexthop()) {
1441 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
1442 if (lastComparison != 0) {
1443 return lastComparison;
1446 lastComparison = Boolean.valueOf(isSetEthtag()).compareTo(other.isSetEthtag());
1447 if (lastComparison != 0) {
1448 return lastComparison;
1450 if (isSetEthtag()) {
1451 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ethtag, other.ethtag);
1452 if (lastComparison != 0) {
1453 return lastComparison;
1456 lastComparison = Boolean.valueOf(isSetEsi()).compareTo(other.isSetEsi());
1457 if (lastComparison != 0) {
1458 return lastComparison;
1461 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.esi, other.esi);
1462 if (lastComparison != 0) {
1463 return lastComparison;
1466 lastComparison = Boolean.valueOf(isSetMacaddress()).compareTo(other.isSetMacaddress());
1467 if (lastComparison != 0) {
1468 return lastComparison;
1470 if (isSetMacaddress()) {
1471 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.macaddress, other.macaddress);
1472 if (lastComparison != 0) {
1473 return lastComparison;
1476 lastComparison = Boolean.valueOf(isSetL3label()).compareTo(other.isSetL3label());
1477 if (lastComparison != 0) {
1478 return lastComparison;
1480 if (isSetL3label()) {
1481 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l3label, other.l3label);
1482 if (lastComparison != 0) {
1483 return lastComparison;
1486 lastComparison = Boolean.valueOf(isSetL2label()).compareTo(other.isSetL2label());
1487 if (lastComparison != 0) {
1488 return lastComparison;
1490 if (isSetL2label()) {
1491 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l2label, other.l2label);
1492 if (lastComparison != 0) {
1493 return lastComparison;
1496 lastComparison = Boolean.valueOf(isSetRoutermac()).compareTo(other.isSetRoutermac());
1497 if (lastComparison != 0) {
1498 return lastComparison;
1500 if (isSetRoutermac()) {
1501 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routermac, other.routermac);
1502 if (lastComparison != 0) {
1503 return lastComparison;
1509 public _Fields fieldForId(int fieldId) {
1510 return _Fields.findByThriftId(fieldId);
1513 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1514 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
1517 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1518 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
1522 public String toString() {
1523 StringBuilder sb = new StringBuilder("onUpdatePushRoute_args(");
1524 boolean first = true;
1526 sb.append("p_type:");
1527 if (this.p_type == null) {
1530 sb.append(this.p_type);
1533 if (!first) sb.append(", ");
1535 if (this.rd == null) {
1541 if (!first) sb.append(", ");
1542 sb.append("prefix:");
1543 if (this.prefix == null) {
1546 sb.append(this.prefix);
1549 if (!first) sb.append(", ");
1550 sb.append("prefixlen:");
1551 sb.append(this.prefixlen);
1553 if (!first) sb.append(", ");
1554 sb.append("nexthop:");
1555 if (this.nexthop == null) {
1558 sb.append(this.nexthop);
1561 if (!first) sb.append(", ");
1562 sb.append("ethtag:");
1563 sb.append(this.ethtag);
1565 if (!first) sb.append(", ");
1567 if (this.esi == null) {
1570 sb.append(this.esi);
1573 if (!first) sb.append(", ");
1574 sb.append("macaddress:");
1575 if (this.macaddress == null) {
1578 sb.append(this.macaddress);
1581 if (!first) sb.append(", ");
1582 sb.append("l3label:");
1583 sb.append(this.l3label);
1585 if (!first) sb.append(", ");
1586 sb.append("l2label:");
1587 sb.append(this.l2label);
1589 if (!first) sb.append(", ");
1590 sb.append("routermac:");
1591 if (this.routermac == null) {
1594 sb.append(this.routermac);
1598 return sb.toString();
1601 public void validate() throws org.apache.thrift.TException {
1602 // check for required fields
1603 // check for sub-struct validity
1606 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1608 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1609 } catch (org.apache.thrift.TException te) {
1610 throw new java.io.IOException(te);
1614 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1616 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1617 __isset_bitfield = 0;
1618 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1619 } catch (org.apache.thrift.TException te) {
1620 throw new java.io.IOException(te);
1624 private static class onUpdatePushRoute_argsStandardSchemeFactory implements SchemeFactory {
1625 public onUpdatePushRoute_argsStandardScheme getScheme() {
1626 return new onUpdatePushRoute_argsStandardScheme();
1630 private static class onUpdatePushRoute_argsStandardScheme extends StandardScheme<onUpdatePushRoute_args> {
1632 public void read(org.apache.thrift.protocol.TProtocol iprot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1633 org.apache.thrift.protocol.TField schemeField;
1634 iprot.readStructBegin();
1637 schemeField = iprot.readFieldBegin();
1638 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
1641 switch (schemeField.id) {
1643 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1644 struct.p_type = protocol_type.findByValue(iprot.readI32());
1645 struct.setP_typeIsSet(true);
1647 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1651 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1652 struct.rd = iprot.readString();
1653 struct.setRdIsSet(true);
1655 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1659 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1660 struct.prefix = iprot.readString();
1661 struct.setPrefixIsSet(true);
1663 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1666 case 4: // PREFIXLEN
1667 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1668 struct.prefixlen = iprot.readI32();
1669 struct.setPrefixlenIsSet(true);
1671 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1675 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1676 struct.nexthop = iprot.readString();
1677 struct.setNexthopIsSet(true);
1679 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1683 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1684 struct.ethtag = iprot.readI32();
1685 struct.setEthtagIsSet(true);
1687 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1691 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1692 struct.esi = iprot.readString();
1693 struct.setEsiIsSet(true);
1695 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1698 case 8: // MACADDRESS
1699 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1700 struct.macaddress = iprot.readString();
1701 struct.setMacaddressIsSet(true);
1703 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1707 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1708 struct.l3label = iprot.readI32();
1709 struct.setL3labelIsSet(true);
1711 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1715 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1716 struct.l2label = iprot.readI32();
1717 struct.setL2labelIsSet(true);
1719 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1722 case 11: // ROUTERMAC
1723 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1724 struct.routermac = iprot.readString();
1725 struct.setRoutermacIsSet(true);
1727 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1731 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1733 iprot.readFieldEnd();
1735 iprot.readStructEnd();
1737 // check for required fields of primitive type, which can't be checked in the validate method
1741 public void write(org.apache.thrift.protocol.TProtocol oprot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1744 oprot.writeStructBegin(STRUCT_DESC);
1745 if (struct.p_type != null) {
1746 oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
1747 oprot.writeI32(struct.p_type.getValue());
1748 oprot.writeFieldEnd();
1750 if (struct.rd != null) {
1751 oprot.writeFieldBegin(RD_FIELD_DESC);
1752 oprot.writeString(struct.rd);
1753 oprot.writeFieldEnd();
1755 if (struct.prefix != null) {
1756 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
1757 oprot.writeString(struct.prefix);
1758 oprot.writeFieldEnd();
1760 oprot.writeFieldBegin(PREFIXLEN_FIELD_DESC);
1761 oprot.writeI32(struct.prefixlen);
1762 oprot.writeFieldEnd();
1763 if (struct.nexthop != null) {
1764 oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
1765 oprot.writeString(struct.nexthop);
1766 oprot.writeFieldEnd();
1768 oprot.writeFieldBegin(ETHTAG_FIELD_DESC);
1769 oprot.writeI32(struct.ethtag);
1770 oprot.writeFieldEnd();
1771 if (struct.esi != null) {
1772 oprot.writeFieldBegin(ESI_FIELD_DESC);
1773 oprot.writeString(struct.esi);
1774 oprot.writeFieldEnd();
1776 if (struct.macaddress != null) {
1777 oprot.writeFieldBegin(MACADDRESS_FIELD_DESC);
1778 oprot.writeString(struct.macaddress);
1779 oprot.writeFieldEnd();
1781 oprot.writeFieldBegin(L3LABEL_FIELD_DESC);
1782 oprot.writeI32(struct.l3label);
1783 oprot.writeFieldEnd();
1784 oprot.writeFieldBegin(L2LABEL_FIELD_DESC);
1785 oprot.writeI32(struct.l2label);
1786 oprot.writeFieldEnd();
1787 if (struct.routermac != null) {
1788 oprot.writeFieldBegin(ROUTERMAC_FIELD_DESC);
1789 oprot.writeString(struct.routermac);
1790 oprot.writeFieldEnd();
1792 oprot.writeFieldStop();
1793 oprot.writeStructEnd();
1798 private static class onUpdatePushRoute_argsTupleSchemeFactory implements SchemeFactory {
1799 public onUpdatePushRoute_argsTupleScheme getScheme() {
1800 return new onUpdatePushRoute_argsTupleScheme();
1804 private static class onUpdatePushRoute_argsTupleScheme extends TupleScheme<onUpdatePushRoute_args> {
1807 public void write(org.apache.thrift.protocol.TProtocol prot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1808 TTupleProtocol oprot = (TTupleProtocol) prot;
1809 BitSet optionals = new BitSet();
1810 if (struct.isSetP_type()) {
1813 if (struct.isSetRd()) {
1816 if (struct.isSetPrefix()) {
1819 if (struct.isSetPrefixlen()) {
1822 if (struct.isSetNexthop()) {
1825 if (struct.isSetEthtag()) {
1828 if (struct.isSetEsi()) {
1831 if (struct.isSetMacaddress()) {
1834 if (struct.isSetL3label()) {
1837 if (struct.isSetL2label()) {
1840 if (struct.isSetRoutermac()) {
1843 oprot.writeBitSet(optionals, 11);
1844 if (struct.isSetP_type()) {
1845 oprot.writeI32(struct.p_type.getValue());
1847 if (struct.isSetRd()) {
1848 oprot.writeString(struct.rd);
1850 if (struct.isSetPrefix()) {
1851 oprot.writeString(struct.prefix);
1853 if (struct.isSetPrefixlen()) {
1854 oprot.writeI32(struct.prefixlen);
1856 if (struct.isSetNexthop()) {
1857 oprot.writeString(struct.nexthop);
1859 if (struct.isSetEthtag()) {
1860 oprot.writeI32(struct.ethtag);
1862 if (struct.isSetEsi()) {
1863 oprot.writeString(struct.esi);
1865 if (struct.isSetMacaddress()) {
1866 oprot.writeString(struct.macaddress);
1868 if (struct.isSetL3label()) {
1869 oprot.writeI32(struct.l3label);
1871 if (struct.isSetL2label()) {
1872 oprot.writeI32(struct.l2label);
1874 if (struct.isSetRoutermac()) {
1875 oprot.writeString(struct.routermac);
1880 public void read(org.apache.thrift.protocol.TProtocol prot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1881 TTupleProtocol iprot = (TTupleProtocol) prot;
1882 BitSet incoming = iprot.readBitSet(11);
1883 if (incoming.get(0)) {
1884 struct.p_type = protocol_type.findByValue(iprot.readI32());
1885 struct.setP_typeIsSet(true);
1887 if (incoming.get(1)) {
1888 struct.rd = iprot.readString();
1889 struct.setRdIsSet(true);
1891 if (incoming.get(2)) {
1892 struct.prefix = iprot.readString();
1893 struct.setPrefixIsSet(true);
1895 if (incoming.get(3)) {
1896 struct.prefixlen = iprot.readI32();
1897 struct.setPrefixlenIsSet(true);
1899 if (incoming.get(4)) {
1900 struct.nexthop = iprot.readString();
1901 struct.setNexthopIsSet(true);
1903 if (incoming.get(5)) {
1904 struct.ethtag = iprot.readI32();
1905 struct.setEthtagIsSet(true);
1907 if (incoming.get(6)) {
1908 struct.esi = iprot.readString();
1909 struct.setEsiIsSet(true);
1911 if (incoming.get(7)) {
1912 struct.macaddress = iprot.readString();
1913 struct.setMacaddressIsSet(true);
1915 if (incoming.get(8)) {
1916 struct.l3label = iprot.readI32();
1917 struct.setL3labelIsSet(true);
1919 if (incoming.get(9)) {
1920 struct.l2label = iprot.readI32();
1921 struct.setL2labelIsSet(true);
1923 if (incoming.get(10)) {
1924 struct.routermac = iprot.readString();
1925 struct.setRoutermacIsSet(true);
1932 public static class onUpdateWithdrawRoute_args implements org.apache.thrift.TBase<onUpdateWithdrawRoute_args, onUpdateWithdrawRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<onUpdateWithdrawRoute_args> {
1933 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onUpdateWithdrawRoute_args");
1935 private static final org.apache.thrift.protocol.TField P_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("p_type", org.apache.thrift.protocol.TType.I32, (short)1);
1936 private static final org.apache.thrift.protocol.TField RD_FIELD_DESC = new org.apache.thrift.protocol.TField("rd", org.apache.thrift.protocol.TType.STRING, (short)2);
1937 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)3);
1938 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)4);
1939 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)5);
1940 private static final org.apache.thrift.protocol.TField ETHTAG_FIELD_DESC = new org.apache.thrift.protocol.TField("ethtag", org.apache.thrift.protocol.TType.I32, (short)6);
1941 private static final org.apache.thrift.protocol.TField ESI_FIELD_DESC = new org.apache.thrift.protocol.TField("esi", org.apache.thrift.protocol.TType.STRING, (short)7);
1942 private static final org.apache.thrift.protocol.TField MACADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("macaddress", org.apache.thrift.protocol.TType.STRING, (short)8);
1943 private static final org.apache.thrift.protocol.TField L3LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("l3label", org.apache.thrift.protocol.TType.I32, (short)9);
1944 private static final org.apache.thrift.protocol.TField L2LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("l2label", org.apache.thrift.protocol.TType.I32, (short)10);
1946 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
1948 schemes.put(StandardScheme.class, new onUpdateWithdrawRoute_argsStandardSchemeFactory());
1949 schemes.put(TupleScheme.class, new onUpdateWithdrawRoute_argsTupleSchemeFactory());
1954 * @see protocol_type
1956 public protocol_type p_type; // required
1957 public String rd; // required
1958 public String prefix; // required
1959 public int prefixlen; // required
1960 public String nexthop; // required
1961 public int ethtag; // required
1962 public String esi; // required
1963 public String macaddress; // required
1964 public int l3label; // required
1965 public int l2label; // required
1967 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1968 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1971 * @see protocol_type
1973 P_TYPE((short)1, "p_type"),
1975 PREFIX((short)3, "prefix"),
1976 PREFIXLEN((short)4, "prefixlen"),
1977 NEXTHOP((short)5, "nexthop"),
1978 ETHTAG((short)6, "ethtag"),
1979 ESI((short)7, "esi"),
1980 MACADDRESS((short)8, "macaddress"),
1981 L3LABEL((short)9, "l3label"),
1982 L2LABEL((short)10, "l2label");
1984 private static final Map<String, _Fields> byName = new HashMap<>();
1987 for (_Fields field : EnumSet.allOf(_Fields.class)) {
1988 byName.put(field.getFieldName(), field);
1993 * Find the _Fields constant that matches fieldId, or null if its not found.
1995 public static _Fields findByThriftId(int fieldId) {
2003 case 4: // PREFIXLEN
2011 case 8: // MACADDRESS
2023 * Find the _Fields constant that matches fieldId, throwing an exception
2024 * if it is not found.
2026 public static _Fields findByThriftIdOrThrow(int fieldId) {
2027 _Fields fields = findByThriftId(fieldId);
2028 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2033 * Find the _Fields constant that matches name, or null if its not found.
2035 public static _Fields findByName(String name) {
2036 return byName.get(name);
2039 private final short _thriftId;
2040 private final String _fieldName;
2042 _Fields(short thriftId, String fieldName) {
2043 _thriftId = thriftId;
2044 _fieldName = fieldName;
2047 public short getThriftFieldId() {
2051 public String getFieldName() {
2056 // isset id assignments
2057 private static final int __PREFIXLEN_ISSET_ID = 0;
2058 private static final int __ETHTAG_ISSET_ID = 1;
2059 private static final int __L3LABEL_ISSET_ID = 2;
2060 private static final int __L2LABEL_ISSET_ID = 3;
2061 private byte __isset_bitfield = 0;
2062 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2064 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2065 tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
2066 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
2067 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
2068 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2069 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
2070 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2071 tmpMap.put(_Fields.PREFIXLEN, new org.apache.thrift.meta_data.FieldMetaData("prefixlen", org.apache.thrift.TFieldRequirementType.DEFAULT,
2072 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2073 tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT,
2074 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2075 tmpMap.put(_Fields.ETHTAG, new org.apache.thrift.meta_data.FieldMetaData("ethtag", org.apache.thrift.TFieldRequirementType.DEFAULT,
2076 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2077 tmpMap.put(_Fields.ESI, new org.apache.thrift.meta_data.FieldMetaData("esi", org.apache.thrift.TFieldRequirementType.DEFAULT,
2078 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2079 tmpMap.put(_Fields.MACADDRESS, new org.apache.thrift.meta_data.FieldMetaData("macaddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
2080 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2081 tmpMap.put(_Fields.L3LABEL, new org.apache.thrift.meta_data.FieldMetaData("l3label", org.apache.thrift.TFieldRequirementType.DEFAULT,
2082 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2083 tmpMap.put(_Fields.L2LABEL, new org.apache.thrift.meta_data.FieldMetaData("l2label", org.apache.thrift.TFieldRequirementType.DEFAULT,
2084 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2085 metaDataMap = Collections.unmodifiableMap(tmpMap);
2086 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onUpdateWithdrawRoute_args.class, metaDataMap);
2089 public onUpdateWithdrawRoute_args() {
2092 public onUpdateWithdrawRoute_args(
2093 protocol_type p_type,
2105 this.p_type = p_type;
2107 this.prefix = prefix;
2108 this.prefixlen = prefixlen;
2109 setPrefixlenIsSet(true);
2110 this.nexthop = nexthop;
2111 this.ethtag = ethtag;
2112 setEthtagIsSet(true);
2114 this.macaddress = macaddress;
2115 this.l3label = l3label;
2116 setL3labelIsSet(true);
2117 this.l2label = l2label;
2118 setL2labelIsSet(true);
2122 * Performs a deep copy on <i>other</i>.
2124 public onUpdateWithdrawRoute_args(onUpdateWithdrawRoute_args other) {
2125 __isset_bitfield = other.__isset_bitfield;
2126 if (other.isSetP_type()) {
2127 this.p_type = other.p_type;
2129 if (other.isSetRd()) {
2132 if (other.isSetPrefix()) {
2133 this.prefix = other.prefix;
2135 this.prefixlen = other.prefixlen;
2136 if (other.isSetNexthop()) {
2137 this.nexthop = other.nexthop;
2139 this.ethtag = other.ethtag;
2140 if (other.isSetEsi()) {
2141 this.esi = other.esi;
2143 if (other.isSetMacaddress()) {
2144 this.macaddress = other.macaddress;
2146 this.l3label = other.l3label;
2147 this.l2label = other.l2label;
2150 public onUpdateWithdrawRoute_args deepCopy() {
2151 return new onUpdateWithdrawRoute_args(this);
2155 public void clear() {
2159 setPrefixlenIsSet(false);
2161 this.nexthop = null;
2162 setEthtagIsSet(false);
2165 this.macaddress = null;
2166 setL3labelIsSet(false);
2168 setL2labelIsSet(false);
2174 * @see protocol_type
2176 public protocol_type getP_type() {
2182 * @see protocol_type
2184 public onUpdateWithdrawRoute_args setP_type(protocol_type p_type) {
2185 this.p_type = p_type;
2189 public void unsetP_type() {
2193 /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
2194 public boolean isSetP_type() {
2195 return this.p_type != null;
2198 public void setP_typeIsSet(boolean value) {
2204 public String getRd() {
2208 public onUpdateWithdrawRoute_args setRd(String rd) {
2213 public void unsetRd() {
2217 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
2218 public boolean isSetRd() {
2219 return this.rd != null;
2222 public void setRdIsSet(boolean value) {
2228 public String getPrefix() {
2232 public onUpdateWithdrawRoute_args setPrefix(String prefix) {
2233 this.prefix = prefix;
2237 public void unsetPrefix() {
2241 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
2242 public boolean isSetPrefix() {
2243 return this.prefix != null;
2246 public void setPrefixIsSet(boolean value) {
2252 public int getPrefixlen() {
2253 return this.prefixlen;
2256 public onUpdateWithdrawRoute_args setPrefixlen(int prefixlen) {
2257 this.prefixlen = prefixlen;
2258 setPrefixlenIsSet(true);
2262 public void unsetPrefixlen() {
2263 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
2266 /** Returns true if field prefixlen is set (has been assigned a value) and false otherwise */
2267 public boolean isSetPrefixlen() {
2268 return EncodingUtils.testBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
2271 public void setPrefixlenIsSet(boolean value) {
2272 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PREFIXLEN_ISSET_ID, value);
2275 public String getNexthop() {
2276 return this.nexthop;
2279 public onUpdateWithdrawRoute_args setNexthop(String nexthop) {
2280 this.nexthop = nexthop;
2284 public void unsetNexthop() {
2285 this.nexthop = null;
2288 /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
2289 public boolean isSetNexthop() {
2290 return this.nexthop != null;
2293 public void setNexthopIsSet(boolean value) {
2295 this.nexthop = null;
2299 public int getEthtag() {
2303 public onUpdateWithdrawRoute_args setEthtag(int ethtag) {
2304 this.ethtag = ethtag;
2305 setEthtagIsSet(true);
2309 public void unsetEthtag() {
2310 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ETHTAG_ISSET_ID);
2313 /** Returns true if field ethtag is set (has been assigned a value) and false otherwise */
2314 public boolean isSetEthtag() {
2315 return EncodingUtils.testBit(__isset_bitfield, __ETHTAG_ISSET_ID);
2318 public void setEthtagIsSet(boolean value) {
2319 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ETHTAG_ISSET_ID, value);
2322 public String getEsi() {
2326 public onUpdateWithdrawRoute_args setEsi(String esi) {
2331 public void unsetEsi() {
2335 /** Returns true if field esi is set (has been assigned a value) and false otherwise */
2336 public boolean isSetEsi() {
2337 return this.esi != null;
2340 public void setEsiIsSet(boolean value) {
2346 public String getMacaddress() {
2347 return this.macaddress;
2350 public onUpdateWithdrawRoute_args setMacaddress(String macaddress) {
2351 this.macaddress = macaddress;
2355 public void unsetMacaddress() {
2356 this.macaddress = null;
2359 /** Returns true if field macaddress is set (has been assigned a value) and false otherwise */
2360 public boolean isSetMacaddress() {
2361 return this.macaddress != null;
2364 public void setMacaddressIsSet(boolean value) {
2366 this.macaddress = null;
2370 public int getL3label() {
2371 return this.l3label;
2374 public onUpdateWithdrawRoute_args setL3label(int l3label) {
2375 this.l3label = l3label;
2376 setL3labelIsSet(true);
2380 public void unsetL3label() {
2381 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L3LABEL_ISSET_ID);
2384 /** Returns true if field l3label is set (has been assigned a value) and false otherwise */
2385 public boolean isSetL3label() {
2386 return EncodingUtils.testBit(__isset_bitfield, __L3LABEL_ISSET_ID);
2389 public void setL3labelIsSet(boolean value) {
2390 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L3LABEL_ISSET_ID, value);
2393 public int getL2label() {
2394 return this.l2label;
2397 public onUpdateWithdrawRoute_args setL2label(int l2label) {
2398 this.l2label = l2label;
2399 setL2labelIsSet(true);
2403 public void unsetL2label() {
2404 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L2LABEL_ISSET_ID);
2407 /** Returns true if field l2label is set (has been assigned a value) and false otherwise */
2408 public boolean isSetL2label() {
2409 return EncodingUtils.testBit(__isset_bitfield, __L2LABEL_ISSET_ID);
2412 public void setL2labelIsSet(boolean value) {
2413 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L2LABEL_ISSET_ID, value);
2416 public void setFieldValue(_Fields field, Object value) {
2419 if (value == null) {
2422 setP_type((protocol_type)value);
2427 if (value == null) {
2430 setRd((String)value);
2435 if (value == null) {
2438 setPrefix((String)value);
2443 if (value == null) {
2446 setPrefixlen((Integer)value);
2451 if (value == null) {
2454 setNexthop((String)value);
2459 if (value == null) {
2462 setEthtag((Integer)value);
2467 if (value == null) {
2470 setEsi((String)value);
2475 if (value == null) {
2478 setMacaddress((String)value);
2483 if (value == null) {
2486 setL3label((Integer)value);
2491 if (value == null) {
2494 setL2label((Integer)value);
2501 public Object getFieldValue(_Fields field) {
2513 return Integer.valueOf(getPrefixlen());
2516 return getNexthop();
2519 return Integer.valueOf(getEthtag());
2525 return getMacaddress();
2528 return Integer.valueOf(getL3label());
2531 return Integer.valueOf(getL2label());
2534 throw new IllegalStateException();
2537 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2538 public boolean isSet(_Fields field) {
2539 if (field == null) {
2540 throw new IllegalArgumentException();
2545 return isSetP_type();
2549 return isSetPrefix();
2551 return isSetPrefixlen();
2553 return isSetNexthop();
2555 return isSetEthtag();
2559 return isSetMacaddress();
2561 return isSetL3label();
2563 return isSetL2label();
2565 throw new IllegalStateException();
2569 public boolean equals(Object that) {
2572 if (that instanceof onUpdateWithdrawRoute_args)
2573 return this.equals((onUpdateWithdrawRoute_args)that);
2577 public boolean equals(onUpdateWithdrawRoute_args that) {
2581 boolean this_present_p_type = true && this.isSetP_type();
2582 boolean that_present_p_type = true && that.isSetP_type();
2583 if (this_present_p_type || that_present_p_type) {
2584 if (!(this_present_p_type && that_present_p_type))
2586 if (!this.p_type.equals(that.p_type))
2590 boolean this_present_rd = true && this.isSetRd();
2591 boolean that_present_rd = true && that.isSetRd();
2592 if (this_present_rd || that_present_rd) {
2593 if (!(this_present_rd && that_present_rd))
2595 if (!this.rd.equals(that.rd))
2599 boolean this_present_prefix = true && this.isSetPrefix();
2600 boolean that_present_prefix = true && that.isSetPrefix();
2601 if (this_present_prefix || that_present_prefix) {
2602 if (!(this_present_prefix && that_present_prefix))
2604 if (!this.prefix.equals(that.prefix))
2608 boolean this_present_prefixlen = true;
2609 boolean that_present_prefixlen = true;
2610 if (this_present_prefixlen || that_present_prefixlen) {
2611 if (!(this_present_prefixlen && that_present_prefixlen))
2613 if (this.prefixlen != that.prefixlen)
2617 boolean this_present_nexthop = true && this.isSetNexthop();
2618 boolean that_present_nexthop = true && that.isSetNexthop();
2619 if (this_present_nexthop || that_present_nexthop) {
2620 if (!(this_present_nexthop && that_present_nexthop))
2622 if (!this.nexthop.equals(that.nexthop))
2626 boolean this_present_ethtag = true;
2627 boolean that_present_ethtag = true;
2628 if (this_present_ethtag || that_present_ethtag) {
2629 if (!(this_present_ethtag && that_present_ethtag))
2631 if (this.ethtag != that.ethtag)
2635 boolean this_present_esi = true && this.isSetEsi();
2636 boolean that_present_esi = true && that.isSetEsi();
2637 if (this_present_esi || that_present_esi) {
2638 if (!(this_present_esi && that_present_esi))
2640 if (!this.esi.equals(that.esi))
2644 boolean this_present_macaddress = true && this.isSetMacaddress();
2645 boolean that_present_macaddress = true && that.isSetMacaddress();
2646 if (this_present_macaddress || that_present_macaddress) {
2647 if (!(this_present_macaddress && that_present_macaddress))
2649 if (!this.macaddress.equals(that.macaddress))
2653 boolean this_present_l3label = true;
2654 boolean that_present_l3label = true;
2655 if (this_present_l3label || that_present_l3label) {
2656 if (!(this_present_l3label && that_present_l3label))
2658 if (this.l3label != that.l3label)
2662 boolean this_present_l2label = true;
2663 boolean that_present_l2label = true;
2664 if (this_present_l2label || that_present_l2label) {
2665 if (!(this_present_l2label && that_present_l2label))
2667 if (this.l2label != that.l2label)
2675 public int hashCode() {
2680 public int compareTo(onUpdateWithdrawRoute_args other) {
2681 if (!getClass().equals(other.getClass())) {
2682 return getClass().getName().compareTo(other.getClass().getName());
2685 int lastComparison = 0;
2687 lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
2688 if (lastComparison != 0) {
2689 return lastComparison;
2691 if (isSetP_type()) {
2692 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
2693 if (lastComparison != 0) {
2694 return lastComparison;
2697 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
2698 if (lastComparison != 0) {
2699 return lastComparison;
2702 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
2703 if (lastComparison != 0) {
2704 return lastComparison;
2707 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
2708 if (lastComparison != 0) {
2709 return lastComparison;
2711 if (isSetPrefix()) {
2712 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
2713 if (lastComparison != 0) {
2714 return lastComparison;
2717 lastComparison = Boolean.valueOf(isSetPrefixlen()).compareTo(other.isSetPrefixlen());
2718 if (lastComparison != 0) {
2719 return lastComparison;
2721 if (isSetPrefixlen()) {
2722 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefixlen, other.prefixlen);
2723 if (lastComparison != 0) {
2724 return lastComparison;
2727 lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
2728 if (lastComparison != 0) {
2729 return lastComparison;
2731 if (isSetNexthop()) {
2732 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
2733 if (lastComparison != 0) {
2734 return lastComparison;
2737 lastComparison = Boolean.valueOf(isSetEthtag()).compareTo(other.isSetEthtag());
2738 if (lastComparison != 0) {
2739 return lastComparison;
2741 if (isSetEthtag()) {
2742 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ethtag, other.ethtag);
2743 if (lastComparison != 0) {
2744 return lastComparison;
2747 lastComparison = Boolean.valueOf(isSetEsi()).compareTo(other.isSetEsi());
2748 if (lastComparison != 0) {
2749 return lastComparison;
2752 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.esi, other.esi);
2753 if (lastComparison != 0) {
2754 return lastComparison;
2757 lastComparison = Boolean.valueOf(isSetMacaddress()).compareTo(other.isSetMacaddress());
2758 if (lastComparison != 0) {
2759 return lastComparison;
2761 if (isSetMacaddress()) {
2762 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.macaddress, other.macaddress);
2763 if (lastComparison != 0) {
2764 return lastComparison;
2767 lastComparison = Boolean.valueOf(isSetL3label()).compareTo(other.isSetL3label());
2768 if (lastComparison != 0) {
2769 return lastComparison;
2771 if (isSetL3label()) {
2772 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l3label, other.l3label);
2773 if (lastComparison != 0) {
2774 return lastComparison;
2777 lastComparison = Boolean.valueOf(isSetL2label()).compareTo(other.isSetL2label());
2778 if (lastComparison != 0) {
2779 return lastComparison;
2781 if (isSetL2label()) {
2782 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l2label, other.l2label);
2783 if (lastComparison != 0) {
2784 return lastComparison;
2790 public _Fields fieldForId(int fieldId) {
2791 return _Fields.findByThriftId(fieldId);
2794 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2795 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
2798 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2799 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
2803 public String toString() {
2804 StringBuilder sb = new StringBuilder("onUpdateWithdrawRoute_args(");
2805 boolean first = true;
2807 sb.append("p_type:");
2808 if (this.p_type == null) {
2811 sb.append(this.p_type);
2814 if (!first) sb.append(", ");
2816 if (this.rd == null) {
2822 if (!first) sb.append(", ");
2823 sb.append("prefix:");
2824 if (this.prefix == null) {
2827 sb.append(this.prefix);
2830 if (!first) sb.append(", ");
2831 sb.append("prefixlen:");
2832 sb.append(this.prefixlen);
2834 if (!first) sb.append(", ");
2835 sb.append("nexthop:");
2836 if (this.nexthop == null) {
2839 sb.append(this.nexthop);
2842 if (!first) sb.append(", ");
2843 sb.append("ethtag:");
2844 sb.append(this.ethtag);
2846 if (!first) sb.append(", ");
2848 if (this.esi == null) {
2851 sb.append(this.esi);
2854 if (!first) sb.append(", ");
2855 sb.append("macaddress:");
2856 if (this.macaddress == null) {
2859 sb.append(this.macaddress);
2862 if (!first) sb.append(", ");
2863 sb.append("l3label:");
2864 sb.append(this.l3label);
2866 if (!first) sb.append(", ");
2867 sb.append("l2label:");
2868 sb.append(this.l2label);
2871 return sb.toString();
2874 public void validate() throws org.apache.thrift.TException {
2875 // check for required fields
2876 // check for sub-struct validity
2879 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2881 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2882 } catch (org.apache.thrift.TException te) {
2883 throw new java.io.IOException(te);
2887 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2889 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
2890 __isset_bitfield = 0;
2891 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2892 } catch (org.apache.thrift.TException te) {
2893 throw new java.io.IOException(te);
2897 private static class onUpdateWithdrawRoute_argsStandardSchemeFactory implements SchemeFactory {
2898 public onUpdateWithdrawRoute_argsStandardScheme getScheme() {
2899 return new onUpdateWithdrawRoute_argsStandardScheme();
2903 private static class onUpdateWithdrawRoute_argsStandardScheme extends StandardScheme<onUpdateWithdrawRoute_args> {
2905 public void read(org.apache.thrift.protocol.TProtocol iprot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
2906 org.apache.thrift.protocol.TField schemeField;
2907 iprot.readStructBegin();
2910 schemeField = iprot.readFieldBegin();
2911 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
2914 switch (schemeField.id) {
2916 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
2917 struct.p_type = protocol_type.findByValue(iprot.readI32());
2918 struct.setP_typeIsSet(true);
2920 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2924 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
2925 struct.rd = iprot.readString();
2926 struct.setRdIsSet(true);
2928 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2932 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
2933 struct.prefix = iprot.readString();
2934 struct.setPrefixIsSet(true);
2936 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2939 case 4: // PREFIXLEN
2940 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
2941 struct.prefixlen = iprot.readI32();
2942 struct.setPrefixlenIsSet(true);
2944 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2948 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
2949 struct.nexthop = iprot.readString();
2950 struct.setNexthopIsSet(true);
2952 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2956 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
2957 struct.ethtag = iprot.readI32();
2958 struct.setEthtagIsSet(true);
2960 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2964 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
2965 struct.esi = iprot.readString();
2966 struct.setEsiIsSet(true);
2968 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2971 case 8: // MACADDRESS
2972 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
2973 struct.macaddress = iprot.readString();
2974 struct.setMacaddressIsSet(true);
2976 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2980 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
2981 struct.l3label = iprot.readI32();
2982 struct.setL3labelIsSet(true);
2984 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2988 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
2989 struct.l2label = iprot.readI32();
2990 struct.setL2labelIsSet(true);
2992 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2996 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2998 iprot.readFieldEnd();
3000 iprot.readStructEnd();
3002 // check for required fields of primitive type, which can't be checked in the validate method
3006 public void write(org.apache.thrift.protocol.TProtocol oprot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
3009 oprot.writeStructBegin(STRUCT_DESC);
3010 if (struct.p_type != null) {
3011 oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
3012 oprot.writeI32(struct.p_type.getValue());
3013 oprot.writeFieldEnd();
3015 if (struct.rd != null) {
3016 oprot.writeFieldBegin(RD_FIELD_DESC);
3017 oprot.writeString(struct.rd);
3018 oprot.writeFieldEnd();
3020 if (struct.prefix != null) {
3021 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
3022 oprot.writeString(struct.prefix);
3023 oprot.writeFieldEnd();
3025 oprot.writeFieldBegin(PREFIXLEN_FIELD_DESC);
3026 oprot.writeI32(struct.prefixlen);
3027 oprot.writeFieldEnd();
3028 if (struct.nexthop != null) {
3029 oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
3030 oprot.writeString(struct.nexthop);
3031 oprot.writeFieldEnd();
3033 oprot.writeFieldBegin(ETHTAG_FIELD_DESC);
3034 oprot.writeI32(struct.ethtag);
3035 oprot.writeFieldEnd();
3036 if (struct.esi != null) {
3037 oprot.writeFieldBegin(ESI_FIELD_DESC);
3038 oprot.writeString(struct.esi);
3039 oprot.writeFieldEnd();
3041 if (struct.macaddress != null) {
3042 oprot.writeFieldBegin(MACADDRESS_FIELD_DESC);
3043 oprot.writeString(struct.macaddress);
3044 oprot.writeFieldEnd();
3046 oprot.writeFieldBegin(L3LABEL_FIELD_DESC);
3047 oprot.writeI32(struct.l3label);
3048 oprot.writeFieldEnd();
3049 oprot.writeFieldBegin(L2LABEL_FIELD_DESC);
3050 oprot.writeI32(struct.l2label);
3051 oprot.writeFieldEnd();
3052 oprot.writeFieldStop();
3053 oprot.writeStructEnd();
3058 private static class onUpdateWithdrawRoute_argsTupleSchemeFactory implements SchemeFactory {
3059 public onUpdateWithdrawRoute_argsTupleScheme getScheme() {
3060 return new onUpdateWithdrawRoute_argsTupleScheme();
3064 private static class onUpdateWithdrawRoute_argsTupleScheme extends TupleScheme<onUpdateWithdrawRoute_args> {
3067 public void write(org.apache.thrift.protocol.TProtocol prot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
3068 TTupleProtocol oprot = (TTupleProtocol) prot;
3069 BitSet optionals = new BitSet();
3070 if (struct.isSetP_type()) {
3073 if (struct.isSetRd()) {
3076 if (struct.isSetPrefix()) {
3079 if (struct.isSetPrefixlen()) {
3082 if (struct.isSetNexthop()) {
3085 if (struct.isSetEthtag()) {
3088 if (struct.isSetEsi()) {
3091 if (struct.isSetMacaddress()) {
3094 if (struct.isSetL3label()) {
3097 if (struct.isSetL2label()) {
3100 oprot.writeBitSet(optionals, 10);
3101 if (struct.isSetP_type()) {
3102 oprot.writeI32(struct.p_type.getValue());
3104 if (struct.isSetRd()) {
3105 oprot.writeString(struct.rd);
3107 if (struct.isSetPrefix()) {
3108 oprot.writeString(struct.prefix);
3110 if (struct.isSetPrefixlen()) {
3111 oprot.writeI32(struct.prefixlen);
3113 if (struct.isSetNexthop()) {
3114 oprot.writeString(struct.nexthop);
3116 if (struct.isSetEthtag()) {
3117 oprot.writeI32(struct.ethtag);
3119 if (struct.isSetEsi()) {
3120 oprot.writeString(struct.esi);
3122 if (struct.isSetMacaddress()) {
3123 oprot.writeString(struct.macaddress);
3125 if (struct.isSetL3label()) {
3126 oprot.writeI32(struct.l3label);
3128 if (struct.isSetL2label()) {
3129 oprot.writeI32(struct.l2label);
3134 public void read(org.apache.thrift.protocol.TProtocol prot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
3135 TTupleProtocol iprot = (TTupleProtocol) prot;
3136 BitSet incoming = iprot.readBitSet(10);
3137 if (incoming.get(0)) {
3138 struct.p_type = protocol_type.findByValue(iprot.readI32());
3139 struct.setP_typeIsSet(true);
3141 if (incoming.get(1)) {
3142 struct.rd = iprot.readString();
3143 struct.setRdIsSet(true);
3145 if (incoming.get(2)) {
3146 struct.prefix = iprot.readString();
3147 struct.setPrefixIsSet(true);
3149 if (incoming.get(3)) {
3150 struct.prefixlen = iprot.readI32();
3151 struct.setPrefixlenIsSet(true);
3153 if (incoming.get(4)) {
3154 struct.nexthop = iprot.readString();
3155 struct.setNexthopIsSet(true);
3157 if (incoming.get(5)) {
3158 struct.ethtag = iprot.readI32();
3159 struct.setEthtagIsSet(true);
3161 if (incoming.get(6)) {
3162 struct.esi = iprot.readString();
3163 struct.setEsiIsSet(true);
3165 if (incoming.get(7)) {
3166 struct.macaddress = iprot.readString();
3167 struct.setMacaddressIsSet(true);
3169 if (incoming.get(8)) {
3170 struct.l3label = iprot.readI32();
3171 struct.setL3labelIsSet(true);
3173 if (incoming.get(9)) {
3174 struct.l2label = iprot.readI32();
3175 struct.setL2labelIsSet(true);
3182 public static class onStartConfigResyncNotification_args implements org.apache.thrift.TBase<onStartConfigResyncNotification_args, onStartConfigResyncNotification_args._Fields>, java.io.Serializable, Cloneable, Comparable<onStartConfigResyncNotification_args> {
3183 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onStartConfigResyncNotification_args");
3186 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
3188 schemes.put(StandardScheme.class, new onStartConfigResyncNotification_argsStandardSchemeFactory());
3189 schemes.put(TupleScheme.class, new onStartConfigResyncNotification_argsTupleSchemeFactory());
3193 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3194 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3197 private static final Map<String, _Fields> byName = new HashMap<>();
3200 for (_Fields field : EnumSet.allOf(_Fields.class)) {
3201 byName.put(field.getFieldName(), field);
3206 * Find the _Fields constant that matches fieldId, or null if its not found.
3208 public static _Fields findByThriftId(int fieldId) {
3216 * Find the _Fields constant that matches fieldId, throwing an exception
3217 * if it is not found.
3219 public static _Fields findByThriftIdOrThrow(int fieldId) {
3220 _Fields fields = findByThriftId(fieldId);
3221 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3226 * Find the _Fields constant that matches name, or null if its not found.
3228 public static _Fields findByName(String name) {
3229 return byName.get(name);
3232 private final short _thriftId;
3233 private final String _fieldName;
3235 _Fields(short thriftId, String fieldName) {
3236 _thriftId = thriftId;
3237 _fieldName = fieldName;
3240 public short getThriftFieldId() {
3244 public String getFieldName() {
3248 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3250 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
3251 metaDataMap = Collections.unmodifiableMap(tmpMap);
3252 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onStartConfigResyncNotification_args.class, metaDataMap);
3255 public onStartConfigResyncNotification_args() {
3259 * Performs a deep copy on <i>other</i>.
3261 public onStartConfigResyncNotification_args(onStartConfigResyncNotification_args other) {
3264 public onStartConfigResyncNotification_args deepCopy() {
3265 return new onStartConfigResyncNotification_args(this);
3269 public void clear() {
3272 public void setFieldValue(_Fields field, Object value) {
3277 public Object getFieldValue(_Fields field) {
3280 throw new IllegalStateException();
3283 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3284 public boolean isSet(_Fields field) {
3285 if (field == null) {
3286 throw new IllegalArgumentException();
3291 throw new IllegalStateException();
3295 public boolean equals(Object that) {
3298 if (that instanceof onStartConfigResyncNotification_args)
3299 return this.equals((onStartConfigResyncNotification_args)that);
3303 public boolean equals(onStartConfigResyncNotification_args that) {
3311 public int hashCode() {
3316 public int compareTo(onStartConfigResyncNotification_args other) {
3317 if (!getClass().equals(other.getClass())) {
3318 return getClass().getName().compareTo(other.getClass().getName());
3321 int lastComparison = 0;
3326 public _Fields fieldForId(int fieldId) {
3327 return _Fields.findByThriftId(fieldId);
3330 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3331 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3334 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3335 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3339 public String toString() {
3340 StringBuilder sb = new StringBuilder("onStartConfigResyncNotification_args(");
3341 boolean first = true;
3344 return sb.toString();
3347 public void validate() throws org.apache.thrift.TException {
3348 // check for required fields
3349 // check for sub-struct validity
3352 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3354 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3355 } catch (org.apache.thrift.TException te) {
3356 throw new java.io.IOException(te);
3360 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3362 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3363 } catch (org.apache.thrift.TException te) {
3364 throw new java.io.IOException(te);
3368 private static class onStartConfigResyncNotification_argsStandardSchemeFactory implements SchemeFactory {
3369 public onStartConfigResyncNotification_argsStandardScheme getScheme() {
3370 return new onStartConfigResyncNotification_argsStandardScheme();
3374 private static class onStartConfigResyncNotification_argsStandardScheme extends StandardScheme<onStartConfigResyncNotification_args> {
3376 public void read(org.apache.thrift.protocol.TProtocol iprot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
3377 org.apache.thrift.protocol.TField schemeField;
3378 iprot.readStructBegin();
3381 schemeField = iprot.readFieldBegin();
3382 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
3385 switch (schemeField.id) {
3387 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3389 iprot.readFieldEnd();
3391 iprot.readStructEnd();
3393 // check for required fields of primitive type, which can't be checked in the validate method
3397 public void write(org.apache.thrift.protocol.TProtocol oprot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
3400 oprot.writeStructBegin(STRUCT_DESC);
3401 oprot.writeFieldStop();
3402 oprot.writeStructEnd();
3407 private static class onStartConfigResyncNotification_argsTupleSchemeFactory implements SchemeFactory {
3408 public onStartConfigResyncNotification_argsTupleScheme getScheme() {
3409 return new onStartConfigResyncNotification_argsTupleScheme();
3413 private static class onStartConfigResyncNotification_argsTupleScheme extends TupleScheme<onStartConfigResyncNotification_args> {
3416 public void write(org.apache.thrift.protocol.TProtocol prot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
3417 TTupleProtocol oprot = (TTupleProtocol) prot;
3421 public void read(org.apache.thrift.protocol.TProtocol prot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
3422 TTupleProtocol iprot = (TTupleProtocol) prot;
3428 public static class onNotificationSendEvent_args implements org.apache.thrift.TBase<onNotificationSendEvent_args, onNotificationSendEvent_args._Fields>, java.io.Serializable, Cloneable, Comparable<onNotificationSendEvent_args> {
3429 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onNotificationSendEvent_args");
3431 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);
3432 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);
3433 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);
3435 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
3437 schemes.put(StandardScheme.class, new onNotificationSendEvent_argsStandardSchemeFactory());
3438 schemes.put(TupleScheme.class, new onNotificationSendEvent_argsTupleSchemeFactory());
3441 public String prefix; // required
3442 public byte errCode; // required
3443 public byte errSubcode; // required
3445 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3446 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3447 PREFIX((short)1, "prefix"),
3448 ERR_CODE((short)2, "errCode"),
3449 ERR_SUBCODE((short)3, "errSubcode");
3451 private static final Map<String, _Fields> byName = new HashMap<>();
3454 for (_Fields field : EnumSet.allOf(_Fields.class)) {
3455 byName.put(field.getFieldName(), field);
3460 * Find the _Fields constant that matches fieldId, or null if its not found.
3462 public static _Fields findByThriftId(int fieldId) {
3468 case 3: // ERR_SUBCODE
3476 * Find the _Fields constant that matches fieldId, throwing an exception
3477 * if it is not found.
3479 public static _Fields findByThriftIdOrThrow(int fieldId) {
3480 _Fields fields = findByThriftId(fieldId);
3481 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3486 * Find the _Fields constant that matches name, or null if its not found.
3488 public static _Fields findByName(String name) {
3489 return byName.get(name);
3492 private final short _thriftId;
3493 private final String _fieldName;
3495 _Fields(short thriftId, String fieldName) {
3496 _thriftId = thriftId;
3497 _fieldName = fieldName;
3500 public short getThriftFieldId() {
3504 public String getFieldName() {
3509 // isset id assignments
3510 private static final int __ERRCODE_ISSET_ID = 0;
3511 private static final int __ERRSUBCODE_ISSET_ID = 1;
3512 private byte __isset_bitfield = 0;
3513 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3515 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3516 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
3517 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3518 tmpMap.put(_Fields.ERR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
3519 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BYTE)));
3520 tmpMap.put(_Fields.ERR_SUBCODE, new org.apache.thrift.meta_data.FieldMetaData("errSubcode", org.apache.thrift.TFieldRequirementType.DEFAULT,
3521 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BYTE)));
3522 metaDataMap = Collections.unmodifiableMap(tmpMap);
3523 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onNotificationSendEvent_args.class, metaDataMap);
3526 public onNotificationSendEvent_args() {
3529 public onNotificationSendEvent_args(
3535 this.prefix = prefix;
3536 this.errCode = errCode;
3537 setErrCodeIsSet(true);
3538 this.errSubcode = errSubcode;
3539 setErrSubcodeIsSet(true);
3543 * Performs a deep copy on <i>other</i>.
3545 public onNotificationSendEvent_args(onNotificationSendEvent_args other) {
3546 __isset_bitfield = other.__isset_bitfield;
3547 if (other.isSetPrefix()) {
3548 this.prefix = other.prefix;
3550 this.errCode = other.errCode;
3551 this.errSubcode = other.errSubcode;
3554 public onNotificationSendEvent_args deepCopy() {
3555 return new onNotificationSendEvent_args(this);
3559 public void clear() {
3561 setErrCodeIsSet(false);
3563 setErrSubcodeIsSet(false);
3564 this.errSubcode = 0;
3567 public String getPrefix() {
3571 public onNotificationSendEvent_args setPrefix(String prefix) {
3572 this.prefix = prefix;
3576 public void unsetPrefix() {
3580 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
3581 public boolean isSetPrefix() {
3582 return this.prefix != null;
3585 public void setPrefixIsSet(boolean value) {
3591 public byte getErrCode() {
3592 return this.errCode;
3595 public onNotificationSendEvent_args setErrCode(byte errCode) {
3596 this.errCode = errCode;
3597 setErrCodeIsSet(true);
3601 public void unsetErrCode() {
3602 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ERRCODE_ISSET_ID);
3605 /** Returns true if field errCode is set (has been assigned a value) and false otherwise */
3606 public boolean isSetErrCode() {
3607 return EncodingUtils.testBit(__isset_bitfield, __ERRCODE_ISSET_ID);
3610 public void setErrCodeIsSet(boolean value) {
3611 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ERRCODE_ISSET_ID, value);
3614 public byte getErrSubcode() {
3615 return this.errSubcode;
3618 public onNotificationSendEvent_args setErrSubcode(byte errSubcode) {
3619 this.errSubcode = errSubcode;
3620 setErrSubcodeIsSet(true);
3624 public void unsetErrSubcode() {
3625 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ERRSUBCODE_ISSET_ID);
3628 /** Returns true if field errSubcode is set (has been assigned a value) and false otherwise */
3629 public boolean isSetErrSubcode() {
3630 return EncodingUtils.testBit(__isset_bitfield, __ERRSUBCODE_ISSET_ID);
3633 public void setErrSubcodeIsSet(boolean value) {
3634 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ERRSUBCODE_ISSET_ID, value);
3637 public void setFieldValue(_Fields field, Object value) {
3640 if (value == null) {
3643 setPrefix((String)value);
3648 if (value == null) {
3651 setErrCode((Byte)value);
3656 if (value == null) {
3659 setErrSubcode((Byte)value);
3666 public Object getFieldValue(_Fields field) {
3672 return Byte.valueOf(getErrCode());
3675 return Byte.valueOf(getErrSubcode());
3678 throw new IllegalStateException();
3681 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3682 public boolean isSet(_Fields field) {
3683 if (field == null) {
3684 throw new IllegalArgumentException();
3689 return isSetPrefix();
3691 return isSetErrCode();
3693 return isSetErrSubcode();
3695 throw new IllegalStateException();
3699 public boolean equals(Object that) {
3702 if (that instanceof onNotificationSendEvent_args)
3703 return this.equals((onNotificationSendEvent_args)that);
3707 public boolean equals(onNotificationSendEvent_args that) {
3711 boolean this_present_prefix = true && this.isSetPrefix();
3712 boolean that_present_prefix = true && that.isSetPrefix();
3713 if (this_present_prefix || that_present_prefix) {
3714 if (!(this_present_prefix && that_present_prefix))
3716 if (!this.prefix.equals(that.prefix))
3720 boolean this_present_errCode = true;
3721 boolean that_present_errCode = true;
3722 if (this_present_errCode || that_present_errCode) {
3723 if (!(this_present_errCode && that_present_errCode))
3725 if (this.errCode != that.errCode)
3729 boolean this_present_errSubcode = true;
3730 boolean that_present_errSubcode = true;
3731 if (this_present_errSubcode || that_present_errSubcode) {
3732 if (!(this_present_errSubcode && that_present_errSubcode))
3734 if (this.errSubcode != that.errSubcode)
3742 public int hashCode() {
3747 public int compareTo(onNotificationSendEvent_args other) {
3748 if (!getClass().equals(other.getClass())) {
3749 return getClass().getName().compareTo(other.getClass().getName());
3752 int lastComparison = 0;
3754 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
3755 if (lastComparison != 0) {
3756 return lastComparison;
3758 if (isSetPrefix()) {
3759 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
3760 if (lastComparison != 0) {
3761 return lastComparison;
3764 lastComparison = Boolean.valueOf(isSetErrCode()).compareTo(other.isSetErrCode());
3765 if (lastComparison != 0) {
3766 return lastComparison;
3768 if (isSetErrCode()) {
3769 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errCode, other.errCode);
3770 if (lastComparison != 0) {
3771 return lastComparison;
3774 lastComparison = Boolean.valueOf(isSetErrSubcode()).compareTo(other.isSetErrSubcode());
3775 if (lastComparison != 0) {
3776 return lastComparison;
3778 if (isSetErrSubcode()) {
3779 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errSubcode, other.errSubcode);
3780 if (lastComparison != 0) {
3781 return lastComparison;
3787 public _Fields fieldForId(int fieldId) {
3788 return _Fields.findByThriftId(fieldId);
3791 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3792 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3795 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3796 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3800 public String toString() {
3801 StringBuilder sb = new StringBuilder("onNotificationSendEvent_args(");
3802 boolean first = true;
3804 sb.append("prefix:");
3805 if (this.prefix == null) {
3808 sb.append(this.prefix);
3811 if (!first) sb.append(", ");
3812 sb.append("errCode:");
3813 sb.append(this.errCode);
3815 if (!first) sb.append(", ");
3816 sb.append("errSubcode:");
3817 sb.append(this.errSubcode);
3820 return sb.toString();
3823 public void validate() throws org.apache.thrift.TException {
3824 // check for required fields
3825 // check for sub-struct validity
3828 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3830 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3831 } catch (org.apache.thrift.TException te) {
3832 throw new java.io.IOException(te);
3836 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3838 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3839 __isset_bitfield = 0;
3840 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3841 } catch (org.apache.thrift.TException te) {
3842 throw new java.io.IOException(te);
3846 private static class onNotificationSendEvent_argsStandardSchemeFactory implements SchemeFactory {
3847 public onNotificationSendEvent_argsStandardScheme getScheme() {
3848 return new onNotificationSendEvent_argsStandardScheme();
3852 private static class onNotificationSendEvent_argsStandardScheme extends StandardScheme<onNotificationSendEvent_args> {
3854 public void read(org.apache.thrift.protocol.TProtocol iprot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
3855 org.apache.thrift.protocol.TField schemeField;
3856 iprot.readStructBegin();
3859 schemeField = iprot.readFieldBegin();
3860 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
3863 switch (schemeField.id) {
3865 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
3866 struct.prefix = iprot.readString();
3867 struct.setPrefixIsSet(true);
3869 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3873 if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) {
3874 struct.errCode = iprot.readByte();
3875 struct.setErrCodeIsSet(true);
3877 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3880 case 3: // ERR_SUBCODE
3881 if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) {
3882 struct.errSubcode = iprot.readByte();
3883 struct.setErrSubcodeIsSet(true);
3885 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3889 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3891 iprot.readFieldEnd();
3893 iprot.readStructEnd();
3895 // check for required fields of primitive type, which can't be checked in the validate method
3899 public void write(org.apache.thrift.protocol.TProtocol oprot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
3902 oprot.writeStructBegin(STRUCT_DESC);
3903 if (struct.prefix != null) {
3904 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
3905 oprot.writeString(struct.prefix);
3906 oprot.writeFieldEnd();
3908 oprot.writeFieldBegin(ERR_CODE_FIELD_DESC);
3909 oprot.writeByte(struct.errCode);
3910 oprot.writeFieldEnd();
3911 oprot.writeFieldBegin(ERR_SUBCODE_FIELD_DESC);
3912 oprot.writeByte(struct.errSubcode);
3913 oprot.writeFieldEnd();
3914 oprot.writeFieldStop();
3915 oprot.writeStructEnd();
3920 private static class onNotificationSendEvent_argsTupleSchemeFactory implements SchemeFactory {
3921 public onNotificationSendEvent_argsTupleScheme getScheme() {
3922 return new onNotificationSendEvent_argsTupleScheme();
3926 private static class onNotificationSendEvent_argsTupleScheme extends TupleScheme<onNotificationSendEvent_args> {
3929 public void write(org.apache.thrift.protocol.TProtocol prot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
3930 TTupleProtocol oprot = (TTupleProtocol) prot;
3931 BitSet optionals = new BitSet();
3932 if (struct.isSetPrefix()) {
3935 if (struct.isSetErrCode()) {
3938 if (struct.isSetErrSubcode()) {
3941 oprot.writeBitSet(optionals, 3);
3942 if (struct.isSetPrefix()) {
3943 oprot.writeString(struct.prefix);
3945 if (struct.isSetErrCode()) {
3946 oprot.writeByte(struct.errCode);
3948 if (struct.isSetErrSubcode()) {
3949 oprot.writeByte(struct.errSubcode);
3954 public void read(org.apache.thrift.protocol.TProtocol prot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
3955 TTupleProtocol iprot = (TTupleProtocol) prot;
3956 BitSet incoming = iprot.readBitSet(3);
3957 if (incoming.get(0)) {
3958 struct.prefix = iprot.readString();
3959 struct.setPrefixIsSet(true);
3961 if (incoming.get(1)) {
3962 struct.errCode = iprot.readByte();
3963 struct.setErrCodeIsSet(true);
3965 if (incoming.get(2)) {
3966 struct.errSubcode = iprot.readByte();
3967 struct.setErrSubcodeIsSet(true);