2 * Autogenerated by Thrift Compiler (0.9.3)
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
8 package org.opendaylight.netvirt.bgpmanager.thrift.gen;
9 import org.apache.thrift.scheme.IScheme;
10 import org.apache.thrift.scheme.SchemeFactory;
11 import org.apache.thrift.scheme.StandardScheme;
13 import org.apache.thrift.scheme.TupleScheme;
14 import org.apache.thrift.protocol.TTupleProtocol;
15 import org.apache.thrift.protocol.TProtocolException;
16 import org.apache.thrift.EncodingUtils;
17 import org.apache.thrift.TException;
18 import org.apache.thrift.async.AsyncMethodCallback;
19 import org.apache.thrift.server.AbstractNonblockingServer.*;
20 import java.util.List;
21 import java.util.ArrayList;
23 import java.util.HashMap;
24 import java.util.EnumMap;
26 import java.util.HashSet;
27 import java.util.EnumSet;
28 import java.util.Collections;
29 import java.util.BitSet;
30 import java.nio.ByteBuffer;
31 import java.util.Arrays;
32 import javax.annotation.Generated;
33 import org.slf4j.Logger;
34 import org.slf4j.LoggerFactory;
36 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
37 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-09-13")
38 public class BgpUpdater {
40 public interface Iface {
42 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, af_afi afi) throws org.apache.thrift.TException;
44 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, af_afi afi) throws org.apache.thrift.TException;
46 public void onStartConfigResyncNotification() throws org.apache.thrift.TException;
48 public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode) throws org.apache.thrift.TException;
52 public interface AsyncIface {
54 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, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
56 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, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
58 public void onStartConfigResyncNotification(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
60 public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
64 public static class Client extends org.apache.thrift.TServiceClient implements Iface {
65 public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
67 public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
68 return new Client(prot);
70 public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
71 return new Client(iprot, oprot);
75 public Client(org.apache.thrift.protocol.TProtocol prot)
80 public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
84 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, af_afi afi) throws org.apache.thrift.TException
86 send_onUpdatePushRoute(p_type, rd, prefix, prefixlen, nexthop, ethtag, esi, macaddress, l3label, l2label, routermac, afi);
89 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, af_afi afi) throws org.apache.thrift.TException
91 onUpdatePushRoute_args args = new onUpdatePushRoute_args();
92 args.setP_type(p_type);
94 args.setPrefix(prefix);
95 args.setPrefixlen(prefixlen);
96 args.setNexthop(nexthop);
97 args.setEthtag(ethtag);
99 args.setMacaddress(macaddress);
100 args.setL3label(l3label);
101 args.setL2label(l2label);
102 args.setRoutermac(routermac);
104 sendBaseOneway("onUpdatePushRoute", args);
107 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, af_afi afi) throws org.apache.thrift.TException
109 send_onUpdateWithdrawRoute(p_type, rd, prefix, prefixlen, nexthop, ethtag, esi, macaddress, l3label, l2label, afi);
112 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, af_afi afi) throws org.apache.thrift.TException
114 onUpdateWithdrawRoute_args args = new onUpdateWithdrawRoute_args();
115 args.setP_type(p_type);
117 args.setPrefix(prefix);
118 args.setPrefixlen(prefixlen);
119 args.setNexthop(nexthop);
120 args.setEthtag(ethtag);
122 args.setMacaddress(macaddress);
123 args.setL3label(l3label);
124 args.setL2label(l2label);
126 sendBaseOneway("onUpdateWithdrawRoute", args);
129 public void onStartConfigResyncNotification() throws org.apache.thrift.TException
131 send_onStartConfigResyncNotification();
134 public void send_onStartConfigResyncNotification() throws org.apache.thrift.TException
136 onStartConfigResyncNotification_args args = new onStartConfigResyncNotification_args();
137 sendBaseOneway("onStartConfigResyncNotification", args);
140 public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode) throws org.apache.thrift.TException
142 send_onNotificationSendEvent(prefix, errCode, errSubcode);
145 public void send_onNotificationSendEvent(String prefix, byte errCode, byte errSubcode) throws org.apache.thrift.TException
147 onNotificationSendEvent_args args = new onNotificationSendEvent_args();
148 args.setPrefix(prefix);
149 args.setErrCode(errCode);
150 args.setErrSubcode(errSubcode);
151 sendBaseOneway("onNotificationSendEvent", args);
155 public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
156 public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
157 private org.apache.thrift.async.TAsyncClientManager clientManager;
158 private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
159 public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
160 this.clientManager = clientManager;
161 this.protocolFactory = protocolFactory;
163 public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
164 return new AsyncClient(protocolFactory, clientManager, transport);
168 public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
169 super(protocolFactory, clientManager, transport);
172 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, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
174 onUpdatePushRoute_call method_call = new onUpdatePushRoute_call(p_type, rd, prefix, prefixlen, nexthop, ethtag, esi, macaddress, l3label, l2label, routermac, afi, resultHandler, this, ___protocolFactory, ___transport);
175 this.___currentMethod = method_call;
176 ___manager.call(method_call);
179 public static class onUpdatePushRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
180 private protocol_type p_type;
182 private String prefix;
183 private int prefixlen;
184 private String nexthop;
187 private String macaddress;
190 private String routermac;
192 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, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
193 super(client, protocolFactory, transport, resultHandler, true);
194 this.p_type = p_type;
196 this.prefix = prefix;
197 this.prefixlen = prefixlen;
198 this.nexthop = nexthop;
199 this.ethtag = ethtag;
201 this.macaddress = macaddress;
202 this.l3label = l3label;
203 this.l2label = l2label;
204 this.routermac = routermac;
208 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
209 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onUpdatePushRoute", org.apache.thrift.protocol.TMessageType.ONEWAY, 0));
210 onUpdatePushRoute_args args = new onUpdatePushRoute_args();
211 args.setP_type(p_type);
213 args.setPrefix(prefix);
214 args.setPrefixlen(prefixlen);
215 args.setNexthop(nexthop);
216 args.setEthtag(ethtag);
218 args.setMacaddress(macaddress);
219 args.setL3label(l3label);
220 args.setL2label(l2label);
221 args.setRoutermac(routermac);
224 prot.writeMessageEnd();
227 public void getResult() throws org.apache.thrift.TException {
228 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
229 throw new IllegalStateException("Method call not finished!");
231 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
232 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
236 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, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
238 onUpdateWithdrawRoute_call method_call = new onUpdateWithdrawRoute_call(p_type, rd, prefix, prefixlen, nexthop, ethtag, esi, macaddress, l3label, l2label, afi, resultHandler, this, ___protocolFactory, ___transport);
239 this.___currentMethod = method_call;
240 ___manager.call(method_call);
243 public static class onUpdateWithdrawRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
244 private protocol_type p_type;
246 private String prefix;
247 private int prefixlen;
248 private String nexthop;
251 private String macaddress;
255 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, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
256 super(client, protocolFactory, transport, resultHandler, true);
257 this.p_type = p_type;
259 this.prefix = prefix;
260 this.prefixlen = prefixlen;
261 this.nexthop = nexthop;
262 this.ethtag = ethtag;
264 this.macaddress = macaddress;
265 this.l3label = l3label;
266 this.l2label = l2label;
270 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
271 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onUpdateWithdrawRoute", org.apache.thrift.protocol.TMessageType.ONEWAY, 0));
272 onUpdateWithdrawRoute_args args = new onUpdateWithdrawRoute_args();
273 args.setP_type(p_type);
275 args.setPrefix(prefix);
276 args.setPrefixlen(prefixlen);
277 args.setNexthop(nexthop);
278 args.setEthtag(ethtag);
280 args.setMacaddress(macaddress);
281 args.setL3label(l3label);
282 args.setL2label(l2label);
285 prot.writeMessageEnd();
288 public void getResult() throws org.apache.thrift.TException {
289 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
290 throw new IllegalStateException("Method call not finished!");
292 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
293 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
297 public void onStartConfigResyncNotification(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
299 onStartConfigResyncNotification_call method_call = new onStartConfigResyncNotification_call(resultHandler, this, ___protocolFactory, ___transport);
300 this.___currentMethod = method_call;
301 ___manager.call(method_call);
304 public static class onStartConfigResyncNotification_call extends org.apache.thrift.async.TAsyncMethodCall {
305 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 {
306 super(client, protocolFactory, transport, resultHandler, true);
309 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
310 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onStartConfigResyncNotification", org.apache.thrift.protocol.TMessageType.ONEWAY, 0));
311 onStartConfigResyncNotification_args args = new onStartConfigResyncNotification_args();
313 prot.writeMessageEnd();
316 public void getResult() throws org.apache.thrift.TException {
317 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
318 throw new IllegalStateException("Method call not finished!");
320 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
321 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
325 public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
327 onNotificationSendEvent_call method_call = new onNotificationSendEvent_call(prefix, errCode, errSubcode, resultHandler, this, ___protocolFactory, ___transport);
328 this.___currentMethod = method_call;
329 ___manager.call(method_call);
332 public static class onNotificationSendEvent_call extends org.apache.thrift.async.TAsyncMethodCall {
333 private String prefix;
334 private byte errCode;
335 private byte errSubcode;
336 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 {
337 super(client, protocolFactory, transport, resultHandler, true);
338 this.prefix = prefix;
339 this.errCode = errCode;
340 this.errSubcode = errSubcode;
343 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
344 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onNotificationSendEvent", org.apache.thrift.protocol.TMessageType.ONEWAY, 0));
345 onNotificationSendEvent_args args = new onNotificationSendEvent_args();
346 args.setPrefix(prefix);
347 args.setErrCode(errCode);
348 args.setErrSubcode(errSubcode);
350 prot.writeMessageEnd();
353 public void getResult() throws org.apache.thrift.TException {
354 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
355 throw new IllegalStateException("Method call not finished!");
357 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
358 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
364 public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
365 private static final Logger LOG = LoggerFactory.getLogger(Processor.class.getName());
366 public Processor(I iface) {
367 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
370 protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
371 super(iface, getProcessMap(processMap));
374 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) {
375 processMap.put("onUpdatePushRoute", new onUpdatePushRoute());
376 processMap.put("onUpdateWithdrawRoute", new onUpdateWithdrawRoute());
377 processMap.put("onStartConfigResyncNotification", new onStartConfigResyncNotification());
378 processMap.put("onNotificationSendEvent", new onNotificationSendEvent());
382 public static class onUpdatePushRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onUpdatePushRoute_args> {
383 public onUpdatePushRoute() {
384 super("onUpdatePushRoute");
387 public onUpdatePushRoute_args getEmptyArgsInstance() {
388 return new onUpdatePushRoute_args();
391 protected boolean isOneway() {
395 public org.apache.thrift.TBase getResult(I iface, onUpdatePushRoute_args args) throws org.apache.thrift.TException {
396 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, args.afi);
401 public static class onUpdateWithdrawRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onUpdateWithdrawRoute_args> {
402 public onUpdateWithdrawRoute() {
403 super("onUpdateWithdrawRoute");
406 public onUpdateWithdrawRoute_args getEmptyArgsInstance() {
407 return new onUpdateWithdrawRoute_args();
410 protected boolean isOneway() {
414 public org.apache.thrift.TBase getResult(I iface, onUpdateWithdrawRoute_args args) throws org.apache.thrift.TException {
415 iface.onUpdateWithdrawRoute(args.p_type, args.rd, args.prefix, args.prefixlen, args.nexthop, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label, args.afi);
420 public static class onStartConfigResyncNotification<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onStartConfigResyncNotification_args> {
421 public onStartConfigResyncNotification() {
422 super("onStartConfigResyncNotification");
425 public onStartConfigResyncNotification_args getEmptyArgsInstance() {
426 return new onStartConfigResyncNotification_args();
429 protected boolean isOneway() {
433 public org.apache.thrift.TBase getResult(I iface, onStartConfigResyncNotification_args args) throws org.apache.thrift.TException {
434 iface.onStartConfigResyncNotification();
439 public static class onNotificationSendEvent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onNotificationSendEvent_args> {
440 public onNotificationSendEvent() {
441 super("onNotificationSendEvent");
444 public onNotificationSendEvent_args getEmptyArgsInstance() {
445 return new onNotificationSendEvent_args();
448 protected boolean isOneway() {
452 public org.apache.thrift.TBase getResult(I iface, onNotificationSendEvent_args args) throws org.apache.thrift.TException {
453 iface.onNotificationSendEvent(args.prefix, args.errCode, args.errSubcode);
460 public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
461 private static final Logger LOG = LoggerFactory.getLogger(AsyncProcessor.class.getName());
462 public AsyncProcessor(I iface) {
463 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
466 protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
467 super(iface, getProcessMap(processMap));
470 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) {
471 processMap.put("onUpdatePushRoute", new onUpdatePushRoute());
472 processMap.put("onUpdateWithdrawRoute", new onUpdateWithdrawRoute());
473 processMap.put("onStartConfigResyncNotification", new onStartConfigResyncNotification());
474 processMap.put("onNotificationSendEvent", new onNotificationSendEvent());
478 public static class onUpdatePushRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onUpdatePushRoute_args, Void> {
479 public onUpdatePushRoute() {
480 super("onUpdatePushRoute");
483 public onUpdatePushRoute_args getEmptyArgsInstance() {
484 return new onUpdatePushRoute_args();
487 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
488 final org.apache.thrift.AsyncProcessFunction fcall = this;
489 return new AsyncMethodCallback<Void>() {
490 public void onComplete(Void o) {
492 public void onError(Exception e) {
497 protected boolean isOneway() {
501 public void start(I iface, onUpdatePushRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
502 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, args.afi,resultHandler);
506 public static class onUpdateWithdrawRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onUpdateWithdrawRoute_args, Void> {
507 public onUpdateWithdrawRoute() {
508 super("onUpdateWithdrawRoute");
511 public onUpdateWithdrawRoute_args getEmptyArgsInstance() {
512 return new onUpdateWithdrawRoute_args();
515 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
516 final org.apache.thrift.AsyncProcessFunction fcall = this;
517 return new AsyncMethodCallback<Void>() {
518 public void onComplete(Void o) {
520 public void onError(Exception e) {
525 protected boolean isOneway() {
529 public void start(I iface, onUpdateWithdrawRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
530 iface.onUpdateWithdrawRoute(args.p_type, args.rd, args.prefix, args.prefixlen, args.nexthop, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label, args.afi,resultHandler);
534 public static class onStartConfigResyncNotification<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onStartConfigResyncNotification_args, Void> {
535 public onStartConfigResyncNotification() {
536 super("onStartConfigResyncNotification");
539 public onStartConfigResyncNotification_args getEmptyArgsInstance() {
540 return new onStartConfigResyncNotification_args();
543 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
544 final org.apache.thrift.AsyncProcessFunction fcall = this;
545 return new AsyncMethodCallback<Void>() {
546 public void onComplete(Void o) {
548 public void onError(Exception e) {
553 protected boolean isOneway() {
557 public void start(I iface, onStartConfigResyncNotification_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
558 iface.onStartConfigResyncNotification(resultHandler);
562 public static class onNotificationSendEvent<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onNotificationSendEvent_args, Void> {
563 public onNotificationSendEvent() {
564 super("onNotificationSendEvent");
567 public onNotificationSendEvent_args getEmptyArgsInstance() {
568 return new onNotificationSendEvent_args();
571 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
572 final org.apache.thrift.AsyncProcessFunction fcall = this;
573 return new AsyncMethodCallback<Void>() {
574 public void onComplete(Void o) {
576 public void onError(Exception e) {
581 protected boolean isOneway() {
585 public void start(I iface, onNotificationSendEvent_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
586 iface.onNotificationSendEvent(args.prefix, args.errCode, args.errSubcode,resultHandler);
592 public static class onUpdatePushRoute_args implements org.apache.thrift.TBase<onUpdatePushRoute_args, onUpdatePushRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<onUpdatePushRoute_args> {
593 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onUpdatePushRoute_args");
595 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);
596 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);
597 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);
598 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);
599 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);
600 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);
601 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);
602 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);
603 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);
604 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);
605 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);
606 private static final org.apache.thrift.protocol.TField AFI_FIELD_DESC = new org.apache.thrift.protocol.TField("afi", org.apache.thrift.protocol.TType.I32, (short)12);
608 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
610 schemes.put(StandardScheme.class, new onUpdatePushRoute_argsStandardSchemeFactory());
611 schemes.put(TupleScheme.class, new onUpdatePushRoute_argsTupleSchemeFactory());
618 public protocol_type p_type; // required
619 public String rd; // required
620 public String prefix; // required
621 public int prefixlen; // required
622 public String nexthop; // required
623 public int ethtag; // required
624 public String esi; // required
625 public String macaddress; // required
626 public int l3label; // required
627 public int l2label; // required
628 public String routermac; // required
633 public af_afi afi; // required
635 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
636 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
641 P_TYPE((short)1, "p_type"),
643 PREFIX((short)3, "prefix"),
644 PREFIXLEN((short)4, "prefixlen"),
645 NEXTHOP((short)5, "nexthop"),
646 ETHTAG((short)6, "ethtag"),
647 ESI((short)7, "esi"),
648 MACADDRESS((short)8, "macaddress"),
649 L3LABEL((short)9, "l3label"),
650 L2LABEL((short)10, "l2label"),
651 ROUTERMAC((short)11, "routermac"),
656 AFI((short)12, "afi");
658 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
661 for (_Fields field : EnumSet.allOf(_Fields.class)) {
662 byName.put(field.getFieldName(), field);
667 * Find the _Fields constant that matches fieldId, or null if its not found.
669 public static _Fields findByThriftId(int fieldId) {
685 case 8: // MACADDRESS
691 case 11: // ROUTERMAC
701 * Find the _Fields constant that matches fieldId, throwing an exception
702 * if it is not found.
704 public static _Fields findByThriftIdOrThrow(int fieldId) {
705 _Fields fields = findByThriftId(fieldId);
706 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
711 * Find the _Fields constant that matches name, or null if its not found.
713 public static _Fields findByName(String name) {
714 return byName.get(name);
717 private final short _thriftId;
718 private final String _fieldName;
720 _Fields(short thriftId, String fieldName) {
721 _thriftId = thriftId;
722 _fieldName = fieldName;
725 public short getThriftFieldId() {
729 public String getFieldName() {
734 // isset id assignments
735 private static final int __PREFIXLEN_ISSET_ID = 0;
736 private static final int __ETHTAG_ISSET_ID = 1;
737 private static final int __L3LABEL_ISSET_ID = 2;
738 private static final int __L2LABEL_ISSET_ID = 3;
739 private byte __isset_bitfield = 0;
740 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
742 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
743 tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
744 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
745 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
746 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
747 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
748 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
749 tmpMap.put(_Fields.PREFIXLEN, new org.apache.thrift.meta_data.FieldMetaData("prefixlen", org.apache.thrift.TFieldRequirementType.DEFAULT,
750 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
751 tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT,
752 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
753 tmpMap.put(_Fields.ETHTAG, new org.apache.thrift.meta_data.FieldMetaData("ethtag", org.apache.thrift.TFieldRequirementType.DEFAULT,
754 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
755 tmpMap.put(_Fields.ESI, new org.apache.thrift.meta_data.FieldMetaData("esi", org.apache.thrift.TFieldRequirementType.DEFAULT,
756 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
757 tmpMap.put(_Fields.MACADDRESS, new org.apache.thrift.meta_data.FieldMetaData("macaddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
758 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
759 tmpMap.put(_Fields.L3LABEL, new org.apache.thrift.meta_data.FieldMetaData("l3label", org.apache.thrift.TFieldRequirementType.DEFAULT,
760 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
761 tmpMap.put(_Fields.L2LABEL, new org.apache.thrift.meta_data.FieldMetaData("l2label", org.apache.thrift.TFieldRequirementType.DEFAULT,
762 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
763 tmpMap.put(_Fields.ROUTERMAC, new org.apache.thrift.meta_data.FieldMetaData("routermac", org.apache.thrift.TFieldRequirementType.DEFAULT,
764 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
765 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
766 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
767 metaDataMap = Collections.unmodifiableMap(tmpMap);
768 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onUpdatePushRoute_args.class, metaDataMap);
771 public onUpdatePushRoute_args() {
774 public onUpdatePushRoute_args(
775 protocol_type p_type,
789 this.p_type = p_type;
791 this.prefix = prefix;
792 this.prefixlen = prefixlen;
793 setPrefixlenIsSet(true);
794 this.nexthop = nexthop;
795 this.ethtag = ethtag;
796 setEthtagIsSet(true);
798 this.macaddress = macaddress;
799 this.l3label = l3label;
800 setL3labelIsSet(true);
801 this.l2label = l2label;
802 setL2labelIsSet(true);
803 this.routermac = routermac;
808 * Performs a deep copy on <i>other</i>.
810 public onUpdatePushRoute_args(onUpdatePushRoute_args other) {
811 __isset_bitfield = other.__isset_bitfield;
812 if (other.isSetP_type()) {
813 this.p_type = other.p_type;
815 if (other.isSetRd()) {
818 if (other.isSetPrefix()) {
819 this.prefix = other.prefix;
821 this.prefixlen = other.prefixlen;
822 if (other.isSetNexthop()) {
823 this.nexthop = other.nexthop;
825 this.ethtag = other.ethtag;
826 if (other.isSetEsi()) {
827 this.esi = other.esi;
829 if (other.isSetMacaddress()) {
830 this.macaddress = other.macaddress;
832 this.l3label = other.l3label;
833 this.l2label = other.l2label;
834 if (other.isSetRoutermac()) {
835 this.routermac = other.routermac;
837 if (other.isSetAfi()) {
838 this.afi = other.afi;
842 public onUpdatePushRoute_args deepCopy() {
843 return new onUpdatePushRoute_args(this);
847 public void clear() {
851 setPrefixlenIsSet(false);
854 setEthtagIsSet(false);
857 this.macaddress = null;
858 setL3labelIsSet(false);
860 setL2labelIsSet(false);
862 this.routermac = null;
870 public protocol_type getP_type() {
878 public onUpdatePushRoute_args setP_type(protocol_type p_type) {
879 this.p_type = p_type;
883 public void unsetP_type() {
887 /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
888 public boolean isSetP_type() {
889 return this.p_type != null;
892 public void setP_typeIsSet(boolean value) {
898 public String getRd() {
902 public onUpdatePushRoute_args setRd(String rd) {
907 public void unsetRd() {
911 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
912 public boolean isSetRd() {
913 return this.rd != null;
916 public void setRdIsSet(boolean value) {
922 public String getPrefix() {
926 public onUpdatePushRoute_args setPrefix(String prefix) {
927 this.prefix = prefix;
931 public void unsetPrefix() {
935 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
936 public boolean isSetPrefix() {
937 return this.prefix != null;
940 public void setPrefixIsSet(boolean value) {
946 public int getPrefixlen() {
947 return this.prefixlen;
950 public onUpdatePushRoute_args setPrefixlen(int prefixlen) {
951 this.prefixlen = prefixlen;
952 setPrefixlenIsSet(true);
956 public void unsetPrefixlen() {
957 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
960 /** Returns true if field prefixlen is set (has been assigned a value) and false otherwise */
961 public boolean isSetPrefixlen() {
962 return EncodingUtils.testBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
965 public void setPrefixlenIsSet(boolean value) {
966 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PREFIXLEN_ISSET_ID, value);
969 public String getNexthop() {
973 public onUpdatePushRoute_args setNexthop(String nexthop) {
974 this.nexthop = nexthop;
978 public void unsetNexthop() {
982 /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
983 public boolean isSetNexthop() {
984 return this.nexthop != null;
987 public void setNexthopIsSet(boolean value) {
993 public int getEthtag() {
997 public onUpdatePushRoute_args setEthtag(int ethtag) {
998 this.ethtag = ethtag;
999 setEthtagIsSet(true);
1003 public void unsetEthtag() {
1004 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ETHTAG_ISSET_ID);
1007 /** Returns true if field ethtag is set (has been assigned a value) and false otherwise */
1008 public boolean isSetEthtag() {
1009 return EncodingUtils.testBit(__isset_bitfield, __ETHTAG_ISSET_ID);
1012 public void setEthtagIsSet(boolean value) {
1013 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ETHTAG_ISSET_ID, value);
1016 public String getEsi() {
1020 public onUpdatePushRoute_args setEsi(String esi) {
1025 public void unsetEsi() {
1029 /** Returns true if field esi is set (has been assigned a value) and false otherwise */
1030 public boolean isSetEsi() {
1031 return this.esi != null;
1034 public void setEsiIsSet(boolean value) {
1040 public String getMacaddress() {
1041 return this.macaddress;
1044 public onUpdatePushRoute_args setMacaddress(String macaddress) {
1045 this.macaddress = macaddress;
1049 public void unsetMacaddress() {
1050 this.macaddress = null;
1053 /** Returns true if field macaddress is set (has been assigned a value) and false otherwise */
1054 public boolean isSetMacaddress() {
1055 return this.macaddress != null;
1058 public void setMacaddressIsSet(boolean value) {
1060 this.macaddress = null;
1064 public int getL3label() {
1065 return this.l3label;
1068 public onUpdatePushRoute_args setL3label(int l3label) {
1069 this.l3label = l3label;
1070 setL3labelIsSet(true);
1074 public void unsetL3label() {
1075 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L3LABEL_ISSET_ID);
1078 /** Returns true if field l3label is set (has been assigned a value) and false otherwise */
1079 public boolean isSetL3label() {
1080 return EncodingUtils.testBit(__isset_bitfield, __L3LABEL_ISSET_ID);
1083 public void setL3labelIsSet(boolean value) {
1084 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L3LABEL_ISSET_ID, value);
1087 public int getL2label() {
1088 return this.l2label;
1091 public onUpdatePushRoute_args setL2label(int l2label) {
1092 this.l2label = l2label;
1093 setL2labelIsSet(true);
1097 public void unsetL2label() {
1098 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L2LABEL_ISSET_ID);
1101 /** Returns true if field l2label is set (has been assigned a value) and false otherwise */
1102 public boolean isSetL2label() {
1103 return EncodingUtils.testBit(__isset_bitfield, __L2LABEL_ISSET_ID);
1106 public void setL2labelIsSet(boolean value) {
1107 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L2LABEL_ISSET_ID, value);
1110 public String getRoutermac() {
1111 return this.routermac;
1114 public onUpdatePushRoute_args setRoutermac(String routermac) {
1115 this.routermac = routermac;
1119 public void unsetRoutermac() {
1120 this.routermac = null;
1123 /** Returns true if field routermac is set (has been assigned a value) and false otherwise */
1124 public boolean isSetRoutermac() {
1125 return this.routermac != null;
1128 public void setRoutermacIsSet(boolean value) {
1130 this.routermac = null;
1138 public af_afi getAfi() {
1146 public onUpdatePushRoute_args setAfi(af_afi afi) {
1151 public void unsetAfi() {
1155 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
1156 public boolean isSetAfi() {
1157 return this.afi != null;
1160 public void setAfiIsSet(boolean value) {
1166 public void setFieldValue(_Fields field, Object value) {
1169 if (value == null) {
1172 setP_type((protocol_type)value);
1177 if (value == null) {
1180 setRd((String)value);
1185 if (value == null) {
1188 setPrefix((String)value);
1193 if (value == null) {
1196 setPrefixlen((Integer)value);
1201 if (value == null) {
1204 setNexthop((String)value);
1209 if (value == null) {
1212 setEthtag((Integer)value);
1217 if (value == null) {
1220 setEsi((String)value);
1225 if (value == null) {
1228 setMacaddress((String)value);
1233 if (value == null) {
1236 setL3label((Integer)value);
1241 if (value == null) {
1244 setL2label((Integer)value);
1249 if (value == null) {
1252 setRoutermac((String)value);
1257 if (value == null) {
1260 setAfi((af_afi)value);
1267 public Object getFieldValue(_Fields field) {
1279 return Integer.valueOf(getPrefixlen());
1282 return getNexthop();
1285 return Integer.valueOf(getEthtag());
1291 return getMacaddress();
1294 return Integer.valueOf(getL3label());
1297 return Integer.valueOf(getL2label());
1300 return getRoutermac();
1306 throw new IllegalStateException();
1309 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1310 public boolean isSet(_Fields field) {
1311 if (field == null) {
1312 throw new IllegalArgumentException();
1317 return isSetP_type();
1321 return isSetPrefix();
1323 return isSetPrefixlen();
1325 return isSetNexthop();
1327 return isSetEthtag();
1331 return isSetMacaddress();
1333 return isSetL3label();
1335 return isSetL2label();
1337 return isSetRoutermac();
1341 throw new IllegalStateException();
1345 public boolean equals(Object that) {
1348 if (that instanceof onUpdatePushRoute_args)
1349 return this.equals((onUpdatePushRoute_args)that);
1353 public boolean equals(onUpdatePushRoute_args that) {
1357 boolean this_present_p_type = true && this.isSetP_type();
1358 boolean that_present_p_type = true && that.isSetP_type();
1359 if (this_present_p_type || that_present_p_type) {
1360 if (!(this_present_p_type && that_present_p_type))
1362 if (!this.p_type.equals(that.p_type))
1366 boolean this_present_rd = true && this.isSetRd();
1367 boolean that_present_rd = true && that.isSetRd();
1368 if (this_present_rd || that_present_rd) {
1369 if (!(this_present_rd && that_present_rd))
1371 if (!this.rd.equals(that.rd))
1375 boolean this_present_prefix = true && this.isSetPrefix();
1376 boolean that_present_prefix = true && that.isSetPrefix();
1377 if (this_present_prefix || that_present_prefix) {
1378 if (!(this_present_prefix && that_present_prefix))
1380 if (!this.prefix.equals(that.prefix))
1384 boolean this_present_prefixlen = true;
1385 boolean that_present_prefixlen = true;
1386 if (this_present_prefixlen || that_present_prefixlen) {
1387 if (!(this_present_prefixlen && that_present_prefixlen))
1389 if (this.prefixlen != that.prefixlen)
1393 boolean this_present_nexthop = true && this.isSetNexthop();
1394 boolean that_present_nexthop = true && that.isSetNexthop();
1395 if (this_present_nexthop || that_present_nexthop) {
1396 if (!(this_present_nexthop && that_present_nexthop))
1398 if (!this.nexthop.equals(that.nexthop))
1402 boolean this_present_ethtag = true;
1403 boolean that_present_ethtag = true;
1404 if (this_present_ethtag || that_present_ethtag) {
1405 if (!(this_present_ethtag && that_present_ethtag))
1407 if (this.ethtag != that.ethtag)
1411 boolean this_present_esi = true && this.isSetEsi();
1412 boolean that_present_esi = true && that.isSetEsi();
1413 if (this_present_esi || that_present_esi) {
1414 if (!(this_present_esi && that_present_esi))
1416 if (!this.esi.equals(that.esi))
1420 boolean this_present_macaddress = true && this.isSetMacaddress();
1421 boolean that_present_macaddress = true && that.isSetMacaddress();
1422 if (this_present_macaddress || that_present_macaddress) {
1423 if (!(this_present_macaddress && that_present_macaddress))
1425 if (!this.macaddress.equals(that.macaddress))
1429 boolean this_present_l3label = true;
1430 boolean that_present_l3label = true;
1431 if (this_present_l3label || that_present_l3label) {
1432 if (!(this_present_l3label && that_present_l3label))
1434 if (this.l3label != that.l3label)
1438 boolean this_present_l2label = true;
1439 boolean that_present_l2label = true;
1440 if (this_present_l2label || that_present_l2label) {
1441 if (!(this_present_l2label && that_present_l2label))
1443 if (this.l2label != that.l2label)
1447 boolean this_present_routermac = true && this.isSetRoutermac();
1448 boolean that_present_routermac = true && that.isSetRoutermac();
1449 if (this_present_routermac || that_present_routermac) {
1450 if (!(this_present_routermac && that_present_routermac))
1452 if (!this.routermac.equals(that.routermac))
1456 boolean this_present_afi = true && this.isSetAfi();
1457 boolean that_present_afi = true && that.isSetAfi();
1458 if (this_present_afi || that_present_afi) {
1459 if (!(this_present_afi && that_present_afi))
1461 if (!this.afi.equals(that.afi))
1469 public int hashCode() {
1470 List<Object> list = new ArrayList<Object>();
1471 boolean present_p_type = true && (isSetP_type());
1472 list.add(present_p_type);
1474 list.add(p_type.getValue());
1475 boolean present_rd = true && (isSetRd());
1476 list.add(present_rd);
1479 boolean present_prefix = true && (isSetPrefix());
1480 list.add(present_prefix);
1483 boolean present_prefixlen = true;
1484 list.add(present_prefixlen);
1485 if (present_prefixlen)
1486 list.add(prefixlen);
1487 boolean present_nexthop = true && (isSetNexthop());
1488 list.add(present_nexthop);
1489 if (present_nexthop)
1491 boolean present_ethtag = true;
1492 list.add(present_ethtag);
1495 boolean present_esi = true && (isSetEsi());
1496 list.add(present_esi);
1499 boolean present_macaddress = true && (isSetMacaddress());
1500 list.add(present_macaddress);
1501 if (present_macaddress)
1502 list.add(macaddress);
1503 boolean present_l3label = true;
1504 list.add(present_l3label);
1505 if (present_l3label)
1507 boolean present_l2label = true;
1508 list.add(present_l2label);
1509 if (present_l2label)
1511 boolean present_routermac = true && (isSetRoutermac());
1512 list.add(present_routermac);
1513 if (present_routermac)
1514 list.add(routermac);
1515 boolean present_afi = true && (isSetAfi());
1516 list.add(present_afi);
1518 list.add(afi.getValue());
1519 return list.hashCode();
1523 public int compareTo(onUpdatePushRoute_args other) {
1524 if (!getClass().equals(other.getClass())) {
1525 return getClass().getName().compareTo(other.getClass().getName());
1528 int lastComparison = 0;
1530 lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
1531 if (lastComparison != 0) {
1532 return lastComparison;
1534 if (isSetP_type()) {
1535 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
1536 if (lastComparison != 0) {
1537 return lastComparison;
1540 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
1541 if (lastComparison != 0) {
1542 return lastComparison;
1545 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
1546 if (lastComparison != 0) {
1547 return lastComparison;
1550 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
1551 if (lastComparison != 0) {
1552 return lastComparison;
1554 if (isSetPrefix()) {
1555 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
1556 if (lastComparison != 0) {
1557 return lastComparison;
1560 lastComparison = Boolean.valueOf(isSetPrefixlen()).compareTo(other.isSetPrefixlen());
1561 if (lastComparison != 0) {
1562 return lastComparison;
1564 if (isSetPrefixlen()) {
1565 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefixlen, other.prefixlen);
1566 if (lastComparison != 0) {
1567 return lastComparison;
1570 lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
1571 if (lastComparison != 0) {
1572 return lastComparison;
1574 if (isSetNexthop()) {
1575 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
1576 if (lastComparison != 0) {
1577 return lastComparison;
1580 lastComparison = Boolean.valueOf(isSetEthtag()).compareTo(other.isSetEthtag());
1581 if (lastComparison != 0) {
1582 return lastComparison;
1584 if (isSetEthtag()) {
1585 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ethtag, other.ethtag);
1586 if (lastComparison != 0) {
1587 return lastComparison;
1590 lastComparison = Boolean.valueOf(isSetEsi()).compareTo(other.isSetEsi());
1591 if (lastComparison != 0) {
1592 return lastComparison;
1595 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.esi, other.esi);
1596 if (lastComparison != 0) {
1597 return lastComparison;
1600 lastComparison = Boolean.valueOf(isSetMacaddress()).compareTo(other.isSetMacaddress());
1601 if (lastComparison != 0) {
1602 return lastComparison;
1604 if (isSetMacaddress()) {
1605 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.macaddress, other.macaddress);
1606 if (lastComparison != 0) {
1607 return lastComparison;
1610 lastComparison = Boolean.valueOf(isSetL3label()).compareTo(other.isSetL3label());
1611 if (lastComparison != 0) {
1612 return lastComparison;
1614 if (isSetL3label()) {
1615 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l3label, other.l3label);
1616 if (lastComparison != 0) {
1617 return lastComparison;
1620 lastComparison = Boolean.valueOf(isSetL2label()).compareTo(other.isSetL2label());
1621 if (lastComparison != 0) {
1622 return lastComparison;
1624 if (isSetL2label()) {
1625 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l2label, other.l2label);
1626 if (lastComparison != 0) {
1627 return lastComparison;
1630 lastComparison = Boolean.valueOf(isSetRoutermac()).compareTo(other.isSetRoutermac());
1631 if (lastComparison != 0) {
1632 return lastComparison;
1634 if (isSetRoutermac()) {
1635 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routermac, other.routermac);
1636 if (lastComparison != 0) {
1637 return lastComparison;
1640 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
1641 if (lastComparison != 0) {
1642 return lastComparison;
1645 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
1646 if (lastComparison != 0) {
1647 return lastComparison;
1653 public _Fields fieldForId(int fieldId) {
1654 return _Fields.findByThriftId(fieldId);
1657 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1658 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
1661 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1662 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
1666 public String toString() {
1667 StringBuilder sb = new StringBuilder("onUpdatePushRoute_args(");
1668 boolean first = true;
1670 sb.append("p_type:");
1671 if (this.p_type == null) {
1674 sb.append(this.p_type);
1677 if (!first) sb.append(", ");
1679 if (this.rd == null) {
1685 if (!first) sb.append(", ");
1686 sb.append("prefix:");
1687 if (this.prefix == null) {
1690 sb.append(this.prefix);
1693 if (!first) sb.append(", ");
1694 sb.append("prefixlen:");
1695 sb.append(this.prefixlen);
1697 if (!first) sb.append(", ");
1698 sb.append("nexthop:");
1699 if (this.nexthop == null) {
1702 sb.append(this.nexthop);
1705 if (!first) sb.append(", ");
1706 sb.append("ethtag:");
1707 sb.append(this.ethtag);
1709 if (!first) sb.append(", ");
1711 if (this.esi == null) {
1714 sb.append(this.esi);
1717 if (!first) sb.append(", ");
1718 sb.append("macaddress:");
1719 if (this.macaddress == null) {
1722 sb.append(this.macaddress);
1725 if (!first) sb.append(", ");
1726 sb.append("l3label:");
1727 sb.append(this.l3label);
1729 if (!first) sb.append(", ");
1730 sb.append("l2label:");
1731 sb.append(this.l2label);
1733 if (!first) sb.append(", ");
1734 sb.append("routermac:");
1735 if (this.routermac == null) {
1738 sb.append(this.routermac);
1741 if (!first) sb.append(", ");
1743 if (this.afi == null) {
1746 sb.append(this.afi);
1750 return sb.toString();
1753 public void validate() throws org.apache.thrift.TException {
1754 // check for required fields
1755 // check for sub-struct validity
1758 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1760 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1761 } catch (org.apache.thrift.TException te) {
1762 throw new java.io.IOException(te);
1766 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1768 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1769 __isset_bitfield = 0;
1770 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1771 } catch (org.apache.thrift.TException te) {
1772 throw new java.io.IOException(te);
1776 private static class onUpdatePushRoute_argsStandardSchemeFactory implements SchemeFactory {
1777 public onUpdatePushRoute_argsStandardScheme getScheme() {
1778 return new onUpdatePushRoute_argsStandardScheme();
1782 private static class onUpdatePushRoute_argsStandardScheme extends StandardScheme<onUpdatePushRoute_args> {
1784 public void read(org.apache.thrift.protocol.TProtocol iprot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1785 org.apache.thrift.protocol.TField schemeField;
1786 iprot.readStructBegin();
1789 schemeField = iprot.readFieldBegin();
1790 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
1793 switch (schemeField.id) {
1795 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1796 struct.p_type = protocol_type.findByValue(iprot.readI32());
1797 struct.setP_typeIsSet(true);
1799 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1803 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1804 struct.rd = iprot.readString();
1805 struct.setRdIsSet(true);
1807 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1811 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1812 struct.prefix = iprot.readString();
1813 struct.setPrefixIsSet(true);
1815 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1818 case 4: // PREFIXLEN
1819 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1820 struct.prefixlen = iprot.readI32();
1821 struct.setPrefixlenIsSet(true);
1823 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1827 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1828 struct.nexthop = iprot.readString();
1829 struct.setNexthopIsSet(true);
1831 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1835 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1836 struct.ethtag = iprot.readI32();
1837 struct.setEthtagIsSet(true);
1839 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1843 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1844 struct.esi = iprot.readString();
1845 struct.setEsiIsSet(true);
1847 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1850 case 8: // MACADDRESS
1851 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1852 struct.macaddress = iprot.readString();
1853 struct.setMacaddressIsSet(true);
1855 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1859 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1860 struct.l3label = iprot.readI32();
1861 struct.setL3labelIsSet(true);
1863 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1867 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1868 struct.l2label = iprot.readI32();
1869 struct.setL2labelIsSet(true);
1871 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1874 case 11: // ROUTERMAC
1875 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1876 struct.routermac = iprot.readString();
1877 struct.setRoutermacIsSet(true);
1879 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1883 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1884 struct.afi = af_afi.findByValue(iprot.readI32());
1885 struct.setAfiIsSet(true);
1887 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1891 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1893 iprot.readFieldEnd();
1895 iprot.readStructEnd();
1897 // check for required fields of primitive type, which can't be checked in the validate method
1901 public void write(org.apache.thrift.protocol.TProtocol oprot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1904 oprot.writeStructBegin(STRUCT_DESC);
1905 if (struct.p_type != null) {
1906 oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
1907 oprot.writeI32(struct.p_type.getValue());
1908 oprot.writeFieldEnd();
1910 if (struct.rd != null) {
1911 oprot.writeFieldBegin(RD_FIELD_DESC);
1912 oprot.writeString(struct.rd);
1913 oprot.writeFieldEnd();
1915 if (struct.prefix != null) {
1916 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
1917 oprot.writeString(struct.prefix);
1918 oprot.writeFieldEnd();
1920 oprot.writeFieldBegin(PREFIXLEN_FIELD_DESC);
1921 oprot.writeI32(struct.prefixlen);
1922 oprot.writeFieldEnd();
1923 if (struct.nexthop != null) {
1924 oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
1925 oprot.writeString(struct.nexthop);
1926 oprot.writeFieldEnd();
1928 oprot.writeFieldBegin(ETHTAG_FIELD_DESC);
1929 oprot.writeI32(struct.ethtag);
1930 oprot.writeFieldEnd();
1931 if (struct.esi != null) {
1932 oprot.writeFieldBegin(ESI_FIELD_DESC);
1933 oprot.writeString(struct.esi);
1934 oprot.writeFieldEnd();
1936 if (struct.macaddress != null) {
1937 oprot.writeFieldBegin(MACADDRESS_FIELD_DESC);
1938 oprot.writeString(struct.macaddress);
1939 oprot.writeFieldEnd();
1941 oprot.writeFieldBegin(L3LABEL_FIELD_DESC);
1942 oprot.writeI32(struct.l3label);
1943 oprot.writeFieldEnd();
1944 oprot.writeFieldBegin(L2LABEL_FIELD_DESC);
1945 oprot.writeI32(struct.l2label);
1946 oprot.writeFieldEnd();
1947 if (struct.routermac != null) {
1948 oprot.writeFieldBegin(ROUTERMAC_FIELD_DESC);
1949 oprot.writeString(struct.routermac);
1950 oprot.writeFieldEnd();
1952 if (struct.afi != null) {
1953 oprot.writeFieldBegin(AFI_FIELD_DESC);
1954 oprot.writeI32(struct.afi.getValue());
1955 oprot.writeFieldEnd();
1957 oprot.writeFieldStop();
1958 oprot.writeStructEnd();
1963 private static class onUpdatePushRoute_argsTupleSchemeFactory implements SchemeFactory {
1964 public onUpdatePushRoute_argsTupleScheme getScheme() {
1965 return new onUpdatePushRoute_argsTupleScheme();
1969 private static class onUpdatePushRoute_argsTupleScheme extends TupleScheme<onUpdatePushRoute_args> {
1972 public void write(org.apache.thrift.protocol.TProtocol prot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1973 TTupleProtocol oprot = (TTupleProtocol) prot;
1974 BitSet optionals = new BitSet();
1975 if (struct.isSetP_type()) {
1978 if (struct.isSetRd()) {
1981 if (struct.isSetPrefix()) {
1984 if (struct.isSetPrefixlen()) {
1987 if (struct.isSetNexthop()) {
1990 if (struct.isSetEthtag()) {
1993 if (struct.isSetEsi()) {
1996 if (struct.isSetMacaddress()) {
1999 if (struct.isSetL3label()) {
2002 if (struct.isSetL2label()) {
2005 if (struct.isSetRoutermac()) {
2008 if (struct.isSetAfi()) {
2011 oprot.writeBitSet(optionals, 12);
2012 if (struct.isSetP_type()) {
2013 oprot.writeI32(struct.p_type.getValue());
2015 if (struct.isSetRd()) {
2016 oprot.writeString(struct.rd);
2018 if (struct.isSetPrefix()) {
2019 oprot.writeString(struct.prefix);
2021 if (struct.isSetPrefixlen()) {
2022 oprot.writeI32(struct.prefixlen);
2024 if (struct.isSetNexthop()) {
2025 oprot.writeString(struct.nexthop);
2027 if (struct.isSetEthtag()) {
2028 oprot.writeI32(struct.ethtag);
2030 if (struct.isSetEsi()) {
2031 oprot.writeString(struct.esi);
2033 if (struct.isSetMacaddress()) {
2034 oprot.writeString(struct.macaddress);
2036 if (struct.isSetL3label()) {
2037 oprot.writeI32(struct.l3label);
2039 if (struct.isSetL2label()) {
2040 oprot.writeI32(struct.l2label);
2042 if (struct.isSetRoutermac()) {
2043 oprot.writeString(struct.routermac);
2045 if (struct.isSetAfi()) {
2046 oprot.writeI32(struct.afi.getValue());
2051 public void read(org.apache.thrift.protocol.TProtocol prot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
2052 TTupleProtocol iprot = (TTupleProtocol) prot;
2053 BitSet incoming = iprot.readBitSet(12);
2054 if (incoming.get(0)) {
2055 struct.p_type = protocol_type.findByValue(iprot.readI32());
2056 struct.setP_typeIsSet(true);
2058 if (incoming.get(1)) {
2059 struct.rd = iprot.readString();
2060 struct.setRdIsSet(true);
2062 if (incoming.get(2)) {
2063 struct.prefix = iprot.readString();
2064 struct.setPrefixIsSet(true);
2066 if (incoming.get(3)) {
2067 struct.prefixlen = iprot.readI32();
2068 struct.setPrefixlenIsSet(true);
2070 if (incoming.get(4)) {
2071 struct.nexthop = iprot.readString();
2072 struct.setNexthopIsSet(true);
2074 if (incoming.get(5)) {
2075 struct.ethtag = iprot.readI32();
2076 struct.setEthtagIsSet(true);
2078 if (incoming.get(6)) {
2079 struct.esi = iprot.readString();
2080 struct.setEsiIsSet(true);
2082 if (incoming.get(7)) {
2083 struct.macaddress = iprot.readString();
2084 struct.setMacaddressIsSet(true);
2086 if (incoming.get(8)) {
2087 struct.l3label = iprot.readI32();
2088 struct.setL3labelIsSet(true);
2090 if (incoming.get(9)) {
2091 struct.l2label = iprot.readI32();
2092 struct.setL2labelIsSet(true);
2094 if (incoming.get(10)) {
2095 struct.routermac = iprot.readString();
2096 struct.setRoutermacIsSet(true);
2098 if (incoming.get(11)) {
2099 struct.afi = af_afi.findByValue(iprot.readI32());
2100 struct.setAfiIsSet(true);
2107 public static class onUpdateWithdrawRoute_args implements org.apache.thrift.TBase<onUpdateWithdrawRoute_args, onUpdateWithdrawRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<onUpdateWithdrawRoute_args> {
2108 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onUpdateWithdrawRoute_args");
2110 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);
2111 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);
2112 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);
2113 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);
2114 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);
2115 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);
2116 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);
2117 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);
2118 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);
2119 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);
2120 private static final org.apache.thrift.protocol.TField AFI_FIELD_DESC = new org.apache.thrift.protocol.TField("afi", org.apache.thrift.protocol.TType.I32, (short)11);
2122 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
2124 schemes.put(StandardScheme.class, new onUpdateWithdrawRoute_argsStandardSchemeFactory());
2125 schemes.put(TupleScheme.class, new onUpdateWithdrawRoute_argsTupleSchemeFactory());
2130 * @see protocol_type
2132 public protocol_type p_type; // required
2133 public String rd; // required
2134 public String prefix; // required
2135 public int prefixlen; // required
2136 public String nexthop; // required
2137 public int ethtag; // required
2138 public String esi; // required
2139 public String macaddress; // required
2140 public int l3label; // required
2141 public int l2label; // required
2146 public af_afi afi; // required
2148 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2149 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2152 * @see protocol_type
2154 P_TYPE((short)1, "p_type"),
2156 PREFIX((short)3, "prefix"),
2157 PREFIXLEN((short)4, "prefixlen"),
2158 NEXTHOP((short)5, "nexthop"),
2159 ETHTAG((short)6, "ethtag"),
2160 ESI((short)7, "esi"),
2161 MACADDRESS((short)8, "macaddress"),
2162 L3LABEL((short)9, "l3label"),
2163 L2LABEL((short)10, "l2label"),
2168 AFI((short)11, "afi");
2170 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2173 for (_Fields field : EnumSet.allOf(_Fields.class)) {
2174 byName.put(field.getFieldName(), field);
2179 * Find the _Fields constant that matches fieldId, or null if its not found.
2181 public static _Fields findByThriftId(int fieldId) {
2189 case 4: // PREFIXLEN
2197 case 8: // MACADDRESS
2211 * Find the _Fields constant that matches fieldId, throwing an exception
2212 * if it is not found.
2214 public static _Fields findByThriftIdOrThrow(int fieldId) {
2215 _Fields fields = findByThriftId(fieldId);
2216 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2221 * Find the _Fields constant that matches name, or null if its not found.
2223 public static _Fields findByName(String name) {
2224 return byName.get(name);
2227 private final short _thriftId;
2228 private final String _fieldName;
2230 _Fields(short thriftId, String fieldName) {
2231 _thriftId = thriftId;
2232 _fieldName = fieldName;
2235 public short getThriftFieldId() {
2239 public String getFieldName() {
2244 // isset id assignments
2245 private static final int __PREFIXLEN_ISSET_ID = 0;
2246 private static final int __ETHTAG_ISSET_ID = 1;
2247 private static final int __L3LABEL_ISSET_ID = 2;
2248 private static final int __L2LABEL_ISSET_ID = 3;
2249 private byte __isset_bitfield = 0;
2250 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2252 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2253 tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
2254 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
2255 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
2256 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2257 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
2258 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2259 tmpMap.put(_Fields.PREFIXLEN, new org.apache.thrift.meta_data.FieldMetaData("prefixlen", org.apache.thrift.TFieldRequirementType.DEFAULT,
2260 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2261 tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT,
2262 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2263 tmpMap.put(_Fields.ETHTAG, new org.apache.thrift.meta_data.FieldMetaData("ethtag", org.apache.thrift.TFieldRequirementType.DEFAULT,
2264 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2265 tmpMap.put(_Fields.ESI, new org.apache.thrift.meta_data.FieldMetaData("esi", org.apache.thrift.TFieldRequirementType.DEFAULT,
2266 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2267 tmpMap.put(_Fields.MACADDRESS, new org.apache.thrift.meta_data.FieldMetaData("macaddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
2268 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2269 tmpMap.put(_Fields.L3LABEL, new org.apache.thrift.meta_data.FieldMetaData("l3label", org.apache.thrift.TFieldRequirementType.DEFAULT,
2270 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2271 tmpMap.put(_Fields.L2LABEL, new org.apache.thrift.meta_data.FieldMetaData("l2label", org.apache.thrift.TFieldRequirementType.DEFAULT,
2272 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2273 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
2274 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
2275 metaDataMap = Collections.unmodifiableMap(tmpMap);
2276 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onUpdateWithdrawRoute_args.class, metaDataMap);
2279 public onUpdateWithdrawRoute_args() {
2282 public onUpdateWithdrawRoute_args(
2283 protocol_type p_type,
2296 this.p_type = p_type;
2298 this.prefix = prefix;
2299 this.prefixlen = prefixlen;
2300 setPrefixlenIsSet(true);
2301 this.nexthop = nexthop;
2302 this.ethtag = ethtag;
2303 setEthtagIsSet(true);
2305 this.macaddress = macaddress;
2306 this.l3label = l3label;
2307 setL3labelIsSet(true);
2308 this.l2label = l2label;
2309 setL2labelIsSet(true);
2314 * Performs a deep copy on <i>other</i>.
2316 public onUpdateWithdrawRoute_args(onUpdateWithdrawRoute_args other) {
2317 __isset_bitfield = other.__isset_bitfield;
2318 if (other.isSetP_type()) {
2319 this.p_type = other.p_type;
2321 if (other.isSetRd()) {
2324 if (other.isSetPrefix()) {
2325 this.prefix = other.prefix;
2327 this.prefixlen = other.prefixlen;
2328 if (other.isSetNexthop()) {
2329 this.nexthop = other.nexthop;
2331 this.ethtag = other.ethtag;
2332 if (other.isSetEsi()) {
2333 this.esi = other.esi;
2335 if (other.isSetMacaddress()) {
2336 this.macaddress = other.macaddress;
2338 this.l3label = other.l3label;
2339 this.l2label = other.l2label;
2340 if (other.isSetAfi()) {
2341 this.afi = other.afi;
2345 public onUpdateWithdrawRoute_args deepCopy() {
2346 return new onUpdateWithdrawRoute_args(this);
2350 public void clear() {
2354 setPrefixlenIsSet(false);
2356 this.nexthop = null;
2357 setEthtagIsSet(false);
2360 this.macaddress = null;
2361 setL3labelIsSet(false);
2363 setL2labelIsSet(false);
2370 * @see protocol_type
2372 public protocol_type getP_type() {
2378 * @see protocol_type
2380 public onUpdateWithdrawRoute_args setP_type(protocol_type p_type) {
2381 this.p_type = p_type;
2385 public void unsetP_type() {
2389 /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
2390 public boolean isSetP_type() {
2391 return this.p_type != null;
2394 public void setP_typeIsSet(boolean value) {
2400 public String getRd() {
2404 public onUpdateWithdrawRoute_args setRd(String rd) {
2409 public void unsetRd() {
2413 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
2414 public boolean isSetRd() {
2415 return this.rd != null;
2418 public void setRdIsSet(boolean value) {
2424 public String getPrefix() {
2428 public onUpdateWithdrawRoute_args setPrefix(String prefix) {
2429 this.prefix = prefix;
2433 public void unsetPrefix() {
2437 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
2438 public boolean isSetPrefix() {
2439 return this.prefix != null;
2442 public void setPrefixIsSet(boolean value) {
2448 public int getPrefixlen() {
2449 return this.prefixlen;
2452 public onUpdateWithdrawRoute_args setPrefixlen(int prefixlen) {
2453 this.prefixlen = prefixlen;
2454 setPrefixlenIsSet(true);
2458 public void unsetPrefixlen() {
2459 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
2462 /** Returns true if field prefixlen is set (has been assigned a value) and false otherwise */
2463 public boolean isSetPrefixlen() {
2464 return EncodingUtils.testBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
2467 public void setPrefixlenIsSet(boolean value) {
2468 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PREFIXLEN_ISSET_ID, value);
2471 public String getNexthop() {
2472 return this.nexthop;
2475 public onUpdateWithdrawRoute_args setNexthop(String nexthop) {
2476 this.nexthop = nexthop;
2480 public void unsetNexthop() {
2481 this.nexthop = null;
2484 /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
2485 public boolean isSetNexthop() {
2486 return this.nexthop != null;
2489 public void setNexthopIsSet(boolean value) {
2491 this.nexthop = null;
2495 public int getEthtag() {
2499 public onUpdateWithdrawRoute_args setEthtag(int ethtag) {
2500 this.ethtag = ethtag;
2501 setEthtagIsSet(true);
2505 public void unsetEthtag() {
2506 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ETHTAG_ISSET_ID);
2509 /** Returns true if field ethtag is set (has been assigned a value) and false otherwise */
2510 public boolean isSetEthtag() {
2511 return EncodingUtils.testBit(__isset_bitfield, __ETHTAG_ISSET_ID);
2514 public void setEthtagIsSet(boolean value) {
2515 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ETHTAG_ISSET_ID, value);
2518 public String getEsi() {
2522 public onUpdateWithdrawRoute_args setEsi(String esi) {
2527 public void unsetEsi() {
2531 /** Returns true if field esi is set (has been assigned a value) and false otherwise */
2532 public boolean isSetEsi() {
2533 return this.esi != null;
2536 public void setEsiIsSet(boolean value) {
2542 public String getMacaddress() {
2543 return this.macaddress;
2546 public onUpdateWithdrawRoute_args setMacaddress(String macaddress) {
2547 this.macaddress = macaddress;
2551 public void unsetMacaddress() {
2552 this.macaddress = null;
2555 /** Returns true if field macaddress is set (has been assigned a value) and false otherwise */
2556 public boolean isSetMacaddress() {
2557 return this.macaddress != null;
2560 public void setMacaddressIsSet(boolean value) {
2562 this.macaddress = null;
2566 public int getL3label() {
2567 return this.l3label;
2570 public onUpdateWithdrawRoute_args setL3label(int l3label) {
2571 this.l3label = l3label;
2572 setL3labelIsSet(true);
2576 public void unsetL3label() {
2577 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L3LABEL_ISSET_ID);
2580 /** Returns true if field l3label is set (has been assigned a value) and false otherwise */
2581 public boolean isSetL3label() {
2582 return EncodingUtils.testBit(__isset_bitfield, __L3LABEL_ISSET_ID);
2585 public void setL3labelIsSet(boolean value) {
2586 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L3LABEL_ISSET_ID, value);
2589 public int getL2label() {
2590 return this.l2label;
2593 public onUpdateWithdrawRoute_args setL2label(int l2label) {
2594 this.l2label = l2label;
2595 setL2labelIsSet(true);
2599 public void unsetL2label() {
2600 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L2LABEL_ISSET_ID);
2603 /** Returns true if field l2label is set (has been assigned a value) and false otherwise */
2604 public boolean isSetL2label() {
2605 return EncodingUtils.testBit(__isset_bitfield, __L2LABEL_ISSET_ID);
2608 public void setL2labelIsSet(boolean value) {
2609 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L2LABEL_ISSET_ID, value);
2616 public af_afi getAfi() {
2624 public onUpdateWithdrawRoute_args setAfi(af_afi afi) {
2629 public void unsetAfi() {
2633 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
2634 public boolean isSetAfi() {
2635 return this.afi != null;
2638 public void setAfiIsSet(boolean value) {
2644 public void setFieldValue(_Fields field, Object value) {
2647 if (value == null) {
2650 setP_type((protocol_type)value);
2655 if (value == null) {
2658 setRd((String)value);
2663 if (value == null) {
2666 setPrefix((String)value);
2671 if (value == null) {
2674 setPrefixlen((Integer)value);
2679 if (value == null) {
2682 setNexthop((String)value);
2687 if (value == null) {
2690 setEthtag((Integer)value);
2695 if (value == null) {
2698 setEsi((String)value);
2703 if (value == null) {
2706 setMacaddress((String)value);
2711 if (value == null) {
2714 setL3label((Integer)value);
2719 if (value == null) {
2722 setL2label((Integer)value);
2727 if (value == null) {
2730 setAfi((af_afi)value);
2737 public Object getFieldValue(_Fields field) {
2749 return Integer.valueOf(getPrefixlen());
2752 return getNexthop();
2755 return Integer.valueOf(getEthtag());
2761 return getMacaddress();
2764 return Integer.valueOf(getL3label());
2767 return Integer.valueOf(getL2label());
2773 throw new IllegalStateException();
2776 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2777 public boolean isSet(_Fields field) {
2778 if (field == null) {
2779 throw new IllegalArgumentException();
2784 return isSetP_type();
2788 return isSetPrefix();
2790 return isSetPrefixlen();
2792 return isSetNexthop();
2794 return isSetEthtag();
2798 return isSetMacaddress();
2800 return isSetL3label();
2802 return isSetL2label();
2806 throw new IllegalStateException();
2810 public boolean equals(Object that) {
2813 if (that instanceof onUpdateWithdrawRoute_args)
2814 return this.equals((onUpdateWithdrawRoute_args)that);
2818 public boolean equals(onUpdateWithdrawRoute_args that) {
2822 boolean this_present_p_type = true && this.isSetP_type();
2823 boolean that_present_p_type = true && that.isSetP_type();
2824 if (this_present_p_type || that_present_p_type) {
2825 if (!(this_present_p_type && that_present_p_type))
2827 if (!this.p_type.equals(that.p_type))
2831 boolean this_present_rd = true && this.isSetRd();
2832 boolean that_present_rd = true && that.isSetRd();
2833 if (this_present_rd || that_present_rd) {
2834 if (!(this_present_rd && that_present_rd))
2836 if (!this.rd.equals(that.rd))
2840 boolean this_present_prefix = true && this.isSetPrefix();
2841 boolean that_present_prefix = true && that.isSetPrefix();
2842 if (this_present_prefix || that_present_prefix) {
2843 if (!(this_present_prefix && that_present_prefix))
2845 if (!this.prefix.equals(that.prefix))
2849 boolean this_present_prefixlen = true;
2850 boolean that_present_prefixlen = true;
2851 if (this_present_prefixlen || that_present_prefixlen) {
2852 if (!(this_present_prefixlen && that_present_prefixlen))
2854 if (this.prefixlen != that.prefixlen)
2858 boolean this_present_nexthop = true && this.isSetNexthop();
2859 boolean that_present_nexthop = true && that.isSetNexthop();
2860 if (this_present_nexthop || that_present_nexthop) {
2861 if (!(this_present_nexthop && that_present_nexthop))
2863 if (!this.nexthop.equals(that.nexthop))
2867 boolean this_present_ethtag = true;
2868 boolean that_present_ethtag = true;
2869 if (this_present_ethtag || that_present_ethtag) {
2870 if (!(this_present_ethtag && that_present_ethtag))
2872 if (this.ethtag != that.ethtag)
2876 boolean this_present_esi = true && this.isSetEsi();
2877 boolean that_present_esi = true && that.isSetEsi();
2878 if (this_present_esi || that_present_esi) {
2879 if (!(this_present_esi && that_present_esi))
2881 if (!this.esi.equals(that.esi))
2885 boolean this_present_macaddress = true && this.isSetMacaddress();
2886 boolean that_present_macaddress = true && that.isSetMacaddress();
2887 if (this_present_macaddress || that_present_macaddress) {
2888 if (!(this_present_macaddress && that_present_macaddress))
2890 if (!this.macaddress.equals(that.macaddress))
2894 boolean this_present_l3label = true;
2895 boolean that_present_l3label = true;
2896 if (this_present_l3label || that_present_l3label) {
2897 if (!(this_present_l3label && that_present_l3label))
2899 if (this.l3label != that.l3label)
2903 boolean this_present_l2label = true;
2904 boolean that_present_l2label = true;
2905 if (this_present_l2label || that_present_l2label) {
2906 if (!(this_present_l2label && that_present_l2label))
2908 if (this.l2label != that.l2label)
2912 boolean this_present_afi = true && this.isSetAfi();
2913 boolean that_present_afi = true && that.isSetAfi();
2914 if (this_present_afi || that_present_afi) {
2915 if (!(this_present_afi && that_present_afi))
2917 if (!this.afi.equals(that.afi))
2925 public int hashCode() {
2926 List<Object> list = new ArrayList<Object>();
2927 boolean present_p_type = true && (isSetP_type());
2928 list.add(present_p_type);
2930 list.add(p_type.getValue());
2931 boolean present_rd = true && (isSetRd());
2932 list.add(present_rd);
2935 boolean present_prefix = true && (isSetPrefix());
2936 list.add(present_prefix);
2939 boolean present_prefixlen = true;
2940 list.add(present_prefixlen);
2941 if (present_prefixlen)
2942 list.add(prefixlen);
2943 boolean present_nexthop = true && (isSetNexthop());
2944 list.add(present_nexthop);
2945 if (present_nexthop)
2947 boolean present_ethtag = true;
2948 list.add(present_ethtag);
2951 boolean present_esi = true && (isSetEsi());
2952 list.add(present_esi);
2955 boolean present_macaddress = true && (isSetMacaddress());
2956 list.add(present_macaddress);
2957 if (present_macaddress)
2958 list.add(macaddress);
2959 boolean present_l3label = true;
2960 list.add(present_l3label);
2961 if (present_l3label)
2963 boolean present_l2label = true;
2964 list.add(present_l2label);
2965 if (present_l2label)
2967 boolean present_afi = true && (isSetAfi());
2968 list.add(present_afi);
2970 list.add(afi.getValue());
2971 return list.hashCode();
2975 public int compareTo(onUpdateWithdrawRoute_args other) {
2976 if (!getClass().equals(other.getClass())) {
2977 return getClass().getName().compareTo(other.getClass().getName());
2980 int lastComparison = 0;
2982 lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
2983 if (lastComparison != 0) {
2984 return lastComparison;
2986 if (isSetP_type()) {
2987 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
2988 if (lastComparison != 0) {
2989 return lastComparison;
2992 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
2993 if (lastComparison != 0) {
2994 return lastComparison;
2997 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
2998 if (lastComparison != 0) {
2999 return lastComparison;
3002 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
3003 if (lastComparison != 0) {
3004 return lastComparison;
3006 if (isSetPrefix()) {
3007 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
3008 if (lastComparison != 0) {
3009 return lastComparison;
3012 lastComparison = Boolean.valueOf(isSetPrefixlen()).compareTo(other.isSetPrefixlen());
3013 if (lastComparison != 0) {
3014 return lastComparison;
3016 if (isSetPrefixlen()) {
3017 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefixlen, other.prefixlen);
3018 if (lastComparison != 0) {
3019 return lastComparison;
3022 lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
3023 if (lastComparison != 0) {
3024 return lastComparison;
3026 if (isSetNexthop()) {
3027 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
3028 if (lastComparison != 0) {
3029 return lastComparison;
3032 lastComparison = Boolean.valueOf(isSetEthtag()).compareTo(other.isSetEthtag());
3033 if (lastComparison != 0) {
3034 return lastComparison;
3036 if (isSetEthtag()) {
3037 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ethtag, other.ethtag);
3038 if (lastComparison != 0) {
3039 return lastComparison;
3042 lastComparison = Boolean.valueOf(isSetEsi()).compareTo(other.isSetEsi());
3043 if (lastComparison != 0) {
3044 return lastComparison;
3047 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.esi, other.esi);
3048 if (lastComparison != 0) {
3049 return lastComparison;
3052 lastComparison = Boolean.valueOf(isSetMacaddress()).compareTo(other.isSetMacaddress());
3053 if (lastComparison != 0) {
3054 return lastComparison;
3056 if (isSetMacaddress()) {
3057 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.macaddress, other.macaddress);
3058 if (lastComparison != 0) {
3059 return lastComparison;
3062 lastComparison = Boolean.valueOf(isSetL3label()).compareTo(other.isSetL3label());
3063 if (lastComparison != 0) {
3064 return lastComparison;
3066 if (isSetL3label()) {
3067 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l3label, other.l3label);
3068 if (lastComparison != 0) {
3069 return lastComparison;
3072 lastComparison = Boolean.valueOf(isSetL2label()).compareTo(other.isSetL2label());
3073 if (lastComparison != 0) {
3074 return lastComparison;
3076 if (isSetL2label()) {
3077 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l2label, other.l2label);
3078 if (lastComparison != 0) {
3079 return lastComparison;
3082 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
3083 if (lastComparison != 0) {
3084 return lastComparison;
3087 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
3088 if (lastComparison != 0) {
3089 return lastComparison;
3095 public _Fields fieldForId(int fieldId) {
3096 return _Fields.findByThriftId(fieldId);
3099 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3100 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3103 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3104 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3108 public String toString() {
3109 StringBuilder sb = new StringBuilder("onUpdateWithdrawRoute_args(");
3110 boolean first = true;
3112 sb.append("p_type:");
3113 if (this.p_type == null) {
3116 sb.append(this.p_type);
3119 if (!first) sb.append(", ");
3121 if (this.rd == null) {
3127 if (!first) sb.append(", ");
3128 sb.append("prefix:");
3129 if (this.prefix == null) {
3132 sb.append(this.prefix);
3135 if (!first) sb.append(", ");
3136 sb.append("prefixlen:");
3137 sb.append(this.prefixlen);
3139 if (!first) sb.append(", ");
3140 sb.append("nexthop:");
3141 if (this.nexthop == null) {
3144 sb.append(this.nexthop);
3147 if (!first) sb.append(", ");
3148 sb.append("ethtag:");
3149 sb.append(this.ethtag);
3151 if (!first) sb.append(", ");
3153 if (this.esi == null) {
3156 sb.append(this.esi);
3159 if (!first) sb.append(", ");
3160 sb.append("macaddress:");
3161 if (this.macaddress == null) {
3164 sb.append(this.macaddress);
3167 if (!first) sb.append(", ");
3168 sb.append("l3label:");
3169 sb.append(this.l3label);
3171 if (!first) sb.append(", ");
3172 sb.append("l2label:");
3173 sb.append(this.l2label);
3175 if (!first) sb.append(", ");
3177 if (this.afi == null) {
3180 sb.append(this.afi);
3184 return sb.toString();
3187 public void validate() throws org.apache.thrift.TException {
3188 // check for required fields
3189 // check for sub-struct validity
3192 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3194 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3195 } catch (org.apache.thrift.TException te) {
3196 throw new java.io.IOException(te);
3200 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3202 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3203 __isset_bitfield = 0;
3204 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3205 } catch (org.apache.thrift.TException te) {
3206 throw new java.io.IOException(te);
3210 private static class onUpdateWithdrawRoute_argsStandardSchemeFactory implements SchemeFactory {
3211 public onUpdateWithdrawRoute_argsStandardScheme getScheme() {
3212 return new onUpdateWithdrawRoute_argsStandardScheme();
3216 private static class onUpdateWithdrawRoute_argsStandardScheme extends StandardScheme<onUpdateWithdrawRoute_args> {
3218 public void read(org.apache.thrift.protocol.TProtocol iprot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
3219 org.apache.thrift.protocol.TField schemeField;
3220 iprot.readStructBegin();
3223 schemeField = iprot.readFieldBegin();
3224 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
3227 switch (schemeField.id) {
3229 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3230 struct.p_type = protocol_type.findByValue(iprot.readI32());
3231 struct.setP_typeIsSet(true);
3233 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3237 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
3238 struct.rd = iprot.readString();
3239 struct.setRdIsSet(true);
3241 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3245 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
3246 struct.prefix = iprot.readString();
3247 struct.setPrefixIsSet(true);
3249 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3252 case 4: // PREFIXLEN
3253 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3254 struct.prefixlen = iprot.readI32();
3255 struct.setPrefixlenIsSet(true);
3257 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3261 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
3262 struct.nexthop = iprot.readString();
3263 struct.setNexthopIsSet(true);
3265 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3269 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3270 struct.ethtag = iprot.readI32();
3271 struct.setEthtagIsSet(true);
3273 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3277 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
3278 struct.esi = iprot.readString();
3279 struct.setEsiIsSet(true);
3281 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3284 case 8: // MACADDRESS
3285 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
3286 struct.macaddress = iprot.readString();
3287 struct.setMacaddressIsSet(true);
3289 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3293 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3294 struct.l3label = iprot.readI32();
3295 struct.setL3labelIsSet(true);
3297 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3301 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3302 struct.l2label = iprot.readI32();
3303 struct.setL2labelIsSet(true);
3305 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3309 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3310 struct.afi = af_afi.findByValue(iprot.readI32());
3311 struct.setAfiIsSet(true);
3313 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3317 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3319 iprot.readFieldEnd();
3321 iprot.readStructEnd();
3323 // check for required fields of primitive type, which can't be checked in the validate method
3327 public void write(org.apache.thrift.protocol.TProtocol oprot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
3330 oprot.writeStructBegin(STRUCT_DESC);
3331 if (struct.p_type != null) {
3332 oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
3333 oprot.writeI32(struct.p_type.getValue());
3334 oprot.writeFieldEnd();
3336 if (struct.rd != null) {
3337 oprot.writeFieldBegin(RD_FIELD_DESC);
3338 oprot.writeString(struct.rd);
3339 oprot.writeFieldEnd();
3341 if (struct.prefix != null) {
3342 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
3343 oprot.writeString(struct.prefix);
3344 oprot.writeFieldEnd();
3346 oprot.writeFieldBegin(PREFIXLEN_FIELD_DESC);
3347 oprot.writeI32(struct.prefixlen);
3348 oprot.writeFieldEnd();
3349 if (struct.nexthop != null) {
3350 oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
3351 oprot.writeString(struct.nexthop);
3352 oprot.writeFieldEnd();
3354 oprot.writeFieldBegin(ETHTAG_FIELD_DESC);
3355 oprot.writeI32(struct.ethtag);
3356 oprot.writeFieldEnd();
3357 if (struct.esi != null) {
3358 oprot.writeFieldBegin(ESI_FIELD_DESC);
3359 oprot.writeString(struct.esi);
3360 oprot.writeFieldEnd();
3362 if (struct.macaddress != null) {
3363 oprot.writeFieldBegin(MACADDRESS_FIELD_DESC);
3364 oprot.writeString(struct.macaddress);
3365 oprot.writeFieldEnd();
3367 oprot.writeFieldBegin(L3LABEL_FIELD_DESC);
3368 oprot.writeI32(struct.l3label);
3369 oprot.writeFieldEnd();
3370 oprot.writeFieldBegin(L2LABEL_FIELD_DESC);
3371 oprot.writeI32(struct.l2label);
3372 oprot.writeFieldEnd();
3373 if (struct.afi != null) {
3374 oprot.writeFieldBegin(AFI_FIELD_DESC);
3375 oprot.writeI32(struct.afi.getValue());
3376 oprot.writeFieldEnd();
3378 oprot.writeFieldStop();
3379 oprot.writeStructEnd();
3384 private static class onUpdateWithdrawRoute_argsTupleSchemeFactory implements SchemeFactory {
3385 public onUpdateWithdrawRoute_argsTupleScheme getScheme() {
3386 return new onUpdateWithdrawRoute_argsTupleScheme();
3390 private static class onUpdateWithdrawRoute_argsTupleScheme extends TupleScheme<onUpdateWithdrawRoute_args> {
3393 public void write(org.apache.thrift.protocol.TProtocol prot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
3394 TTupleProtocol oprot = (TTupleProtocol) prot;
3395 BitSet optionals = new BitSet();
3396 if (struct.isSetP_type()) {
3399 if (struct.isSetRd()) {
3402 if (struct.isSetPrefix()) {
3405 if (struct.isSetPrefixlen()) {
3408 if (struct.isSetNexthop()) {
3411 if (struct.isSetEthtag()) {
3414 if (struct.isSetEsi()) {
3417 if (struct.isSetMacaddress()) {
3420 if (struct.isSetL3label()) {
3423 if (struct.isSetL2label()) {
3426 if (struct.isSetAfi()) {
3429 oprot.writeBitSet(optionals, 11);
3430 if (struct.isSetP_type()) {
3431 oprot.writeI32(struct.p_type.getValue());
3433 if (struct.isSetRd()) {
3434 oprot.writeString(struct.rd);
3436 if (struct.isSetPrefix()) {
3437 oprot.writeString(struct.prefix);
3439 if (struct.isSetPrefixlen()) {
3440 oprot.writeI32(struct.prefixlen);
3442 if (struct.isSetNexthop()) {
3443 oprot.writeString(struct.nexthop);
3445 if (struct.isSetEthtag()) {
3446 oprot.writeI32(struct.ethtag);
3448 if (struct.isSetEsi()) {
3449 oprot.writeString(struct.esi);
3451 if (struct.isSetMacaddress()) {
3452 oprot.writeString(struct.macaddress);
3454 if (struct.isSetL3label()) {
3455 oprot.writeI32(struct.l3label);
3457 if (struct.isSetL2label()) {
3458 oprot.writeI32(struct.l2label);
3460 if (struct.isSetAfi()) {
3461 oprot.writeI32(struct.afi.getValue());
3466 public void read(org.apache.thrift.protocol.TProtocol prot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
3467 TTupleProtocol iprot = (TTupleProtocol) prot;
3468 BitSet incoming = iprot.readBitSet(11);
3469 if (incoming.get(0)) {
3470 struct.p_type = protocol_type.findByValue(iprot.readI32());
3471 struct.setP_typeIsSet(true);
3473 if (incoming.get(1)) {
3474 struct.rd = iprot.readString();
3475 struct.setRdIsSet(true);
3477 if (incoming.get(2)) {
3478 struct.prefix = iprot.readString();
3479 struct.setPrefixIsSet(true);
3481 if (incoming.get(3)) {
3482 struct.prefixlen = iprot.readI32();
3483 struct.setPrefixlenIsSet(true);
3485 if (incoming.get(4)) {
3486 struct.nexthop = iprot.readString();
3487 struct.setNexthopIsSet(true);
3489 if (incoming.get(5)) {
3490 struct.ethtag = iprot.readI32();
3491 struct.setEthtagIsSet(true);
3493 if (incoming.get(6)) {
3494 struct.esi = iprot.readString();
3495 struct.setEsiIsSet(true);
3497 if (incoming.get(7)) {
3498 struct.macaddress = iprot.readString();
3499 struct.setMacaddressIsSet(true);
3501 if (incoming.get(8)) {
3502 struct.l3label = iprot.readI32();
3503 struct.setL3labelIsSet(true);
3505 if (incoming.get(9)) {
3506 struct.l2label = iprot.readI32();
3507 struct.setL2labelIsSet(true);
3509 if (incoming.get(10)) {
3510 struct.afi = af_afi.findByValue(iprot.readI32());
3511 struct.setAfiIsSet(true);
3518 public static class onStartConfigResyncNotification_args implements org.apache.thrift.TBase<onStartConfigResyncNotification_args, onStartConfigResyncNotification_args._Fields>, java.io.Serializable, Cloneable, Comparable<onStartConfigResyncNotification_args> {
3519 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onStartConfigResyncNotification_args");
3522 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3524 schemes.put(StandardScheme.class, new onStartConfigResyncNotification_argsStandardSchemeFactory());
3525 schemes.put(TupleScheme.class, new onStartConfigResyncNotification_argsTupleSchemeFactory());
3529 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3530 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3533 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3536 for (_Fields field : EnumSet.allOf(_Fields.class)) {
3537 byName.put(field.getFieldName(), field);
3542 * Find the _Fields constant that matches fieldId, or null if its not found.
3544 public static _Fields findByThriftId(int fieldId) {
3552 * Find the _Fields constant that matches fieldId, throwing an exception
3553 * if it is not found.
3555 public static _Fields findByThriftIdOrThrow(int fieldId) {
3556 _Fields fields = findByThriftId(fieldId);
3557 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3562 * Find the _Fields constant that matches name, or null if its not found.
3564 public static _Fields findByName(String name) {
3565 return byName.get(name);
3568 private final short _thriftId;
3569 private final String _fieldName;
3571 _Fields(short thriftId, String fieldName) {
3572 _thriftId = thriftId;
3573 _fieldName = fieldName;
3576 public short getThriftFieldId() {
3580 public String getFieldName() {
3584 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3586 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3587 metaDataMap = Collections.unmodifiableMap(tmpMap);
3588 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onStartConfigResyncNotification_args.class, metaDataMap);
3591 public onStartConfigResyncNotification_args() {
3595 * Performs a deep copy on <i>other</i>.
3597 public onStartConfigResyncNotification_args(onStartConfigResyncNotification_args other) {
3600 public onStartConfigResyncNotification_args deepCopy() {
3601 return new onStartConfigResyncNotification_args(this);
3605 public void clear() {
3608 public void setFieldValue(_Fields field, Object value) {
3613 public Object getFieldValue(_Fields field) {
3616 throw new IllegalStateException();
3619 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3620 public boolean isSet(_Fields field) {
3621 if (field == null) {
3622 throw new IllegalArgumentException();
3627 throw new IllegalStateException();
3631 public boolean equals(Object that) {
3634 if (that instanceof onStartConfigResyncNotification_args)
3635 return this.equals((onStartConfigResyncNotification_args)that);
3639 public boolean equals(onStartConfigResyncNotification_args that) {
3647 public int hashCode() {
3648 List<Object> list = new ArrayList<Object>();
3650 return list.hashCode();
3654 public int compareTo(onStartConfigResyncNotification_args other) {
3655 if (!getClass().equals(other.getClass())) {
3656 return getClass().getName().compareTo(other.getClass().getName());
3659 int lastComparison = 0;
3664 public _Fields fieldForId(int fieldId) {
3665 return _Fields.findByThriftId(fieldId);
3668 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3669 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3672 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3673 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3677 public String toString() {
3678 StringBuilder sb = new StringBuilder("onStartConfigResyncNotification_args(");
3679 boolean first = true;
3682 return sb.toString();
3685 public void validate() throws org.apache.thrift.TException {
3686 // check for required fields
3687 // check for sub-struct validity
3690 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3692 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3693 } catch (org.apache.thrift.TException te) {
3694 throw new java.io.IOException(te);
3698 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3700 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3701 } catch (org.apache.thrift.TException te) {
3702 throw new java.io.IOException(te);
3706 private static class onStartConfigResyncNotification_argsStandardSchemeFactory implements SchemeFactory {
3707 public onStartConfigResyncNotification_argsStandardScheme getScheme() {
3708 return new onStartConfigResyncNotification_argsStandardScheme();
3712 private static class onStartConfigResyncNotification_argsStandardScheme extends StandardScheme<onStartConfigResyncNotification_args> {
3714 public void read(org.apache.thrift.protocol.TProtocol iprot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
3715 org.apache.thrift.protocol.TField schemeField;
3716 iprot.readStructBegin();
3719 schemeField = iprot.readFieldBegin();
3720 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
3723 switch (schemeField.id) {
3725 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3727 iprot.readFieldEnd();
3729 iprot.readStructEnd();
3731 // check for required fields of primitive type, which can't be checked in the validate method
3735 public void write(org.apache.thrift.protocol.TProtocol oprot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
3738 oprot.writeStructBegin(STRUCT_DESC);
3739 oprot.writeFieldStop();
3740 oprot.writeStructEnd();
3745 private static class onStartConfigResyncNotification_argsTupleSchemeFactory implements SchemeFactory {
3746 public onStartConfigResyncNotification_argsTupleScheme getScheme() {
3747 return new onStartConfigResyncNotification_argsTupleScheme();
3751 private static class onStartConfigResyncNotification_argsTupleScheme extends TupleScheme<onStartConfigResyncNotification_args> {
3754 public void write(org.apache.thrift.protocol.TProtocol prot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
3755 TTupleProtocol oprot = (TTupleProtocol) prot;
3759 public void read(org.apache.thrift.protocol.TProtocol prot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
3760 TTupleProtocol iprot = (TTupleProtocol) prot;
3766 public static class onNotificationSendEvent_args implements org.apache.thrift.TBase<onNotificationSendEvent_args, onNotificationSendEvent_args._Fields>, java.io.Serializable, Cloneable, Comparable<onNotificationSendEvent_args> {
3767 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onNotificationSendEvent_args");
3769 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);
3770 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);
3771 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);
3773 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3775 schemes.put(StandardScheme.class, new onNotificationSendEvent_argsStandardSchemeFactory());
3776 schemes.put(TupleScheme.class, new onNotificationSendEvent_argsTupleSchemeFactory());
3779 public String prefix; // required
3780 public byte errCode; // required
3781 public byte errSubcode; // required
3783 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3784 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3785 PREFIX((short)1, "prefix"),
3786 ERR_CODE((short)2, "errCode"),
3787 ERR_SUBCODE((short)3, "errSubcode");
3789 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3792 for (_Fields field : EnumSet.allOf(_Fields.class)) {
3793 byName.put(field.getFieldName(), field);
3798 * Find the _Fields constant that matches fieldId, or null if its not found.
3800 public static _Fields findByThriftId(int fieldId) {
3806 case 3: // ERR_SUBCODE
3814 * Find the _Fields constant that matches fieldId, throwing an exception
3815 * if it is not found.
3817 public static _Fields findByThriftIdOrThrow(int fieldId) {
3818 _Fields fields = findByThriftId(fieldId);
3819 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3824 * Find the _Fields constant that matches name, or null if its not found.
3826 public static _Fields findByName(String name) {
3827 return byName.get(name);
3830 private final short _thriftId;
3831 private final String _fieldName;
3833 _Fields(short thriftId, String fieldName) {
3834 _thriftId = thriftId;
3835 _fieldName = fieldName;
3838 public short getThriftFieldId() {
3842 public String getFieldName() {
3847 // isset id assignments
3848 private static final int __ERRCODE_ISSET_ID = 0;
3849 private static final int __ERRSUBCODE_ISSET_ID = 1;
3850 private byte __isset_bitfield = 0;
3851 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3853 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3854 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
3855 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3856 tmpMap.put(_Fields.ERR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
3857 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BYTE)));
3858 tmpMap.put(_Fields.ERR_SUBCODE, new org.apache.thrift.meta_data.FieldMetaData("errSubcode", org.apache.thrift.TFieldRequirementType.DEFAULT,
3859 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BYTE)));
3860 metaDataMap = Collections.unmodifiableMap(tmpMap);
3861 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onNotificationSendEvent_args.class, metaDataMap);
3864 public onNotificationSendEvent_args() {
3867 public onNotificationSendEvent_args(
3873 this.prefix = prefix;
3874 this.errCode = errCode;
3875 setErrCodeIsSet(true);
3876 this.errSubcode = errSubcode;
3877 setErrSubcodeIsSet(true);
3881 * Performs a deep copy on <i>other</i>.
3883 public onNotificationSendEvent_args(onNotificationSendEvent_args other) {
3884 __isset_bitfield = other.__isset_bitfield;
3885 if (other.isSetPrefix()) {
3886 this.prefix = other.prefix;
3888 this.errCode = other.errCode;
3889 this.errSubcode = other.errSubcode;
3892 public onNotificationSendEvent_args deepCopy() {
3893 return new onNotificationSendEvent_args(this);
3897 public void clear() {
3899 setErrCodeIsSet(false);
3901 setErrSubcodeIsSet(false);
3902 this.errSubcode = 0;
3905 public String getPrefix() {
3909 public onNotificationSendEvent_args setPrefix(String prefix) {
3910 this.prefix = prefix;
3914 public void unsetPrefix() {
3918 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
3919 public boolean isSetPrefix() {
3920 return this.prefix != null;
3923 public void setPrefixIsSet(boolean value) {
3929 public byte getErrCode() {
3930 return this.errCode;
3933 public onNotificationSendEvent_args setErrCode(byte errCode) {
3934 this.errCode = errCode;
3935 setErrCodeIsSet(true);
3939 public void unsetErrCode() {
3940 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ERRCODE_ISSET_ID);
3943 /** Returns true if field errCode is set (has been assigned a value) and false otherwise */
3944 public boolean isSetErrCode() {
3945 return EncodingUtils.testBit(__isset_bitfield, __ERRCODE_ISSET_ID);
3948 public void setErrCodeIsSet(boolean value) {
3949 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ERRCODE_ISSET_ID, value);
3952 public byte getErrSubcode() {
3953 return this.errSubcode;
3956 public onNotificationSendEvent_args setErrSubcode(byte errSubcode) {
3957 this.errSubcode = errSubcode;
3958 setErrSubcodeIsSet(true);
3962 public void unsetErrSubcode() {
3963 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ERRSUBCODE_ISSET_ID);
3966 /** Returns true if field errSubcode is set (has been assigned a value) and false otherwise */
3967 public boolean isSetErrSubcode() {
3968 return EncodingUtils.testBit(__isset_bitfield, __ERRSUBCODE_ISSET_ID);
3971 public void setErrSubcodeIsSet(boolean value) {
3972 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ERRSUBCODE_ISSET_ID, value);
3975 public void setFieldValue(_Fields field, Object value) {
3978 if (value == null) {
3981 setPrefix((String)value);
3986 if (value == null) {
3989 setErrCode((Byte)value);
3994 if (value == null) {
3997 setErrSubcode((Byte)value);
4004 public Object getFieldValue(_Fields field) {
4010 return Byte.valueOf(getErrCode());
4013 return Byte.valueOf(getErrSubcode());
4016 throw new IllegalStateException();
4019 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4020 public boolean isSet(_Fields field) {
4021 if (field == null) {
4022 throw new IllegalArgumentException();
4027 return isSetPrefix();
4029 return isSetErrCode();
4031 return isSetErrSubcode();
4033 throw new IllegalStateException();
4037 public boolean equals(Object that) {
4040 if (that instanceof onNotificationSendEvent_args)
4041 return this.equals((onNotificationSendEvent_args)that);
4045 public boolean equals(onNotificationSendEvent_args that) {
4049 boolean this_present_prefix = true && this.isSetPrefix();
4050 boolean that_present_prefix = true && that.isSetPrefix();
4051 if (this_present_prefix || that_present_prefix) {
4052 if (!(this_present_prefix && that_present_prefix))
4054 if (!this.prefix.equals(that.prefix))
4058 boolean this_present_errCode = true;
4059 boolean that_present_errCode = true;
4060 if (this_present_errCode || that_present_errCode) {
4061 if (!(this_present_errCode && that_present_errCode))
4063 if (this.errCode != that.errCode)
4067 boolean this_present_errSubcode = true;
4068 boolean that_present_errSubcode = true;
4069 if (this_present_errSubcode || that_present_errSubcode) {
4070 if (!(this_present_errSubcode && that_present_errSubcode))
4072 if (this.errSubcode != that.errSubcode)
4080 public int hashCode() {
4081 List<Object> list = new ArrayList<Object>();
4083 boolean present_prefix = true && (isSetPrefix());
4084 list.add(present_prefix);
4087 boolean present_errCode = true;
4088 list.add(present_errCode);
4089 if (present_errCode)
4091 boolean present_errSubcode = true;
4092 list.add(present_errSubcode);
4093 if (present_errSubcode)
4094 list.add(errSubcode);
4095 return list.hashCode();
4099 public int compareTo(onNotificationSendEvent_args other) {
4100 if (!getClass().equals(other.getClass())) {
4101 return getClass().getName().compareTo(other.getClass().getName());
4104 int lastComparison = 0;
4106 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
4107 if (lastComparison != 0) {
4108 return lastComparison;
4110 if (isSetPrefix()) {
4111 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
4112 if (lastComparison != 0) {
4113 return lastComparison;
4116 lastComparison = Boolean.valueOf(isSetErrCode()).compareTo(other.isSetErrCode());
4117 if (lastComparison != 0) {
4118 return lastComparison;
4120 if (isSetErrCode()) {
4121 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errCode, other.errCode);
4122 if (lastComparison != 0) {
4123 return lastComparison;
4126 lastComparison = Boolean.valueOf(isSetErrSubcode()).compareTo(other.isSetErrSubcode());
4127 if (lastComparison != 0) {
4128 return lastComparison;
4130 if (isSetErrSubcode()) {
4131 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errSubcode, other.errSubcode);
4132 if (lastComparison != 0) {
4133 return lastComparison;
4139 public _Fields fieldForId(int fieldId) {
4140 return _Fields.findByThriftId(fieldId);
4143 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4144 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4147 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4148 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4152 public String toString() {
4153 StringBuilder sb = new StringBuilder("onNotificationSendEvent_args(");
4154 boolean first = true;
4156 sb.append("prefix:");
4157 if (this.prefix == null) {
4160 sb.append(this.prefix);
4163 if (!first) sb.append(", ");
4164 sb.append("errCode:");
4165 sb.append(this.errCode);
4167 if (!first) sb.append(", ");
4168 sb.append("errSubcode:");
4169 sb.append(this.errSubcode);
4172 return sb.toString();
4175 public void validate() throws org.apache.thrift.TException {
4176 // check for required fields
4177 // check for sub-struct validity
4180 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4182 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4183 } catch (org.apache.thrift.TException te) {
4184 throw new java.io.IOException(te);
4188 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4190 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4191 __isset_bitfield = 0;
4192 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4193 } catch (org.apache.thrift.TException te) {
4194 throw new java.io.IOException(te);
4198 private static class onNotificationSendEvent_argsStandardSchemeFactory implements SchemeFactory {
4199 public onNotificationSendEvent_argsStandardScheme getScheme() {
4200 return new onNotificationSendEvent_argsStandardScheme();
4204 private static class onNotificationSendEvent_argsStandardScheme extends StandardScheme<onNotificationSendEvent_args> {
4206 public void read(org.apache.thrift.protocol.TProtocol iprot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
4207 org.apache.thrift.protocol.TField schemeField;
4208 iprot.readStructBegin();
4211 schemeField = iprot.readFieldBegin();
4212 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4215 switch (schemeField.id) {
4217 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
4218 struct.prefix = iprot.readString();
4219 struct.setPrefixIsSet(true);
4221 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4225 if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) {
4226 struct.errCode = iprot.readByte();
4227 struct.setErrCodeIsSet(true);
4229 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4232 case 3: // ERR_SUBCODE
4233 if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) {
4234 struct.errSubcode = iprot.readByte();
4235 struct.setErrSubcodeIsSet(true);
4237 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4241 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4243 iprot.readFieldEnd();
4245 iprot.readStructEnd();
4247 // check for required fields of primitive type, which can't be checked in the validate method
4251 public void write(org.apache.thrift.protocol.TProtocol oprot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
4254 oprot.writeStructBegin(STRUCT_DESC);
4255 if (struct.prefix != null) {
4256 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
4257 oprot.writeString(struct.prefix);
4258 oprot.writeFieldEnd();
4260 oprot.writeFieldBegin(ERR_CODE_FIELD_DESC);
4261 oprot.writeByte(struct.errCode);
4262 oprot.writeFieldEnd();
4263 oprot.writeFieldBegin(ERR_SUBCODE_FIELD_DESC);
4264 oprot.writeByte(struct.errSubcode);
4265 oprot.writeFieldEnd();
4266 oprot.writeFieldStop();
4267 oprot.writeStructEnd();
4272 private static class onNotificationSendEvent_argsTupleSchemeFactory implements SchemeFactory {
4273 public onNotificationSendEvent_argsTupleScheme getScheme() {
4274 return new onNotificationSendEvent_argsTupleScheme();
4278 private static class onNotificationSendEvent_argsTupleScheme extends TupleScheme<onNotificationSendEvent_args> {
4281 public void write(org.apache.thrift.protocol.TProtocol prot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
4282 TTupleProtocol oprot = (TTupleProtocol) prot;
4283 BitSet optionals = new BitSet();
4284 if (struct.isSetPrefix()) {
4287 if (struct.isSetErrCode()) {
4290 if (struct.isSetErrSubcode()) {
4293 oprot.writeBitSet(optionals, 3);
4294 if (struct.isSetPrefix()) {
4295 oprot.writeString(struct.prefix);
4297 if (struct.isSetErrCode()) {
4298 oprot.writeByte(struct.errCode);
4300 if (struct.isSetErrSubcode()) {
4301 oprot.writeByte(struct.errSubcode);
4306 public void read(org.apache.thrift.protocol.TProtocol prot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
4307 TTupleProtocol iprot = (TTupleProtocol) prot;
4308 BitSet incoming = iprot.readBitSet(3);
4309 if (incoming.get(0)) {
4310 struct.prefix = iprot.readString();
4311 struct.setPrefixIsSet(true);
4313 if (incoming.get(1)) {
4314 struct.errCode = iprot.readByte();
4315 struct.setErrCodeIsSet(true);
4317 if (incoming.get(2)) {
4318 struct.errSubcode = iprot.readByte();
4319 struct.setErrSubcodeIsSet(true);