2 * Autogenerated by Thrift Compiler (0.9.1)
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
8 package org.opendaylight.netvirt.bgpmanager.thrift.gen;
10 import org.apache.thrift.scheme.IScheme;
11 import org.apache.thrift.scheme.SchemeFactory;
12 import org.apache.thrift.scheme.StandardScheme;
14 import org.apache.thrift.scheme.TupleScheme;
15 import org.apache.thrift.protocol.TTupleProtocol;
16 import org.apache.thrift.protocol.TProtocolException;
17 import org.apache.thrift.EncodingUtils;
18 import org.apache.thrift.TException;
19 import org.apache.thrift.async.AsyncMethodCallback;
20 import org.apache.thrift.server.AbstractNonblockingServer.*;
21 import java.util.List;
22 import java.util.ArrayList;
24 import java.util.HashMap;
25 import java.util.EnumMap;
27 import java.util.HashSet;
28 import java.util.EnumSet;
29 import java.util.Collections;
30 import java.util.BitSet;
31 import java.nio.ByteBuffer;
32 import java.util.Arrays;
33 import org.slf4j.Logger;
34 import org.slf4j.LoggerFactory;
36 public class BgpUpdater {
38 public interface Iface {
40 void onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label) throws org.apache.thrift.TException;
42 void onUpdateWithdrawRoute(String rd, String prefix, int prefixlen) throws org.apache.thrift.TException;
44 void onStartConfigResyncNotification() throws org.apache.thrift.TException;
46 void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode) throws org.apache.thrift.TException;
50 public interface AsyncIface {
52 void onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label,
53 org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
55 void onUpdateWithdrawRoute(String rd, String prefix, int prefixlen,
56 org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
58 void onStartConfigResyncNotification(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
60 void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode,
61 org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
65 public static class Client extends org.apache.thrift.TServiceClient implements Iface {
66 public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
68 public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
69 return new Client(prot);
71 public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
72 return new Client(iprot, oprot);
76 public Client(org.apache.thrift.protocol.TProtocol prot)
81 public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
85 public void onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label) throws org.apache.thrift.TException
87 send_onUpdatePushRoute(rd, prefix, prefixlen, nexthop, label);
90 public void send_onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label) throws org.apache.thrift.TException
92 onUpdatePushRoute_args args = new onUpdatePushRoute_args();
94 args.setPrefix(prefix);
95 args.setPrefixlen(prefixlen);
96 args.setNexthop(nexthop);
98 sendBase("onUpdatePushRoute", args);
101 public void onUpdateWithdrawRoute(String rd, String prefix, int prefixlen) throws org.apache.thrift.TException
103 send_onUpdateWithdrawRoute(rd, prefix, prefixlen);
106 public void send_onUpdateWithdrawRoute(String rd, String prefix, int prefixlen) throws org.apache.thrift.TException
108 onUpdateWithdrawRoute_args args = new onUpdateWithdrawRoute_args();
110 args.setPrefix(prefix);
111 args.setPrefixlen(prefixlen);
112 sendBase("onUpdateWithdrawRoute", args);
115 public void onStartConfigResyncNotification() throws org.apache.thrift.TException
117 send_onStartConfigResyncNotification();
120 public void send_onStartConfigResyncNotification() throws org.apache.thrift.TException
122 onStartConfigResyncNotification_args args = new onStartConfigResyncNotification_args();
123 sendBase("onStartConfigResyncNotification", args);
126 public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode) throws org.apache.thrift.TException
128 send_onNotificationSendEvent(prefix, errCode, errSubcode);
131 public void send_onNotificationSendEvent(String prefix, byte errCode, byte errSubcode) throws org.apache.thrift.TException
133 onNotificationSendEvent_args args = new onNotificationSendEvent_args();
134 args.setPrefix(prefix);
135 args.setErrCode(errCode);
136 args.setErrSubcode(errSubcode);
137 sendBase("onNotificationSendEvent", args);
141 public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
142 public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
143 private org.apache.thrift.async.TAsyncClientManager clientManager;
144 private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
145 public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
146 this.clientManager = clientManager;
147 this.protocolFactory = protocolFactory;
149 public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
150 return new AsyncClient(protocolFactory, clientManager, transport);
154 public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
155 super(protocolFactory, clientManager, transport);
158 public void onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
160 onUpdatePushRoute_call method_call = new onUpdatePushRoute_call(rd, prefix, prefixlen, nexthop, label, resultHandler, this, ___protocolFactory, ___transport);
161 this.___currentMethod = method_call;
162 ___manager.call(method_call);
165 public static class onUpdatePushRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
167 private String prefix;
168 private int prefixlen;
169 private String nexthop;
171 public onUpdatePushRoute_call(String rd, String prefix, int prefixlen, String nexthop, int label, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
172 super(client, protocolFactory, transport, resultHandler, true);
174 this.prefix = prefix;
175 this.prefixlen = prefixlen;
176 this.nexthop = nexthop;
180 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
181 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onUpdatePushRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
182 onUpdatePushRoute_args args = new onUpdatePushRoute_args();
184 args.setPrefix(prefix);
185 args.setPrefixlen(prefixlen);
186 args.setNexthop(nexthop);
187 args.setLabel(label);
189 prot.writeMessageEnd();
192 public void getResult() throws org.apache.thrift.TException {
193 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
194 throw new IllegalStateException("Method call not finished!");
196 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
197 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
201 public void onUpdateWithdrawRoute(String rd, String prefix, int prefixlen, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
203 onUpdateWithdrawRoute_call method_call = new onUpdateWithdrawRoute_call(rd, prefix, prefixlen, resultHandler, this, ___protocolFactory, ___transport);
204 this.___currentMethod = method_call;
205 ___manager.call(method_call);
208 public static class onUpdateWithdrawRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
210 private String prefix;
211 private int prefixlen;
212 public onUpdateWithdrawRoute_call(String rd, String prefix, int prefixlen, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
213 super(client, protocolFactory, transport, resultHandler, true);
215 this.prefix = prefix;
216 this.prefixlen = prefixlen;
219 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
220 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onUpdateWithdrawRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
221 onUpdateWithdrawRoute_args args = new onUpdateWithdrawRoute_args();
223 args.setPrefix(prefix);
224 args.setPrefixlen(prefixlen);
226 prot.writeMessageEnd();
229 public void getResult() throws org.apache.thrift.TException {
230 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
231 throw new IllegalStateException("Method call not finished!");
233 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
234 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
238 public void onStartConfigResyncNotification(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
240 onStartConfigResyncNotification_call method_call = new onStartConfigResyncNotification_call(resultHandler, this, ___protocolFactory, ___transport);
241 this.___currentMethod = method_call;
242 ___manager.call(method_call);
245 public static class onStartConfigResyncNotification_call extends org.apache.thrift.async.TAsyncMethodCall {
246 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 {
247 super(client, protocolFactory, transport, resultHandler, true);
250 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
251 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onStartConfigResyncNotification", org.apache.thrift.protocol.TMessageType.CALL, 0));
252 onStartConfigResyncNotification_args args = new onStartConfigResyncNotification_args();
254 prot.writeMessageEnd();
257 public void getResult() throws org.apache.thrift.TException {
258 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
259 throw new IllegalStateException("Method call not finished!");
261 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
262 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
266 public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
268 onNotificationSendEvent_call method_call = new onNotificationSendEvent_call(prefix, errCode, errSubcode, resultHandler, this, ___protocolFactory, ___transport);
269 this.___currentMethod = method_call;
270 ___manager.call(method_call);
273 public static class onNotificationSendEvent_call extends org.apache.thrift.async.TAsyncMethodCall {
274 private String prefix;
275 private byte errCode;
276 private byte errSubcode;
277 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 {
278 super(client, protocolFactory, transport, resultHandler, true);
279 this.prefix = prefix;
280 this.errCode = errCode;
281 this.errSubcode = errSubcode;
284 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
285 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onNotificationSendEvent", org.apache.thrift.protocol.TMessageType.CALL, 0));
286 onNotificationSendEvent_args args = new onNotificationSendEvent_args();
287 args.setPrefix(prefix);
288 args.setErrCode(errCode);
289 args.setErrSubcode(errSubcode);
291 prot.writeMessageEnd();
294 public void getResult() throws org.apache.thrift.TException {
295 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
296 throw new IllegalStateException("Method call not finished!");
298 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
299 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
305 public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
306 private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
307 public Processor(I iface) {
308 super(iface, getProcessMap(new HashMap<>()));
311 protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
312 super(iface, getProcessMap(processMap));
315 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) {
316 processMap.put("onUpdatePushRoute", new onUpdatePushRoute());
317 processMap.put("onUpdateWithdrawRoute", new onUpdateWithdrawRoute());
318 processMap.put("onStartConfigResyncNotification", new onStartConfigResyncNotification());
319 processMap.put("onNotificationSendEvent", new onNotificationSendEvent());
323 public static class onUpdatePushRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onUpdatePushRoute_args> {
324 public onUpdatePushRoute() {
325 super("onUpdatePushRoute");
328 public onUpdatePushRoute_args getEmptyArgsInstance() {
329 return new onUpdatePushRoute_args();
332 protected boolean isOneway() {
336 public org.apache.thrift.TBase getResult(I iface, onUpdatePushRoute_args args) throws org.apache.thrift.TException {
337 iface.onUpdatePushRoute(args.rd, args.prefix, args.prefixlen, args.nexthop, args.label);
342 public static class onUpdateWithdrawRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onUpdateWithdrawRoute_args> {
343 public onUpdateWithdrawRoute() {
344 super("onUpdateWithdrawRoute");
347 public onUpdateWithdrawRoute_args getEmptyArgsInstance() {
348 return new onUpdateWithdrawRoute_args();
351 protected boolean isOneway() {
355 public org.apache.thrift.TBase getResult(I iface, onUpdateWithdrawRoute_args args) throws org.apache.thrift.TException {
356 iface.onUpdateWithdrawRoute(args.rd, args.prefix, args.prefixlen);
361 public static class onStartConfigResyncNotification<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onStartConfigResyncNotification_args> {
362 public onStartConfigResyncNotification() {
363 super("onStartConfigResyncNotification");
366 public onStartConfigResyncNotification_args getEmptyArgsInstance() {
367 return new onStartConfigResyncNotification_args();
370 protected boolean isOneway() {
374 public org.apache.thrift.TBase getResult(I iface, onStartConfigResyncNotification_args args) throws org.apache.thrift.TException {
375 iface.onStartConfigResyncNotification();
380 public static class onNotificationSendEvent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onNotificationSendEvent_args> {
381 public onNotificationSendEvent() {
382 super("onNotificationSendEvent");
385 public onNotificationSendEvent_args getEmptyArgsInstance() {
386 return new onNotificationSendEvent_args();
389 protected boolean isOneway() {
393 public org.apache.thrift.TBase getResult(I iface, onNotificationSendEvent_args args) throws org.apache.thrift.TException {
394 iface.onNotificationSendEvent(args.prefix, args.errCode, args.errSubcode);
401 public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
402 private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
403 public AsyncProcessor(I iface) {
404 super(iface, getProcessMap(new HashMap<>()));
407 protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
408 super(iface, getProcessMap(processMap));
411 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) {
412 processMap.put("onUpdatePushRoute", new onUpdatePushRoute());
413 processMap.put("onUpdateWithdrawRoute", new onUpdateWithdrawRoute());
414 processMap.put("onStartConfigResyncNotification", new onStartConfigResyncNotification());
415 processMap.put("onNotificationSendEvent", new onNotificationSendEvent());
419 public static class onUpdatePushRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onUpdatePushRoute_args, Void> {
420 public onUpdatePushRoute() {
421 super("onUpdatePushRoute");
424 public onUpdatePushRoute_args getEmptyArgsInstance() {
425 return new onUpdatePushRoute_args();
428 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
429 final org.apache.thrift.AsyncProcessFunction fcall = this;
430 return new AsyncMethodCallback<Void>() {
431 public void onComplete(Void o) {
433 public void onError(Exception e) {
438 protected boolean isOneway() {
442 public void start(I iface, onUpdatePushRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
443 iface.onUpdatePushRoute(args.rd, args.prefix, args.prefixlen, args.nexthop, args.label,resultHandler);
447 public static class onUpdateWithdrawRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onUpdateWithdrawRoute_args, Void> {
448 public onUpdateWithdrawRoute() {
449 super("onUpdateWithdrawRoute");
452 public onUpdateWithdrawRoute_args getEmptyArgsInstance() {
453 return new onUpdateWithdrawRoute_args();
456 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
457 final org.apache.thrift.AsyncProcessFunction fcall = this;
458 return new AsyncMethodCallback<Void>() {
459 public void onComplete(Void o) {
461 public void onError(Exception e) {
466 protected boolean isOneway() {
470 public void start(I iface, onUpdateWithdrawRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
471 iface.onUpdateWithdrawRoute(args.rd, args.prefix, args.prefixlen,resultHandler);
475 public static class onStartConfigResyncNotification<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onStartConfigResyncNotification_args, Void> {
476 public onStartConfigResyncNotification() {
477 super("onStartConfigResyncNotification");
480 public onStartConfigResyncNotification_args getEmptyArgsInstance() {
481 return new onStartConfigResyncNotification_args();
484 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
485 final org.apache.thrift.AsyncProcessFunction fcall = this;
486 return new AsyncMethodCallback<Void>() {
487 public void onComplete(Void o) {
489 public void onError(Exception e) {
494 protected boolean isOneway() {
498 public void start(I iface, onStartConfigResyncNotification_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
499 iface.onStartConfigResyncNotification(resultHandler);
503 public static class onNotificationSendEvent<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onNotificationSendEvent_args, Void> {
504 public onNotificationSendEvent() {
505 super("onNotificationSendEvent");
508 public onNotificationSendEvent_args getEmptyArgsInstance() {
509 return new onNotificationSendEvent_args();
512 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
513 final org.apache.thrift.AsyncProcessFunction fcall = this;
514 return new AsyncMethodCallback<Void>() {
515 public void onComplete(Void o) {
517 public void onError(Exception e) {
522 protected boolean isOneway() {
526 public void start(I iface, onNotificationSendEvent_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
527 iface.onNotificationSendEvent(args.prefix, args.errCode, args.errSubcode,resultHandler);
533 public static class onUpdatePushRoute_args implements org.apache.thrift.TBase<onUpdatePushRoute_args, onUpdatePushRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<onUpdatePushRoute_args> {
534 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onUpdatePushRoute_args");
536 private static final org.apache.thrift.protocol.TField RD_FIELD_DESC = new org.apache.thrift.protocol.TField("rd", org.apache.thrift.protocol.TType.STRING, (short)1);
537 private static final org.apache.thrift.protocol.TField PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("prefix", org.apache.thrift.protocol.TType.STRING, (short)2);
538 private static final org.apache.thrift.protocol.TField PREFIXLEN_FIELD_DESC = new org.apache.thrift.protocol.TField("prefixlen", org.apache.thrift.protocol.TType.I32, (short)3);
539 private static final org.apache.thrift.protocol.TField NEXTHOP_FIELD_DESC = new org.apache.thrift.protocol.TField("nexthop", org.apache.thrift.protocol.TType.STRING, (short)4);
540 private static final org.apache.thrift.protocol.TField LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("label", org.apache.thrift.protocol.TType.I32, (short)5);
542 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
544 schemes.put(StandardScheme.class, new onUpdatePushRoute_argsStandardSchemeFactory());
545 schemes.put(TupleScheme.class, new onUpdatePushRoute_argsTupleSchemeFactory());
548 public String rd; // required
549 public String prefix; // required
550 public int prefixlen; // required
551 public String nexthop; // required
552 public int label; // required
554 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
555 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
557 PREFIX((short)2, "prefix"),
558 PREFIXLEN((short)3, "prefixlen"),
559 NEXTHOP((short)4, "nexthop"),
560 LABEL((short)5, "label");
562 private static final Map<String, _Fields> byName = new HashMap<>();
565 for (_Fields field : EnumSet.allOf(_Fields.class)) {
566 byName.put(field.getFieldName(), field);
571 * Find the _Fields constant that matches fieldId, or null if its not found.
573 public static _Fields findByThriftId(int fieldId) {
591 * Find the _Fields constant that matches fieldId, throwing an exception
592 * if it is not found.
594 public static _Fields findByThriftIdOrThrow(int fieldId) {
595 _Fields fields = findByThriftId(fieldId);
596 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
601 * Find the _Fields constant that matches name, or null if its not found.
603 public static _Fields findByName(String name) {
604 return byName.get(name);
607 private final short _thriftId;
608 private final String _fieldName;
610 _Fields(short thriftId, String fieldName) {
611 _thriftId = thriftId;
612 _fieldName = fieldName;
615 public short getThriftFieldId() {
619 public String getFieldName() {
624 // isset id assignments
625 private static final int __PREFIXLEN_ISSET_ID = 0;
626 private static final int __LABEL_ISSET_ID = 1;
627 private byte __isset_bitfield = 0;
628 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
630 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
631 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
632 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
633 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
634 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
635 tmpMap.put(_Fields.PREFIXLEN, new org.apache.thrift.meta_data.FieldMetaData("prefixlen", org.apache.thrift.TFieldRequirementType.DEFAULT,
636 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
637 tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT,
638 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
639 tmpMap.put(_Fields.LABEL, new org.apache.thrift.meta_data.FieldMetaData("label", org.apache.thrift.TFieldRequirementType.DEFAULT,
640 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
641 metaDataMap = Collections.unmodifiableMap(tmpMap);
642 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onUpdatePushRoute_args.class, metaDataMap);
645 public onUpdatePushRoute_args() {
648 public onUpdatePushRoute_args(
657 this.prefix = prefix;
658 this.prefixlen = prefixlen;
659 setPrefixlenIsSet(true);
660 this.nexthop = nexthop;
666 * Performs a deep copy on <i>other</i>.
668 public onUpdatePushRoute_args(onUpdatePushRoute_args other) {
669 __isset_bitfield = other.__isset_bitfield;
670 if (other.isSetRd()) {
673 if (other.isSetPrefix()) {
674 this.prefix = other.prefix;
676 this.prefixlen = other.prefixlen;
677 if (other.isSetNexthop()) {
678 this.nexthop = other.nexthop;
680 this.label = other.label;
683 public onUpdatePushRoute_args deepCopy() {
684 return new onUpdatePushRoute_args(this);
688 public void clear() {
691 setPrefixlenIsSet(false);
694 setLabelIsSet(false);
698 public String getRd() {
702 public onUpdatePushRoute_args setRd(String rd) {
707 public void unsetRd() {
711 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
712 public boolean isSetRd() {
713 return this.rd != null;
716 public void setRdIsSet(boolean value) {
722 public String getPrefix() {
726 public onUpdatePushRoute_args setPrefix(String prefix) {
727 this.prefix = prefix;
731 public void unsetPrefix() {
735 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
736 public boolean isSetPrefix() {
737 return this.prefix != null;
740 public void setPrefixIsSet(boolean value) {
746 public int getPrefixlen() {
747 return this.prefixlen;
750 public onUpdatePushRoute_args setPrefixlen(int prefixlen) {
751 this.prefixlen = prefixlen;
752 setPrefixlenIsSet(true);
756 public void unsetPrefixlen() {
757 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
760 /** Returns true if field prefixlen is set (has been assigned a value) and false otherwise */
761 public boolean isSetPrefixlen() {
762 return EncodingUtils.testBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
765 public void setPrefixlenIsSet(boolean value) {
766 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PREFIXLEN_ISSET_ID, value);
769 public String getNexthop() {
773 public onUpdatePushRoute_args setNexthop(String nexthop) {
774 this.nexthop = nexthop;
778 public void unsetNexthop() {
782 /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
783 public boolean isSetNexthop() {
784 return this.nexthop != null;
787 public void setNexthopIsSet(boolean value) {
793 public int getLabel() {
797 public onUpdatePushRoute_args setLabel(int label) {
803 public void unsetLabel() {
804 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LABEL_ISSET_ID);
807 /** Returns true if field label is set (has been assigned a value) and false otherwise */
808 public boolean isSetLabel() {
809 return EncodingUtils.testBit(__isset_bitfield, __LABEL_ISSET_ID);
812 public void setLabelIsSet(boolean value) {
813 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LABEL_ISSET_ID, value);
816 public void setFieldValue(_Fields field, Object value) {
822 setRd((String)value);
830 setPrefix((String)value);
838 setPrefixlen((Integer)value);
846 setNexthop((String)value);
854 setLabel((Integer)value);
861 public Object getFieldValue(_Fields field) {
870 return Integer.valueOf(getPrefixlen());
876 return Integer.valueOf(getLabel());
879 throw new IllegalStateException();
882 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
883 public boolean isSet(_Fields field) {
885 throw new IllegalArgumentException();
892 return isSetPrefix();
894 return isSetPrefixlen();
896 return isSetNexthop();
900 throw new IllegalStateException();
904 public boolean equals(Object that) {
907 if (that instanceof onUpdatePushRoute_args)
908 return this.equals((onUpdatePushRoute_args)that);
912 public boolean equals(onUpdatePushRoute_args that) {
916 boolean this_present_rd = this.isSetRd();
917 boolean that_present_rd = that.isSetRd();
918 if (this_present_rd || that_present_rd) {
919 if (!(this_present_rd && that_present_rd))
921 if (!this.rd.equals(that.rd))
925 boolean this_present_prefix = this.isSetPrefix();
926 boolean that_present_prefix = that.isSetPrefix();
927 if (this_present_prefix || that_present_prefix) {
928 if (!(this_present_prefix && that_present_prefix))
930 if (!this.prefix.equals(that.prefix))
934 boolean this_present_prefixlen = true;
935 boolean that_present_prefixlen = true;
936 if (this_present_prefixlen || that_present_prefixlen) {
937 if (!(this_present_prefixlen && that_present_prefixlen))
939 if (this.prefixlen != that.prefixlen)
943 boolean this_present_nexthop = this.isSetNexthop();
944 boolean that_present_nexthop = that.isSetNexthop();
945 if (this_present_nexthop || that_present_nexthop) {
946 if (!(this_present_nexthop && that_present_nexthop))
948 if (!this.nexthop.equals(that.nexthop))
952 boolean this_present_label = true;
953 boolean that_present_label = true;
954 if (this_present_label || that_present_label) {
955 if (!(this_present_label && that_present_label))
957 if (this.label != that.label)
965 public int hashCode() {
970 public int compareTo(onUpdatePushRoute_args other) {
971 if (!getClass().equals(other.getClass())) {
972 return getClass().getName().compareTo(other.getClass().getName());
975 int lastComparison = 0;
977 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
978 if (lastComparison != 0) {
979 return lastComparison;
982 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
983 if (lastComparison != 0) {
984 return lastComparison;
987 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
988 if (lastComparison != 0) {
989 return lastComparison;
992 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
993 if (lastComparison != 0) {
994 return lastComparison;
997 lastComparison = Boolean.valueOf(isSetPrefixlen()).compareTo(other.isSetPrefixlen());
998 if (lastComparison != 0) {
999 return lastComparison;
1001 if (isSetPrefixlen()) {
1002 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefixlen, other.prefixlen);
1003 if (lastComparison != 0) {
1004 return lastComparison;
1007 lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
1008 if (lastComparison != 0) {
1009 return lastComparison;
1011 if (isSetNexthop()) {
1012 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
1013 if (lastComparison != 0) {
1014 return lastComparison;
1017 lastComparison = Boolean.valueOf(isSetLabel()).compareTo(other.isSetLabel());
1018 if (lastComparison != 0) {
1019 return lastComparison;
1022 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.label, other.label);
1023 if (lastComparison != 0) {
1024 return lastComparison;
1030 public _Fields fieldForId(int fieldId) {
1031 return _Fields.findByThriftId(fieldId);
1034 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1035 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
1038 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1039 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
1043 public String toString() {
1044 StringBuilder sb = new StringBuilder("onUpdatePushRoute_args(");
1045 boolean first = true;
1048 if (this.rd == null) {
1054 if (!first) sb.append(", ");
1055 sb.append("prefix:");
1056 if (this.prefix == null) {
1059 sb.append(this.prefix);
1062 if (!first) sb.append(", ");
1063 sb.append("prefixlen:");
1064 sb.append(this.prefixlen);
1066 if (!first) sb.append(", ");
1067 sb.append("nexthop:");
1068 if (this.nexthop == null) {
1071 sb.append(this.nexthop);
1074 if (!first) sb.append(", ");
1075 sb.append("label:");
1076 sb.append(this.label);
1079 return sb.toString();
1082 public void validate() throws org.apache.thrift.TException {
1083 // check for required fields
1084 // check for sub-struct validity
1087 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1089 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1090 } catch (org.apache.thrift.TException te) {
1091 throw new java.io.IOException(te);
1095 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1097 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1098 __isset_bitfield = 0;
1099 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1100 } catch (org.apache.thrift.TException te) {
1101 throw new java.io.IOException(te);
1105 private static class onUpdatePushRoute_argsStandardSchemeFactory implements SchemeFactory {
1106 public onUpdatePushRoute_argsStandardScheme getScheme() {
1107 return new onUpdatePushRoute_argsStandardScheme();
1111 private static class onUpdatePushRoute_argsStandardScheme extends StandardScheme<onUpdatePushRoute_args> {
1113 public void read(org.apache.thrift.protocol.TProtocol iprot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1114 org.apache.thrift.protocol.TField schemeField;
1115 iprot.readStructBegin();
1118 schemeField = iprot.readFieldBegin();
1119 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
1122 switch (schemeField.id) {
1124 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1125 struct.rd = iprot.readString();
1126 struct.setRdIsSet(true);
1128 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1132 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1133 struct.prefix = iprot.readString();
1134 struct.setPrefixIsSet(true);
1136 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1139 case 3: // PREFIXLEN
1140 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1141 struct.prefixlen = iprot.readI32();
1142 struct.setPrefixlenIsSet(true);
1144 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1148 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1149 struct.nexthop = iprot.readString();
1150 struct.setNexthopIsSet(true);
1152 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1156 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1157 struct.label = iprot.readI32();
1158 struct.setLabelIsSet(true);
1160 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1164 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1166 iprot.readFieldEnd();
1168 iprot.readStructEnd();
1170 // check for required fields of primitive type, which can't be checked in the validate method
1174 public void write(org.apache.thrift.protocol.TProtocol oprot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1177 oprot.writeStructBegin(STRUCT_DESC);
1178 if (struct.rd != null) {
1179 oprot.writeFieldBegin(RD_FIELD_DESC);
1180 oprot.writeString(struct.rd);
1181 oprot.writeFieldEnd();
1183 if (struct.prefix != null) {
1184 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
1185 oprot.writeString(struct.prefix);
1186 oprot.writeFieldEnd();
1188 oprot.writeFieldBegin(PREFIXLEN_FIELD_DESC);
1189 oprot.writeI32(struct.prefixlen);
1190 oprot.writeFieldEnd();
1191 if (struct.nexthop != null) {
1192 oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
1193 oprot.writeString(struct.nexthop);
1194 oprot.writeFieldEnd();
1196 oprot.writeFieldBegin(LABEL_FIELD_DESC);
1197 oprot.writeI32(struct.label);
1198 oprot.writeFieldEnd();
1199 oprot.writeFieldStop();
1200 oprot.writeStructEnd();
1205 private static class onUpdatePushRoute_argsTupleSchemeFactory implements SchemeFactory {
1206 public onUpdatePushRoute_argsTupleScheme getScheme() {
1207 return new onUpdatePushRoute_argsTupleScheme();
1211 private static class onUpdatePushRoute_argsTupleScheme extends TupleScheme<onUpdatePushRoute_args> {
1214 public void write(org.apache.thrift.protocol.TProtocol prot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1215 TTupleProtocol oprot = (TTupleProtocol) prot;
1216 BitSet optionals = new BitSet();
1217 if (struct.isSetRd()) {
1220 if (struct.isSetPrefix()) {
1223 if (struct.isSetPrefixlen()) {
1226 if (struct.isSetNexthop()) {
1229 if (struct.isSetLabel()) {
1232 oprot.writeBitSet(optionals, 5);
1233 if (struct.isSetRd()) {
1234 oprot.writeString(struct.rd);
1236 if (struct.isSetPrefix()) {
1237 oprot.writeString(struct.prefix);
1239 if (struct.isSetPrefixlen()) {
1240 oprot.writeI32(struct.prefixlen);
1242 if (struct.isSetNexthop()) {
1243 oprot.writeString(struct.nexthop);
1245 if (struct.isSetLabel()) {
1246 oprot.writeI32(struct.label);
1251 public void read(org.apache.thrift.protocol.TProtocol prot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1252 TTupleProtocol iprot = (TTupleProtocol) prot;
1253 BitSet incoming = iprot.readBitSet(5);
1254 if (incoming.get(0)) {
1255 struct.rd = iprot.readString();
1256 struct.setRdIsSet(true);
1258 if (incoming.get(1)) {
1259 struct.prefix = iprot.readString();
1260 struct.setPrefixIsSet(true);
1262 if (incoming.get(2)) {
1263 struct.prefixlen = iprot.readI32();
1264 struct.setPrefixlenIsSet(true);
1266 if (incoming.get(3)) {
1267 struct.nexthop = iprot.readString();
1268 struct.setNexthopIsSet(true);
1270 if (incoming.get(4)) {
1271 struct.label = iprot.readI32();
1272 struct.setLabelIsSet(true);
1279 public static class onUpdateWithdrawRoute_args implements org.apache.thrift.TBase<onUpdateWithdrawRoute_args, onUpdateWithdrawRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<onUpdateWithdrawRoute_args> {
1280 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onUpdateWithdrawRoute_args");
1282 private static final org.apache.thrift.protocol.TField RD_FIELD_DESC = new org.apache.thrift.protocol.TField("rd", org.apache.thrift.protocol.TType.STRING, (short)1);
1283 private static final org.apache.thrift.protocol.TField PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("prefix", org.apache.thrift.protocol.TType.STRING, (short)2);
1284 private static final org.apache.thrift.protocol.TField PREFIXLEN_FIELD_DESC = new org.apache.thrift.protocol.TField("prefixlen", org.apache.thrift.protocol.TType.I32, (short)3);
1286 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
1288 schemes.put(StandardScheme.class, new onUpdateWithdrawRoute_argsStandardSchemeFactory());
1289 schemes.put(TupleScheme.class, new onUpdateWithdrawRoute_argsTupleSchemeFactory());
1292 public String rd; // required
1293 public String prefix; // required
1294 public int prefixlen; // required
1296 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1297 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1299 PREFIX((short)2, "prefix"),
1300 PREFIXLEN((short)3, "prefixlen");
1302 private static final Map<String, _Fields> byName = new HashMap<>();
1305 for (_Fields field : EnumSet.allOf(_Fields.class)) {
1306 byName.put(field.getFieldName(), field);
1311 * Find the _Fields constant that matches fieldId, or null if its not found.
1313 public static _Fields findByThriftId(int fieldId) {
1319 case 3: // PREFIXLEN
1327 * Find the _Fields constant that matches fieldId, throwing an exception
1328 * if it is not found.
1330 public static _Fields findByThriftIdOrThrow(int fieldId) {
1331 _Fields fields = findByThriftId(fieldId);
1332 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1337 * Find the _Fields constant that matches name, or null if its not found.
1339 public static _Fields findByName(String name) {
1340 return byName.get(name);
1343 private final short _thriftId;
1344 private final String _fieldName;
1346 _Fields(short thriftId, String fieldName) {
1347 _thriftId = thriftId;
1348 _fieldName = fieldName;
1351 public short getThriftFieldId() {
1355 public String getFieldName() {
1360 // isset id assignments
1361 private static final int __PREFIXLEN_ISSET_ID = 0;
1362 private byte __isset_bitfield = 0;
1363 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1365 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
1366 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
1367 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1368 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
1369 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1370 tmpMap.put(_Fields.PREFIXLEN, new org.apache.thrift.meta_data.FieldMetaData("prefixlen", org.apache.thrift.TFieldRequirementType.DEFAULT,
1371 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
1372 metaDataMap = Collections.unmodifiableMap(tmpMap);
1373 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onUpdateWithdrawRoute_args.class, metaDataMap);
1376 public onUpdateWithdrawRoute_args() {
1379 public onUpdateWithdrawRoute_args(
1386 this.prefix = prefix;
1387 this.prefixlen = prefixlen;
1388 setPrefixlenIsSet(true);
1392 * Performs a deep copy on <i>other</i>.
1394 public onUpdateWithdrawRoute_args(onUpdateWithdrawRoute_args other) {
1395 __isset_bitfield = other.__isset_bitfield;
1396 if (other.isSetRd()) {
1399 if (other.isSetPrefix()) {
1400 this.prefix = other.prefix;
1402 this.prefixlen = other.prefixlen;
1405 public onUpdateWithdrawRoute_args deepCopy() {
1406 return new onUpdateWithdrawRoute_args(this);
1410 public void clear() {
1413 setPrefixlenIsSet(false);
1417 public String getRd() {
1421 public onUpdateWithdrawRoute_args setRd(String rd) {
1426 public void unsetRd() {
1430 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
1431 public boolean isSetRd() {
1432 return this.rd != null;
1435 public void setRdIsSet(boolean value) {
1441 public String getPrefix() {
1445 public onUpdateWithdrawRoute_args setPrefix(String prefix) {
1446 this.prefix = prefix;
1450 public void unsetPrefix() {
1454 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
1455 public boolean isSetPrefix() {
1456 return this.prefix != null;
1459 public void setPrefixIsSet(boolean value) {
1465 public int getPrefixlen() {
1466 return this.prefixlen;
1469 public onUpdateWithdrawRoute_args setPrefixlen(int prefixlen) {
1470 this.prefixlen = prefixlen;
1471 setPrefixlenIsSet(true);
1475 public void unsetPrefixlen() {
1476 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
1479 /** Returns true if field prefixlen is set (has been assigned a value) and false otherwise */
1480 public boolean isSetPrefixlen() {
1481 return EncodingUtils.testBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
1484 public void setPrefixlenIsSet(boolean value) {
1485 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PREFIXLEN_ISSET_ID, value);
1488 public void setFieldValue(_Fields field, Object value) {
1491 if (value == null) {
1494 setRd((String)value);
1499 if (value == null) {
1502 setPrefix((String)value);
1507 if (value == null) {
1510 setPrefixlen((Integer)value);
1517 public Object getFieldValue(_Fields field) {
1526 return Integer.valueOf(getPrefixlen());
1529 throw new IllegalStateException();
1532 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1533 public boolean isSet(_Fields field) {
1534 if (field == null) {
1535 throw new IllegalArgumentException();
1542 return isSetPrefix();
1544 return isSetPrefixlen();
1546 throw new IllegalStateException();
1550 public boolean equals(Object that) {
1553 if (that instanceof onUpdateWithdrawRoute_args)
1554 return this.equals((onUpdateWithdrawRoute_args)that);
1558 public boolean equals(onUpdateWithdrawRoute_args that) {
1562 boolean this_present_rd = this.isSetRd();
1563 boolean that_present_rd = that.isSetRd();
1564 if (this_present_rd || that_present_rd) {
1565 if (!(this_present_rd && that_present_rd))
1567 if (!this.rd.equals(that.rd))
1571 boolean this_present_prefix = this.isSetPrefix();
1572 boolean that_present_prefix = that.isSetPrefix();
1573 if (this_present_prefix || that_present_prefix) {
1574 if (!(this_present_prefix && that_present_prefix))
1576 if (!this.prefix.equals(that.prefix))
1580 boolean this_present_prefixlen = true;
1581 boolean that_present_prefixlen = true;
1582 if (this_present_prefixlen || that_present_prefixlen) {
1583 if (!(this_present_prefixlen && that_present_prefixlen))
1585 if (this.prefixlen != that.prefixlen)
1593 public int hashCode() {
1598 public int compareTo(onUpdateWithdrawRoute_args other) {
1599 if (!getClass().equals(other.getClass())) {
1600 return getClass().getName().compareTo(other.getClass().getName());
1603 int lastComparison = 0;
1605 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
1606 if (lastComparison != 0) {
1607 return lastComparison;
1610 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
1611 if (lastComparison != 0) {
1612 return lastComparison;
1615 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
1616 if (lastComparison != 0) {
1617 return lastComparison;
1619 if (isSetPrefix()) {
1620 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
1621 if (lastComparison != 0) {
1622 return lastComparison;
1625 lastComparison = Boolean.valueOf(isSetPrefixlen()).compareTo(other.isSetPrefixlen());
1626 if (lastComparison != 0) {
1627 return lastComparison;
1629 if (isSetPrefixlen()) {
1630 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefixlen, other.prefixlen);
1631 if (lastComparison != 0) {
1632 return lastComparison;
1638 public _Fields fieldForId(int fieldId) {
1639 return _Fields.findByThriftId(fieldId);
1642 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1643 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
1646 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1647 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
1651 public String toString() {
1652 StringBuilder sb = new StringBuilder("onUpdateWithdrawRoute_args(");
1653 boolean first = true;
1656 if (this.rd == null) {
1662 if (!first) sb.append(", ");
1663 sb.append("prefix:");
1664 if (this.prefix == null) {
1667 sb.append(this.prefix);
1670 if (!first) sb.append(", ");
1671 sb.append("prefixlen:");
1672 sb.append(this.prefixlen);
1675 return sb.toString();
1678 public void validate() throws org.apache.thrift.TException {
1679 // check for required fields
1680 // check for sub-struct validity
1683 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1685 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1686 } catch (org.apache.thrift.TException te) {
1687 throw new java.io.IOException(te);
1691 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1693 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1694 __isset_bitfield = 0;
1695 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1696 } catch (org.apache.thrift.TException te) {
1697 throw new java.io.IOException(te);
1701 private static class onUpdateWithdrawRoute_argsStandardSchemeFactory implements SchemeFactory {
1702 public onUpdateWithdrawRoute_argsStandardScheme getScheme() {
1703 return new onUpdateWithdrawRoute_argsStandardScheme();
1707 private static class onUpdateWithdrawRoute_argsStandardScheme extends StandardScheme<onUpdateWithdrawRoute_args> {
1709 public void read(org.apache.thrift.protocol.TProtocol iprot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
1710 org.apache.thrift.protocol.TField schemeField;
1711 iprot.readStructBegin();
1714 schemeField = iprot.readFieldBegin();
1715 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
1718 switch (schemeField.id) {
1720 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1721 struct.rd = iprot.readString();
1722 struct.setRdIsSet(true);
1724 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1728 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1729 struct.prefix = iprot.readString();
1730 struct.setPrefixIsSet(true);
1732 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1735 case 3: // PREFIXLEN
1736 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1737 struct.prefixlen = iprot.readI32();
1738 struct.setPrefixlenIsSet(true);
1740 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1744 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1746 iprot.readFieldEnd();
1748 iprot.readStructEnd();
1750 // check for required fields of primitive type, which can't be checked in the validate method
1754 public void write(org.apache.thrift.protocol.TProtocol oprot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
1757 oprot.writeStructBegin(STRUCT_DESC);
1758 if (struct.rd != null) {
1759 oprot.writeFieldBegin(RD_FIELD_DESC);
1760 oprot.writeString(struct.rd);
1761 oprot.writeFieldEnd();
1763 if (struct.prefix != null) {
1764 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
1765 oprot.writeString(struct.prefix);
1766 oprot.writeFieldEnd();
1768 oprot.writeFieldBegin(PREFIXLEN_FIELD_DESC);
1769 oprot.writeI32(struct.prefixlen);
1770 oprot.writeFieldEnd();
1771 oprot.writeFieldStop();
1772 oprot.writeStructEnd();
1777 private static class onUpdateWithdrawRoute_argsTupleSchemeFactory implements SchemeFactory {
1778 public onUpdateWithdrawRoute_argsTupleScheme getScheme() {
1779 return new onUpdateWithdrawRoute_argsTupleScheme();
1783 private static class onUpdateWithdrawRoute_argsTupleScheme extends TupleScheme<onUpdateWithdrawRoute_args> {
1786 public void write(org.apache.thrift.protocol.TProtocol prot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
1787 TTupleProtocol oprot = (TTupleProtocol) prot;
1788 BitSet optionals = new BitSet();
1789 if (struct.isSetRd()) {
1792 if (struct.isSetPrefix()) {
1795 if (struct.isSetPrefixlen()) {
1798 oprot.writeBitSet(optionals, 3);
1799 if (struct.isSetRd()) {
1800 oprot.writeString(struct.rd);
1802 if (struct.isSetPrefix()) {
1803 oprot.writeString(struct.prefix);
1805 if (struct.isSetPrefixlen()) {
1806 oprot.writeI32(struct.prefixlen);
1811 public void read(org.apache.thrift.protocol.TProtocol prot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
1812 TTupleProtocol iprot = (TTupleProtocol) prot;
1813 BitSet incoming = iprot.readBitSet(3);
1814 if (incoming.get(0)) {
1815 struct.rd = iprot.readString();
1816 struct.setRdIsSet(true);
1818 if (incoming.get(1)) {
1819 struct.prefix = iprot.readString();
1820 struct.setPrefixIsSet(true);
1822 if (incoming.get(2)) {
1823 struct.prefixlen = iprot.readI32();
1824 struct.setPrefixlenIsSet(true);
1831 public static class onStartConfigResyncNotification_args implements org.apache.thrift.TBase<onStartConfigResyncNotification_args, onStartConfigResyncNotification_args._Fields>, java.io.Serializable, Cloneable, Comparable<onStartConfigResyncNotification_args> {
1832 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onStartConfigResyncNotification_args");
1835 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
1837 schemes.put(StandardScheme.class, new onStartConfigResyncNotification_argsStandardSchemeFactory());
1838 schemes.put(TupleScheme.class, new onStartConfigResyncNotification_argsTupleSchemeFactory());
1842 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1843 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 private static final Map<String, _Fields> byName = new HashMap<>();
1849 for (_Fields field : EnumSet.allOf(_Fields.class)) {
1850 byName.put(field.getFieldName(), field);
1855 * Find the _Fields constant that matches fieldId, or null if its not found.
1857 public static _Fields findByThriftId(int fieldId) {
1865 * Find the _Fields constant that matches fieldId, throwing an exception
1866 * if it is not found.
1868 public static _Fields findByThriftIdOrThrow(int fieldId) {
1869 _Fields fields = findByThriftId(fieldId);
1870 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1875 * Find the _Fields constant that matches name, or null if its not found.
1877 public static _Fields findByName(String name) {
1878 return byName.get(name);
1881 private final short _thriftId;
1882 private final String _fieldName;
1884 _Fields(short thriftId, String fieldName) {
1885 _thriftId = thriftId;
1886 _fieldName = fieldName;
1889 public short getThriftFieldId() {
1893 public String getFieldName() {
1897 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1899 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
1900 metaDataMap = Collections.unmodifiableMap(tmpMap);
1901 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onStartConfigResyncNotification_args.class, metaDataMap);
1904 public onStartConfigResyncNotification_args() {
1908 * Performs a deep copy on <i>other</i>.
1910 public onStartConfigResyncNotification_args(onStartConfigResyncNotification_args other) {
1913 public onStartConfigResyncNotification_args deepCopy() {
1914 return new onStartConfigResyncNotification_args(this);
1918 public void clear() {
1921 public void setFieldValue(_Fields field, Object value) {
1926 public Object getFieldValue(_Fields field) {
1929 throw new IllegalStateException();
1932 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1933 public boolean isSet(_Fields field) {
1934 if (field == null) {
1935 throw new IllegalArgumentException();
1940 throw new IllegalStateException();
1944 public boolean equals(Object that) {
1947 if (that instanceof onStartConfigResyncNotification_args)
1948 return this.equals((onStartConfigResyncNotification_args)that);
1952 public boolean equals(onStartConfigResyncNotification_args that) {
1960 public int hashCode() {
1965 public int compareTo(onStartConfigResyncNotification_args other) {
1966 if (!getClass().equals(other.getClass())) {
1967 return getClass().getName().compareTo(other.getClass().getName());
1970 int lastComparison = 0;
1975 public _Fields fieldForId(int fieldId) {
1976 return _Fields.findByThriftId(fieldId);
1979 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1980 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
1983 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1984 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
1988 public String toString() {
1989 StringBuilder sb = new StringBuilder("onStartConfigResyncNotification_args(");
1990 boolean first = true;
1993 return sb.toString();
1996 public void validate() throws org.apache.thrift.TException {
1997 // check for required fields
1998 // check for sub-struct validity
2001 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2003 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2004 } catch (org.apache.thrift.TException te) {
2005 throw new java.io.IOException(te);
2009 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2011 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2012 } catch (org.apache.thrift.TException te) {
2013 throw new java.io.IOException(te);
2017 private static class onStartConfigResyncNotification_argsStandardSchemeFactory implements SchemeFactory {
2018 public onStartConfigResyncNotification_argsStandardScheme getScheme() {
2019 return new onStartConfigResyncNotification_argsStandardScheme();
2023 private static class onStartConfigResyncNotification_argsStandardScheme extends StandardScheme<onStartConfigResyncNotification_args> {
2025 public void read(org.apache.thrift.protocol.TProtocol iprot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
2026 org.apache.thrift.protocol.TField schemeField;
2027 iprot.readStructBegin();
2030 schemeField = iprot.readFieldBegin();
2031 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
2034 switch (schemeField.id) {
2036 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2038 iprot.readFieldEnd();
2040 iprot.readStructEnd();
2042 // check for required fields of primitive type, which can't be checked in the validate method
2046 public void write(org.apache.thrift.protocol.TProtocol oprot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
2049 oprot.writeStructBegin(STRUCT_DESC);
2050 oprot.writeFieldStop();
2051 oprot.writeStructEnd();
2056 private static class onStartConfigResyncNotification_argsTupleSchemeFactory implements SchemeFactory {
2057 public onStartConfigResyncNotification_argsTupleScheme getScheme() {
2058 return new onStartConfigResyncNotification_argsTupleScheme();
2062 private static class onStartConfigResyncNotification_argsTupleScheme extends TupleScheme<onStartConfigResyncNotification_args> {
2065 public void write(org.apache.thrift.protocol.TProtocol prot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
2066 TTupleProtocol oprot = (TTupleProtocol) prot;
2070 public void read(org.apache.thrift.protocol.TProtocol prot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
2071 TTupleProtocol iprot = (TTupleProtocol) prot;
2077 public static class onNotificationSendEvent_args implements org.apache.thrift.TBase<onNotificationSendEvent_args, onNotificationSendEvent_args._Fields>, java.io.Serializable, Cloneable, Comparable<onNotificationSendEvent_args> {
2078 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onNotificationSendEvent_args");
2080 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);
2081 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);
2082 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);
2084 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
2086 schemes.put(StandardScheme.class, new onNotificationSendEvent_argsStandardSchemeFactory());
2087 schemes.put(TupleScheme.class, new onNotificationSendEvent_argsTupleSchemeFactory());
2090 public String prefix; // required
2091 public byte errCode; // required
2092 public byte errSubcode; // required
2094 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2095 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2096 PREFIX((short)1, "prefix"),
2097 ERR_CODE((short)2, "errCode"),
2098 ERR_SUBCODE((short)3, "errSubcode");
2100 private static final Map<String, _Fields> byName = new HashMap<>();
2103 for (_Fields field : EnumSet.allOf(_Fields.class)) {
2104 byName.put(field.getFieldName(), field);
2109 * Find the _Fields constant that matches fieldId, or null if its not found.
2111 public static _Fields findByThriftId(int fieldId) {
2117 case 3: // ERR_SUBCODE
2125 * Find the _Fields constant that matches fieldId, throwing an exception
2126 * if it is not found.
2128 public static _Fields findByThriftIdOrThrow(int fieldId) {
2129 _Fields fields = findByThriftId(fieldId);
2130 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2135 * Find the _Fields constant that matches name, or null if its not found.
2137 public static _Fields findByName(String name) {
2138 return byName.get(name);
2141 private final short _thriftId;
2142 private final String _fieldName;
2144 _Fields(short thriftId, String fieldName) {
2145 _thriftId = thriftId;
2146 _fieldName = fieldName;
2149 public short getThriftFieldId() {
2153 public String getFieldName() {
2158 // isset id assignments
2159 private static final int __ERRCODE_ISSET_ID = 0;
2160 private static final int __ERRSUBCODE_ISSET_ID = 1;
2161 private byte __isset_bitfield = 0;
2162 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2164 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
2165 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
2166 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2167 tmpMap.put(_Fields.ERR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
2168 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BYTE)));
2169 tmpMap.put(_Fields.ERR_SUBCODE, new org.apache.thrift.meta_data.FieldMetaData("errSubcode", org.apache.thrift.TFieldRequirementType.DEFAULT,
2170 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BYTE)));
2171 metaDataMap = Collections.unmodifiableMap(tmpMap);
2172 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onNotificationSendEvent_args.class, metaDataMap);
2175 public onNotificationSendEvent_args() {
2178 public onNotificationSendEvent_args(
2184 this.prefix = prefix;
2185 this.errCode = errCode;
2186 setErrCodeIsSet(true);
2187 this.errSubcode = errSubcode;
2188 setErrSubcodeIsSet(true);
2192 * Performs a deep copy on <i>other</i>.
2194 public onNotificationSendEvent_args(onNotificationSendEvent_args other) {
2195 __isset_bitfield = other.__isset_bitfield;
2196 if (other.isSetPrefix()) {
2197 this.prefix = other.prefix;
2199 this.errCode = other.errCode;
2200 this.errSubcode = other.errSubcode;
2203 public onNotificationSendEvent_args deepCopy() {
2204 return new onNotificationSendEvent_args(this);
2208 public void clear() {
2210 setErrCodeIsSet(false);
2212 setErrSubcodeIsSet(false);
2213 this.errSubcode = 0;
2216 public String getPrefix() {
2220 public onNotificationSendEvent_args setPrefix(String prefix) {
2221 this.prefix = prefix;
2225 public void unsetPrefix() {
2229 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
2230 public boolean isSetPrefix() {
2231 return this.prefix != null;
2234 public void setPrefixIsSet(boolean value) {
2240 public byte getErrCode() {
2241 return this.errCode;
2244 public onNotificationSendEvent_args setErrCode(byte errCode) {
2245 this.errCode = errCode;
2246 setErrCodeIsSet(true);
2250 public void unsetErrCode() {
2251 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ERRCODE_ISSET_ID);
2254 /** Returns true if field errCode is set (has been assigned a value) and false otherwise */
2255 public boolean isSetErrCode() {
2256 return EncodingUtils.testBit(__isset_bitfield, __ERRCODE_ISSET_ID);
2259 public void setErrCodeIsSet(boolean value) {
2260 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ERRCODE_ISSET_ID, value);
2263 public byte getErrSubcode() {
2264 return this.errSubcode;
2267 public onNotificationSendEvent_args setErrSubcode(byte errSubcode) {
2268 this.errSubcode = errSubcode;
2269 setErrSubcodeIsSet(true);
2273 public void unsetErrSubcode() {
2274 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ERRSUBCODE_ISSET_ID);
2277 /** Returns true if field errSubcode is set (has been assigned a value) and false otherwise */
2278 public boolean isSetErrSubcode() {
2279 return EncodingUtils.testBit(__isset_bitfield, __ERRSUBCODE_ISSET_ID);
2282 public void setErrSubcodeIsSet(boolean value) {
2283 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ERRSUBCODE_ISSET_ID, value);
2286 public void setFieldValue(_Fields field, Object value) {
2289 if (value == null) {
2292 setPrefix((String)value);
2297 if (value == null) {
2300 setErrCode((Byte)value);
2305 if (value == null) {
2308 setErrSubcode((Byte)value);
2315 public Object getFieldValue(_Fields field) {
2321 return Byte.valueOf(getErrCode());
2324 return Byte.valueOf(getErrSubcode());
2327 throw new IllegalStateException();
2330 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2331 public boolean isSet(_Fields field) {
2332 if (field == null) {
2333 throw new IllegalArgumentException();
2338 return isSetPrefix();
2340 return isSetErrCode();
2342 return isSetErrSubcode();
2344 throw new IllegalStateException();
2348 public boolean equals(Object that) {
2351 if (that instanceof onNotificationSendEvent_args)
2352 return this.equals((onNotificationSendEvent_args)that);
2356 public boolean equals(onNotificationSendEvent_args that) {
2360 boolean this_present_prefix = this.isSetPrefix();
2361 boolean that_present_prefix = that.isSetPrefix();
2362 if (this_present_prefix || that_present_prefix) {
2363 if (!(this_present_prefix && that_present_prefix))
2365 if (!this.prefix.equals(that.prefix))
2369 boolean this_present_errCode = true;
2370 boolean that_present_errCode = true;
2371 if (this_present_errCode || that_present_errCode) {
2372 if (!(this_present_errCode && that_present_errCode))
2374 if (this.errCode != that.errCode)
2378 boolean this_present_errSubcode = true;
2379 boolean that_present_errSubcode = true;
2380 if (this_present_errSubcode || that_present_errSubcode) {
2381 if (!(this_present_errSubcode && that_present_errSubcode))
2383 if (this.errSubcode != that.errSubcode)
2391 public int hashCode() {
2396 public int compareTo(onNotificationSendEvent_args other) {
2397 if (!getClass().equals(other.getClass())) {
2398 return getClass().getName().compareTo(other.getClass().getName());
2401 int lastComparison = 0;
2403 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
2404 if (lastComparison != 0) {
2405 return lastComparison;
2407 if (isSetPrefix()) {
2408 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
2409 if (lastComparison != 0) {
2410 return lastComparison;
2413 lastComparison = Boolean.valueOf(isSetErrCode()).compareTo(other.isSetErrCode());
2414 if (lastComparison != 0) {
2415 return lastComparison;
2417 if (isSetErrCode()) {
2418 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errCode, other.errCode);
2419 if (lastComparison != 0) {
2420 return lastComparison;
2423 lastComparison = Boolean.valueOf(isSetErrSubcode()).compareTo(other.isSetErrSubcode());
2424 if (lastComparison != 0) {
2425 return lastComparison;
2427 if (isSetErrSubcode()) {
2428 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errSubcode, other.errSubcode);
2429 if (lastComparison != 0) {
2430 return lastComparison;
2436 public _Fields fieldForId(int fieldId) {
2437 return _Fields.findByThriftId(fieldId);
2440 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2441 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
2444 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2445 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
2449 public String toString() {
2450 StringBuilder sb = new StringBuilder("onNotificationSendEvent_args(");
2451 boolean first = true;
2453 sb.append("prefix:");
2454 if (this.prefix == null) {
2457 sb.append(this.prefix);
2460 if (!first) sb.append(", ");
2461 sb.append("errCode:");
2462 sb.append(this.errCode);
2464 if (!first) sb.append(", ");
2465 sb.append("errSubcode:");
2466 sb.append(this.errSubcode);
2469 return sb.toString();
2472 public void validate() throws org.apache.thrift.TException {
2473 // check for required fields
2474 // check for sub-struct validity
2477 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2479 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2480 } catch (org.apache.thrift.TException te) {
2481 throw new java.io.IOException(te);
2485 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2487 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
2488 __isset_bitfield = 0;
2489 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2490 } catch (org.apache.thrift.TException te) {
2491 throw new java.io.IOException(te);
2495 private static class onNotificationSendEvent_argsStandardSchemeFactory implements SchemeFactory {
2496 public onNotificationSendEvent_argsStandardScheme getScheme() {
2497 return new onNotificationSendEvent_argsStandardScheme();
2501 private static class onNotificationSendEvent_argsStandardScheme extends StandardScheme<onNotificationSendEvent_args> {
2503 public void read(org.apache.thrift.protocol.TProtocol iprot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
2504 org.apache.thrift.protocol.TField schemeField;
2505 iprot.readStructBegin();
2508 schemeField = iprot.readFieldBegin();
2509 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
2512 switch (schemeField.id) {
2514 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
2515 struct.prefix = iprot.readString();
2516 struct.setPrefixIsSet(true);
2518 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2522 if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) {
2523 struct.errCode = iprot.readByte();
2524 struct.setErrCodeIsSet(true);
2526 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2529 case 3: // ERR_SUBCODE
2530 if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) {
2531 struct.errSubcode = iprot.readByte();
2532 struct.setErrSubcodeIsSet(true);
2534 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2538 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2540 iprot.readFieldEnd();
2542 iprot.readStructEnd();
2544 // check for required fields of primitive type, which can't be checked in the validate method
2548 public void write(org.apache.thrift.protocol.TProtocol oprot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
2551 oprot.writeStructBegin(STRUCT_DESC);
2552 if (struct.prefix != null) {
2553 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
2554 oprot.writeString(struct.prefix);
2555 oprot.writeFieldEnd();
2557 oprot.writeFieldBegin(ERR_CODE_FIELD_DESC);
2558 oprot.writeByte(struct.errCode);
2559 oprot.writeFieldEnd();
2560 oprot.writeFieldBegin(ERR_SUBCODE_FIELD_DESC);
2561 oprot.writeByte(struct.errSubcode);
2562 oprot.writeFieldEnd();
2563 oprot.writeFieldStop();
2564 oprot.writeStructEnd();
2569 private static class onNotificationSendEvent_argsTupleSchemeFactory implements SchemeFactory {
2570 public onNotificationSendEvent_argsTupleScheme getScheme() {
2571 return new onNotificationSendEvent_argsTupleScheme();
2575 private static class onNotificationSendEvent_argsTupleScheme extends TupleScheme<onNotificationSendEvent_args> {
2578 public void write(org.apache.thrift.protocol.TProtocol prot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
2579 TTupleProtocol oprot = (TTupleProtocol) prot;
2580 BitSet optionals = new BitSet();
2581 if (struct.isSetPrefix()) {
2584 if (struct.isSetErrCode()) {
2587 if (struct.isSetErrSubcode()) {
2590 oprot.writeBitSet(optionals, 3);
2591 if (struct.isSetPrefix()) {
2592 oprot.writeString(struct.prefix);
2594 if (struct.isSetErrCode()) {
2595 oprot.writeByte(struct.errCode);
2597 if (struct.isSetErrSubcode()) {
2598 oprot.writeByte(struct.errSubcode);
2603 public void read(org.apache.thrift.protocol.TProtocol prot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
2604 TTupleProtocol iprot = (TTupleProtocol) prot;
2605 BitSet incoming = iprot.readBitSet(3);
2606 if (incoming.get(0)) {
2607 struct.prefix = iprot.readString();
2608 struct.setPrefixIsSet(true);
2610 if (incoming.get(1)) {
2611 struct.errCode = iprot.readByte();
2612 struct.setErrCodeIsSet(true);
2614 if (incoming.get(2)) {
2615 struct.errSubcode = iprot.readByte();
2616 struct.setErrSubcodeIsSet(true);