2 * Autogenerated by Thrift Compiler (0.9.1)
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
8 package org.opendaylight.netvirt.bgpmanager.thrift.gen;
10 import org.apache.thrift.scheme.IScheme;
11 import org.apache.thrift.scheme.SchemeFactory;
12 import org.apache.thrift.scheme.StandardScheme;
14 import org.apache.thrift.scheme.TupleScheme;
15 import org.apache.thrift.protocol.TTupleProtocol;
16 import org.apache.thrift.protocol.TProtocolException;
17 import org.apache.thrift.EncodingUtils;
18 import org.apache.thrift.TException;
19 import org.apache.thrift.async.AsyncMethodCallback;
20 import org.apache.thrift.server.AbstractNonblockingServer.*;
21 import java.util.List;
22 import java.util.ArrayList;
24 import java.util.HashMap;
25 import java.util.EnumMap;
27 import java.util.HashSet;
28 import java.util.EnumSet;
29 import java.util.Collections;
30 import java.util.BitSet;
31 import java.nio.ByteBuffer;
32 import java.util.Arrays;
33 import org.slf4j.Logger;
34 import org.slf4j.LoggerFactory;
36 public class BgpUpdater {
38 public interface Iface {
40 public void onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label) throws org.apache.thrift.TException;
42 public void onUpdateWithdrawRoute(String rd, String prefix, int prefixlen) throws org.apache.thrift.TException;
44 public void onStartConfigResyncNotification() throws org.apache.thrift.TException;
46 public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode) throws org.apache.thrift.TException;
50 public interface AsyncIface {
52 public void onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
54 public void onUpdateWithdrawRoute(String rd, String prefix, int prefixlen, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
56 public void onStartConfigResyncNotification(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
58 public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
62 public static class Client extends org.apache.thrift.TServiceClient implements Iface {
63 public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
65 public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
66 return new Client(prot);
68 public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
69 return new Client(iprot, oprot);
73 public Client(org.apache.thrift.protocol.TProtocol prot)
78 public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
82 public void onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label) throws org.apache.thrift.TException
84 send_onUpdatePushRoute(rd, prefix, prefixlen, nexthop, label);
87 public void send_onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label) throws org.apache.thrift.TException
89 onUpdatePushRoute_args args = new onUpdatePushRoute_args();
91 args.setPrefix(prefix);
92 args.setPrefixlen(prefixlen);
93 args.setNexthop(nexthop);
95 sendBase("onUpdatePushRoute", args);
98 public void onUpdateWithdrawRoute(String rd, String prefix, int prefixlen) throws org.apache.thrift.TException
100 send_onUpdateWithdrawRoute(rd, prefix, prefixlen);
103 public void send_onUpdateWithdrawRoute(String rd, String prefix, int prefixlen) throws org.apache.thrift.TException
105 onUpdateWithdrawRoute_args args = new onUpdateWithdrawRoute_args();
107 args.setPrefix(prefix);
108 args.setPrefixlen(prefixlen);
109 sendBase("onUpdateWithdrawRoute", args);
112 public void onStartConfigResyncNotification() throws org.apache.thrift.TException
114 send_onStartConfigResyncNotification();
117 public void send_onStartConfigResyncNotification() throws org.apache.thrift.TException
119 onStartConfigResyncNotification_args args = new onStartConfigResyncNotification_args();
120 sendBase("onStartConfigResyncNotification", args);
123 public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode) throws org.apache.thrift.TException
125 send_onNotificationSendEvent(prefix, errCode, errSubcode);
128 public void send_onNotificationSendEvent(String prefix, byte errCode, byte errSubcode) throws org.apache.thrift.TException
130 onNotificationSendEvent_args args = new onNotificationSendEvent_args();
131 args.setPrefix(prefix);
132 args.setErrCode(errCode);
133 args.setErrSubcode(errSubcode);
134 sendBase("onNotificationSendEvent", args);
138 public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
139 public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
140 private org.apache.thrift.async.TAsyncClientManager clientManager;
141 private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
142 public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
143 this.clientManager = clientManager;
144 this.protocolFactory = protocolFactory;
146 public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
147 return new AsyncClient(protocolFactory, clientManager, transport);
151 public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
152 super(protocolFactory, clientManager, transport);
155 public void onUpdatePushRoute(String rd, String prefix, int prefixlen, String nexthop, int label, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
157 onUpdatePushRoute_call method_call = new onUpdatePushRoute_call(rd, prefix, prefixlen, nexthop, label, resultHandler, this, ___protocolFactory, ___transport);
158 this.___currentMethod = method_call;
159 ___manager.call(method_call);
162 public static class onUpdatePushRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
164 private String prefix;
165 private int prefixlen;
166 private String nexthop;
168 public onUpdatePushRoute_call(String rd, String prefix, int prefixlen, String nexthop, int label, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
169 super(client, protocolFactory, transport, resultHandler, true);
171 this.prefix = prefix;
172 this.prefixlen = prefixlen;
173 this.nexthop = nexthop;
177 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
178 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onUpdatePushRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
179 onUpdatePushRoute_args args = new onUpdatePushRoute_args();
181 args.setPrefix(prefix);
182 args.setPrefixlen(prefixlen);
183 args.setNexthop(nexthop);
184 args.setLabel(label);
186 prot.writeMessageEnd();
189 public void getResult() throws org.apache.thrift.TException {
190 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
191 throw new IllegalStateException("Method call not finished!");
193 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
194 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
198 public void onUpdateWithdrawRoute(String rd, String prefix, int prefixlen, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
200 onUpdateWithdrawRoute_call method_call = new onUpdateWithdrawRoute_call(rd, prefix, prefixlen, resultHandler, this, ___protocolFactory, ___transport);
201 this.___currentMethod = method_call;
202 ___manager.call(method_call);
205 public static class onUpdateWithdrawRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
207 private String prefix;
208 private int prefixlen;
209 public onUpdateWithdrawRoute_call(String rd, String prefix, int prefixlen, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
210 super(client, protocolFactory, transport, resultHandler, true);
212 this.prefix = prefix;
213 this.prefixlen = prefixlen;
216 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
217 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onUpdateWithdrawRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
218 onUpdateWithdrawRoute_args args = new onUpdateWithdrawRoute_args();
220 args.setPrefix(prefix);
221 args.setPrefixlen(prefixlen);
223 prot.writeMessageEnd();
226 public void getResult() throws org.apache.thrift.TException {
227 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
228 throw new IllegalStateException("Method call not finished!");
230 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
231 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
235 public void onStartConfigResyncNotification(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
237 onStartConfigResyncNotification_call method_call = new onStartConfigResyncNotification_call(resultHandler, this, ___protocolFactory, ___transport);
238 this.___currentMethod = method_call;
239 ___manager.call(method_call);
242 public static class onStartConfigResyncNotification_call extends org.apache.thrift.async.TAsyncMethodCall {
243 public onStartConfigResyncNotification_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
244 super(client, protocolFactory, transport, resultHandler, true);
247 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
248 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onStartConfigResyncNotification", org.apache.thrift.protocol.TMessageType.CALL, 0));
249 onStartConfigResyncNotification_args args = new onStartConfigResyncNotification_args();
251 prot.writeMessageEnd();
254 public void getResult() throws org.apache.thrift.TException {
255 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
256 throw new IllegalStateException("Method call not finished!");
258 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
259 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
263 public void onNotificationSendEvent(String prefix, byte errCode, byte errSubcode, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
265 onNotificationSendEvent_call method_call = new onNotificationSendEvent_call(prefix, errCode, errSubcode, resultHandler, this, ___protocolFactory, ___transport);
266 this.___currentMethod = method_call;
267 ___manager.call(method_call);
270 public static class onNotificationSendEvent_call extends org.apache.thrift.async.TAsyncMethodCall {
271 private String prefix;
272 private byte errCode;
273 private byte errSubcode;
274 public onNotificationSendEvent_call(String prefix, byte errCode, byte errSubcode, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
275 super(client, protocolFactory, transport, resultHandler, true);
276 this.prefix = prefix;
277 this.errCode = errCode;
278 this.errSubcode = errSubcode;
281 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
282 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onNotificationSendEvent", org.apache.thrift.protocol.TMessageType.CALL, 0));
283 onNotificationSendEvent_args args = new onNotificationSendEvent_args();
284 args.setPrefix(prefix);
285 args.setErrCode(errCode);
286 args.setErrSubcode(errSubcode);
288 prot.writeMessageEnd();
291 public void getResult() throws org.apache.thrift.TException {
292 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
293 throw new IllegalStateException("Method call not finished!");
295 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
296 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
302 public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
303 private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
304 public Processor(I iface) {
305 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
308 protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
309 super(iface, getProcessMap(processMap));
312 private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
313 processMap.put("onUpdatePushRoute", new onUpdatePushRoute());
314 processMap.put("onUpdateWithdrawRoute", new onUpdateWithdrawRoute());
315 processMap.put("onStartConfigResyncNotification", new onStartConfigResyncNotification());
316 processMap.put("onNotificationSendEvent", new onNotificationSendEvent());
320 public static class onUpdatePushRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onUpdatePushRoute_args> {
321 public onUpdatePushRoute() {
322 super("onUpdatePushRoute");
325 public onUpdatePushRoute_args getEmptyArgsInstance() {
326 return new onUpdatePushRoute_args();
329 protected boolean isOneway() {
333 public org.apache.thrift.TBase getResult(I iface, onUpdatePushRoute_args args) throws org.apache.thrift.TException {
334 iface.onUpdatePushRoute(args.rd, args.prefix, args.prefixlen, args.nexthop, args.label);
339 public static class onUpdateWithdrawRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onUpdateWithdrawRoute_args> {
340 public onUpdateWithdrawRoute() {
341 super("onUpdateWithdrawRoute");
344 public onUpdateWithdrawRoute_args getEmptyArgsInstance() {
345 return new onUpdateWithdrawRoute_args();
348 protected boolean isOneway() {
352 public org.apache.thrift.TBase getResult(I iface, onUpdateWithdrawRoute_args args) throws org.apache.thrift.TException {
353 iface.onUpdateWithdrawRoute(args.rd, args.prefix, args.prefixlen);
358 public static class onStartConfigResyncNotification<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onStartConfigResyncNotification_args> {
359 public onStartConfigResyncNotification() {
360 super("onStartConfigResyncNotification");
363 public onStartConfigResyncNotification_args getEmptyArgsInstance() {
364 return new onStartConfigResyncNotification_args();
367 protected boolean isOneway() {
371 public org.apache.thrift.TBase getResult(I iface, onStartConfigResyncNotification_args args) throws org.apache.thrift.TException {
372 iface.onStartConfigResyncNotification();
377 public static class onNotificationSendEvent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, onNotificationSendEvent_args> {
378 public onNotificationSendEvent() {
379 super("onNotificationSendEvent");
382 public onNotificationSendEvent_args getEmptyArgsInstance() {
383 return new onNotificationSendEvent_args();
386 protected boolean isOneway() {
390 public org.apache.thrift.TBase getResult(I iface, onNotificationSendEvent_args args) throws org.apache.thrift.TException {
391 iface.onNotificationSendEvent(args.prefix, args.errCode, args.errSubcode);
398 public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
399 private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
400 public AsyncProcessor(I iface) {
401 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
404 protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
405 super(iface, getProcessMap(processMap));
408 private static <I extends AsyncIface> Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
409 processMap.put("onUpdatePushRoute", new onUpdatePushRoute());
410 processMap.put("onUpdateWithdrawRoute", new onUpdateWithdrawRoute());
411 processMap.put("onStartConfigResyncNotification", new onStartConfigResyncNotification());
412 processMap.put("onNotificationSendEvent", new onNotificationSendEvent());
416 public static class onUpdatePushRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onUpdatePushRoute_args, Void> {
417 public onUpdatePushRoute() {
418 super("onUpdatePushRoute");
421 public onUpdatePushRoute_args getEmptyArgsInstance() {
422 return new onUpdatePushRoute_args();
425 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
426 final org.apache.thrift.AsyncProcessFunction fcall = this;
427 return new AsyncMethodCallback<Void>() {
428 public void onComplete(Void o) {
430 public void onError(Exception e) {
435 protected boolean isOneway() {
439 public void start(I iface, onUpdatePushRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
440 iface.onUpdatePushRoute(args.rd, args.prefix, args.prefixlen, args.nexthop, args.label,resultHandler);
444 public static class onUpdateWithdrawRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onUpdateWithdrawRoute_args, Void> {
445 public onUpdateWithdrawRoute() {
446 super("onUpdateWithdrawRoute");
449 public onUpdateWithdrawRoute_args getEmptyArgsInstance() {
450 return new onUpdateWithdrawRoute_args();
453 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
454 final org.apache.thrift.AsyncProcessFunction fcall = this;
455 return new AsyncMethodCallback<Void>() {
456 public void onComplete(Void o) {
458 public void onError(Exception e) {
463 protected boolean isOneway() {
467 public void start(I iface, onUpdateWithdrawRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
468 iface.onUpdateWithdrawRoute(args.rd, args.prefix, args.prefixlen,resultHandler);
472 public static class onStartConfigResyncNotification<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onStartConfigResyncNotification_args, Void> {
473 public onStartConfigResyncNotification() {
474 super("onStartConfigResyncNotification");
477 public onStartConfigResyncNotification_args getEmptyArgsInstance() {
478 return new onStartConfigResyncNotification_args();
481 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
482 final org.apache.thrift.AsyncProcessFunction fcall = this;
483 return new AsyncMethodCallback<Void>() {
484 public void onComplete(Void o) {
486 public void onError(Exception e) {
491 protected boolean isOneway() {
495 public void start(I iface, onStartConfigResyncNotification_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
496 iface.onStartConfigResyncNotification(resultHandler);
500 public static class onNotificationSendEvent<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, onNotificationSendEvent_args, Void> {
501 public onNotificationSendEvent() {
502 super("onNotificationSendEvent");
505 public onNotificationSendEvent_args getEmptyArgsInstance() {
506 return new onNotificationSendEvent_args();
509 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
510 final org.apache.thrift.AsyncProcessFunction fcall = this;
511 return new AsyncMethodCallback<Void>() {
512 public void onComplete(Void o) {
514 public void onError(Exception e) {
519 protected boolean isOneway() {
523 public void start(I iface, onNotificationSendEvent_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
524 iface.onNotificationSendEvent(args.prefix, args.errCode, args.errSubcode,resultHandler);
530 public static class onUpdatePushRoute_args implements org.apache.thrift.TBase<onUpdatePushRoute_args, onUpdatePushRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<onUpdatePushRoute_args> {
531 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onUpdatePushRoute_args");
533 private static final org.apache.thrift.protocol.TField RD_FIELD_DESC = new org.apache.thrift.protocol.TField("rd", org.apache.thrift.protocol.TType.STRING, (short)1);
534 private static final org.apache.thrift.protocol.TField PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("prefix", org.apache.thrift.protocol.TType.STRING, (short)2);
535 private static final org.apache.thrift.protocol.TField PREFIXLEN_FIELD_DESC = new org.apache.thrift.protocol.TField("prefixlen", org.apache.thrift.protocol.TType.I32, (short)3);
536 private static final org.apache.thrift.protocol.TField NEXTHOP_FIELD_DESC = new org.apache.thrift.protocol.TField("nexthop", org.apache.thrift.protocol.TType.STRING, (short)4);
537 private static final org.apache.thrift.protocol.TField LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("label", org.apache.thrift.protocol.TType.I32, (short)5);
539 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
541 schemes.put(StandardScheme.class, new onUpdatePushRoute_argsStandardSchemeFactory());
542 schemes.put(TupleScheme.class, new onUpdatePushRoute_argsTupleSchemeFactory());
545 public String rd; // required
546 public String prefix; // required
547 public int prefixlen; // required
548 public String nexthop; // required
549 public int label; // required
551 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
552 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
554 PREFIX((short)2, "prefix"),
555 PREFIXLEN((short)3, "prefixlen"),
556 NEXTHOP((short)4, "nexthop"),
557 LABEL((short)5, "label");
559 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
562 for (_Fields field : EnumSet.allOf(_Fields.class)) {
563 byName.put(field.getFieldName(), field);
568 * Find the _Fields constant that matches fieldId, or null if its not found.
570 public static _Fields findByThriftId(int fieldId) {
588 * Find the _Fields constant that matches fieldId, throwing an exception
589 * if it is not found.
591 public static _Fields findByThriftIdOrThrow(int fieldId) {
592 _Fields fields = findByThriftId(fieldId);
593 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
598 * Find the _Fields constant that matches name, or null if its not found.
600 public static _Fields findByName(String name) {
601 return byName.get(name);
604 private final short _thriftId;
605 private final String _fieldName;
607 _Fields(short thriftId, String fieldName) {
608 _thriftId = thriftId;
609 _fieldName = fieldName;
612 public short getThriftFieldId() {
616 public String getFieldName() {
621 // isset id assignments
622 private static final int __PREFIXLEN_ISSET_ID = 0;
623 private static final int __LABEL_ISSET_ID = 1;
624 private byte __isset_bitfield = 0;
625 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
627 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
628 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
629 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
630 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
631 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
632 tmpMap.put(_Fields.PREFIXLEN, new org.apache.thrift.meta_data.FieldMetaData("prefixlen", org.apache.thrift.TFieldRequirementType.DEFAULT,
633 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
634 tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT,
635 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
636 tmpMap.put(_Fields.LABEL, new org.apache.thrift.meta_data.FieldMetaData("label", org.apache.thrift.TFieldRequirementType.DEFAULT,
637 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
638 metaDataMap = Collections.unmodifiableMap(tmpMap);
639 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onUpdatePushRoute_args.class, metaDataMap);
642 public onUpdatePushRoute_args() {
645 public onUpdatePushRoute_args(
654 this.prefix = prefix;
655 this.prefixlen = prefixlen;
656 setPrefixlenIsSet(true);
657 this.nexthop = nexthop;
663 * Performs a deep copy on <i>other</i>.
665 public onUpdatePushRoute_args(onUpdatePushRoute_args other) {
666 __isset_bitfield = other.__isset_bitfield;
667 if (other.isSetRd()) {
670 if (other.isSetPrefix()) {
671 this.prefix = other.prefix;
673 this.prefixlen = other.prefixlen;
674 if (other.isSetNexthop()) {
675 this.nexthop = other.nexthop;
677 this.label = other.label;
680 public onUpdatePushRoute_args deepCopy() {
681 return new onUpdatePushRoute_args(this);
685 public void clear() {
688 setPrefixlenIsSet(false);
691 setLabelIsSet(false);
695 public String getRd() {
699 public onUpdatePushRoute_args setRd(String rd) {
704 public void unsetRd() {
708 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
709 public boolean isSetRd() {
710 return this.rd != null;
713 public void setRdIsSet(boolean value) {
719 public String getPrefix() {
723 public onUpdatePushRoute_args setPrefix(String prefix) {
724 this.prefix = prefix;
728 public void unsetPrefix() {
732 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
733 public boolean isSetPrefix() {
734 return this.prefix != null;
737 public void setPrefixIsSet(boolean value) {
743 public int getPrefixlen() {
744 return this.prefixlen;
747 public onUpdatePushRoute_args setPrefixlen(int prefixlen) {
748 this.prefixlen = prefixlen;
749 setPrefixlenIsSet(true);
753 public void unsetPrefixlen() {
754 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
757 /** Returns true if field prefixlen is set (has been assigned a value) and false otherwise */
758 public boolean isSetPrefixlen() {
759 return EncodingUtils.testBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
762 public void setPrefixlenIsSet(boolean value) {
763 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PREFIXLEN_ISSET_ID, value);
766 public String getNexthop() {
770 public onUpdatePushRoute_args setNexthop(String nexthop) {
771 this.nexthop = nexthop;
775 public void unsetNexthop() {
779 /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
780 public boolean isSetNexthop() {
781 return this.nexthop != null;
784 public void setNexthopIsSet(boolean value) {
790 public int getLabel() {
794 public onUpdatePushRoute_args setLabel(int label) {
800 public void unsetLabel() {
801 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LABEL_ISSET_ID);
804 /** Returns true if field label is set (has been assigned a value) and false otherwise */
805 public boolean isSetLabel() {
806 return EncodingUtils.testBit(__isset_bitfield, __LABEL_ISSET_ID);
809 public void setLabelIsSet(boolean value) {
810 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LABEL_ISSET_ID, value);
813 public void setFieldValue(_Fields field, Object value) {
819 setRd((String)value);
827 setPrefix((String)value);
835 setPrefixlen((Integer)value);
843 setNexthop((String)value);
851 setLabel((Integer)value);
858 public Object getFieldValue(_Fields field) {
867 return Integer.valueOf(getPrefixlen());
873 return Integer.valueOf(getLabel());
876 throw new IllegalStateException();
879 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
880 public boolean isSet(_Fields field) {
882 throw new IllegalArgumentException();
889 return isSetPrefix();
891 return isSetPrefixlen();
893 return isSetNexthop();
897 throw new IllegalStateException();
901 public boolean equals(Object that) {
904 if (that instanceof onUpdatePushRoute_args)
905 return this.equals((onUpdatePushRoute_args)that);
909 public boolean equals(onUpdatePushRoute_args that) {
913 boolean this_present_rd = true && this.isSetRd();
914 boolean that_present_rd = true && that.isSetRd();
915 if (this_present_rd || that_present_rd) {
916 if (!(this_present_rd && that_present_rd))
918 if (!this.rd.equals(that.rd))
922 boolean this_present_prefix = true && this.isSetPrefix();
923 boolean that_present_prefix = true && that.isSetPrefix();
924 if (this_present_prefix || that_present_prefix) {
925 if (!(this_present_prefix && that_present_prefix))
927 if (!this.prefix.equals(that.prefix))
931 boolean this_present_prefixlen = true;
932 boolean that_present_prefixlen = true;
933 if (this_present_prefixlen || that_present_prefixlen) {
934 if (!(this_present_prefixlen && that_present_prefixlen))
936 if (this.prefixlen != that.prefixlen)
940 boolean this_present_nexthop = true && this.isSetNexthop();
941 boolean that_present_nexthop = true && that.isSetNexthop();
942 if (this_present_nexthop || that_present_nexthop) {
943 if (!(this_present_nexthop && that_present_nexthop))
945 if (!this.nexthop.equals(that.nexthop))
949 boolean this_present_label = true;
950 boolean that_present_label = true;
951 if (this_present_label || that_present_label) {
952 if (!(this_present_label && that_present_label))
954 if (this.label != that.label)
962 public int hashCode() {
967 public int compareTo(onUpdatePushRoute_args other) {
968 if (!getClass().equals(other.getClass())) {
969 return getClass().getName().compareTo(other.getClass().getName());
972 int lastComparison = 0;
974 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
975 if (lastComparison != 0) {
976 return lastComparison;
979 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
980 if (lastComparison != 0) {
981 return lastComparison;
984 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
985 if (lastComparison != 0) {
986 return lastComparison;
989 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
990 if (lastComparison != 0) {
991 return lastComparison;
994 lastComparison = Boolean.valueOf(isSetPrefixlen()).compareTo(other.isSetPrefixlen());
995 if (lastComparison != 0) {
996 return lastComparison;
998 if (isSetPrefixlen()) {
999 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefixlen, other.prefixlen);
1000 if (lastComparison != 0) {
1001 return lastComparison;
1004 lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
1005 if (lastComparison != 0) {
1006 return lastComparison;
1008 if (isSetNexthop()) {
1009 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
1010 if (lastComparison != 0) {
1011 return lastComparison;
1014 lastComparison = Boolean.valueOf(isSetLabel()).compareTo(other.isSetLabel());
1015 if (lastComparison != 0) {
1016 return lastComparison;
1019 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.label, other.label);
1020 if (lastComparison != 0) {
1021 return lastComparison;
1027 public _Fields fieldForId(int fieldId) {
1028 return _Fields.findByThriftId(fieldId);
1031 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1032 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
1035 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1036 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
1040 public String toString() {
1041 StringBuilder sb = new StringBuilder("onUpdatePushRoute_args(");
1042 boolean first = true;
1045 if (this.rd == null) {
1051 if (!first) sb.append(", ");
1052 sb.append("prefix:");
1053 if (this.prefix == null) {
1056 sb.append(this.prefix);
1059 if (!first) sb.append(", ");
1060 sb.append("prefixlen:");
1061 sb.append(this.prefixlen);
1063 if (!first) sb.append(", ");
1064 sb.append("nexthop:");
1065 if (this.nexthop == null) {
1068 sb.append(this.nexthop);
1071 if (!first) sb.append(", ");
1072 sb.append("label:");
1073 sb.append(this.label);
1076 return sb.toString();
1079 public void validate() throws org.apache.thrift.TException {
1080 // check for required fields
1081 // check for sub-struct validity
1084 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1086 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1087 } catch (org.apache.thrift.TException te) {
1088 throw new java.io.IOException(te);
1092 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1094 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1095 __isset_bitfield = 0;
1096 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1097 } catch (org.apache.thrift.TException te) {
1098 throw new java.io.IOException(te);
1102 private static class onUpdatePushRoute_argsStandardSchemeFactory implements SchemeFactory {
1103 public onUpdatePushRoute_argsStandardScheme getScheme() {
1104 return new onUpdatePushRoute_argsStandardScheme();
1108 private static class onUpdatePushRoute_argsStandardScheme extends StandardScheme<onUpdatePushRoute_args> {
1110 public void read(org.apache.thrift.protocol.TProtocol iprot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1111 org.apache.thrift.protocol.TField schemeField;
1112 iprot.readStructBegin();
1115 schemeField = iprot.readFieldBegin();
1116 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
1119 switch (schemeField.id) {
1121 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1122 struct.rd = iprot.readString();
1123 struct.setRdIsSet(true);
1125 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1129 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1130 struct.prefix = iprot.readString();
1131 struct.setPrefixIsSet(true);
1133 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1136 case 3: // PREFIXLEN
1137 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1138 struct.prefixlen = iprot.readI32();
1139 struct.setPrefixlenIsSet(true);
1141 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1145 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1146 struct.nexthop = iprot.readString();
1147 struct.setNexthopIsSet(true);
1149 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1153 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1154 struct.label = iprot.readI32();
1155 struct.setLabelIsSet(true);
1157 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1161 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1163 iprot.readFieldEnd();
1165 iprot.readStructEnd();
1167 // check for required fields of primitive type, which can't be checked in the validate method
1171 public void write(org.apache.thrift.protocol.TProtocol oprot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1174 oprot.writeStructBegin(STRUCT_DESC);
1175 if (struct.rd != null) {
1176 oprot.writeFieldBegin(RD_FIELD_DESC);
1177 oprot.writeString(struct.rd);
1178 oprot.writeFieldEnd();
1180 if (struct.prefix != null) {
1181 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
1182 oprot.writeString(struct.prefix);
1183 oprot.writeFieldEnd();
1185 oprot.writeFieldBegin(PREFIXLEN_FIELD_DESC);
1186 oprot.writeI32(struct.prefixlen);
1187 oprot.writeFieldEnd();
1188 if (struct.nexthop != null) {
1189 oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
1190 oprot.writeString(struct.nexthop);
1191 oprot.writeFieldEnd();
1193 oprot.writeFieldBegin(LABEL_FIELD_DESC);
1194 oprot.writeI32(struct.label);
1195 oprot.writeFieldEnd();
1196 oprot.writeFieldStop();
1197 oprot.writeStructEnd();
1202 private static class onUpdatePushRoute_argsTupleSchemeFactory implements SchemeFactory {
1203 public onUpdatePushRoute_argsTupleScheme getScheme() {
1204 return new onUpdatePushRoute_argsTupleScheme();
1208 private static class onUpdatePushRoute_argsTupleScheme extends TupleScheme<onUpdatePushRoute_args> {
1211 public void write(org.apache.thrift.protocol.TProtocol prot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1212 TTupleProtocol oprot = (TTupleProtocol) prot;
1213 BitSet optionals = new BitSet();
1214 if (struct.isSetRd()) {
1217 if (struct.isSetPrefix()) {
1220 if (struct.isSetPrefixlen()) {
1223 if (struct.isSetNexthop()) {
1226 if (struct.isSetLabel()) {
1229 oprot.writeBitSet(optionals, 5);
1230 if (struct.isSetRd()) {
1231 oprot.writeString(struct.rd);
1233 if (struct.isSetPrefix()) {
1234 oprot.writeString(struct.prefix);
1236 if (struct.isSetPrefixlen()) {
1237 oprot.writeI32(struct.prefixlen);
1239 if (struct.isSetNexthop()) {
1240 oprot.writeString(struct.nexthop);
1242 if (struct.isSetLabel()) {
1243 oprot.writeI32(struct.label);
1248 public void read(org.apache.thrift.protocol.TProtocol prot, onUpdatePushRoute_args struct) throws org.apache.thrift.TException {
1249 TTupleProtocol iprot = (TTupleProtocol) prot;
1250 BitSet incoming = iprot.readBitSet(5);
1251 if (incoming.get(0)) {
1252 struct.rd = iprot.readString();
1253 struct.setRdIsSet(true);
1255 if (incoming.get(1)) {
1256 struct.prefix = iprot.readString();
1257 struct.setPrefixIsSet(true);
1259 if (incoming.get(2)) {
1260 struct.prefixlen = iprot.readI32();
1261 struct.setPrefixlenIsSet(true);
1263 if (incoming.get(3)) {
1264 struct.nexthop = iprot.readString();
1265 struct.setNexthopIsSet(true);
1267 if (incoming.get(4)) {
1268 struct.label = iprot.readI32();
1269 struct.setLabelIsSet(true);
1276 public static class onUpdateWithdrawRoute_args implements org.apache.thrift.TBase<onUpdateWithdrawRoute_args, onUpdateWithdrawRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<onUpdateWithdrawRoute_args> {
1277 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onUpdateWithdrawRoute_args");
1279 private static final org.apache.thrift.protocol.TField RD_FIELD_DESC = new org.apache.thrift.protocol.TField("rd", org.apache.thrift.protocol.TType.STRING, (short)1);
1280 private static final org.apache.thrift.protocol.TField PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("prefix", org.apache.thrift.protocol.TType.STRING, (short)2);
1281 private static final org.apache.thrift.protocol.TField PREFIXLEN_FIELD_DESC = new org.apache.thrift.protocol.TField("prefixlen", org.apache.thrift.protocol.TType.I32, (short)3);
1283 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
1285 schemes.put(StandardScheme.class, new onUpdateWithdrawRoute_argsStandardSchemeFactory());
1286 schemes.put(TupleScheme.class, new onUpdateWithdrawRoute_argsTupleSchemeFactory());
1289 public String rd; // required
1290 public String prefix; // required
1291 public int prefixlen; // required
1293 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1294 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1296 PREFIX((short)2, "prefix"),
1297 PREFIXLEN((short)3, "prefixlen");
1299 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1302 for (_Fields field : EnumSet.allOf(_Fields.class)) {
1303 byName.put(field.getFieldName(), field);
1308 * Find the _Fields constant that matches fieldId, or null if its not found.
1310 public static _Fields findByThriftId(int fieldId) {
1316 case 3: // PREFIXLEN
1324 * Find the _Fields constant that matches fieldId, throwing an exception
1325 * if it is not found.
1327 public static _Fields findByThriftIdOrThrow(int fieldId) {
1328 _Fields fields = findByThriftId(fieldId);
1329 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1334 * Find the _Fields constant that matches name, or null if its not found.
1336 public static _Fields findByName(String name) {
1337 return byName.get(name);
1340 private final short _thriftId;
1341 private final String _fieldName;
1343 _Fields(short thriftId, String fieldName) {
1344 _thriftId = thriftId;
1345 _fieldName = fieldName;
1348 public short getThriftFieldId() {
1352 public String getFieldName() {
1357 // isset id assignments
1358 private static final int __PREFIXLEN_ISSET_ID = 0;
1359 private byte __isset_bitfield = 0;
1360 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1362 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1363 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
1364 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1365 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
1366 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1367 tmpMap.put(_Fields.PREFIXLEN, new org.apache.thrift.meta_data.FieldMetaData("prefixlen", org.apache.thrift.TFieldRequirementType.DEFAULT,
1368 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
1369 metaDataMap = Collections.unmodifiableMap(tmpMap);
1370 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onUpdateWithdrawRoute_args.class, metaDataMap);
1373 public onUpdateWithdrawRoute_args() {
1376 public onUpdateWithdrawRoute_args(
1383 this.prefix = prefix;
1384 this.prefixlen = prefixlen;
1385 setPrefixlenIsSet(true);
1389 * Performs a deep copy on <i>other</i>.
1391 public onUpdateWithdrawRoute_args(onUpdateWithdrawRoute_args other) {
1392 __isset_bitfield = other.__isset_bitfield;
1393 if (other.isSetRd()) {
1396 if (other.isSetPrefix()) {
1397 this.prefix = other.prefix;
1399 this.prefixlen = other.prefixlen;
1402 public onUpdateWithdrawRoute_args deepCopy() {
1403 return new onUpdateWithdrawRoute_args(this);
1407 public void clear() {
1410 setPrefixlenIsSet(false);
1414 public String getRd() {
1418 public onUpdateWithdrawRoute_args setRd(String rd) {
1423 public void unsetRd() {
1427 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
1428 public boolean isSetRd() {
1429 return this.rd != null;
1432 public void setRdIsSet(boolean value) {
1438 public String getPrefix() {
1442 public onUpdateWithdrawRoute_args setPrefix(String prefix) {
1443 this.prefix = prefix;
1447 public void unsetPrefix() {
1451 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
1452 public boolean isSetPrefix() {
1453 return this.prefix != null;
1456 public void setPrefixIsSet(boolean value) {
1462 public int getPrefixlen() {
1463 return this.prefixlen;
1466 public onUpdateWithdrawRoute_args setPrefixlen(int prefixlen) {
1467 this.prefixlen = prefixlen;
1468 setPrefixlenIsSet(true);
1472 public void unsetPrefixlen() {
1473 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
1476 /** Returns true if field prefixlen is set (has been assigned a value) and false otherwise */
1477 public boolean isSetPrefixlen() {
1478 return EncodingUtils.testBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
1481 public void setPrefixlenIsSet(boolean value) {
1482 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PREFIXLEN_ISSET_ID, value);
1485 public void setFieldValue(_Fields field, Object value) {
1488 if (value == null) {
1491 setRd((String)value);
1496 if (value == null) {
1499 setPrefix((String)value);
1504 if (value == null) {
1507 setPrefixlen((Integer)value);
1514 public Object getFieldValue(_Fields field) {
1523 return Integer.valueOf(getPrefixlen());
1526 throw new IllegalStateException();
1529 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1530 public boolean isSet(_Fields field) {
1531 if (field == null) {
1532 throw new IllegalArgumentException();
1539 return isSetPrefix();
1541 return isSetPrefixlen();
1543 throw new IllegalStateException();
1547 public boolean equals(Object that) {
1550 if (that instanceof onUpdateWithdrawRoute_args)
1551 return this.equals((onUpdateWithdrawRoute_args)that);
1555 public boolean equals(onUpdateWithdrawRoute_args that) {
1559 boolean this_present_rd = true && this.isSetRd();
1560 boolean that_present_rd = true && that.isSetRd();
1561 if (this_present_rd || that_present_rd) {
1562 if (!(this_present_rd && that_present_rd))
1564 if (!this.rd.equals(that.rd))
1568 boolean this_present_prefix = true && this.isSetPrefix();
1569 boolean that_present_prefix = true && that.isSetPrefix();
1570 if (this_present_prefix || that_present_prefix) {
1571 if (!(this_present_prefix && that_present_prefix))
1573 if (!this.prefix.equals(that.prefix))
1577 boolean this_present_prefixlen = true;
1578 boolean that_present_prefixlen = true;
1579 if (this_present_prefixlen || that_present_prefixlen) {
1580 if (!(this_present_prefixlen && that_present_prefixlen))
1582 if (this.prefixlen != that.prefixlen)
1590 public int hashCode() {
1595 public int compareTo(onUpdateWithdrawRoute_args other) {
1596 if (!getClass().equals(other.getClass())) {
1597 return getClass().getName().compareTo(other.getClass().getName());
1600 int lastComparison = 0;
1602 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
1603 if (lastComparison != 0) {
1604 return lastComparison;
1607 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
1608 if (lastComparison != 0) {
1609 return lastComparison;
1612 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
1613 if (lastComparison != 0) {
1614 return lastComparison;
1616 if (isSetPrefix()) {
1617 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
1618 if (lastComparison != 0) {
1619 return lastComparison;
1622 lastComparison = Boolean.valueOf(isSetPrefixlen()).compareTo(other.isSetPrefixlen());
1623 if (lastComparison != 0) {
1624 return lastComparison;
1626 if (isSetPrefixlen()) {
1627 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefixlen, other.prefixlen);
1628 if (lastComparison != 0) {
1629 return lastComparison;
1635 public _Fields fieldForId(int fieldId) {
1636 return _Fields.findByThriftId(fieldId);
1639 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1640 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
1643 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1644 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
1648 public String toString() {
1649 StringBuilder sb = new StringBuilder("onUpdateWithdrawRoute_args(");
1650 boolean first = true;
1653 if (this.rd == null) {
1659 if (!first) sb.append(", ");
1660 sb.append("prefix:");
1661 if (this.prefix == null) {
1664 sb.append(this.prefix);
1667 if (!first) sb.append(", ");
1668 sb.append("prefixlen:");
1669 sb.append(this.prefixlen);
1672 return sb.toString();
1675 public void validate() throws org.apache.thrift.TException {
1676 // check for required fields
1677 // check for sub-struct validity
1680 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1682 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1683 } catch (org.apache.thrift.TException te) {
1684 throw new java.io.IOException(te);
1688 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1690 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1691 __isset_bitfield = 0;
1692 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1693 } catch (org.apache.thrift.TException te) {
1694 throw new java.io.IOException(te);
1698 private static class onUpdateWithdrawRoute_argsStandardSchemeFactory implements SchemeFactory {
1699 public onUpdateWithdrawRoute_argsStandardScheme getScheme() {
1700 return new onUpdateWithdrawRoute_argsStandardScheme();
1704 private static class onUpdateWithdrawRoute_argsStandardScheme extends StandardScheme<onUpdateWithdrawRoute_args> {
1706 public void read(org.apache.thrift.protocol.TProtocol iprot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
1707 org.apache.thrift.protocol.TField schemeField;
1708 iprot.readStructBegin();
1711 schemeField = iprot.readFieldBegin();
1712 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
1715 switch (schemeField.id) {
1717 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1718 struct.rd = iprot.readString();
1719 struct.setRdIsSet(true);
1721 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1725 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1726 struct.prefix = iprot.readString();
1727 struct.setPrefixIsSet(true);
1729 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1732 case 3: // PREFIXLEN
1733 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
1734 struct.prefixlen = iprot.readI32();
1735 struct.setPrefixlenIsSet(true);
1737 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1741 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1743 iprot.readFieldEnd();
1745 iprot.readStructEnd();
1747 // check for required fields of primitive type, which can't be checked in the validate method
1751 public void write(org.apache.thrift.protocol.TProtocol oprot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
1754 oprot.writeStructBegin(STRUCT_DESC);
1755 if (struct.rd != null) {
1756 oprot.writeFieldBegin(RD_FIELD_DESC);
1757 oprot.writeString(struct.rd);
1758 oprot.writeFieldEnd();
1760 if (struct.prefix != null) {
1761 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
1762 oprot.writeString(struct.prefix);
1763 oprot.writeFieldEnd();
1765 oprot.writeFieldBegin(PREFIXLEN_FIELD_DESC);
1766 oprot.writeI32(struct.prefixlen);
1767 oprot.writeFieldEnd();
1768 oprot.writeFieldStop();
1769 oprot.writeStructEnd();
1774 private static class onUpdateWithdrawRoute_argsTupleSchemeFactory implements SchemeFactory {
1775 public onUpdateWithdrawRoute_argsTupleScheme getScheme() {
1776 return new onUpdateWithdrawRoute_argsTupleScheme();
1780 private static class onUpdateWithdrawRoute_argsTupleScheme extends TupleScheme<onUpdateWithdrawRoute_args> {
1783 public void write(org.apache.thrift.protocol.TProtocol prot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
1784 TTupleProtocol oprot = (TTupleProtocol) prot;
1785 BitSet optionals = new BitSet();
1786 if (struct.isSetRd()) {
1789 if (struct.isSetPrefix()) {
1792 if (struct.isSetPrefixlen()) {
1795 oprot.writeBitSet(optionals, 3);
1796 if (struct.isSetRd()) {
1797 oprot.writeString(struct.rd);
1799 if (struct.isSetPrefix()) {
1800 oprot.writeString(struct.prefix);
1802 if (struct.isSetPrefixlen()) {
1803 oprot.writeI32(struct.prefixlen);
1808 public void read(org.apache.thrift.protocol.TProtocol prot, onUpdateWithdrawRoute_args struct) throws org.apache.thrift.TException {
1809 TTupleProtocol iprot = (TTupleProtocol) prot;
1810 BitSet incoming = iprot.readBitSet(3);
1811 if (incoming.get(0)) {
1812 struct.rd = iprot.readString();
1813 struct.setRdIsSet(true);
1815 if (incoming.get(1)) {
1816 struct.prefix = iprot.readString();
1817 struct.setPrefixIsSet(true);
1819 if (incoming.get(2)) {
1820 struct.prefixlen = iprot.readI32();
1821 struct.setPrefixlenIsSet(true);
1828 public static class onStartConfigResyncNotification_args implements org.apache.thrift.TBase<onStartConfigResyncNotification_args, onStartConfigResyncNotification_args._Fields>, java.io.Serializable, Cloneable, Comparable<onStartConfigResyncNotification_args> {
1829 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onStartConfigResyncNotification_args");
1832 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
1834 schemes.put(StandardScheme.class, new onStartConfigResyncNotification_argsStandardSchemeFactory());
1835 schemes.put(TupleScheme.class, new onStartConfigResyncNotification_argsTupleSchemeFactory());
1839 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1840 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1843 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1846 for (_Fields field : EnumSet.allOf(_Fields.class)) {
1847 byName.put(field.getFieldName(), field);
1852 * Find the _Fields constant that matches fieldId, or null if its not found.
1854 public static _Fields findByThriftId(int fieldId) {
1862 * Find the _Fields constant that matches fieldId, throwing an exception
1863 * if it is not found.
1865 public static _Fields findByThriftIdOrThrow(int fieldId) {
1866 _Fields fields = findByThriftId(fieldId);
1867 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1872 * Find the _Fields constant that matches name, or null if its not found.
1874 public static _Fields findByName(String name) {
1875 return byName.get(name);
1878 private final short _thriftId;
1879 private final String _fieldName;
1881 _Fields(short thriftId, String fieldName) {
1882 _thriftId = thriftId;
1883 _fieldName = fieldName;
1886 public short getThriftFieldId() {
1890 public String getFieldName() {
1894 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1896 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1897 metaDataMap = Collections.unmodifiableMap(tmpMap);
1898 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onStartConfigResyncNotification_args.class, metaDataMap);
1901 public onStartConfigResyncNotification_args() {
1905 * Performs a deep copy on <i>other</i>.
1907 public onStartConfigResyncNotification_args(onStartConfigResyncNotification_args other) {
1910 public onStartConfigResyncNotification_args deepCopy() {
1911 return new onStartConfigResyncNotification_args(this);
1915 public void clear() {
1918 public void setFieldValue(_Fields field, Object value) {
1923 public Object getFieldValue(_Fields field) {
1926 throw new IllegalStateException();
1929 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1930 public boolean isSet(_Fields field) {
1931 if (field == null) {
1932 throw new IllegalArgumentException();
1937 throw new IllegalStateException();
1941 public boolean equals(Object that) {
1944 if (that instanceof onStartConfigResyncNotification_args)
1945 return this.equals((onStartConfigResyncNotification_args)that);
1949 public boolean equals(onStartConfigResyncNotification_args that) {
1957 public int hashCode() {
1962 public int compareTo(onStartConfigResyncNotification_args other) {
1963 if (!getClass().equals(other.getClass())) {
1964 return getClass().getName().compareTo(other.getClass().getName());
1967 int lastComparison = 0;
1972 public _Fields fieldForId(int fieldId) {
1973 return _Fields.findByThriftId(fieldId);
1976 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1977 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
1980 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1981 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
1985 public String toString() {
1986 StringBuilder sb = new StringBuilder("onStartConfigResyncNotification_args(");
1987 boolean first = true;
1990 return sb.toString();
1993 public void validate() throws org.apache.thrift.TException {
1994 // check for required fields
1995 // check for sub-struct validity
1998 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2000 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2001 } catch (org.apache.thrift.TException te) {
2002 throw new java.io.IOException(te);
2006 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2008 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2009 } catch (org.apache.thrift.TException te) {
2010 throw new java.io.IOException(te);
2014 private static class onStartConfigResyncNotification_argsStandardSchemeFactory implements SchemeFactory {
2015 public onStartConfigResyncNotification_argsStandardScheme getScheme() {
2016 return new onStartConfigResyncNotification_argsStandardScheme();
2020 private static class onStartConfigResyncNotification_argsStandardScheme extends StandardScheme<onStartConfigResyncNotification_args> {
2022 public void read(org.apache.thrift.protocol.TProtocol iprot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
2023 org.apache.thrift.protocol.TField schemeField;
2024 iprot.readStructBegin();
2027 schemeField = iprot.readFieldBegin();
2028 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
2031 switch (schemeField.id) {
2033 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2035 iprot.readFieldEnd();
2037 iprot.readStructEnd();
2039 // check for required fields of primitive type, which can't be checked in the validate method
2043 public void write(org.apache.thrift.protocol.TProtocol oprot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
2046 oprot.writeStructBegin(STRUCT_DESC);
2047 oprot.writeFieldStop();
2048 oprot.writeStructEnd();
2053 private static class onStartConfigResyncNotification_argsTupleSchemeFactory implements SchemeFactory {
2054 public onStartConfigResyncNotification_argsTupleScheme getScheme() {
2055 return new onStartConfigResyncNotification_argsTupleScheme();
2059 private static class onStartConfigResyncNotification_argsTupleScheme extends TupleScheme<onStartConfigResyncNotification_args> {
2062 public void write(org.apache.thrift.protocol.TProtocol prot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
2063 TTupleProtocol oprot = (TTupleProtocol) prot;
2067 public void read(org.apache.thrift.protocol.TProtocol prot, onStartConfigResyncNotification_args struct) throws org.apache.thrift.TException {
2068 TTupleProtocol iprot = (TTupleProtocol) prot;
2074 public static class onNotificationSendEvent_args implements org.apache.thrift.TBase<onNotificationSendEvent_args, onNotificationSendEvent_args._Fields>, java.io.Serializable, Cloneable, Comparable<onNotificationSendEvent_args> {
2075 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("onNotificationSendEvent_args");
2077 private static final org.apache.thrift.protocol.TField PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("prefix", org.apache.thrift.protocol.TType.STRING, (short)1);
2078 private static final org.apache.thrift.protocol.TField ERR_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("errCode", org.apache.thrift.protocol.TType.BYTE, (short)2);
2079 private static final org.apache.thrift.protocol.TField ERR_SUBCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("errSubcode", org.apache.thrift.protocol.TType.BYTE, (short)3);
2081 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
2083 schemes.put(StandardScheme.class, new onNotificationSendEvent_argsStandardSchemeFactory());
2084 schemes.put(TupleScheme.class, new onNotificationSendEvent_argsTupleSchemeFactory());
2087 public String prefix; // required
2088 public byte errCode; // required
2089 public byte errSubcode; // required
2091 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2092 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2093 PREFIX((short)1, "prefix"),
2094 ERR_CODE((short)2, "errCode"),
2095 ERR_SUBCODE((short)3, "errSubcode");
2097 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2100 for (_Fields field : EnumSet.allOf(_Fields.class)) {
2101 byName.put(field.getFieldName(), field);
2106 * Find the _Fields constant that matches fieldId, or null if its not found.
2108 public static _Fields findByThriftId(int fieldId) {
2114 case 3: // ERR_SUBCODE
2122 * Find the _Fields constant that matches fieldId, throwing an exception
2123 * if it is not found.
2125 public static _Fields findByThriftIdOrThrow(int fieldId) {
2126 _Fields fields = findByThriftId(fieldId);
2127 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2132 * Find the _Fields constant that matches name, or null if its not found.
2134 public static _Fields findByName(String name) {
2135 return byName.get(name);
2138 private final short _thriftId;
2139 private final String _fieldName;
2141 _Fields(short thriftId, String fieldName) {
2142 _thriftId = thriftId;
2143 _fieldName = fieldName;
2146 public short getThriftFieldId() {
2150 public String getFieldName() {
2155 // isset id assignments
2156 private static final int __ERRCODE_ISSET_ID = 0;
2157 private static final int __ERRSUBCODE_ISSET_ID = 1;
2158 private byte __isset_bitfield = 0;
2159 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2161 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2162 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
2163 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2164 tmpMap.put(_Fields.ERR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
2165 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BYTE)));
2166 tmpMap.put(_Fields.ERR_SUBCODE, new org.apache.thrift.meta_data.FieldMetaData("errSubcode", org.apache.thrift.TFieldRequirementType.DEFAULT,
2167 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BYTE)));
2168 metaDataMap = Collections.unmodifiableMap(tmpMap);
2169 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(onNotificationSendEvent_args.class, metaDataMap);
2172 public onNotificationSendEvent_args() {
2175 public onNotificationSendEvent_args(
2181 this.prefix = prefix;
2182 this.errCode = errCode;
2183 setErrCodeIsSet(true);
2184 this.errSubcode = errSubcode;
2185 setErrSubcodeIsSet(true);
2189 * Performs a deep copy on <i>other</i>.
2191 public onNotificationSendEvent_args(onNotificationSendEvent_args other) {
2192 __isset_bitfield = other.__isset_bitfield;
2193 if (other.isSetPrefix()) {
2194 this.prefix = other.prefix;
2196 this.errCode = other.errCode;
2197 this.errSubcode = other.errSubcode;
2200 public onNotificationSendEvent_args deepCopy() {
2201 return new onNotificationSendEvent_args(this);
2205 public void clear() {
2207 setErrCodeIsSet(false);
2209 setErrSubcodeIsSet(false);
2210 this.errSubcode = 0;
2213 public String getPrefix() {
2217 public onNotificationSendEvent_args setPrefix(String prefix) {
2218 this.prefix = prefix;
2222 public void unsetPrefix() {
2226 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
2227 public boolean isSetPrefix() {
2228 return this.prefix != null;
2231 public void setPrefixIsSet(boolean value) {
2237 public byte getErrCode() {
2238 return this.errCode;
2241 public onNotificationSendEvent_args setErrCode(byte errCode) {
2242 this.errCode = errCode;
2243 setErrCodeIsSet(true);
2247 public void unsetErrCode() {
2248 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ERRCODE_ISSET_ID);
2251 /** Returns true if field errCode is set (has been assigned a value) and false otherwise */
2252 public boolean isSetErrCode() {
2253 return EncodingUtils.testBit(__isset_bitfield, __ERRCODE_ISSET_ID);
2256 public void setErrCodeIsSet(boolean value) {
2257 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ERRCODE_ISSET_ID, value);
2260 public byte getErrSubcode() {
2261 return this.errSubcode;
2264 public onNotificationSendEvent_args setErrSubcode(byte errSubcode) {
2265 this.errSubcode = errSubcode;
2266 setErrSubcodeIsSet(true);
2270 public void unsetErrSubcode() {
2271 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ERRSUBCODE_ISSET_ID);
2274 /** Returns true if field errSubcode is set (has been assigned a value) and false otherwise */
2275 public boolean isSetErrSubcode() {
2276 return EncodingUtils.testBit(__isset_bitfield, __ERRSUBCODE_ISSET_ID);
2279 public void setErrSubcodeIsSet(boolean value) {
2280 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ERRSUBCODE_ISSET_ID, value);
2283 public void setFieldValue(_Fields field, Object value) {
2286 if (value == null) {
2289 setPrefix((String)value);
2294 if (value == null) {
2297 setErrCode((Byte)value);
2302 if (value == null) {
2305 setErrSubcode((Byte)value);
2312 public Object getFieldValue(_Fields field) {
2318 return Byte.valueOf(getErrCode());
2321 return Byte.valueOf(getErrSubcode());
2324 throw new IllegalStateException();
2327 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2328 public boolean isSet(_Fields field) {
2329 if (field == null) {
2330 throw new IllegalArgumentException();
2335 return isSetPrefix();
2337 return isSetErrCode();
2339 return isSetErrSubcode();
2341 throw new IllegalStateException();
2345 public boolean equals(Object that) {
2348 if (that instanceof onNotificationSendEvent_args)
2349 return this.equals((onNotificationSendEvent_args)that);
2353 public boolean equals(onNotificationSendEvent_args that) {
2357 boolean this_present_prefix = true && this.isSetPrefix();
2358 boolean that_present_prefix = true && that.isSetPrefix();
2359 if (this_present_prefix || that_present_prefix) {
2360 if (!(this_present_prefix && that_present_prefix))
2362 if (!this.prefix.equals(that.prefix))
2366 boolean this_present_errCode = true;
2367 boolean that_present_errCode = true;
2368 if (this_present_errCode || that_present_errCode) {
2369 if (!(this_present_errCode && that_present_errCode))
2371 if (this.errCode != that.errCode)
2375 boolean this_present_errSubcode = true;
2376 boolean that_present_errSubcode = true;
2377 if (this_present_errSubcode || that_present_errSubcode) {
2378 if (!(this_present_errSubcode && that_present_errSubcode))
2380 if (this.errSubcode != that.errSubcode)
2388 public int hashCode() {
2393 public int compareTo(onNotificationSendEvent_args other) {
2394 if (!getClass().equals(other.getClass())) {
2395 return getClass().getName().compareTo(other.getClass().getName());
2398 int lastComparison = 0;
2400 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
2401 if (lastComparison != 0) {
2402 return lastComparison;
2404 if (isSetPrefix()) {
2405 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
2406 if (lastComparison != 0) {
2407 return lastComparison;
2410 lastComparison = Boolean.valueOf(isSetErrCode()).compareTo(other.isSetErrCode());
2411 if (lastComparison != 0) {
2412 return lastComparison;
2414 if (isSetErrCode()) {
2415 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errCode, other.errCode);
2416 if (lastComparison != 0) {
2417 return lastComparison;
2420 lastComparison = Boolean.valueOf(isSetErrSubcode()).compareTo(other.isSetErrSubcode());
2421 if (lastComparison != 0) {
2422 return lastComparison;
2424 if (isSetErrSubcode()) {
2425 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errSubcode, other.errSubcode);
2426 if (lastComparison != 0) {
2427 return lastComparison;
2433 public _Fields fieldForId(int fieldId) {
2434 return _Fields.findByThriftId(fieldId);
2437 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2438 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
2441 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2442 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
2446 public String toString() {
2447 StringBuilder sb = new StringBuilder("onNotificationSendEvent_args(");
2448 boolean first = true;
2450 sb.append("prefix:");
2451 if (this.prefix == null) {
2454 sb.append(this.prefix);
2457 if (!first) sb.append(", ");
2458 sb.append("errCode:");
2459 sb.append(this.errCode);
2461 if (!first) sb.append(", ");
2462 sb.append("errSubcode:");
2463 sb.append(this.errSubcode);
2466 return sb.toString();
2469 public void validate() throws org.apache.thrift.TException {
2470 // check for required fields
2471 // check for sub-struct validity
2474 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2476 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2477 } catch (org.apache.thrift.TException te) {
2478 throw new java.io.IOException(te);
2482 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2484 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
2485 __isset_bitfield = 0;
2486 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2487 } catch (org.apache.thrift.TException te) {
2488 throw new java.io.IOException(te);
2492 private static class onNotificationSendEvent_argsStandardSchemeFactory implements SchemeFactory {
2493 public onNotificationSendEvent_argsStandardScheme getScheme() {
2494 return new onNotificationSendEvent_argsStandardScheme();
2498 private static class onNotificationSendEvent_argsStandardScheme extends StandardScheme<onNotificationSendEvent_args> {
2500 public void read(org.apache.thrift.protocol.TProtocol iprot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
2501 org.apache.thrift.protocol.TField schemeField;
2502 iprot.readStructBegin();
2505 schemeField = iprot.readFieldBegin();
2506 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
2509 switch (schemeField.id) {
2511 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
2512 struct.prefix = iprot.readString();
2513 struct.setPrefixIsSet(true);
2515 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2519 if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) {
2520 struct.errCode = iprot.readByte();
2521 struct.setErrCodeIsSet(true);
2523 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2526 case 3: // ERR_SUBCODE
2527 if (schemeField.type == org.apache.thrift.protocol.TType.BYTE) {
2528 struct.errSubcode = iprot.readByte();
2529 struct.setErrSubcodeIsSet(true);
2531 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2535 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
2537 iprot.readFieldEnd();
2539 iprot.readStructEnd();
2541 // check for required fields of primitive type, which can't be checked in the validate method
2545 public void write(org.apache.thrift.protocol.TProtocol oprot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
2548 oprot.writeStructBegin(STRUCT_DESC);
2549 if (struct.prefix != null) {
2550 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
2551 oprot.writeString(struct.prefix);
2552 oprot.writeFieldEnd();
2554 oprot.writeFieldBegin(ERR_CODE_FIELD_DESC);
2555 oprot.writeByte(struct.errCode);
2556 oprot.writeFieldEnd();
2557 oprot.writeFieldBegin(ERR_SUBCODE_FIELD_DESC);
2558 oprot.writeByte(struct.errSubcode);
2559 oprot.writeFieldEnd();
2560 oprot.writeFieldStop();
2561 oprot.writeStructEnd();
2566 private static class onNotificationSendEvent_argsTupleSchemeFactory implements SchemeFactory {
2567 public onNotificationSendEvent_argsTupleScheme getScheme() {
2568 return new onNotificationSendEvent_argsTupleScheme();
2572 private static class onNotificationSendEvent_argsTupleScheme extends TupleScheme<onNotificationSendEvent_args> {
2575 public void write(org.apache.thrift.protocol.TProtocol prot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
2576 TTupleProtocol oprot = (TTupleProtocol) prot;
2577 BitSet optionals = new BitSet();
2578 if (struct.isSetPrefix()) {
2581 if (struct.isSetErrCode()) {
2584 if (struct.isSetErrSubcode()) {
2587 oprot.writeBitSet(optionals, 3);
2588 if (struct.isSetPrefix()) {
2589 oprot.writeString(struct.prefix);
2591 if (struct.isSetErrCode()) {
2592 oprot.writeByte(struct.errCode);
2594 if (struct.isSetErrSubcode()) {
2595 oprot.writeByte(struct.errSubcode);
2600 public void read(org.apache.thrift.protocol.TProtocol prot, onNotificationSendEvent_args struct) throws org.apache.thrift.TException {
2601 TTupleProtocol iprot = (TTupleProtocol) prot;
2602 BitSet incoming = iprot.readBitSet(3);
2603 if (incoming.get(0)) {
2604 struct.prefix = iprot.readString();
2605 struct.setPrefixIsSet(true);
2607 if (incoming.get(1)) {
2608 struct.errCode = iprot.readByte();
2609 struct.setErrCodeIsSet(true);
2611 if (incoming.get(2)) {
2612 struct.errSubcode = iprot.readByte();
2613 struct.setErrSubcodeIsSet(true);